本文整理汇总了PHP中geticon函数的典型用法代码示例。如果您正苦于以下问题:PHP geticon函数的具体用法?PHP geticon怎么用?PHP geticon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了geticon函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: iconimg
function iconimg($id, $type = false, $prefix = '../')
{
if ($icon = geticon($id, $type)) {
return '<img src="' . $prefix . $icon . '" alt="" style="vertical-align:middle;" /> ';
}
return '';
}
示例2: exec
function exec($args, $stdin, &$stdout, &$stderr, &$system)
{
$object = new mObject(getNode($_SESSION['murrix']['path']));
$links = $object->getLinks();
if ($args == "-l")
{
$stdout .= "total ".count($links)."\n";
if (count($links) > 0)
{
$stdout .= "<table cellspacing=\"0\">";
$stdout .= "<tr class=\"table_title\">";
$stdout .= "<td>Id</td>";
$stdout .= "<td>Type</td>";
$stdout .= "<td>Remote node</td>";
$stdout .= "<td>Remote node is on...</td>";
$stdout .= "</tr>";
foreach ($links as $link)
{
if ($link['remote_id'] <= 0)
$remote = ucf(i18n("unknown"));
else
{
$remote_obj = new mObject($link['remote_id']);
$remote = cmd(img(geticon($remote_obj->getIcon()))." ".$remote_obj->getName(), "exec=show&node_id=".$remote_obj->getNodeId());
}
$stdout .= "<tr>";
$stdout .= "<td>".$link['id']."</td>";
$stdout .= "<td>".$link['type']."</td>";
$stdout .= "<td>".$remote."</td>";
$stdout .= "<td>".ucf(i18n($link['direction']))."</td>";
$stdout .= "</tr>";
}
$stdout .= "</table>";
}
}
else
{
foreach ($links as $link)
{
if ($link['remote_id'] > 0)
{
$remote_obj = new mObject($link['remote_id']);
$stdout .= cmd($remote_obj->getName(), "exec=show&node_id=".$remote_obj->getNodeId())." ";
}
}
}
return true;
}
示例3: exec
function exec($args, $stdin, &$stdout, &$stderr, &$system)
{
$object = new mObject(getNode($_SESSION['murrix']['path']));
$children = fetch("FETCH node WHERE link:node_top='".$object->getNodeId()."' AND link:type='sub' NODESORTBY property:version SORTBY ".$object->getMeta("sort_by", "property:name"));
if ($args == "-l")
{
$stdout .= "total ".count($children)."\n";
if (count($children) > 0)
{
$stdout .= "<table cellspacing=\"0\">";
$stdout .= "<tr class=\"table_title\">";
$stdout .= "<td>Id</td>";
$stdout .= "<td>Rev.</td>";
$stdout .= "<td>Lang.</td>";
$stdout .= "<td>Class</td>";
$stdout .= "<td>Rights</td>";
$stdout .= "<td>User</td>";
$stdout .= "<td>Time</td>";
$stdout .= "<td>Name</td>";
$stdout .= "</tr>";
foreach ($children as $child)
{
$user = $child->getUser();
$stdout .= "<tr>";
$stdout .= "<td>".$child->getNodeId()."</td>";
$stdout .= "<td>".$child->getVersion()."</td>";
$stdout .= "<td>".$child->getLanguage()."</td>";
$stdout .= "<td>".$child->getClassName()."</td>";
$stdout .= "<td>".$child->getRights()."</td>";
$stdout .= "<td>".$user->username."</td>";
$stdout .= "<td>".$child->getCreated()."</td>";
$stdout .= "<td>".cmd(img(geticon($child->getIcon(), 16))." ".$child->getName(), "exec=show&node_id=".$child->getNodeId())."</td>";
$stdout .= "</tr>";
}
$stdout .= "</table>";
}
}
else
{
foreach ($children as $child)
$stdout .= $child->getName()." ";
}
return true;
}
示例4: exec
function exec($args, $stdin, &$stdout, &$stderr, &$system)
{
$args = str_replace("*", "%", $args);
$children = fetch("FETCH node WHERE property:name LIKE '%$args%' NODESORTBY property:version SORTBY property:name");
$children = getReadable($children);
$stdout .= "total ".count($children)."\n";
if (count($children) > 0)
{
$stdout .= "<table cellspacing=\"0\">";
$stdout .= "<tr class=\"table_title\">";
$stdout .= "<td>Id</td>";
$stdout .= "<td>Rev.</td>";
$stdout .= "<td>Lang.</td>";
$stdout .= "<td>Class</td>";
$stdout .= "<td>Rights</td>";
$stdout .= "<td>User</td>";
$stdout .= "<td>Group</td>";
$stdout .= "<td>Time</td>";
$stdout .= "<td>Name</td>";
$stdout .= "</tr>";
foreach ($children as $child)
{
$user = $child->getUser();
$group = $child->getGroup();
$stdout .= "<tr>";
$stdout .= "<td>".$child->getNodeId()."</td>";
$stdout .= "<td>".$child->getVersion()."</td>";
$stdout .= "<td>".$child->getLanguage()."</td>";
$stdout .= "<td>".$child->getClassName()."</td>";
$stdout .= "<td>".$child->getRights()."</td>";
$stdout .= "<td>".$user->username."</td>";
$stdout .= "<td>".$group->name."</td>";
$stdout .= "<td>".$child->getCreated()."</td>";
$stdout .= "<td>".cmd(img(geticon($child->getIcon(), 16))." ".$child->getName(), "exec=show&node_id=".$child->getNodeId())."</td>";
$stdout .= "</tr>";
}
$stdout .= "</table>";
}
return true;
}
示例5: exec
function exec($args, $stdin, &$stdout, &$stderr, &$system)
{
$object = new mObject(getNode($_SESSION['murrix']['path']));
$user = $object->getUser();
$stdout .= "<table cellspacing=\"0\">";
$stdout .= "<tr><td class=\"titlename\">Name</td><td>".cmd($object->getName(), "exec=show'&node_id=".$object->getNodeId())."</td></tr>";
$stdout .= "<tr><td class=\"titlename\">Icon</td><td>".img(geticon($object->getIcon(), 16))."</td></tr>";
$stdout .= "<tr><td class=\"titlename\">Id</td><td>".$object->getNodeId()."</td></tr>";
$stdout .= "<tr><td class=\"titlename\">Revision</td><td>".$object->getVersion()."</td></tr>";
$stdout .= "<tr><td class=\"titlename\">Language</td><td>".$object->getLanguage()."</td></tr>";
$stdout .= "<tr><td class=\"titlename\">Class</td><td>".$object->getClassName()."</td></tr>";
$stdout .= "<tr><td class=\"titlename\">Rights</td><td>".$object->getRights()."</td></tr>";
$stdout .= "<tr><td class=\"titlename\">User</td><td>".$user->username."</td></tr>";
$stdout .= "<tr><td class=\"titlename\">Time</td><td>".$object->getCreated()."</td></tr>";
$stdout .= "</table>";
return true;
}
示例6: exec
function exec($args, $stdin, &$stdout, &$stderr, &$system)
{
$object = new mObject(getNode($_SESSION['murrix']['path']));
$versions = fetch("FETCH object WHERE property:node_id='".$object->getNodeId()."' NODESORTBY property:language,property:version,property:name");
$stdout .= "total ".count($versions)."\n";
if (count($versions) > 0)
{
$stdout .= "<table cellspacing=\"0\">";
$stdout .= "<tr class=\"table_title\">";
$stdout .= "<td>Id</td>";
$stdout .= "<td>Rev.</td>";
$stdout .= "<td>Lang.</td>";
$stdout .= "<td>Class</td>";
$stdout .= "<td>Rights</td>";
$stdout .= "<td>User</td>";
$stdout .= "<td>Group</td>";
$stdout .= "<td>Time</td>";
$stdout .= "<td>Name</td>";
$stdout .= "</tr>";
foreach ($versions as $version)
{
$user = $version->getUser();
$group = $version->getGroup();
$stdout .= "<tr>";
$stdout .= "<td>".$version->getId()."</td>";
$stdout .= "<td>".$version->getVersion()."</td>";
$stdout .= "<td>".$version->getLanguage()."</td>";
$stdout .= "<td>".$version->getClassName()."</td>";
$stdout .= "<td>".$version->getRights()."</td>";
$stdout .= "<td>".$user->username."</td>";
$stdout .= "<td>".$group->name."</td>";
$stdout .= "<td>".$version->getCreated()."</td>";
$stdout .= "<td>".img(geticon($version->getIcon(), 16))." ".$version->getName()."</td>";
$stdout .= "</tr>";
}
$stdout .= "</table>";
}
return true;
}
示例7: date_format2
echo "<a href=" . $Global['home_2domain'] . "/" . $rows['userid'] . " target=_blank>" . $tmpnickname[0] . "</a>";
?>
</td>
<td width="99" align="center"><font color="#FF0000"><b><?php
echo $rows['bbsnum'];
?>
</b></font> <font color="#999999">/</font> <font color="#FF0000"> <?php
echo $rows['click'];
?>
</font></td>
<td width="219">
<?php
echo " <font color=#666666>" . date_format2($rows['endtime'], '%Y-%m-%d %H:%M') . "</font> <font color=#cccccc>|</font> ";
$tmpnicknameend = explode("|", $rows['endnicknamesexgradephoto_s']);
$tmpgradeend = $tmpnicknameend[1] . $tmpnicknameend[2];
geticon($tmpgradeend);
echo "<a href=" . $Global['home_2domain'] . "/" . $rows['userid'] . " target=_blank>" . $tmpnicknameend[0] . "</a>";
?>
</td>
</tr>
</table></td>
</tr>
</table>
<?php
}
} else {
?>
<table width="980" height="81" border="0" align="center" cellpadding="0" cellspacing="0" background="images/bkbg.gif">
<tr>
<td align="center" style="padding-top:2px;padding-bottom:2px;"><font color="#999999">..暂无信息..</font></td>
</tr>
示例8: get_basic_item
$arm_itm = get_basic_item($criteria, $_GET['page'], $limit);
for ($i = 1; $i <= count($arm_itm); $i++) {
?>
<div class='item-line'>
<a href="item?item=<?php
echo $arm_itm[$i]['entry'];
?>
" class="skinnytip" data-text="<div style='width:600px;'><img class='armory-itemicon' src='<?php
echo geticon($arm_itm[$i]['display']);
?>
' width='46' height='46' /><div class='item-frame'><?php
echo return_item_string($arm_itm[$i]['entry']);
?>
</div></div>">
<img class='armory-itemicon' src='<?php
echo geticon($arm_itm[$i]['display']);
?>
' width='23' height='23' /><div class='armory-item-name'><?php
echo qualityString($arm_itm[$i]['quality'], $arm_itm[$i]['name']);
?>
</div>
</a>
<div class='item-invtype-l'><?php
echo inventorytypeString($arm_itm[$i]['intentorytype']);
?>
</div>
<div class='item-class-l'><?php
echo itemclass($arm_itm[$i]['class'], $arm_itm[$i]['subclass']);
?>
</div>
<div class='item-lvl'><?php
示例9: GetFolderList
function GetFolderList($d, $dir = '', $type = '')
{
$sDir = trim($d);
$type = strtolower($type);
strpos($sDir, '.') !== false && exit('What are you doing?');
$s_Url = "";
$FDir = iPATH . $dir . '/';
$sCurrDir = $FDir;
if ($sDir != "") {
if (is_dir($FDir . $sDir)) {
$sCurrDir = $FDir . $sDir . "/";
} else {
$sDir = "";
}
$s_Url = strrpos($sDir, "/") !== false ? substr($sDir, 0, strrpos($sDir, "/")) : "";
$parentfolder = $s_Url;
}
if ($handle = opendir($sCurrDir)) {
while (false !== ($file = readdir($handle))) {
$sFileType = filetype($sCurrDir . "/" . $file);
switch ($sFileType) {
case "dir":
if ($file != '.' && $file != '..' && $file != 'admin') {
$oDirs[] = $file;
}
break;
case "file":
$oFiles[] = $file;
break;
default:
}
}
}
if (isset($oDirs)) {
foreach ($oDirs as $oDir) {
$s_Url = $sDir == "" ? $oDir : $sDir . "/" . $oDir;
$folder[] = array('path' => $s_Url, 'dir' => $oDir);
}
}
$nFileNum = isset($oFiles) ? count($oFiles) : 0;
if ($nFileNum > 0) {
foreach ($oFiles as $oFile) {
$sFileName = $sCurrDir . $oFile;
if (getext($oFile)) {
$s_Url = $sDir == "" ? $oFile : $sDir . "/" . $oFile;
if ($type && strstr($type, getext($oFile)) !== false) {
$FileList[] = array('path' => $s_Url, 'name' => $oFile, 'time' => get_date(filemtime($sFileName), "Y-m-d H:i"), 'icon' => geticon($oFile), 'ext' => getext($oFile), 'size' => GetFileSize(filesize($sFileName)));
} elseif (empty($type)) {
$FileList[] = array('path' => $s_Url, 'name' => $oFile, 'time' => get_date(filemtime($sFileName), "Y-m-d H:i"), 'icon' => geticon($oFile), 'ext' => getext($oFile), 'size' => GetFileSize(filesize($sFileName)));
}
}
}
}
$s_Url = $sDir == "" ? "/" : "/" . $sDir . "/";
$R['FileList'] = $FileList;
$R['parentfolder'] = $parentfolder;
$R['folder'] = $folder;
return $R;
}
示例10: ucf
">
</td>
<td>
<?php
echo ucf(i18n("icon"));
?>
:
<input class="hidden" type="hidden" name="icon" id="icon" value="<?php
echo $object->getIcon(false);
?>
"/>
<a href="javascript:void(null);" onclick="popWin=open('<?php
echo gettpl_www("popups/iconbrowse");
?>
?input_id=icon&form_id=sEdit','PopUpWindow','width=500,height=400,scrollbars=1,status=0'); popWin.opener = self; popWin.focus(); popWin.moveTo(150,50); return false"><img id="icon_img" src="<?php
echo geticon($object->getIcon());
?>
"/></a>
</td>
<td>
<?php
echo ucf(i18n("language"));
?>
:
<select class="select" name="language">
<?
$selected_lang = $object->getLanguage();
if (empty($selected_lang))
$selected_lang = $_SESSION['murrix']['language'];
foreach ($_SESSION['murrix']['languages'] as $language)
示例11: get_item_data
?>
</div>
<div class="itmicn">
<?php
if (isset($charinfo->data3[13])) {
$trinket2 = get_item_data($charinfo->data3[13]);
?>
<a href="" class="skinnytip" data-text="<div style='width:600px;'><img class='armory-itemicon' src='<?php
echo geticon($trinket2['displayID']);
?>
' width='46' height='46' /><div class='item-frame'><?php
echo return_item_string($trinket2['entry']);
?>
</div></div>">
<img class='armory-itemicon' src='<?php
echo geticon($trinket2['displayID']);
?>
' width='30' height='30' />
</a>
<?php
} else {
?>
<a href="" class="skinnytip" data-text="<div style='width:600px;'><img class='armory-itemicon' src='http://wow.zamimg.com/images/wow/icons/large/inv_misc_questionmark.jpg' width='46' height='46' /><div class='item-frame'>This slot is empty <br><br><br></div></div>">
<img class='armory-itemicon' src='http://wow.zamimg.com/images/wow/icons/large/inv_misc_questionmark.jpg' width='30' height='30' />
</a>
<?php
}
?>
</div>
</div>
</div>
示例12: array
<?
$args_title = array();
$args_title['left'] = img(geticon("comment"))." ".ucf(i18n("comments"));
if ($object->hasRight("create") || $object->hasRight("comment"))
$args_title['right'] = cmd(img(geticon("comment"))." ".ucf(i18n("post")), "exec=new&node_id=".$object->getNodeId()."&class_name=comment");
echo compiletpl("title/medium", $args_title, $object);
$pagername = "comments_show";
$children = fetch("FETCH node WHERE link:node_top='".$object->getNodeId()."' AND link:type='sub' AND property:class_name='comment' NODESORTBY property:version SORTBY !property:created");
$children = getReadable($children);
if (count($children) > 0)
{
include(gettpl("pager/start", $object));
for ($i = $start; $i < $end; $i++)
echo compiletpl("scripts/show/line", array(), $children[$i]);
include(gettpl("pager/end", $object));
}
?>
示例13: geticon
<tr>
<td class="tipsblock"><ul id="tipslis">
<li>文 件 名:<?php
echo $rs->filename;
?>
</li>
<li>原文件名:<?php
echo $rs->ofilename;
?>
</li>
<li>文件路径:<?php
echo $path;
?>
</li>
<li>文件类型:<?php
echo geticon($rs->filename);
?>
.<?php
echo $rs->ext;
?>
</li>
<li>保存方式:<?php
echo $rs->type == "remote" ? "远程" : "本地上传";
?>
</li>
<li>保存时间:<?php
echo get_date($rs->time, 'Y-m-d H:i:s');
?>
</li>
</ul></td>
</tr>
示例14: geticon
echo $rows['userid'];
?>
" target="_blank"><?php
if (empty($photo_s_bbs)) {
echo "<img src=" . $Global['www_2domain'] . "/images/65x80" . $sex_bbs . ".gif title=暂无照片>";
} else {
echo "<img src=" . $Global['up_2domain'] . "/photo/" . $photo_s_bbs . " title={$nickname}.'的照片'>";
}
?>
</a></div></td>
</tr>
</table></td>
<td valign="top"><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="bottom" style="color:#666666"><?php
echo geticon($sex_bbs . $grade_bbs);
?>
<a href="<?php
echo $Global['home_2domain'];
?>
/<?php
echo $userid_bbs;
?>
" target=_blank><?php
if ($sex_bbs == 1) {
echo "<font color=#0066CC>";
} else {
echo "<font color=#FB2E7B>";
}
echo $nickname_bbs;
?>
示例15: compiletpl
<?
echo compiletpl("scripts/show/tabs", array("view"=>"settings"), $object);
echo compiletpl("title/big", array("left"=>img(geticon($object->getIcon()))." ".$object->getName()), $object);
?>
<form name="sSettings" id="sSettings" action="javascript:void(null);" onsubmit="Post('settings','sSettings');">
<input class="hidden" type="hidden" name="action" value="meta"/>
<input class="hidden" type="hidden" name="node_id" value="<?php
echo $object->getNodeId();
?>
"/>
<div class="main">
<div class="container">
<fieldset>
<legend>
<?php
echo ucf(i18n("display"));
?>
</legend>
<?php
echo ucf(i18n("items per page"));
?>
<select class="form" name="children_show_num_per_page">
<?
$list = array(5 => 5, 10 => 10, 25 => "", 50 => 50, 100 => 100, "all" => "all");
foreach ($list as $key => $item)
{
$selected = "";
if ($key == $object->getMeta("children_show_num_per_page", 25))
$selected = "selected";