• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getIMG函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getIMG函数的典型用法代码示例。如果您正苦于以下问题:PHP getIMG函数的具体用法?PHP getIMG怎么用?PHP getIMG使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getIMG函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __showUpdatesTab

function __showUpdatesTab($id, $icon, $title, $count, $insertCmtId = false, $insertJouId = false)
{
    ?>
			<div id="bar_<?php 
    echo $id;
    ?>
" class="tab"
				onclick="open_tab( this, 'tabs', 'tab_<?php 
    echo $id;
    ?>
' )">
				<?php 
    echo getIMG(url() . "images/emoticons/" . $icon) . " " . $title;
    if ($count > 0) {
        echo " (" . ($insertCmtId ? '<span id="_updCmtCnt">' : '') . ($insertJouId ? '<span id="_updJouCnt">' : '') . fuzzy_number($count) . ($insertCmtId | $insertJouId ? '</span>' : '') . ")";
    }
    ?>
			</div>
			<?php 
}
开发者ID:brocococonut,项目名称:yGallery,代码行数:20,代码来源:p_updates.php


示例2: displayTab

function displayTab($isSelected = false, $title, $url, $icon = "")
{
    global $_newUI;
    if (isset($_GET["newTabs"])) {
        $iconImg = $icon != "" ? getIMG(url() . "images/emoticons/" . $icon) . " " : "";
        $class = $isSelected ? ' class="active"' : "";
        ?>
		<li<?php 
        echo $class;
        ?>
><a href="<?php 
        echo $url;
        ?>
"><?php 
        echo $iconImg;
        echo $title;
        ?>
</a></li>
		<?php 
    } else {
        ?>
		<div class="tab<?php 
        echo $isSelected ? " tab_active" : "";
        ?>
"
			onclick="document.location='<?php 
        echo $url;
        ?>
'">
			<?php 
        echo $icon != "" ? getIMG(url() . "images/emoticons/" . $icon) : "";
        ?>
			<?php 
        echo $title;
        ?>
</div>
		<?php 
    }
}
开发者ID:brocococonut,项目名称:yGallery,代码行数:39,代码来源:visuals.php


示例3: sql_where

<div class="header">
	Request Details
</div>
<div class="notsowide">
	<?php 
sql_where(array("hlpid" => $_cmd[2]));
if ($hlpData = sql_row("helpdesk")) {
    putRequestData($hlpData, true);
}
?>
</div>
<form action="<?php 
echo url("helpdesk");
?>
" method="get">
<button class="smalltext">
	<?php 
echo getIMG(url() . "images/emoticons/nav-prev.png");
?>
	Return to list
</button>
</form>
开发者ID:brocococonut,项目名称:yGallery,代码行数:22,代码来源:p_helpdesk!details.php


示例4: __updIcon

 function __updIcon($count, $hint, $icon, $insertCmtId = false)
 {
     global $_auth, $_commentCountId;
     if ($count > 0) {
         return getIMG(url() . "images/emoticons/" . $icon, 'alt="' . substr($hint, 0, 1) . '" title="' . $hint . '"') . ($_auth["useFuzzyNumbers"] ? " " : "") . '<span' . ($insertCmtId ? ' id="' . $_commentCountId . '"' : '') . ' class="v_middle">' . fuzzy_number($count) . '</span>' . ($_auth["useFuzzyNumbers"] ? "<br />" : " ");
     } else {
         return "";
     }
 }
开发者ID:brocococonut,项目名称:yGallery,代码行数:9,代码来源:layoutnew.php


示例5: showPrevNext

