本文整理汇总了PHP中tpl::img方法的典型用法代码示例。如果您正苦于以下问题:PHP tpl::img方法的具体用法?PHP tpl::img怎么用?PHP tpl::img使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tpl
的用法示例。
在下文中一共展示了tpl::img方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$prefix = cache_prefix();
$memberdata = cache_memberdata();
$result = $db->query("SELECT f.id, f.tid, t.topic, t.last, t.last_name, t.board, t.prefix FROM {$db->pre}fav AS f LEFT JOIN {$db->pre}topics AS t ON f.tid=t.id WHERE f.mid = '{$my->id}' ORDER BY f.id DESC", __LINE__, __FILE__);
$cache = array();
while ($row = $gpc->prepare($db->fetch_assoc($result))) {
$showprefix = '';
if (isset($prefix[$row['board']][$row['prefix']]) && $row['prefix'] > 0) {
$showprefix = $prefix[$row['board']][$row['prefix']];
}
if (is_id($row['last_name'])) {
$row['last_name'] = $memberdata[$row['last_name']];
}
if (isset($my->mark['t'][$row['tid']]) && $my->mark['t'][$row['tid']] > $row['last'] || $row['last'] < $my->clv) {
$row['firstnew'] = 0;
$row['alt'] = $lang->phrase('forum_icon_old');
$row['src'] = $tpl->img('dir_open');
} else {
$row['firstnew'] = 1;
$row['alt'] = $lang->phrase('forum_icon_new');
$row['src'] = $tpl->img('dir_open2');
}
$row['last'] = str_date($lang->phrase('dformat1'), times($row['last']));
$cache[] = $row;
}
echo $tpl->parse("editprofile/fav");
} elseif ($_GET['action'] == "pw") {
$breadcrumb->Add($lang->phrase('editprofile_pw'));
echo $tpl->parse("header");
echo $tpl->parse("menu");
echo $tpl->parse("editprofile/pw");
$mymodules->load('editprofile_pw_bottom');
示例2: elseif
}
if ($pdiff == $extension_count) {
$pdiff = '<span style="color: #006600;">Yes</span>';
} elseif ($pdiff == 0) {
$pdiff = '<span style="color: #990000;">No</span>';
} else {
$pdiff = '<span style="color: #b8860b;">Partially</span>';
}
?>
<tr>
<td class="mbox"><input type="checkbox" name="delete[]" value="<?php
echo $row['id'];
?>
" /></td>
<td class="mbox"><img src="<?php
echo $tpl->img('filetypes/' . $row['icon']);
?>
" alt="" /></td>
<td class="mbox"><a href="admin.php?action=filetypes&job=edit&id=<?php
echo $row['id'];
?>
" title="Edit"><?php
echo implode(', ', $extensions);
?>
</a></td>
<td class="mbox"><?php
echo $adiff;
?>
</td>
<td class="mbox"><?php
echo $pdiff;
示例3: times
$prefix = $prefix_arr[$row['board']][$row['prefix']]['value'];
$row['prefix'] = $lang->phrase('showtopic_prefix_title');
} else {
$row['prefix'] = '';
}
$row['topic'] = $gpc->prepare($row['topic']);
if ($row['type'] != 'd' && $row['type'] != 'w' && $row['type'] != 'f') {
$row['type'] = 's';
}
if (is_id($row['last_name'])) {
$row['last_name'] = $memberdata[$row['last_name']];
}
if ($slog->isTopicRead($row['tid'], $row['last'])) {
$row['firstnew'] = 0;
$row['alt'] = $lang->phrase('forum_icon_old');
$row['src'] = $tpl->img('dir_open');
} else {
$row['firstnew'] = 1;
$row['alt'] = $lang->phrase('forum_icon_new');
$row['src'] = $tpl->img('dir_open2');
}
$row['last'] = str_date($lang->phrase('dformat1'), times($row['last']));
if ($row['posts'] > $info['topiczahl']) {
$row['topic_pages'] = pages($row['posts'] + 1, $info['topiczahl'], "showtopic.php?id=" . $row['id'] . "&", 0, '_small');
} else {
$row['topic_pages'] = '';
}
($code = $plugins->load('editprofile_abos_entry_prepared')) ? eval($code) : null;
$cache[] = $row;
}
$count = count($cache);
示例4: elseif
} elseif ($row->mark == 'a') {
$pref .= $lang->phrase('forum_mark_a');
} elseif ($row->mark == 'b') {
$pref .= $lang->phrase('forum_mark_b');
} elseif ($row->mark == 'g') {
$pref .= $lang->phrase('forum_mark_g');
}
if ($row->sticky == '1') {
$pref .= $lang->phrase('forum_announcement');
}
}
if ($slog->isTopicRead($row->id, $row->last)) {
$firstnew = 0;
if ($row->status == 1 || $row->status == 2) {
$alt = $lang->phrase('forum_icon_closed');
$src = $tpl->img('dir_closed');
} else {
$alt = $lang->phrase('forum_icon_old');
$src = $tpl->img('dir_open');
}
} else {
$firstnew = 1;
if ($row->status == 1 || $row->status == 2) {
$alt = $lang->phrase('forum_icon_closed');
$src = $tpl->img('dir_closed2');
} else {
$alt = $lang->phrase('forum_icon_new');
$src = $tpl->img('dir_open2');
}
}
$qhighlight = urlencode(implode(' ', $data['used']));