当前位置: 首页>>代码示例>>PHP>>正文


PHP getIMG函数代码示例

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


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


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