function showPrevNext($cl, $cluVar)
{
    global $_objects, $isExtras, $objData, $useData;
    if ($cl == 1 && $objData[$cluVar] == 0) {
        return;
    }
    if ($cl == 1 && $isExtras) {
        return;
    }
    $prevId = 0;
    $nextId = 0;
    if ($cl == 1) {
        // Navigate inside this club/project.
        $select = "SELECT `objid`,`objTitle` FROM {$_objects},`clubObjects`";
        $where = "`cloObject` = `objid` AND `cloClub` = '" . $objData[$cluVar] . "'";
        $browseURL = url("clubgallery/" . $objData[$cluVar]);
    } else {
        // Navigate inside the artist's gallery (this also includes
        // submissions posted to clubs).
        $select = "SELECT `objid`,`objTitle` FROM {$_objects}";
        $where = "`objCreator` = '" . $objData["objCreator"] . "'";
        $browseURL = url(($isExtras ? "extras/" : "gallery/") . strtolower($useData["useUsername"]));
    }
    // Make sure deleted and pending submissions don't display.
    $where = "({$where}) AND `objDeleted` = '0' AND `objPending` = '0'";
    // Make sure mature submissions don't display if the user has chosen
    // not to view them.
    applyObjFilters($where);
    // To find the next submission, sort all submissions that were
    // posted after the current submission by submission dates
    // in the ascending order and then get the very first one.
    $result = sql_query("{$select} WHERE {$where} " . "AND `objSubmitDate` > '" . $objData["objSubmitDate"] . "' " . "ORDER BY `objSubmitDate` LIMIT 1");
    if ($rowData = mysql_fetch_row($result)) {
        $nextId = $rowData[0];
    }
    // To find the previous submission, sort all submissions that were
    // posted before the current submission by submission dates
    // in the descending order and then get the very first one.
    $result = sql_query("{$select} WHERE {$where} " . "AND `objSubmitDate` < '" . $objData["objSubmitDate"] . "' " . "ORDER BY `objSubmitDate` DESC LIMIT 1");
    if ($rowData = mysql_fetch_row($result)) {
        $prevId = $rowData[0];
    }
    // Display navigation buttons (Prev, Browse, Next).
    ?>
			<div class="mar_top mar_bottom smalltext">
				<?php 
    if ($prevId > 0) {
        echo getObjectThumb($prevId, 30, $isExtras) . getIMG(url() . "images/emoticons/nav-prev.png") . " " . _PAGE_PREVIOUS;
    }
    ?>
				&nbsp; &nbsp;
				<a class="disable_wrapping" href="<?php 
    echo $browseURL;
    ?>
">
					<?php 
    echo $cl == 0 ? $isExtras ? _EXTRA_BROWSE : _BROWSE_GALLERY : _BROWSE_CLUB;
    ?>
</a>
				&nbsp; &nbsp;
				<?php 
    if ($nextId > 0) {
        echo _PAGE_NEXT . " " . getIMG(url() . "images/emoticons/nav-next.png") . getObjectThumb($nextId, 30, $isExtras);
    }
    ?>
			</div>
			<?php 
}
开发者ID:brocococonut,项目名称:yGallery,代码行数:68,代码来源:p_view.php


示例6: url

</td>
							</tr>
							<?php 
    }
    ?>
					</table>
					<div class="a_right">
						<a href="<?php 
    echo url("abuse/" . $abuData["abuid"]);
    ?>
">
							<?php 
    echo _ABUSE_STATUS;
    ?>
							<?php 
    echo getIMG(url() . "images/emoticons/nav-next.png");
    ?>
</a>
					</div>
				</div>
				</div>
			</td>
		</tr>
		<?php 
}
?>
	</table>
	<br />
	<?php 
navControls($offset, $limit, $totalCount);
?>
开发者ID:brocococonut,项目名称:yGallery,代码行数:31,代码来源:p_abusecases.php


