本文整理汇总了PHP中showtableheader函数的典型用法代码示例。如果您正苦于以下问题:PHP showtableheader函数的具体用法?PHP showtableheader怎么用?PHP showtableheader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showtableheader函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: admincp_show
function admincp_show($setting)
{
global $_G;
$creditset = $setting['MarketCredit'];
showtableheader('积分价格', 'notop', 'id="creditbody"');
include template('dsu_medalCenter:admin_extcredit');
showtablefooter();
}
示例2: 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>';
}
示例3: exit
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');
callback('plugin', 0, '&dv=' . DISCUZ_VERSION);
示例4: multi
$multi = multi($postlistcount, $lpp, $page, ADMINSCRIPT . "?action=recyclebinpost");
$multi = preg_replace("/href=\"" . ADMINSCRIPT . "\\?action=recyclebinpost&page=(\\d+)\"/", "href=\"javascript:page(\\1)\"", $multi);
$multi = str_replace("window.location='" . ADMINSCRIPT . "?action=recyclebinpost&page='+this.value", "page(this.value)", $multi);
}
showsubmit('rbsubmit', 'submit', '', '<a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'delete\')">' . cplang('recyclebin_all_delete') . '</a> <a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'undelete\')">' . cplang('recyclebin_all_undelete') . '</a> <a href="#rb" onclick="checkAll(\'option\', $(\'rbform\'), \'ignore\')">' . cplang('recyclebin_all_ignore') . '</a> ', $multi);
showtablefooter();
showformfooter();
echo '<iframe name="rbframe" style="display:none"></iframe>';
showtagfooter('div');
}
} elseif ($operation == 'clean') {
if (!submitcheck('cleanrbsubmit', 1)) {
shownav('topic', 'nav_recyclebinpost');
showsubmenu('nav_recyclebinpost', array(array('recyclebinpost_list', 'recyclebinpost', 0), array('search', 'recyclebinpost&operation=search', 0), array('clean', 'recyclebinpost&operation=clean', 1)));
showformheader('recyclebinpost&operation=clean');
showtableheader('recyclebinpost_clean');
showsetting('recyclebinpost_clean_days', 'days', '30', 'text');
showsubmit('cleanrbsubmit');
showtablefooter();
showformfooter();
} else {
$deletetids = array();
$pernum = 200;
$postsdel = intval($_GET['postsdel']);
$days = intval($_GET['days']);
$timestamp = TIMESTAMP - max(0, $days * 86400);
$postlist = array();
loadcache('posttableids');
$posttables = !empty($_G['cache']['posttableids']) ? $_G['cache']['posttableids'] : array(0);
foreach ($posttables as $ptid) {
foreach (C::t('forum_post')->fetch_all_pid_by_invisible_dateline($ptid, -5, $timestamp, 0, $pernum) as $post) {
示例5: addjscall
\t\t\t\t</div>
\t\t\t</form>
\t\t\t<script type="text/javascript">
\t\t\tfunction addjscall() {
\t\t\t\tvar blockclass = \$('blockclass').value;
\t\t\t\tif(blockclass) {
\t\t\t\t\tshowWindow('blockclass', 'portal.php?mod=portalcp&ac=block&op=block&blocktype=1&from=cp&classname=' + blockclass);
\t\t\t\t} else {
\t\t\t\t\talert('{$searchlang['block_choose_blockclass_to_add_jscall']}');
\t\t\t\t}
\t\t\t}
\t\t\t</script>
SEARCH;
$start = ($page - 1) * $perpage;
showformheader('block&operation=' . $operation);
showtableheader('block_list');
$list = $diypage = array();
include_once libfile('function/block');
if ($operation == 'jscall') {
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;
}
示例6: showsubmit
}
showsubmit('submit');
showtablefooter();
showformfooter();
return;
}
$type = intval($_G['sr_type']);
!in_array($type, array(1, 2)) && ($type = 1);
$result = DB::fetch_first("SELECT * FROM " . DB::table('sanree_brand_slide') . ' where id=' . $type);
showsubmenu($menustr);
showtableheader('', 'nobottom');
$typeclass = array(1, 2);
showtablerow('', array(), array(shownavmenu($type, $typeclass, $langs)));
showtablefooter();
showformheader($thisurl . '&type=' . $type, 'enctype');
showtableheader($langs['slide'], 'nobottom');
for ($j = 1; $j < 6; $j++) {
$grouplogohtml = '';
$pic = '';
if ($result['pic' . $j]) {
$pic = $result['pic' . $j];
$grouplogohtml = '<label>' . $langs['slideimgtip'] . '<br /><img src="' . fiximage($pic) . '?' . random(6) . '" width="400" height="100" />';
}
showsetting($langs['slide_img'] . $j, 'pic' . $j, $pic, 'filetext', '', 0, $grouplogohtml);
showsetting($langs['slide_link'] . $j, 'movie' . $j, $result['movie' . $j], 'text');
}
showsubmit('submit');
showtablefooter();
showformfooter();
}
function shownavmenu($type, $typeclass, $langs)
示例7: addslashes
$advnew['code'] = addslashes($advnew['code']);
$query = DB::query("UPDATE " . DB::table('advertisement') . " SET title='{$advnew['title']}', targets='{$advnew['targets']}', parameters='{$advnew['parameters']}', code='{$advnew['code']}', starttime='{$advnew['starttime']}', endtime='{$advnew['endtime']}' WHERE advid='{$advid}'");
updatecache('advs');
updatecache('setting');
if ($operation == 'edit') {
cpmsg('adv_succeed', $_G['gp_referer'], 'succeed');
} else {
cpmsg('adv_succeed', 'action=adv&operation=edit&advid=' . $advid . $extra, 'succeed');
}
}
} elseif ($operation == 'list') {
shownav('global', 'adv_admin');
showsubmenu('adv_admin', array(array('adv_admin_list', 'adv&operation=list', 1), array('adv_admin_listall', 'adv&operation=ad', 0)));
showtips('adv_list_tip');
$advs = getadvs();
showtableheader('', 'fixpadding');
$row = 4;
$rowwidth = 1 / $row * 100;
$customadv = $ads = array();
$tmp = $advs['adv_custom.php'];
unset($advs['adv_custom.php']);
$advs['adv_custom.php'] = $tmp;
$query = DB::query("SELECT type, count(type) as count FROM " . DB::table('advertisement') . " GROUP BY type");
while ($ad = DB::fetch($query)) {
$ads[$ad['type']] = $ad['count'];
}
$query = DB::query("SELECT parameters FROM " . DB::table('advertisement') . " WHERE type='custom'");
while ($ad = DB::fetch($query)) {
$parameters = unserialize($ad['parameters']);
$ads['custom_' . $parameters['extra']['customid']]++;
}
示例8: searchgroups
function searchgroups($submit)
{
global $_G;
require_once libfile('function/group');
empty($_GET['selectgroupid']) && ($_GET['selectgroupid'] = array());
$groupselect = get_groupselect(0, $_GET['selectgroupid'], 0);
$monthselect = $dayselect = $birthmonth = $birthday = '';
for ($m = 1; $m <= 12; $m++) {
$m = sprintf("%02d", $m);
$monthselect .= "<option value=\"{$m}\" " . ($birthmonth == $m ? 'selected' : '') . ">{$m}</option>\n";
}
for ($d = 1; $d <= 31; $d++) {
$d = sprintf("%02d", $d);
$dayselect .= "<option value=\"{$d}\" " . ($birthday == $d ? 'selected' : '') . ">{$d}</option>\n";
}
showtagheader('div', 'searchgroups', !$submit);
echo '<script src="static/js/calendar.js" type="text/javascript"></script>';
showformheader("group&operation=manage");
showtableheader();
showsetting('groups_manage_name', 'srchname', $srchname, 'text');
showsetting('groups_manage_id', 'srchfid', $srchfid, 'text');
showsetting('groups_editgroup_category', '', '', '<select name="selectgroupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $_GET['selectgroupid']) ? ' selected' : '') . '>' . cplang('unlimited') . '</option>' . $groupselect . '</select>');
showsetting('groups_manage_membercount', array('memberlower', 'memberhigher'), array($_GET['memberlower'], $_GET['memberhigher']), 'range');
showsetting('groups_manage_threadcount', array('threadshigher', 'threadslower'), array($threadshigher, $threadslower), 'range');
showsetting('groups_manage_replycount', array('postshigher', 'postslower'), array($postshigher, $postslower), 'range');
showsetting('groups_manage_createtime', array('datelineafter', 'datelinebefore'), array($datelineafter, $datelinebefore), 'daterange');
showsetting('groups_manage_updatetime', array('lastupdateafter', 'lastupdatebefore'), array($lastupdateafter, $lastupdatebefore), 'daterange');
showsetting('groups_manage_founder', 'srchfounder', $srchfounder, 'text');
showsetting('groups_manage_founder_uid', 'srchfounderid', $srchfounderid, 'text');
showtagfooter('tbody');
showsubmit('submit');
showtablefooter();
showformfooter();
showtagfooter('div');
}
示例9: showformheader
echo <<<EOT
<script type="text/JavaScript">
var rowtypedata = [
\t[
\t\t[1,''],
\t\t[1,'<input type="text" class="text" name="newdisplayorder[]" size="3" value="">'],
\t\t[1,'<input type="text" class="text" name="newtitle[]" value="">'],
\t\t[1,'<input type="text" class="text" name="newurl[]">'],
\t\t[1,'<input type="checkbox" class="checkbox" name="newtarget[]" value="1">'],
\t\t[1,'<input type="checkbox" class="checkbox" name="newavailable[]" value="1" checked="checked">']
\t]
];
</script>
EOT;
showformheader('template&operation=nav&type=' . $type);
showtableheader('template_nav', 'fixpadding');
showsubtitle(array('', 'displayorder', 'template_nav_title', 'template_nav_url', 'target', 'available'));
$query = DB::query("SELECT * FROM " . DB::table('common_nav') . " WHERE type='{$type}' ORDER BY displayorder");
while ($nav = DB::fetch($query)) {
$availablechecked = $nav['available'] ? 'checked="checked"' : '';
$targetchecked = $nav['target'] ? 'checked="checked"' : '';
showtablerow('', array('', '', '', '', ''), array("<input type=\"checkbox\" class=\"checkbox\" name=\"delete[]\" value=\"{$nav['id']}\">", "<input type=\"text\" class=\"text\" name=\"displayorder[{$nav['id']}]\" size=\"3\" value=\"{$nav['displayorder']}\">", "<input type=\"text\" class=\"text\" name=\"title[{$nav['id']}]\" value=\"{$nav['title']}\">", "<input type=\"text\" class=\"text\" name=\"url[{$nav['id']}]\" value=\"{$nav['url']}\">", "<input type=\"checkbox\" class=\"checkbox\" name=\"target[{$nav['id']}]\" value=\"1\" {$targetchecked}>", "<input type=\"checkbox\" class=\"checkbox\" name=\"available[{$nav['id']}]\" value=\"1\" {$availablechecked}>"));
}
echo '<tr><td colspan="5"><div><a href="###" onclick="addrow(this, 0)" class="addtr">' . $lang['template_nav_add'] . '</a></div></td>';
showsubmit('navsubmit', 'submit', 'del');
showtablefooter();
showformfooter();
} else {
if (is_array($_G['gp_newtitle'])) {
$_G['gp_newurl'] = is_array($_G['gp_newurl']) ? $_G['gp_newurl'] : array();
foreach ($_G['gp_newtitle'] as $id => $title) {
示例10: foreach
echo '<ul class="tpllist2">';
foreach ($runwizardhistory['step3']['cates'] as $id => $catename) {
echo '<li><h5>' . $catename . '</h5><ul class="tpllist3">';
foreach ($runwizardhistory['step3']['forums'][$id] as $forumname) {
echo '<li>' . $forumname . '</li>';
}
echo '</ul></li>';
}
echo '</ul>';
} else {
echo $lang['none'];
}
echo '</li></ul></td></tr>';
showtablefooter();
showformheader('runwizard&step=4&confirm=yes');
showtableheader('', 'notop');
showsubmit('step4submit', 'submit', '<input type="button" class="btn" " value="' . $lang['laststep'] . '" onclick="history.back();">');
showtablefooter();
showformfooter();
} else {
$sizesettings = array('attachsave' => array('1', '3', '4'), 'delayviewcount' => array('0', '0', '3'), 'fullmytopics' => array('1', '0', '0'), 'maxonlines' => array('500', '5000', '50000'), 'pvfrequence' => array('30', '60', '100'), 'qihoo_status' => array('0', '0', '1'), 'searchctrl' => array('10', '30', '60'), 'hottopic' => array('10', '20', '50'), 'losslessdel' => array('365', '200', '100'), 'maxmodworksmonths' => array('5', '3', '1'), 'maxsearchresults' => array('200', '500', '1000'), 'statscachelife' => array('90', '180', '360'), 'moddisplay' => array('flat', 'flat', 'selectbox'), 'topicperpage' => array('30', '20', '15'), 'postperpage' => array('20', '15', '10'), 'maxpolloptions' => array('10', '10', '15'), 'maxpostsize' => array('10000', '10000', '20000'), 'myrecorddays' => array('100', '60', '30'), 'maxfavorites' => array('500', '200', '100'));
$safesettings = array('attachrefcheck' => array('', '1', '1'), 'bannedmessages' => array('', '1', '1'), 'doublee' => array('1', '0', '0'), 'dupkarmarate' => array('1', '0', '0'), 'hideprivate' => array('0', '1', '1'), 'memliststatus' => array('1', '1', '0'), 'seccodestatus' => array('0', '1', '1'), 'bbrules' => array('0', '1', '1'), 'edittimelimit' => array('0', '20', '10'), 'floodctrl' => array('0', '10', '30'), 'karmaratelimit' => array('0', '1', '4'), 'newbiespan' => array('', '1', '4'), 'showemail' => array('0', '1', '1'), 'maxchargespan' => array('0', '1', '2'), 'regctrl' => array('0', '12', '48'), 'regfloodctrl' => array('0', '100', '50'), 'regstatus' => array('1', '1', '1'), 'regverify' => array('0', '1', '2'));
$funcsettings = array('archiverstatus' => array('0', '1', '1'), 'bdaystatus' => array('0', '0', '1'), 'fastpost' => array('0', '1', '1'), 'editedby' => array('0', '1', '1'), 'forumjump' => array('0', '1', '1'), 'gzipcompress' => array('', '', '1'), 'newsletter' => array('', '', '1'), 'modworkstatus' => array('0', '0', '1'), 'reportpost' => array('0', '1', '1'), 'rewritestatus' => array('0', '0', '0'), 'rssstatus' => array('0', '1', '1'), 'wapstatus' => array('0', '1', '1'), 'maxbdays' => array('0', '100', '500'), 'statstatus' => array('0', '0', '1'), 'stylejump' => array('0', '0', '1'), 'subforumsindex' => array('0', '0', '1'), 'transsidstatus' => array('0', '0', '1'), 'visitedforums' => array('0', '10', '20'), 'vtonlinestatus' => array('0', '1', '1'), 'welcomemsg' => array('0', '0', '1'), 'jsstatus' => array('0', '0', '1'), 'watermarkstatus' => array('0', '0', '1'), 'whosonlinestatus' => array('0', '1', '1'), 'debug' => array('0', '1', '1'), 'regadvance' => array('0', '0', '1'), 'jsmenustatus' => array('0', '1', '15'), 'showsettings' => array('0', '7', '7'), 'editoroptions' => array('0', '1', '1'));
$safeforums = array('modnewposts' => array('0', '0', '1'), 'recyclebin' => array('0', '1', '1'), 'jammer' => array('0', '0', '1'));
$funcforums = array('allowsmilies' => array('0', '1', '1'), 'allowbbcode' => array('0', '1', '1'), 'allowimgcode' => array('0', '1', '1'), 'allowanonymous' => array('0', '0', '1'), 'allowpostspecial' => array('', '1', '127'), 'disablewatermark' => array('1', '0', '0'), 'threadcaches' => array('0', '0', '1'), 'allowshare' => array('0', '1', '1'));
$sizeforums = array('threadcaches' => array('0', '0', '1'));
$sqladd = $comma = '';
foreach ($sizesettings as $fieldname => $val) {
$db->query("REPLACE INTO {$tablepre}settings (variable, value)\r\n\t\t\t\tVALUES ('{$fieldname}', '{$val[$runwizardhistory[step1][size]]}')");
}
foreach ($sizeforums as $fieldname => $val) {
示例11: basename
} else {
$focus_filename = basename($focus_image);
}
$item = array('url' => $focus_url, 'tid' => $item['tid'], 'type' => $item['type'], 'available' => '1', 'subject' => cutstr($focus_subject, 80), 'summary' => messagecutstr($focus_summary, 150), 'image' => ($focus_aid = intval($focus_aid)) ? "image.php?aid={$focus_aid}&size=58x58&key=" . rawurlencode(authcode($focus_aid . "\t58\t58", 'ENCODE', $_DCACHE['settings']['authkey'])) : $focus_image, 'aid' => $focus_aid, 'filename' => $focus_filename);
$focus['data'][$id] = $item;
$db->query("REPLACE INTO {$tablepre}settings (variable, value) VALUES ('focus', '" . addslashes(serialize($focus)) . "')");
updatecache('focus');
}
cpmsg('focus_edit_succeed', $BASESCRIPT . '?action=misc&operation=focus', 'succeed');
}
} elseif ($do == 'config') {
if (!submitcheck('confsubmit')) {
shownav('adv', 'misc_focus');
showsubmenu('misc_focus', array(array('config', 'misc&operation=focus&do=config', 1), array('admin', 'misc&operation=focus', 0), array(array('menu' => 'add', 'submenu' => array(array('misc_focus_handadd', 'misc&operation=focus&do=handadd'), array('misc_focus_threadadd', 'misc&operation=focus&do=threadadd'), array('misc_focus_autoadd', 'misc&operation=focus&do=recommend'))), '', 0)));
showformheader('misc&operation=focus&do=config');
showtableheader('config', 'fixpadding');
showsetting('misc_focus_area_title', 'focus_title', empty($focus['title']) ? lang('misc_focus') : $focus['title'], 'text');
showsubmit('confsubmit', 'submit');
showtablefooter();
showformfooter();
} else {
$focus['title'] = trim($focus_title);
$focus['title'] = empty($focus['title']) ? lang('misc_focus') : $focus['title'];
$db->query("REPLACE INTO {$tablepre}settings (variable, value) VALUES ('focus', '" . addslashes(serialize($focus)) . "')");
updatecache('focus');
cpmsg('focus_conf_succeed', $BASESCRIPT . '?action=misc&operation=focus&do=config', 'succeed');
}
} elseif ($do == 'fetchthread' && $id) {
$thread = $db->fetch_first("SELECT pid, subject, message, attachment FROM {$tablepre}posts WHERE tid='{$id}' AND first='1'");
ajaxshowheader();
if (!$thread) {
示例12: exit
<?php
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
$shopsetting = C::t(GM('shop_shopsetting'))->range();
$shoptemplates = api_indata('server_shoptemplate');
foreach ($shoptemplates as $k => $v) {
$shoptempradio[] = array($v, lang('plugin/yiqixueba', 'shoptemp_' . $v));
}
if (!submitcheck('submit')) {
showtips(lang('plugin/yiqixueba', 'edit_basesetting_tips'));
showformheader($this_page . '&subop=edit', 'enctype');
showtableheader(lang('plugin/yiqixueba', 'basesetting_option'));
showsetting(lang('plugin/yiqixueba', 'shoptemplate'), array('shopsetting[shoptemplate]', $shoptempradio), $shopsetting['shoptemplate']['svalue'], 'select', '', 0, lang('plugin/yiqixueba', 'basesettingstatus_comment'), '', '', true);
//radio
showsubmit('submit');
showtablefooter();
showformfooter();
} else {
foreach ($_POST['shopsetting'] as $k => $v) {
$data = array('skey' => $k, 'svalue' => $v);
if (!C::t(GM('shop_shopsetting'))->skey_exists($k)) {
C::t(GM('shop_shopsetting'))->insert($data);
} else {
C::t(GM('shop_shopsetting'))->update($k, $data);
}
}
echo '<style>.floattopempty { height: 30px !important; height: auto; } </style>';
cpmsg(lang('plugin/yiqixueba', 'edit_basesetting_succeed'), 'action=' . $this_page . '&subop=basesettinglist', 'succeed');
}
示例13: siteftp_form
function siteftp_form($action)
{
showformheader($action);
showtableheader('cloudaddons_ftp_setting');
showsetting('setting_attach_remote_enabled_ssl', 'siteftp[ssl]', '', 'radio');
showsetting('setting_attach_remote_ftp_host', 'siteftp[host]', '', 'text');
showsetting('setting_attach_remote_ftp_port', 'siteftp[port]', '21', 'text');
showsetting('setting_attach_remote_ftp_user', 'siteftp[username]', '', 'text');
showsetting('setting_attach_remote_ftp_pass', 'siteftp[password]', '', 'text');
showsetting('setting_attach_remote_ftp_pasv', 'siteftp[pasv]', 0, 'radio');
showsetting('setting_attach_ftp_dir', 'siteftp[attachdir]', '', 'text');
showsubmit('settingsubmit');
showtablefooter();
showformfooter();
}
示例14: showformheader
\t\t\t\t\t\t\t<select name="perpage">
\t\t\t\t\t\t\t<option value="10"{$perpages['10']}>{$searchlang['perpage_10']}</option>
\t\t\t\t\t\t\t<option value="20"{$perpages['20']}>{$searchlang['perpage_20']}</option>
\t\t\t\t\t\t\t<option value="50"{$perpages['50']}>{$searchlang['perpage_50']}</option>
\t\t\t\t\t\t\t<option value="100"{$perpages['100']}>{$searchlang['perpage_100']}</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t<input type="hidden" name="action" value="article">
\t\t\t\t\t\t\t<input type="submit" name="searchsubmit" value="{$searchlang['search']}" class="btn">
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div>
\t\t</form>
SEARCH;
showformheader('article&operation=list');
showtableheader('article_list');
showsubtitle(array('', 'article_title', 'article_category', 'article_username', 'article_dateline', 'operation'));
$multipage = '';
$count = C::t('portal_article_title')->fetch_all_by_sql($wheresql, '', 0, 0, 1);
if ($count) {
$query = C::t('portal_article_title')->fetch_all_by_sql($wheresql, $ordersql, $start, $perpage);
foreach ($query as $value) {
$tags = article_parse_tags($value['tag']);
$taghtml = '';
foreach ($tags as $k => $v) {
if ($v) {
$taghtml .= ' [<a href="' . ADMINSCRIPT . '?action=article&operation=list&tag[' . $k . ']=1" style="color: #666">' . $article_tags[$k] . '</a>] ';
}
}
showtablerow('', array('class="td25"', 'width="480"', 'class="td28"'), array("<input type=\"checkbox\" class=\"checkbox\" name=\"ids[]\" value=\"{$value['aid']}\">", "<a href=\"portal.php?mod=view&aid={$value['aid']}\" target=\"_blank\">{$value['title']}</a>" . ($taghtml ? $taghtml : ''), '<a href="' . ADMINSCRIPT . '?action=article&operation=list&catid=' . $value['catid'] . '">' . $category[$value['catid']]['catname'] . '</a>', "<a href=\"" . ADMINSCRIPT . "?action=article&uid={$value['uid']}\">{$value['username']}</a>", dgmdate($value[dateline]), "<a href=\"portal.php?mod=portalcp&ac=article&aid={$value['aid']}\" target=\"_blank\">" . cplang('edit') . "</a>"));
}
示例15: showformheader
<ul style="margin-right: 10px;" class="tab1"></ul>
<ul class="stepstat" id="nav_steps"></ul>
<ul class="tab1"></ul>
</div>
<div id="loading">
<div id="loadinginner" style="display: block; padding: 100px 0; text-align: center; color: #999;">
<img src="' . $_G['style']['imgdir'] . '/loading.gif" alt="loading..." style="vertical-align: middle;" /> ' . $lang['cloud_page_loading'] . '
</div>
</div>
<div style="display:none;" id="title"></div>';
showformheader('', 'onsubmit="return submitForm();"');
if ($cloudstatus == 'upgrade' || $cloudstatus == 'cloud' && $forceOpen) {
echo '<div style="margin-top:10px; color: red; padding-left: 10px;" id="manyou_update_tips"></div>';
}
showtableheader('', '', 'id="mainArea" style="display:none;"');
echo '
<tr><td id="" style="border:none;"><div id="msg" class="tipsblock"></div></td></tr>
<tr><td style="border-top:none;"><br />
<label><input onclick="if(this.checked) {$(\'submit_submit\').disabled=false; $(\'submit_submit\').style.color=\'#000\';} else {$(\'submit_submit\').disabled=true; $(\'submit_submit\').style.color=\'#aaa\';}" id="agreeProtocal" class="checkbox" type="checkbox" checked="checked" value="1" />' . cplang('cloud_agree_protocal') . '</label><a id="protocal_url" href="javascript:;" target="_blank">' . cplang('read_protocal') . '</a>
</td>
</tr>';
showsubmit('submit', 'cloud_will_open');
showtablefooter();
showformfooter();
echo '
<div id="siteInfo" style="display:none;;">
<h3 class="flb"><em>' . cplang('message_title') . '</em><span><a href="javascript:;" class="flbc" onclick="hideWindow(\'open_cloud\');" title="' . cplang('close') . '">' . cplang('close') . '</a></span></h3>';
showformheader('cloud&operation=open&step=2' . ($cloudstatus == 'cloud' && $forceOpen ? '&force_open=1' : ''), '');
echo '
<div class="c">