本文整理汇总了PHP中showsubtitle函数的典型用法代码示例。如果您正苦于以下问题:PHP showsubtitle函数的具体用法?PHP showsubtitle怎么用?PHP showsubtitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showsubtitle函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showlistphoto
function showlistphoto($mname, $mlist, $multipage)
{
//數據列表顯示
showformheader('batchmod&m=' . $mname);
showtableheader($mname . '_listresult', 'notop');
showsubtitle(array());
showtablefooter();
echo '<div id="photo_list">';
echo $mlist;
echo '<div style="clear:both;"><table><tr><td style="width:30px;vertical-align:middle;height:25px;"><input style="float:left;" type="checkbox" name="chkall" onclick="checkall(this.form, \'item\')" checked/></td><td style="width:30px;vertical-align:middle;height:30px;">' . lang('selectall') . '</td><td id="pagetd" style="width:500px;vertical-align:middle;">' . $multipage . '</td></tr></table></div>';
echo '<style>
#pagetd .pages{margin-top:10px;}
</style>
</div>';
}
示例2: while
}
} else {
$commentcount = 0;
$query = DB::query("SELECT id FROM " . DB::table('forum_postcomment') . " c WHERE authorid>'-1' {$sql}");
while ($row = DB::fetch($query)) {
$cids .= ',' . $row['id'];
$commentcount++;
}
$multi = '';
}
}
showtagheader('div', 'postlist', $searchsubmit || $newlist);
showformheader('postcomment&frame=no', 'target="postcommentframe"');
showhiddenfields(array('cids' => authcode($cids, 'ENCODE')));
if (!$search_tips) {
showtableheader(cplang('postcomment_new_result') . ' ' . $commentcount, 'fixpadding');
} else {
showtableheader(cplang('postcomment_result') . ' ' . $commentcount . (empty($newlist) ? ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'postcommentforum\').pp.value=\'\';$(\'postcommentforum\').page.value=\'\';" class="act lightlink normal">' . cplang('research') . '</a>' : ''), 'fixpadding');
}
if ($error) {
echo "<tr><td class=\"lineheight\" colspan=\"15\">{$lang[$error]}</td></tr>";
} elseif ($detail) {
showsubtitle(array('', 'postcomment_content', 'author', 'time', 'ip', ''));
echo $comments;
}
showsubmit('postcommentsubmit', 'delete', $detail ? 'del' : '', '', $multi);
showtablefooter();
showformfooter();
echo '<iframe name="postcommentframe" style="display:none"></iframe>';
showtagfooter('div');
}
示例3: exit
<?php
if (!defined('IN_ADMINCP')) {
exit('Access Denied');
}
include_once DISCUZ_ROOT . './source/plugin/dsu_updater/core.func.php';
showtableheader($du_lang['installed_plugin']);
showsubtitle(array($du_lang['plugin_name'], $du_lang['ver_installed'], $du_lang['ver_new'], $du_lang['action']));
$query = DB::query('SELECT name,identifier,version FROM ' . DB::table('common_plugin') . " WHERE identifier LIKE 'dsu_%'");
while ($result = DB::fetch($query)) {
$output = array();
$output[] = $result['name'];
$output[] = $result['version'];
$plugin[$result['identifier']] = $result['name'];
$output[] = $_G['dsu_updater']['plugin'][$result['identifier']];
if ($result['version'] == $_G['dsu_updater']['plugin'][$result['identifier']] || $_G['dsu_updater']['plugin'][$result['identifier']] == '') {
$output[] = '';
} else {
$output[] = '<a href="admin.php?action=plugins&operation=config&identifier=dsu_updater&pmod=main&plugin=' . $result['identifier'] . '&formhash=' . FORMHASH . "\">{$du_lang[update_do]}</a>";
}
showtablerow('', '', $output);
}
showtablefooter();
if (submitcheck('plugin', 1)) {
showtableheader($du_lang['update_status'] . $plugin[$_G['gp_plugin']]);
echo '<tr><td class="tipsblock"><ul id="update_status"><li>正在请求 Callback 系统, 请稍候...</li></ul></td></tr>';
showtablefooter();
@(include_once DISCUZ_ROOT . './source/discuz_version.php');
echo '<script onerror="document.getElementById(\'update_status\').innerHTML+=\'<li><font color=red>发送 CallBack 数据失败.</font></li>\'" src="http://update.dsu.cc/plugin.php?id=' . $_G['gp_plugin'] . '&site_id=' . $_G['dsu_updater']['site_id'] . '&keyhash=' . md5($_G['dsu_updater']['key']) . '&dv=' . DISCUZ_VERSION . '"></script>';
}
@(include_once DISCUZ_ROOT . './source/discuz_version.php');
示例4: foreach
$list[$value['bid']] = $value;
}
if ($list) {
foreach ($list as $bid => $value) {
$inpage = empty($diypage[$bid]) ? cplang('block_page_nopage') : implode('<br/>', $diypage[$bid]);
$theclass = block_getclass($value['blockclass'], true);
showtablerow('', array('class="td25"'), array("<input type=\"checkbox\" class=\"checkbox\" name=\"ids[]\" value=\"{$value['bid']}\">", !empty($value['name']) ? $value['name'] : cplang('block_name_null'), $theclass['script'][$value['script']], $value['styleid'] ? $theclass['style'][$value['styleid']]['name'] : lang('portalcp', 'blockstyle_diy'), !empty($value['dateline']) ? dgmdate($value['dateline']) : cplang('block_dateline_null'), $inpage, "<a href=\"portal.php?mod=portalcp&ac=block&op=block&bid={$value['bid']}&blocktype=1&from=cp\" target=\"_blank\" onclick=\"showWindow('showblock',this.href);return false;\">" . cplang('block_setting') . "</a>  " . "<a href=\"portal.php?mod=portalcp&ac=block&op=getblock&forceupdate=1&inajax=1&bid={$value['bid']}&from=cp\" onclick=\"ajaxget(this.href,'','','','',function(){location.reload();});return false;\">" . cplang('block_update') . "</a>  " . "<a href=\"portal.php?mod=portalcp&ac=block&op=data&bid={$value['bid']}&blocktype=1&from=cp\" target=\"_blank\" onclick=\"showWindow('showblock',this.href);return false;\">" . cplang('block_data') . "</a>  " . "<a href=\"javascript:;\" onclick=\"prompt('" . cplang('block_copycode_message') . "', '<!--{block/{$value['bid']}}-->')\">" . cplang('block_copycode_inner') . "</a>  " . "<a href=\"javascript:;\" onclick=\"prompt('" . cplang('block_copycode_jsmessage') . "', '<script type="text/javascript" src="{$_G['siteurl']}api.php?mod=js&bid={$value['bid']}"></script>')\">" . cplang('block_copycode_outer') . "</a> <a href=\"" . ADMINSCRIPT . "?action=block&operation=perm&bid={$value['bid']}\">" . cplang('portalcategory_perm') . '</a>'));
}
}
$multipage = multi($count, $perpage, $page, $mpurl);
}
showsubmit('', '', '', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ids\')" /><label for="chkall">' . cplang('select_all') . '</label> <input type="submit" class="btn" name="deletesubmit" value="' . cplang('block_delete') . '" />', $multipage);
showtablefooter();
showformfooter();
} else {
showsubtitle(array('block_name', 'block_script', 'block_style', 'block_dateline', 'block_page', 'operation'));
$multipage = '';
$count = DB::result(DB::query("SELECT COUNT(*) FROM " . DB::table('common_block') . " b LEFT JOIN " . DB::table('common_template_block') . " tb ON tb.bid=b.bid WHERE {$wheresql}"), 0);
if ($count) {
$query = DB::query("SELECT b.*, tb.targettplname FROM " . DB::table('common_block') . " b LEFT JOIN " . DB::table('common_template_block') . " tb ON b.bid=tb.bid WHERE {$wheresql} {$ordersql} LIMIT {$start},{$perpage}");
while ($value = DB::fetch($query)) {
if ($value['targettplname']) {
$diyurl = block_getdiyurl($value['targettplname']);
$diyurl = $diyurl['url'];
$tplname = isset($_G['cache']['diytemplatename'][$value['targettplname']]) ? $_G['cache']['diytemplatename'][$value['targettplname']] : $value['targettplname'];
$diypage[$value['bid']][$value['targettplname']] = $diyurl ? '<a href="' . $diyurl . '" target="_blank">' . $tplname . '</a>' : $tplname;
}
$list[$value['bid']] = $value;
}
if ($list) {
foreach ($list as $bid => $value) {
示例5: showtablefooter
</td>
<td>
<a href="admin.php?action=yuexiamen&operation=edit&area=' . $area . '&do=' . $do . '&placeid=' . $value['id'] . '">编辑</a>
<a href="admin.php?frames=yes&action=yuexiamen&operation=delete&area=' . $area . '&do=' . $do . '&placeid=' . $value['id'] . '">删除</a>
</td>
</tr>';
}
showtablefooter();
showformfooter();
} elseif ($operation == 'list' && $do == 'zhusu') {
$yuexiamen = C::t('yuexiamen_zhusu')->fetch_all_by_areaid($maparea[$area]);
echo '<div style="height:30px;line-height:30px;"><a href="admin.php?action=yuexiamen&operation=add&area=' . $area . '&do=' . $do . '">增加</a> |
<a href="admin.php?action=yuexiamen&operation=list&area=' . $area . '&do=' . $do . '">列表</a> </div>';
$tdstyle = array('width="25"', 'width="60"', 'width="45"', 'width="55"');
showtableheader('', '', 'style="min-width:900px;*width:900px;"');
showsubtitle(array('id', '简介', '管理'), 'header', $tdstyle);
foreach ($yuexiamen as $key => $value) {
echo '<tr class="hover" id="cat4">
<td>' . $value['id'] . '</td>
<td>
<div class="parentboard">' . $value['introduction'] . '</div>
</td>
<td>
<a href="admin.php?action=yuexiamen&operation=edit&area=' . $area . '&do=' . $do . '&placeid=' . $value['id'] . '">编辑</a>
<a href="admin.php?frames=yes&action=yuexiamen&operation=delete&area=' . $area . '&do=' . $do . '&placeid=' . $value['id'] . '">删除</a>
</td>
</tr>';
}
showtablefooter();
showformfooter();
示例6: cpmsg
if (!isfounder()) {
cpmsg('noaccess_isfounder', '', 'error');
}
$operation = empty($operation) ? 'admin' : $operation;
if ($operation == 'admin') {
if (!submitcheck('tplsubmit')) {
$templates = '';
$query = DB::query("SELECT * FROM " . DB::table('common_template') . "");
while ($tpl = DB::fetch($query)) {
$templates .= showtablerow('', array('class="td25"', '', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" " . ($tpl['templateid'] == 1 ? 'disabled ' : '') . "value=\"{$tpl['templateid']}\">", "<input type=\"text\" class=\"txt\" size=\"8\" name=\"namenew[{$tpl['templateid']}]\" value=\"{$tpl['name']}\">", "<input type=\"text\" class=\"txt\" size=\"20\" name=\"directorynew[{$tpl['templateid']}]\" value=\"{$tpl['directory']}\">", !empty($tpl['copyright']) ? $tpl['copyright'] : "<input type=\"text\" class=\"txt\" size=\"8\" name=\"copyrightnew[{$tpl['templateid']}]\" value=>"), TRUE);
}
shownav('style', 'templates_admin');
showsubmenu('templates_admin');
showformheader('templates');
showtableheader();
showsubtitle(array('', 'templates_admin_name', 'dir', 'copyright', ''));
echo $templates;
echo '<tr><td>' . $lang['add_new'] . '</td><td><input type="text" class="txt" size="8" name="newname"></td><td class="td29"><input type="text" class="txt" size="20" name="newdirectory"></td><td><input type="text" class="txt" size="25" name="newcopyright"></td><td> </td></tr>';
showsubmit('tplsubmit', 'submit', 'del');
showtablefooter();
showformfooter();
} else {
if ($_G['gp_newname']) {
if (!$_G['gp_newdirectory']) {
cpmsg('tpl_new_directory_invalid', '', 'error');
} elseif (!istpldir($_G['gp_newdirectory'])) {
$directory = $_G['gp_newdirectory'];
cpmsg('tpl_directory_invalid', '', 'error', array('directory' => $directory));
}
DB::insert('common_template', array('name' => $_G['gp_newname'], 'directory' => $_G['gp_newdirectory'], 'copyright' => $_G['gp_newcopyright']));
}
示例7: shownav
<script type="text/JavaScript">
\tvar rowtypedata = [
\t\t[
\t\t\t[1,'', 'td25'],
\t\t\t[1,'<input type="text" class="txt" name="newdisplayorder[]" size="3">', 'td28'],
\t\t\t[1,'<input type="text" class="txt" name="newtitle[]" size="25">'],
\t\t\t[1,'<input type="text" class="txt" name="newurl[]" size="40">', 'td26']
\t\t]
\t];
</script>
EOT;
shownav('tools', 'nav_custommenu');
showsubmenu('nav_custommenu');
showformheader('misc&operation=custommenu');
showtableheader();
showsubtitle(array('', 'display_order', 'name', 'URL'));
echo $optionlist;
echo '<tr><td></td><td colspan="3"><div><a href="###" onclick="addrow(this, 0)" class="addtr">' . $lang['custommenu_add'] . '</a></div></td></tr>';
showsubmit('optionsubmit', 'submit', 'del', '', $multipage);
showtablefooter();
showformfooter();
} else {
if ($ids = dimplode($_GET['delete'])) {
C::t('common_admincp_cmenu')->delete($_GET['delete'], $_G['uid']);
}
if (is_array($_GET['titlenew'])) {
foreach ($_GET['titlenew'] as $id => $title) {
$_GET['urlnew'][$id] = rawurlencode($_GET['urlnew'][$id]);
$title = dhtmlspecialchars($_GET['langnew'][$id] && cplang($_GET['langnew'][$id], false) ? $_GET['langnew'][$id] : $title);
$ordernew = intval($_GET['displayordernew'][$id]);
C::t('common_admincp_cmenu')->update($id, array('title' => $title, 'displayorder' => $ordernew, 'url' => dhtmlspecialchars($_GET['urlnew'][$id])));
示例8: page
echo <<<EOT
<script type="text/JavaScript">
\tfunction page(number) {
\t\t\$('attachmentforum').page.value=number;
\t\t\$('attachmentforum').searchsubmit.click();
\t}
</script>
EOT;
showtagheader('div', 'admin', $searchsubmit);
showformheader('attach', '', 'attachmentforum');
showhiddenfields(array('page' => $page, 'nomatched' => $nomatched, 'inforum' => $inforum, 'sizeless' => $sizeless, 'sizemore' => $sizemore, 'dlcountless' => $dlcountless, 'dlcountmore' => $dlcountmore, 'daysold' => $daysold, 'filename' => $filename, 'keywords' => $keywords, 'author' => $author));
echo '<input type="submit" name="searchsubmit" value="' . lang('submit') . '" class="btn" style="display: none" />';
showformfooter();
showformheader('attach&frame=no', 'target="attachmentframe"');
showtableheader();
showsubtitle(array('', 'filename', 'attach_path', 'author', 'attach_thread', 'size', 'attach_downloadnums', ''));
echo $attachments;
showsubmit('deletesubmit', 'submit', 'del', '<a href="###" onclick="$(\'admin\').style.display=\'none\';$(\'search\').style.display=\'\';" class="act lightlink normal">' . lang('research') . '</a>', $multipage);
showtablefooter();
showformfooter();
echo '<iframe name="attachmentframe" style="display:none"></iframe>';
showtagfooter('div');
}
} else {
if ($ids = implodeids($delete)) {
$tids = $pids = 0;
$query = $db->query("SELECT tid, pid, attachment, thumb, remote FROM {$tablepre}attachments WHERE aid IN ({$ids})");
while ($attach = $db->fetch_array($query)) {
dunlink($attach['attachment'], $attach['thumb'], $attach['remote']);
$tids .= ',' . $attach['tid'];
$pids .= ',' . $attach['pid'];
示例9: while
$raterangetable = '';
while ($group = $db->fetch_array($query)) {
$ratemin = $ratemax = $ratemrpd = '';
foreach (explode("\n", $group['raterange']) as $range) {
$range = explode("\t", $range);
if ($range[0] == $credit) {
$ratemin = $range[1];
$ratemax = $range[2];
$ratemrpd = $range[3];
break;
}
}
$raterangetable .= showtablerow('', array('', 'class="td28"', 'class="td28"', 'class="td28"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"raterangestatus[{$group['groupid']}]\" value=\"1\" " . ($ratemin && $ratemax && $ratemax ? 'checked' : '') . "> <a href=\"{$BASESCRIPT}?frames=yes&action=groups&operation=user&do=edit&id={$group['groupid']}&anchor=exempt\" target=\"_blank\">{$group['grouptitle']}</a>", "<input type=\"text\" class=\"txt\" name=\"ratemin[{$group['groupid']}]\" size=\"3\" value=\"{$ratemin}\">", "<input type=\"text\" class=\"txt\" name=\"ratemax[{$group['groupid']}]\" size=\"3\" value=\"{$ratemax}\">", "<input type=\"text\" class=\"txt\" name=\"ratemrpd[{$group['groupid']}]\" size=\"3\" value=\"{$ratemrpd}\">"), TRUE);
}
showtitle('creditwizard_forum_groupraterange');
showsubtitle(array('forum', 'usergroups_edit_raterange_min', 'usergroups_edit_raterange_max', 'usergroups_edit_raterange_mrpd'));
echo $raterangetable;
showsubmit('settingsubmit', 'submit', '<input type="reset" class="btn" name="settingsubmit" value="' . $lang['reset'] . '" />');
showtablefooter();
showformfooter();
}
} else {
if ($type == 1) {
if ($creditstrans == $credit && empty($settingsnew['available'])) {
cpmsg('settings_creditstrans_invalid', '', 'error');
}
$initcredits[$credit] = $settingsnew['init'];
$initcredits = implode(',', $initcredits);
$extcredits[$credit] = array('title' => dhtmlspecialchars(stripslashes($settingsnew['title'])), 'unit' => dhtmlspecialchars(stripslashes($settingsnew['unit'])), 'ratio' => $settingsnew['ratio'] > 0 ? (double) $settingsnew['ratio'] : 0, 'available' => $settingsnew['available'], 'showinthread' => $settingsnew['showinthread'], 'allowexchangeout' => $settingsnew['allowexchangeout'], 'allowexchangein' => $settingsnew['allowexchangein'], 'lowerlimit' => intval($settingsnew['lowerlimit']));
$extcredits = addslashes(serialize($extcredits));
$creditspolicy['post'][$credit] = intval($settingsnew['policy_post']);
示例10: showtagheader
$("nt_" + id).style.display = v.substr(4,1) == "1" ? "" : "none";
$("ni_" + id).style.display = v.substr(5,1) == "1" ? "" : "none";
$("nsn_" + id).style.display = v.substr(6,1) == "1" ? "" : "none";
$("nsu_" + id).style.display = v.substr(6,1) == "1" ? "" : "none";
} else {
$("n_" + id).style.display = "none";
}
e = obj.options[obj.selectedIndex].getAttribute("e");
$("e_" + id).innerHTML = e && ($("url_" + id).value == \'\' || $("u_" + id).style.display == "none") ? "." + e + ".php" : "";
}
shide($("s_n"), "n");' . $shideinit . '
</script>';
showtagheader('div', 'vars', $anchor == 'vars');
showformheader("plugins&operation=edit&type=vars&pluginid={$pluginid}", '', 'varsform');
showtableheader('plugins_edit_vars');
showsubtitle(array('', 'display_order', 'plugins_vars_title', 'plugins_vars_variable', 'plugins_vars_type', ''));
$query = DB::query("SELECT * FROM " . DB::table('common_pluginvar') . " WHERE pluginid='{$plugin['pluginid']}' ORDER BY displayorder");
while ($var = DB::fetch($query)) {
$var['type'] = $lang['plugins_edit_vars_type_' . $var['type']];
$var['title'] .= isset($lang[$var['title']]) ? '<br />' . $lang[$var['title']] : '';
showtablerow('', array('class="td25"', 'class="td28"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"{$var['pluginvarid']}\">", "<input type=\"text\" class=\"txt\" size=\"2\" name=\"displayordernew[{$var['pluginvarid']}]\" value=\"{$var['displayorder']}\">", $var['title'], $var['variable'], $var['type'], "<a href=\"" . ADMINSCRIPT . "?action=plugins&operation=vars&pluginid={$plugin['pluginid']}&pluginvarid={$var['pluginvarid']}\" class=\"act\">{$lang['detail']}</a>"));
}
showtablerow('', array('class="td25"', 'class="td28"'), array(cplang('add_new'), '<input type="text" class="txt" size="2" name="newdisplayorder" value="0">', '<input type="text" class="txt" size="15" name="newtitle">', '<input type="text" class="txt" size="15" name="newvariable">', '<select name="newtype">
<option value="number">' . cplang('plugins_edit_vars_type_number') . '</option>
<option value="text" selected>' . cplang('plugins_edit_vars_type_text') . '</option>
<option value="textarea">' . cplang('plugins_edit_vars_type_textarea') . '</option>
<option value="radio">' . cplang('plugins_edit_vars_type_radio') . '</option>
<option value="select">' . cplang('plugins_edit_vars_type_select') . '</option>
<option value="selects">' . cplang('plugins_edit_vars_type_selects') . '</option>
<option value="color">' . cplang('plugins_edit_vars_type_color') . '</option>
<option value="date">' . cplang('plugins_edit_vars_type_date') . '</option>
示例11: unset
unset($list['residecommunity']);
unset($list['idcardtype']);
if (!submitcheck('ordersubmit')) {
$_GET['anchor'] = in_array($_GET['action'], array('members', 'setting')) ? $_GET['action'] : 'members';
$current = array($_GET['anchor'] => 1);
$profilenav = array(array('members_profile_list', 'members&operation=profile', $current['members']), array('members_profile_group', 'setting&operation=profile', $current['setting']));
showsubmenu($lang['members_profile'], $profilenav);
showtips('members_profile_tips');
showformheader('members&operation=profile');
showtableheader('', '', 'id="profiletable_header"');
$tdstyle = array('class="td22"', 'class="td28" width="100"', 'class="td28" width="100"', 'class="td28" width="100"', 'class="td28" width="100"', 'class="td28"', 'class="td28"');
showsubtitle(array('members_profile_edit_name', 'members_profile_edit_display_order', 'members_profile_edit_available', 'members_profile_edit_profile_view', 'members_profile_edit_card_view', 'members_profile_edit_reg_view', ''), 'header tbm', $tdstyle);
showtablefooter();
echo '<script type="text/javascript">floatbottom(\'profiletable_header\');</script>';
showtableheader('members_profile', 'nobottom', 'id="porfiletable"');
showsubtitle(array('members_profile_edit_name', 'members_profile_edit_display_order', 'members_profile_edit_available', 'members_profile_edit_profile_view', 'members_profile_edit_card_view', 'members_profile_edit_reg_view', ''), 'header', $tdstyle);
foreach ($list as $fieldid => $value) {
$value['available'] = '<input type="checkbox" class="checkbox" name="available[' . $fieldid . ']" ' . ($value['available'] ? 'checked="checked" ' : '') . 'value="1">';
$value['invisible'] = '<input type="checkbox" class="checkbox" name="invisible[' . $fieldid . ']" ' . (!$value['invisible'] ? 'checked="checked" ' : '') . 'value="1">';
$value['showincard'] = '<input type="checkbox" class="checkbox" name="showincard[' . $fieldid . ']" ' . ($value['showincard'] ? 'checked="checked" ' : '') . 'value="1">';
$value['showinregister'] = '<input type="checkbox" class="checkbox" name="showinregister[' . $fieldid . ']" ' . ($value['showinregister'] ? 'checked="checked" ' : '') . 'value="1">';
$value['displayorder'] = '<input type="text" name="displayorder[' . $fieldid . ']" value="' . $value['displayorder'] . '" size="5">';
$value['edit'] = '<a href="' . ADMINSCRIPT . '?action=members&operation=profile&fieldid=' . $fieldid . '" title="" class="act">' . $lang[edit] . '</a>';
showtablerow('', array(), $value);
}
showsubmit('ordersubmit');
showtablefooter();
showformfooter();
} else {
foreach ($_GET['displayorder'] as $fieldid => $value) {
$setarr = array('displayorder' => intval($value), 'invisible' => intval($_GET['invisible'][$fieldid]) ? 0 : 1, 'available' => intval($_GET['available'][$fieldid]), 'showincard' => intval($_GET['showincard'][$fieldid]), 'showinregister' => intval($_GET['showinregister'][$fieldid]));
示例12: showsetting
showsetting('collection_uid', 'collection_uid', $collection_uid, 'text');
showsetting('feed_search_perpage', '', $_GET['perpage'], "<select name='perpage'><option value='20'>{$lang['perpage_20']}</option><option value='50'>{$lang['perpage_50']}</option><option value='100'>{$lang['perpage_100']}</option></select>");
showsubmit('searchsubmit');
showtablefooter();
showformfooter();
showtagfooter('div');
} else {
$collection_name = trim($_GET['collection_name']);
$collection_ctid = dintval($_GET['collection_ctid']);
$collection_username = trim($_GET['collection_username']);
$collection_uid = dintval($_GET['collection_uid']);
$ppp = $_GET['perpage'];
$startlimit = ($page - 1) * $ppp;
$multipage = '';
$totalcount = C::t('forum_collection')->fetch_all_for_search($collection_name, $collection_ctid, $collection_username, $collection_uid, -1);
$multipage = multi($totalcount, $ppp, $page, ADMINSCRIPT . "?action=collection&operation=admin&searchsubmit=yes&collection_name={$collection_name}&collection_ctid={$collection_ctid}&collection_username={$collection_username}&collection_uid={$collection_uid}&perpage={$ppp}&status={$status}");
$collection = C::t('forum_collection')->fetch_all_for_search($collection_name, $collection_ctid, $collection_username, $collection_uid, $startlimit, $ppp);
showformheader('collection&operation=admin');
showtableheader(cplang('collection_result') . ' ' . $totalcount . ' <a href="###" onclick="location.href=\'' . ADMINSCRIPT . '?action=collection&operation=admin\';" class="act lightlink normal">' . cplang('research') . '</a>', 'nobottom');
showhiddenfields(array('page' => $_GET['page'], 'collection_name' => $collection_name, 'collection_ctid' => $collection_ctid, 'perpage' => $ppp));
showsubtitle(array('', 'collection_name', 'collection_username', 'collection_date'));
foreach ($collection as $uniquecollection) {
showtablerow('', array('class="td25"', 'width=400', ''), array("<input class=\"checkbox\" type=\"checkbox\" name=\"ctidarray[]\" value=\"{$uniquecollection['ctid']}\" />", "<a href='forum.php?mod=collection&action=view&ctid={$uniquecollection['ctid']}' target='_blank'>{$uniquecollection['name']}</a>", "<a href='home.php?mod=space&uid={$uniquecollection['uid']}' target='_blank'>{$uniquecollection['username']}</a>", dgmdate($uniquecollection['dateline'])));
}
showtablerow('', array('class="td25" colspan="3"'), array('<input name="chkall" id="chkall" type="checkbox" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ctidarray\', \'chkall\')" /><label for="chkall">' . cplang('select_all') . '</label>'));
showtablerow('', array('class="td25"', 'colspan="2"'), array(cplang('operation'), '<input class="radio" type="radio" name="operate_type" value="delete"> ' . cplang('delete') . ' '));
showsubmit('submit', 'submit', '', '', $multipage);
showtablefooter();
showformfooter();
}
}
示例13: showtablerow
showtablerow('', array('class="td27" style="width:30px;"'), array("<input class='radio' type='radio' name='cmid' value='{$value['cmid']}' {$checked}/>", $value['modelname'], $value['scorenamestr'], date('Y-m-d', $value['dateline'])));
}
echo "</table>";
} else {
showtablerow('', array('class="td27"'), array(lang('catmodel_add')));
}
echo "</td></tr>";
showtagfooter('tbody');
}
showhiddenfields(array('upid' => $_GET['upid']));
showhiddenfields(array('catid' => $_GET['catid']));
showhiddenfields(array('type' => $type));
showsubmit('valuesubmit');
showtablefooter();
showformfooter();
} else {
//沒有提交數據的列表頁
shownav('catmanage', 'category_' . $type . '_list');
showsubmenu('menu_category_' . $type);
showtips('category_list_tips_' . $type);
showformheader('category&type=' . $type);
showtableheader('');
showsubtitle(array('display_order', 'catid', 'catname', 'operation'));
foreach ($categorylist as $value) {
showtablerow('', array(), array('<input name="display[' . $value['catid'] . ']" type="text" size="2" value="' . $value['displayorder'] . '" />', $value['catid'], empty($value['url']) ? $value['pre'] . ' ' . $value['name'] : '<a href="' . $value['url'] . '" target="_blank">' . $value['pre'] . ' ' . $value['name'] . ' </a>', '[<a href="admin.php?action=category&op=add&type=' . $type . '&upid=' . $value['catid'] . '">' . lang('category_add_sub') . '</a>]' . ('[<a href="admin.php?action=category&op=edit&type=' . $type . '&upid=' . $value['upid'] . '&catid=' . $value['catid'] . '">' . lang('category_edit') . '</a>] ' . ($type != 'shop' && $type != 'region' && !$value['havechild'] ? '[<a href="admin.php?action=attribute&cid=' . $value['catid'] . '&type=' . $type . '">' . lang('attribute_list') . '</a>]' : '') . ' [<a href="admin.php?action=category&op=del&catid=' . $value['catid'] . '&type=' . $type . '">' . lang('category_del') . '</a>]')));
}
echo '<tr class="hover"><td></td><td><a href="?action=category&op=add&type=' . $type . '" class="addtr">' . lang('category_add_' . $type) . '</a></td><td></td><td></td><td></td></tr>';
showsubmit('listsubmit');
showtablefooter();
showformfooter();
}
示例14: array
\t\t\t\t\t\t<option value="50"{$perpages['50']}>{$searchlang['perpage_50']}</option>
\t\t\t\t\t\t<option value="100"{$perpages['100']}>{$searchlang['perpage_100']}</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t\t<input type="hidden" name="action" value="topic">
\t\t\t\t\t\t<input type="submit" name="searchsubmit" value="{$searchlang['search']}" class="btn">
\t\t\t\t\t</td>
\t\t\t\t</tr>
\t\t\t</table>
\t\t</div>
\t</form>
SEARCH;
$start = ($page - 1) * $perpage;
$mpurl .= '&perpage=' . $perpage;
$perpages = array($perpage => ' selected');
showformheader('topic');
showtableheader('topic_list');
showsubtitle(array('', 'topic_title', 'topic_domain', 'topic_name', 'topic_creator', 'topic_dateline', 'operation'));
$multipage = '';
$count = DB::result(DB::query("SELECT COUNT(*) FROM " . DB::table('portal_topic') . " WHERE {$wheresql}"), 0);
if ($count) {
$query = DB::query("SELECT * FROM " . DB::table('portal_topic') . " WHERE {$wheresql} {$ordersql} LIMIT {$start},{$perpage}");
while ($value = DB::fetch($query)) {
showtablerow('', array('class="td25"', 'class=""', 'class="td28"'), array("<input type=\"checkbox\" class=\"checkbox\" name=\"ids[]\" value=\"{$value['topicid']}\">", "<a href=\"portal.php?mod=topic&topicid={$value['topicid']}\" target=\"_blank\">" . $value[title] . "</a>" . ($value['closed'] ? ' [' . cplang('topic_closed_yes') . ']' : ''), $value['domain'] && !empty($_G['setting']['domain']['root']['topic']) ? 'http://' . $value['domain'] . '.' . $_G['setting']['domain']['root']['topic'] : '', $value['name'], "<a href=\"home.php?mod=space&uid={$value['uid']}&do=profile\" target=\"_blank\">{$value['username']}</a>", dgmdate($value[dateline]), "<a href=\"portal.php?mod=portalcp&ac=topic&topicid={$value['topicid']}\" target=\"_blank\">" . cplang('topic_edit') . "</a> " . "<a href=\"portal.php?mod=topic&topicid={$value['topicid']}&diy=yes\" target=\"_blank\">DIY</a>" . ' <a href="' . ADMINSCRIPT . '?action=diytemplate&operation=perm&targettplname=portal/portal_topic_content_' . $value['topicid'] . '">' . cplang('topic_perm') . '</a>'));
}
$multipage = multi($count, $perpage, $page, $mpurl);
}
$ops = cplang('operation') . ': ' . "<input type='radio' class='radio' name='optype' value='open' id='op_close' /><label for='op_close'>" . cplang('topic_closed_no') . "</label> " . "<input type='radio' class='radio' name='optype' value='close' id='op_open' /><label for='op_open'>" . cplang('topic_closed_yes') . "</label> " . "<input type='radio' class='radio' name='optype' value='delete' id='op_delete' /><label for='op_delete'>" . cplang('delete') . "</label> ";
showsubmit('', '', '', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'ids\')" /><label for="chkall">' . cplang('select_all') . '</label> ' . $ops . '<input type="submit" class="btn" name="opsubmit" value="' . cplang('submit') . '" />', $multipage);
showtablefooter();
showformfooter();
}
示例15: while
} else {
$piccount = 0;
$query = DB::query("SELECT p.picid FROM " . DB::table('home_pic') . " p WHERE 1 {$sql}");
while ($pic = DB::fetch($query)) {
$picids .= ',' . $pic['picid'];
$piccount++;
}
$multi = '';
}
if (!$piccount) {
$error = 'pic_post_nonexistence';
}
}
showtagheader('div', 'postlist', $searchsubmit || $newlist);
showformheader('pic&frame=no', 'target="picframe"');
showhiddenfields(array('picids' => authcode($picids, 'ENCODE')));
showtableheader(cplang('pic_result') . ' ' . $piccount . (empty($newlist) ? ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'picforum\').pp.value=\'\';$(\'picforum\').page.value=\'\';" class="act lightlink normal">' . cplang('research') . '</a>' : ''), 'fixpadding');
if ($error) {
echo "<tr><td class=\"lineheight\" colspan=\"15\">{$lang[$error]}</td></tr>";
} else {
if ($detail) {
showsubtitle(array('', 'albumpic', 'pic_size', 'albumname', 'author', 'time'));
echo $pics;
}
}
showsubmit('picsubmit', 'delete', $detail ? 'del' : '', '', $multi);
showtablefooter();
showformfooter();
echo '<iframe name="picframe" style="display:none"></iframe>';
showtagfooter('div');
}