示例7: sql_query

            $result = sql_query("SELECT `cluName` FROM `clubs` " . "WHERE `cluid` = '" . $objData["objForClub"] . "'");
            $club = '<a href="' . url("club/" . $objData["objForClub"]) . '">' . mysql_result($result, 0) . '</a>';
            $objTitle .= '</div><div> ' . sprintf(_IN, $club);
        }
        $id = generateId("au_v");
        $all_ids[] = $id;
        $divId = "";
        $starId = "";
        echo '<div ' . $divId . ' class="gallery_col a_center"' . ($view == 1 ? ' style="width: 31%"' : "") . '>' . '<div class="padded ' . ($cols < 3 ? " mar_right" : "") . '">' . '<a href="' . $anchor . '">';
        echo '<img alt="' . htmlspecialchars(strip_tags($objTitle)) . '" class="thumb' . ($objData["objMature"] ? " mature" : "") . '" src="' . $src . '" title="' . htmlspecialchars(strip_tags($objTitle)) . '" width="' . $objData["objThumbWidth"] . '" height="' . $objData["objThumbHeight"] . '" /></a>';
        echo '</div><div>';
        echo '<input class="checkbox" id="' . $id . '" name="' . $key . '" type="checkbox" />';
        if (in_array($objData["objExtension"], array("txt", "html"))) {
            echo getIMG(url() . "images/emoticons/pm.png", 'alt="' . $objData["objExtension"] . '"') . ' ';
        } else {
            echo getIMG(url() . "images/emoticons/submission.png", 'alt="' . $objData["objExtension"] . '"') . ' ';
        }
        echo $objTitle . '</div></div>';
        $cols++;
        if ($cols >= $maxcols) {
            $cols = 0;
            echo '<div class="clear">&nbsp;</div>';
        }
    }
    echo '<div class="clear">&nbsp;</div>';
    iefixEnd();
}
if (!isset($_GET["popup"])) {
    ?>
	</div>
	<?php 
开发者ID:brocococonut,项目名称:yGallery,代码行数:31,代码来源:mod_artview.php


示例8: url

                <form action="<?php 
    echo url("pm/delete/");
    ?>
" method="post">
                <input type="hidden" name="deleteSentMessage" value="1" />
				<div class="f_left mar_bottom">
                	<input type="checkbox" name="pmsid_<?php 
    echo $rowData["pmsid"];
    ?>
" />
					<a href="<?php 
    echo url("pm/read/" . $rowData["pmsid"]);
    ?>
">
						<?php 
    echo getIMG(url() . "images/emoticons/pmout.png");
    ?>
						<?php 
    echo formatText($rowData["pmsTitle"], false, true);
    ?>
					</a>
					<?php 
    echo _PM_FOR;
    ?>
					<?php 
    echo getUserLink($rowData["pmsPmUser"]);
    ?>
				</div>
				<div class="f_right mar_bottom a_right">
					<?php 
    echo date($_auth['useDateFormat'], applyTimezone(strtotime($rowData["pmsSubmitDate"])));
开发者ID:brocococonut,项目名称:yGallery,代码行数:31,代码来源:p_pm.php


示例9: isset

    echo isset($_POST["gift"]) && $_POST["gift"] == $watData["useid"] ? 'selected="selected"' : "";
    ?>
			value="<?php 
    echo $watData["useid"];
    ?>
"><?php 
    echo htmlspecialchars($watData["useUsername"]);
    ?>
</option>
		<?php 
}
mysql_free_result($watResult);
?>
</select>
&nbsp;
<a target="new-tab" href="<?php 
echo url("helpdesk/faq/general/gifts");
?>
">
	<?php 
echo getIMG(url() . "images/emoticons/help.png");
?>
	<?php 
echo _WHATS_THIS;
?>
</a>

<div class="clear">&nbsp;</div>

<div><br /></div>
开发者ID:brocococonut,项目名称:yGallery,代码行数:30,代码来源:mod_submit_page1.php


示例10: showChildComments

function showChildComments($comid, $comObjType, $level, $showChilds = true, $first = false, $oldestFirst = true)
{
    global $_cmd, $_commentsPerPage, $_config;
    if ($comObjType == "com") {
        $sql = "SELECT `comCreator` FROM `comments`" . dbWhere(array("comid" => $comid));
        $comResult = sql_query($sql);
        if (!($comData = mysql_fetch_assoc($comResult))) {
            return false;
        }
        if (isTwit($comData["comCreator"])) {
            return false;
        }
        if (!isLoggedIn()) {
            $result = sql_query("SELECT `useGuestAccess` FROM `useExtData`" . dbWhere(array("useEid" => $comData["comCreator"])));
            if (!mysql_result($result, 0)) {
                return false;
            }
        }
    }
    if ($level > 0) {
        $offset = 0;
    } else {
        $offset = isset($_GET["offset"]) ? intval($_GET["offset"]) : 0;
    }
    $isLastOffset = isset($_GET["offset"]) && $_GET["offset"] == "last";
    if ($_cmd[0] != "user" || $isLastOffset) {
        $result = sql_query("SELECT COUNT(*) FROM `comments` " . "WHERE `comObjType` = '{$comObjType}' AND `comObj` = '{$comid}'" . getTwitWhere("comCreator"));
        $totalcount = mysql_result($result, 0);
        if ($isLastOffset && $_cmd[0] == "user") {
            $lastOffset = floor($totalcount / $_commentsPerPage) * $_commentsPerPage;
            redirect(url(".", array("last" => $lastOffset, "offset" => $lastOffset)));
        }
    } else {
        $totalcount = $offset + $_commentsPerPage + 1;
    }
    $result = sql_query("SELECT * FROM `comments` " . "WHERE `comObjType` = '{$comObjType}' " . "AND `comObj` = '{$comid}' " . getTwitWhere("comCreator") . "ORDER BY `comSubmitDate`" . ($oldestFirst ? "" : " DESC") . " LIMIT " . $offset . "," . ($_commentsPerPage + 1));
    if (!mysql_num_rows($result)) {
        return false;
    }
    $minLevel = 2;
    //$_cmd[0] == "view" ? 2 : 3;
    if ($level >= $minLevel && $_cmd[0] != "comment") {
        for ($i = 0; $i <= $level - 1; $i++) {
            ?>
			<div class="<?php 
            echo $level > 0 && $i < $level - 1 ? "cmt_border_left" : "";
            ?>
">
			<?php 
        }
        $result1 = sql_query("SELECT `comSubmitDate` FROM `comments` WHERE `comid` = '{$comid}' LIMIT 1");
        $comSubmitDate = mysql_result($result1, 0);
        $readURL = url("comment/" . $comid . ($_config["checkSubmitDate"] ? "/" . preg_replace('/[^0-9]/', "", $comSubmitDate) : ''));
        ?>
		<div class="a_left smalltext" style="padding-top: 4px; padding-left: 20px">
			<a href="<?php 
        echo $readURL;
        ?>
#replies"><?php 
        echo _READ_MORE_REPLIES;
        ?>
			<?php 
        echo getIMG(url() . "images/emoticons/nav-next.png");
        ?>
</a>
		</div>
		<?php 
        for ($i = 0; $i <= $level - 1; $i++) {
            echo "</div>";
        }
        return true;
    }
    $commentsToGo = $_commentsPerPage;
    $useids = array();
    $comments = array();
    while ($comData = mysql_fetch_assoc($result)) {
        $useids[] = $comData["comCreator"];
        $comments[] = $comData;
    }
    prefetchUserData(array_unique($useids));
    foreach ($comments as $comData) {
        $first = false;
        showComment($comData, $level);
        if ($showChilds) {
            showChildComments($comData["comid"], "com", $level + 1, true, false, $oldestFirst);
        }
        $commentsToGo--;
        if (!$commentsToGo) {
            break;
        }
        // do not display more than $_commentsPerPage comments
    }
    if ($level == 0) {
        ?>
		<div class="padded">
			<?php 
        navControls($offset, $_commentsPerPage, $totalcount);
        ?>
		</div>
		<?php 
//.........这里部分代码省略.........
开发者ID:brocococonut,项目名称:yGallery,代码行数:101,代码来源:comments.php


示例11: ob_get_contents

		</div>
		<?php 
}
$clubContents = ob_get_contents();
ob_end_clean();
if ($clubContents != "") {
    ?>
		<div class="container2 mar_bottom">
			<div class="a_center">
				<form action="<?php 
    echo url("clubs/" . strtolower($useData["useUsername"]));
    ?>
" method="get">
				<button class="submit wide largetext" type="submit">
					<?php 
    echo getIMG(url() . "images/emoticons/club2.png");
    ?>
					<?php 
    echo _CLUBS;
    ?>
				</button>
				</form>
			</div>
			<div class="sep">
				<?php 
    echo $clubContents;
    ?>
			</div>
		</div>
		<?php 
}
开发者ID:brocococonut,项目名称:yGallery,代码行数:31,代码来源:p_user.php


示例12: putRequestDetail

function putRequestDetail($hlpData, $hddData)
{
    global $_auth;
    ?>
	<div class="container2 mar_bottom">
		<?php 
    if ($hddData["hddAttachment"] != "") {
        ?>
			<div class="f_right a_right" style="margin-left : 2em; margin-bottom : 1em;">
				<b>Attachment</b>:<br />
				<a target="new-tab"
					href="<?php 
        echo url("/") . $hddData["hddAttachment"] . "/" . $hddData["hddAttachOrigName"];
        ?>
">
					<?php 
        echo htmlspecialchars($hddData["hddAttachOrigName"]);
        ?>
</a>
				<?php 
        echo getIMG(url() . "images/emoticons/zip.png");
        ?>
			</div>
			<?php 
    }
    ?>
		<div class="mar_bottom">
			<?php 
    echo getRequestPrivacyText($hddData["hddPrivacy"], $hlpData);
    ?>
		</div>
		<div>
			<?php 
    echo getUserLink($hddData["hddCreator"]);
    ?>
:
			<?php 
    echo formatText($hddData["hddMessage"], true, true);
    ?>
		</div>
	</div>
	<?php 
}
开发者ID:brocococonut,项目名称:yGallery,代码行数:43,代码来源:p_helpdesk.php


示例13: url

        ?>
</a>
						</td>
					</tr>
					<?php 
    }
    ?>
				<tr>
					<td colspan="2">
						<div>
							<a href="<?php 
    echo url("folders/new");
    ?>
">
								<?php 
    echo getIMG(urlf() . "images/emoticons/new.png", "") . " " . _SET_FOLDER_CREATE;
    ?>
</a>
							<br />
						</div>
					</td>
				</tr>
			</table>
		</div>
		<?php 
    iefixEnd();
    ?>
		<?php 
}
?>
</div>
开发者ID:brocococonut,项目名称:yGallery,代码行数:31,代码来源:p_folders.php


示例14: url

</div>
<?php 
}
?>
	</div>
<form action="<?php 
echo url(".");
?>
" method="post">
<div class="caption">Abuse comment:</div>
<?php 
$commentNoOptions = true;
include INCLUDES . "mod_comment.php";
if (isset($_POST["submit"]) && !$_POST["comment"]) {
    notice(_SUBMIT_NO_COMMENT);
}
?>
<div class="sep">
	<button class="submit" name="submit" type="submit">
		<?php 
echo getIMG(url() . "images/emoticons/abuse.png");
?>
		<?php 
echo _ABUSE_REPORT;
?>
	</button>
</div>
</form>

</div>
开发者ID:brocococonut,项目名称:yGallery,代码行数:30,代码来源:p_report.php


示例15: oekakiViewAnimation


//.........这里部分代码省略.........
        case OEK_SHIPRO:
            $appletArchive = url() . "scripts/oekaki/shipainter/PCHViewer.jar";
            $appletCode = "pch2.PCHViewer";
            $appletParams = array("speed" => 2, "image_width" => $objData["objImageWidth"], "image_height" => $objData["objImageHeight"], "pch_file" => preg_replace('/png$/', 'pch', urlf() . $imageURL), "res.zip" => "../scripts/oekaki/shipainter/res.zip", "tt.zip" => "../scripts/oekaki/shipainter/tt.zip", "run" => "true", "buffer_progress" => "true", "buffer_canvas" => "true", "color_icon" => "#eeeeee", "color_bar" => "#dddddd", "color_bar_select" => "#ffffff", "color_back" => "#eeeeee", "layer_count" => 5, "layer_max" => 8, "layer_last" => 2, "quality" => 1);
            break;
        case OEK_PAINTBBS:
            $appletArchive = url() . "scripts/oekaki/shipainter/PCHViewer.jar";
            $appletCode = "pch.PCHViewer";
            $appletParams = array("speed" => 2, "image_width" => $objData["objImageWidth"], "image_height" => $objData["objImageHeight"], "pch_file" => preg_replace('/png$/', 'pch', urlf() . $imageURL), "run" => "true", "buffer_progress" => "true", "buffer_canvas" => "true", "color_icon" => "#eeeeee", "color_bar" => "#dddddd", "color_bar_select" => "#ffffff", "color_back" => "#eeeeee");
            break;
        case OEK_OEKAKIBBS:
            $appletArchive = url() . "scripts/oekaki/shipainter/oekakibbs.jar";
            $appletCode = "a.p";
            $appletParams = array("popup" => 0, "anime" => 2, "readanm" => preg_replace('/png$/', 'oeb', basename($imageURL)), "readanmpath" => urlf() . dirname($imageURL) . "/", "picw" => $objData["objImageWidth"], "pich" => $objData["objImageHeight"], "baseC" => "888888", "brightC" => "aaaaaa", "darkC" => "666666", "backC" => "000000", "buffer_canvas" => "true");
            break;
        default:
            notice(_OEKAKI_UNKNOWN_EDITOR);
            return;
    }
    $params = "";
    foreach ($appletParams as $name => $value) {
        $params .= '<param name="' . $name . '" value="' . htmlspecialchars(strval($value)) . '" />' . "\n\t\t";
    }
    // Changed from embedded objects (which caused a "you need this plugin" message)
    // to browser detection
    ?>
	<div align="center">
	<?php 
    if (ereg("MSIE", $_SERVER["HTTP_USER_AGENT"]) && !ereg("Opera", $_SERVER["HTTP_USER_AGENT"])) {
        ?>
	<object
		classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
		codebase="http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=1,5,0,4"
		width="<?php 
        echo $appletWidth;
        ?>
" height="<?php 
        echo $appletHeight;
        ?>
" >
		<param name="code" value="<?php 
        echo $appletCode;
        ?>
" />
		<param name="archive" value="<?php 
        echo $appletArchive;
        ?>
" />
		<?php 
        echo $params;
        ?>
	</object>
	<?php 
    } else {
        ?>
	<object
		type="application/x-java-applet"
		classid="java:<?php 
        echo $appletCode;
        ?>
.class"
		archive="<?php 
        echo $appletArchive;
        ?>
"
		width="<?php 
        echo $appletWidth;
        ?>
" height="<?php 
        echo $appletHeight;
        ?>
">
		<?php 
        echo $params;
        ?>
		<?php 
        echo sprintf(_OEKAKI_NO_JAVA, 'http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&amp;PartDetailId=jre-1.5.0_04-oth-JPR&amp;SiteId=JSC&amp;TransactionId=noreg');
        ?>
	</object>
	<?php 
    }
    ?>
	<form action="<?php 
    echo url("view/" . $object);
    ?>
" method="get">
		<div class="sep">
			<button type="submit" class="submit">
				<?php 
    echo getIMG(url() . "images/emoticons/nav-prev.png");
    ?>
				<?php 
    echo _RETURN;
    ?>
			</button>
		</div>
	</form>
	</div>
	<?php 
}
开发者ID:brocococonut,项目名称:yGallery,代码行数:101,代码来源:p_oekaki.php


示例16: preg_replace

            $baseFilename = preg_replace('/\\..+$/', "", findNewestFile("files/oekakitemp/" . $oekakiSession . "-*", ""));
            if (file_exists($baseFilename . ".png")) {
                ?>
				<div class="subheader"><?php 
                echo _OEKAKI;
                ?>
</div>
				</div></div>
				<div class="container">
				<div><?php 
                echo _SUBMIT_OEKAKI;
                ?>
:</div>
				<div class="sep">
				<?php 
                echo getIMG(url() . $baseFilename . ".png");
                ?>
				</div>
				<?php 
                if (file_exists($baseFilename . ".pch") || file_exists($baseFilename . ".oeb")) {
                    ?>
					<div class="sep"><?php 
                    echo _SUBMIT_OEKAKI_ANIM;
                    ?>
</div>
					<?php 
                }
            }
        } else {
            // TODO: move text to strings_??.php
            ?>
开发者ID:brocococonut,项目名称:yGallery,代码行数:31,代码来源:p_submit.php


示例17: showKeywordSubcatEdit

function showKeywordSubcatEdit($keywords, $listId, $parentId = 0, $parentKeyName = "", $parentLastKeyName = "")
{
    global $requiredTabs, $firstKeywordId;
    $noSubcats = true;
    foreach ($keywords as $keyData) {
        if (isset($keyData["subcats"])) {
            $noSubcats = false;
            break;
        }
    }
    if ($parentId == 0) {
        ?>
		<div class="clear">&nbsp;</div>
		<div class="sep notsowide mar_left mar_bottom">
			Add more keyword groups to the Root separated by&nbsp;;
			<br />
			<input class="notsowide" name="addKeywordsUnder<?php 
        echo $parentId;
        ?>
" type="text" />
		</div>
		<?php 
    }
    foreach ($keywords as $keyData) {
        $tabid = generateId("kwcache_tab");
        $keyName = "&bull; " . $parentKeyName . $keyData["keyWord"];
        $nonSelectable = preg_match('/\\@$/', $keyData["keyWord"]);
        $keyData["keyWord"] = preg_replace('/\\@$/', "", $keyData["keyWord"]);
        ?>
		<div class="f_left">
			<div class="tab normaltext" id="<?php 
        echo $tabid;
        ?>
"
				onclick="open_tab(this,'keywords_<?php 
        echo $parentId;
        ?>
','keywordTab_<?php 
        echo $keyData["keyid"];
        ?>
')">

				<a href="<?php 
        echo url("keywords", array("delete" => $keyData["keyid"]));
        ?>
">
					<?php 
        echo getIMG(url() . "images/emoticons/keydelete.gif", 'alt="del" title="' . _KEYWORDS_DELETE . '" ' . 'onmouseout="this.style.background=\'none\'" ' . 'onmouseover="this.style.background=\'#fff\'"');
        ?>
				</a>
				<a href="<?php 
        echo url("keywords", array("edit" => $keyData["keyid"]));
        ?>
">
					<?php 
        echo getIMG(url() . "images/emoticons/keyedit.gif", 'alt="edit" title="' . _KEYWORDS_EDIT . '" ' . 'onmouseout="this.style.background=\'none\'" ' . 'onmouseover="this.style.background=\'#fff\'"');
        ?>
				</a>
				<?php 
        echo htmlspecialchars($keyData["keyWord"]);
        if ($nonSelectable) {
            echo "@";
        }
        ?>
			</div>
		</div>
		<?php 
    }
    ?>
	<div class="clear">&nbsp;</div>
	<?php 
    foreach ($keywords as $keyData) {
        $keyData["keyWord"] = preg_replace('/\\@$/', "", $keyData["keyWord"]);
        unset($requiredTabs[$keyData["keyid"]]);
        ?>
		<div style="display: none" id="keywordTab_<?php 
        echo $keyData["keyid"];
        ?>
">
			<?php 
        iefixStart();
        ?>
			<div class="hline">&nbsp;</div>
			<div class="hline">&nbsp;</div>
			<div class="sep notsowide_fix mar_left mar_bottom">
				Add more keywords to the group
				<b><?php 
        echo $parentKeyName . htmlspecialchars($keyData["keyWord"]);
        ?>
</b>
				separated by&nbsp;;
				<br />
				<input class="notsowide_fix" name="addKeywordsUnder<?php 
        echo $keyData["keyid"];
        ?>
" type="text" />
			</div>
			<div class="clear">&nbsp;</div>
			<?php 
        iefixEnd();
//.........这里部分代码省略.........
开发者ID:brocococonut,项目名称:yGallery,代码行数:101,代码来源:mod_keywords_edit.php


示例18: putSidebarModStuff

function putSidebarModStuff()
{
    global $_newUI, $_auth;
    if (isModerator() || $_auth["useid"] == 7) {
        $found = false;
        ob_start();
        for ($isExtras = 0; $isExtras < 2; $isExtras++) {
            $_objects = $isExtras ? "`extras`" : "`objects`";
            // Bring attention to the abuse cases pending a moderator's decision.
            $_tmpResult = sql_query("SELECT `objid`,`objTitle`,`abuid` FROM `abuses`,{$_objects}" . dbWhere(array("abuObj*" => "objid", "abuIsExtras" => $isExtras, "abuMod" => "?")) . "ORDER BY `abuSubmitDate` DESC LIMIT 5");
            while ($rowData = mysql_fetch_assoc($_tmpResult)) {
                ?>
				<div>
					<?php 
                echo getIMG(url() . "images/emoticons/" . ($isExtras ? "star4.png" : "keydelete.gif"));
                ?>
					<a href="<?php 
                echo url("abuse/" . $rowData["abuid"]);
                ?>
">
						<?php 
                echo htmlspecialchars($rowData["objTitle"]);
                ?>
</a>
				</div>
				<?php 
                $found = true;
            }
        }
        $ht = ob_get_contents();
        ob_end_clean();
        if ($found) {
            if (isset($_newUI)) {
                ?>
				<div class="ui2-layout-bg ui2-section-closed"><?php 
                echo _MODERATOR;
                ?>
</div>
				<div class="ui2-section-body">
					<?php 
                echo $ht;
                ?>
				</div>
				<?php 
            } else {
                ?>
				<div class="caption error"><?php 
                echo _MODERATOR;
                ?>
<br /><?php 
                echo _ABUSE_LIST;
                ?>
:</div>
				<div class="container2 mar_bottom">
					<?php 
                echo $ht;
                ?>
				</div>
				<?php 
            }
        }
    }
    if (isSModerator() || $_auth["useid"] == 7) {
        $found = false;
        ob_start();
        $mod_count = 0;
        $adm_count = 0;
        for ($isExtras = 0; $isExtras < 2; $isExtras++) {
            $_objects = $isExtras ? "`extras`" : "`objects`";
            // Bring attention to the abuse cases pending a supermoderator's decision.
            $_tmpResult = sql_query("SELECT `objid`,`objTitle`,`abuid` FROM `abuses`,{$_objects} " . "WHERE `abuObj` = `objid` AND `abuIsExtras` = '{$isExtras}' AND `abuMod` <> '?' AND `abusMod` = '?' " . "ORDER BY `abuSubmitDate` DESC LIMIT 5");
            $_tmpResult_mod = sql_query("SELECT COUNT(*) FROM `abuses`,{$_objects} " . "WHERE `abuObj` = `objid` AND `abuIsExtras` = '{$isExtras}' AND `abuMod` = '?'");
            $mod_count += mysql_result($_tmpResult_mod, 0);
            $_tmpResult_adm = sql_query("SELECT COUNT(*) FROM `abuses`,{$_objects} " . "WHERE `abuObj` = `objid` AND `abuIsExtras` = '{$isExtras}' AND `abuMod` <> '?' AND `abusMod` <> '?' " . "AND `abuMod` <> `abusMod` AND `aburMod` = '?'");
            $adm_count += mysql_result($_tmpResult_adm, 0);
            while ($rowData = mysql_fetch_assoc($_tmpResult)) {
                ?>
				<div>
					<?php 
                echo getIMG(url() . "images/emoticons/" . ($isExtras ? "star4.png" : "keydelete.gif"));
                ?>
					<a href="<?php 
                echo url("abuse/" . $rowData["abuid"]);
                ?>
">
						<?php 
                echo htmlspecialchars($rowData["objTitle"]);
                ?>
</a>
				</div>
				<?php 
                $found = true;
            }
        }
        if ($mod_count > 0) {
            ?>
			<div<?php 
            echo $found ? ' class="sep"' : "";
            ?>
><?php 
//.........这里部分代码省略.........
开发者ID:brocococonut,项目名称:yGallery,代码行数:101,代码来源:layout!sidebar-func.php


示例19: url

?>
 <?php 
echo _WATCH_LIST;
?>
</div>

	<div class="tab<?php 
echo $active == 3 ? " tab_active" : "";
?>
"
		onclick="document.location='<?php 
echo url("watchedby/" . $useUsername);
?>
'">
		<?php 
echo getIMG(url() . "images/emoticons/watch.png");
?>
 <?php 
echo _WATCHED_BY;
?>
</div>
	<?php 
navControls($fr_offset, $fr_limit, $fr_totalCount);
?>
	<div class="clear">&nbsp;</div>

</div>

<div class="hline">&nbsp;</div>

<?php 
开发者ID:brocococonut,项目名称:yGallery,代码行数:31,代码来源:mod_friendsubmenu.php


示例20: foreach

		<div class="container2 mar_bottom">
			<?php 
$found = false;
foreach ($entries as $entry) {
    // do not display the current entry on the list
    // disabled - because it looks confusing
    //if($entry["polid"] == $currentEntry["polid"]) continue;
    iefixStart();
    ?>
				<div class="f_left mar_bottom">
					<a href="<?php 
    echo url("poll/" . $useUsername . "/" . $entry["polid"]);
    ?>
">
					<?php 
    echo getIMG(url() . "images/emoticons/poll.png");
    ?>
					<?php 
    echo formatText($entry["polSubject"]);
    ?>
					</a>
				</div>
				<div class="f_right mar_bottom">
					<?php 
    echo gmdate($_auth["useDateFormat"], applyTimezone(strtotime($entry["polSubmitDate"])));
    ?>
				</div>
				<div class="clear">&nbsp;</div>
				<?php 
    iefixEnd();
    $found = true;
开发者ID:brocococonut,项目名称:yGallery,代码行数:31,代码来源:p_poll.php



注:本文中的getIMG函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getIP函数代码示例发布时间:2022-05-15
下一篇:
PHP getID函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap