本文整理汇总了PHP中showsubmenusteps函数的典型用法代码示例。如果您正苦于以下问题:PHP showsubmenusteps函数的具体用法?PHP showsubmenusteps怎么用?PHP showsubmenusteps使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showsubmenusteps函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exit
<?php
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
$process_url = str_replace('&step=' . $_G['gp_step'], '', $_SERVER['QUERY_STRING']);
showsubmenusteps($installlang['auto_1'], array(array($installlang['auto_4'], empty($_G['gp_step'])), array($installlang['auto_5'], $_G['gp_step'] == 1), array($installlang['auto_7'], $_G['gp_step'] == 2), array($installlang['auto_8'], $_G['gp_step'] == 3)));
$sql = <<<EOF
CREATE TABLE IF NOT EXISTS `pre_dsu_marcothief` (
`uid` int(8) unsigned NOT NULL,
`thief` int(8) unsigned NOT NULL DEFAULT '0',
`steal` int(8) unsigned NOT NULL DEFAULT '0',
`total` int(8) unsigned NOT NULL DEFAULT '0',
`lose` int(8) unsigned NOT NULL DEFAULT '0',
`sucess` int(8) unsigned NOT NULL DEFAULT '0',
`fail` int(8) unsigned NOT NULL DEFAULT '0',
`action` int(8) unsigned NOT NULL DEFAULT '0',
`actions` int(8) unsigned NOT NULL DEFAULT '0',
`raids` int(8) NOT NULL DEFAULT '0',
`jail` int(10) NOT NULL,
`run` int(10) NOT NULL,
`goodluck` int(10) NOT NULL,
`protect` int(10) NOT NULL,
`weapon` int(8) unsigned NOT NULL DEFAULT '0',
`raids_tool` int(8) unsigned NOT NULL DEFAULT '0',
`run_tool` int(8) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`uid`)
) ENGINE=MyISAM;
CREATE TABLE IF NOT EXISTS `pre_dsu_marcothief_bag` (
`id` int(8) unsigned NOT NULL AUTO_INCREMENT,
示例2: dunserialize
$search_condition = dunserialize($_POST['conditions']);
}
$membernum = countmembers($search_condition, $urladd);
notifymembers('confermedal', 'medalletter');
}
} elseif ($operation == 'confermagic') {
$magics = '';
foreach (C::t('common_magic')->fetch_all_data(1) as $magic) {
$magics .= showtablerow('', array('class="td25"', 'class="td23"', 'class="td25"', ''), array("<input class=\"checkbox\" type=\"checkbox\" name=\"magic[]\" value=\"{$magic['magicid']}\" />", "<img src=\"static/image/magic/{$magic['identifier']}.gif\" />", $magic['name'], '<input class="txt" type="text" name="magicnum[' . $magic['magicid'] . ']" value="1" size="3">'), TRUE);
}
if (!$magics) {
cpmsg('members_edit_magics_nonexistence', 'action=magics', 'error');
}
if (!submitcheck('confermagicsubmit')) {
shownav('extended', 'nav_magics', 'nav_members_confermagic');
showsubmenusteps('nav_members_confermagic', array(array('nav_members_select', !$_GET['submit']), array('nav_members_confermagic', $_GET['submit'])), array(array('admin', 'magics&operation=admin', 0), array('nav_magics_confer', 'members&operation=confermagic', 1)));
showsearchform('confermagic');
if (submitcheck('submit', 1)) {
$membernum = countmembers($search_condition, $urladd);
showtagheader('div', 'confermedal', TRUE);
showformheader('members&operation=confermagic' . $urladd);
echo '<table class="tb tb1">';
if (!$membernum) {
showtablerow('', 'class="lineheight"', $lang['members_search_nonexistence']);
showtablefooter();
} else {
showtablerow('class="first"', array('class="th11"'), array(cplang('members_confermagic_members'), cplang('members_search_result', array('membernum' => $membernum)) . "<a href=\"###\" onclick=\"\$('searchmembers').style.display='';\$('confermedal').style.display='none';\$('step1').className='current';\$('step2').className='';\" class=\"act\">{$lang['research']}</a>"));
echo '<tr><td class="th12">' . cplang('members_confermagic') . '</td><td>';
showtableheader('', 'noborder');
showsubtitle(array('nav_magics_confer', 'nav_magics_image', 'nav_magics_name', 'nav_magics_num'));
echo $magics;
示例3: exit
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: attach.inc.php 20422 2009-09-27 03:19:30Z monkey $
*/
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
cpheader();
if (!submitcheck('deletesubmit')) {
require_once DISCUZ_ROOT . './include/forum.func.php';
$anchor = in_array($anchor, array('search', 'admin')) ? $anchor : 'search';
shownav('topic', 'nav_attaches');
showsubmenusteps('nav_attaches', array(array('search', !$searchsubmit), array('admin', $searchsubmit)));
showtips('attach_tips', 'attach_tips', $searchsubmit);
showtagheader('div', 'search', !$searchsubmit);
showformheader('attach');
showtableheader();
showsetting('attach_nomatched', 'nomatched', 0, 'radio');
showsetting('attach_forum', '', '', '<select name="inforum"><option value="all"> >' . lang('all') . '</option><option value=""> </option>' . forumselect(FALSE, 0, 0, TRUE) . '</select>');
showsetting('attach_sizerange', array('sizeless', 'sizemore'), array('', ''), 'range');
showsetting('attach_dlcountrange', array('dlcountless', 'dlcountmore'), array('', ''), 'range');
showsetting('attach_daysold', 'daysold', '', 'text');
showsetting('filename', 'filename', '', 'text');
showsetting('attach_keyword', 'keywords', '', 'text');
showsetting('attach_author', 'author', '', 'text');
showsubmit('searchsubmit', 'search');
showtablefooter();
showformfooter();
示例4: exit
* 应用 >> 安米手机客户端 >> 更新缓存
*
* @author 谢建平 <jianping_xie@aliyun.com>
* @copyright 2012-2014 Appbyme
* @license http://opensource.org/licenses/LGPL-3.0
*/
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
set_time_limit(0);
require_once dirname(__FILE__) . '/appbyme.class.php';
Appbyme::init();
$baseUrl = rawurldecode(cpurl());
$step = max(1, intval($_GET['step']));
$cleanImage = true;
showsubmenusteps('nav_updatecache', array(array('nav_updatecache_confirm', $step == 1), array('nav_updatecache_verify', $step == 2), array('nav_updatecache_completed', $step == 3)));
showtips(Appbyme::lang('mobcent_tips_updatecache'));
switch ($step) {
case 1:
$thumbTaskList = Appbyme::getDzPluginCache('thumb_task_list');
$thumbTaskList === false && ($thumbTaskList = array());
$thumbTaskCount = (int) count($thumbTaskList);
cpmsg(sprintf('
<input type="checkbox" name="type[]" value="cleandata" id="clean_datacache" class="checkbox" checked />
<label for="clean_datacache">%s</label>
<input type="checkbox" name="type[]" value="updatedata" id="update_datacache" class="checkbox" checked />
<label for="update_datacache">%s</label>
<input type="checkbox" name="type[]" value="cleanthumb" id="clean_thumbcache" class="checkbox" />
<label for="clean_thumbcache">%s</label><br />
%s
<input type="text" name="thumb_task_length" value="0" class="text" />
示例5: max
$cids = $_G['gp_cids'];
$page = max(1, $_G['gp_page']);
cpheader();
$aid = $_G['gp_aid'];
$subject = $_G['gp_subject'];
if (!submitcheck('postcommentsubmit')) {
if (empty($_G['gp_search'])) {
$newlist = 1;
$detail = 1;
$starttime = dgmdate(TIMESTAMP - 86400 * 7, 'Y-n-j');
}
$starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $starttime) ? dgmdate(TIMESTAMP - 86400 * 7, 'Y-n-j') : $starttime;
$endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $endtime) ? dgmdate(TIMESTAMP, 'Y-n-j') : $endtime;
shownav('topic', 'nav_postcomment');
showsubmenu('nav_postcomment', array(array('newlist', 'postcomment', !empty($newlist)), array('search', 'postcomment&search=true', empty($newlist))));
empty($newlist) && showsubmenusteps('', array(array('postcomment_search', !$searchsubmit), array('nav_postcomment', $searchsubmit)));
if (empty($newlist)) {
$search_tips = 1;
showtips('postcomment_tips');
}
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
function page(number) {
\t\$('postcommentforum').page.value=number;
\t\$('postcommentforum').searchsubmit.click();
}
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
showformheader("postcomment" . (!empty($_G['gp_search']) ? '&search=true' : ''), '', 'postcommentforum');
示例6: countmembers
} else {
countmembers();
notifymembers('reward', 'creditsnotify');
}
} elseif ($operation == 'confermedal') {
$medals = '';
$query = $db->query("SELECT * FROM {$tablepre}medals WHERE available='1' ORDER BY displayorder");
while ($medal = $db->fetch_array($query)) {
$medals .= showtablerow('', array('class="td25"', 'class="td23"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"medals[{$medal['medalid']}]\" value=\"1\" />", "<img src=\"images/common/{$medal['image']}\" />", $medal['name']), TRUE);
}
if (!$medals) {
cpmsg('members_edit_medals_nonexistence', $BASESCRIPT . '?action=medals', 'error');
}
if (!submitcheck('confermedalsubmit', 1)) {
shownav('user', 'nav_members_confermedal');
showsubmenusteps('nav_members_confermedal', array(array('nav_members_select', !$submit), array('nav_members_confermedal', $submit)));
searchmembers('confermedal');
if (submitcheck('submit', 1)) {
countmembers();
showtagheader('div', 'confermedal', TRUE);
showformheader('members&operation=confermedal' . $urladd);
echo '<table class="tb tb1">';
if (!$membernum) {
showtablerow('', 'class="lineheight"', $lang['members_search_nonexistence']);
showtablefooter();
} else {
eval("\$lang[members_search_result] = \"" . $lang['members_search_result'] . "\";");
showtablerow('class="first"', array('class="th11"'), array(lang('members_confermedal_members'), "{$lang['members_search_result']} <a href=\"###\" onclick=\"\$('searchmembers').style.display='';\$('confermedal').style.display='none';\$('step1').className='current';\$('step2').className='';\" class=\"act\">{$lang['research']}</a>"));
echo '<tr><td class="th12">' . lang('members_confermedal') . '</td><td>';
showtableheader('', 'noborder');
showsubtitle(array('medals_grant', 'medals_image', 'name'));
示例7: dgmdate
$muticondition .= $detail ? '&detail=' . $detail : '';
if (!submitcheck('blogsubmit')) {
if (empty($_GET['search'])) {
$newlist = 1;
$detail = 1;
}
if ($fromumanage) {
$starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $starttime) ? '' : $starttime;
$endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $endtime) ? '' : $endtime;
} else {
$starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $starttime) ? dgmdate(TIMESTAMP - 86400 * 7, 'Y-n-j') : $starttime;
$endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $endtime) ? dgmdate(TIMESTAMP, 'Y-n-j') : $endtime;
}
shownav('topic', 'nav_blog');
showsubmenu('nav_blog', array(array('newlist', 'blog', !empty($newlist)), array('search', 'blog&search=true', empty($newlist))));
empty($newlist) && showsubmenusteps('', array(array('blog_search', !$searchsubmit), array('nav_blog', $searchsubmit)));
if ($muticondition) {
showtips('blog_tips');
}
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
function page(number) {
\t\$('blogforum').page.value=number;
\t\$('blogforum').searchsubmit.click();
}
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
showformheader("blog" . (!empty($_GET['search']) ? '&search=true' : ''), '', 'blogforum');
showhiddenfields(array('page' => $page, 'pp' => $_GET['pp'] ? $_GET['pp'] : $_GET['perpage']));
示例8: cpheader
$users = $_G['gp_users'];
$picid = $_G['gp_picid'];
$postip = $_G['gp_postip'];
$hot1 = $_G['gp_hot1'];
$hot2 = $_G['gp_hot2'];
$starttime = $_G['gp_starttime'];
$endtime = $_G['gp_endtime'];
$searchsubmit = $_G['gp_searchsubmit'];
$picids = $_G['gp_picids'];
$ppp = $_G['ppp'];
cpheader();
if (!submitcheck('picsubmit')) {
$starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $starttime) ? dgmdate(TIMESTAMP - 86400 * 7, 'Y-n-j') : $starttime;
$endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $endtime) ? dgmdate(TIMESTAMP, 'Y-n-j') : $endtime;
shownav('topic', 'nav_pic');
showsubmenusteps('nav_pic', array(array('pic_search', !$searchsubmit), array('nav_pic', $searchsubmit)));
showtips('pic_tips');
echo <<<EOT
<script type="text/javascript" src="static/js/forum_calendar.js"></script>
<script type="text/JavaScript">
function page(number) {
\t\$('picforum').page.value=number;
\t\$('picforum').searchsubmit.click();
}
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit);
showformheader("pic", '', 'picforum');
showhiddenfields(array('page' => $page));
showtableheader();
showsetting('pic_search_detail', 'detail', $detail, 'radio');
示例9: elseif
}
} elseif ($subop == 'nodeview') {
dsetcookie('debugmokuai', $biaoshi);
//人性化
$nodetype = getgpc('nodetype');
$node = getgpc('node');
$nodexml_file = MOKUAI_DIR . "/server/1.0/Data/node_" . $biaoshi . "_" . $version . ".xml";
$nodes = xml2array(file_get_contents($nodexml_file));
$view_file = MOKUAI_DIR . '/' . $biaoshi . '/' . $version . '/Controler/admincp_' . $node . '.php';
require_once $view_file;
} elseif ($subop == 'nodeedit') {
$nodes = $nodes_temp = xml2array(file_get_contents(MOKUAI_DIR . "/server/1.0/Data/node_" . $biaoshi . "_" . $version . ".xml"));
$nodetype = trim($_GET['nodetype']);
$node = trim($_GET['node']);
$step = max(1, intval($_GET['step']));
showsubmenusteps(lang('plugin/yiqixueba', 'mokuaisheji'), array(array(lang('plugin/yiqixueba', 'mokuaisheji'), $step == 1), array(lang('plugin/yiqixueba', 'mokuaisheji'), $step == 2), array(lang('plugin/yiqixueba', 'mokuaisheji'), $step == 3)));
// dump($biaoshi);
// dump($version);
// dump($nodetype);
$nodefile = $nodetype == 'global' ? $node : $nodetype . '_' . $node;
// dump($node);
//dump($nodes);
if ($step == 1) {
if (!submitcheck('submit')) {
showtips(lang('plugin/yiqixueba', 'mokuai_node_tips'));
showformheader($this_page . '&subop=nodeedit&biaoshi=' . $biaoshi . '&version=' . $version . '&nodetype=' . $nodetype . '&node=' . $node);
showtableheader(lang('plugin/yiqixueba', 'mokuai_info'));
showsubtitle(array('', 'display_order', lang('plugin/yiqixueba', 'subop_name'), lang('plugin/yiqixueba', 'subop_title'), lang('plugin/yiqixueba', 'subop_type')));
echo '<tr><td colspan="1"></td><td colspan="1"><div><a href="###" onclick="addrow(this, 0, 0)" class="addtr">' . lang('plugin/yiqixueba', 'add_node') . '</a></div></td></tr>';
showsubmit('submit');
showtablefooter();
示例10: dgmdate
$viewnum1 = $_G['gp_viewnum1'];
$viewnum2 = $_G['gp_viewnum2'];
$replynum1 = $_G['gp_replynum1'];
$replynum2 = $_G['gp_replynum2'];
$hot1 = $_G['gp_hot1'];
$hot2 = $_G['gp_hot2'];
$starttime = $_G['gp_starttime'];
$endtime = $_G['gp_endtime'];
$searchsubmit = $_G['gp_searchsubmit'];
$blogids = $_G['gp_blogids'];
$ppp = $_G['ppp'];
if (!submitcheck('blogsubmit')) {
$starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $starttime) ? dgmdate(TIMESTAMP - 86400 * 7, 'Y-n-j') : $starttime;
$endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $endtime) ? dgmdate(TIMESTAMP, 'Y-n-j') : $endtime;
shownav('topic', 'nav_blog');
showsubmenusteps('nav_blog', array(array('blog_search', !$searchsubmit), array('nav_blog', $searchsubmit)));
showtips('blog_tips');
echo <<<EOT
<script type="text/javascript" src="static/js/forum_calendar.js"></script>
<script type="text/JavaScript">
function page(number) {
\t\$('blogforum').page.value=number;
\t\$('blogforum').searchsubmit.click();
}
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit);
showformheader("blog", '', 'blogforum');
showhiddenfields(array('page' => $page));
showtableheader();
showsetting('blog_search_detail', 'detail', $detail, 'radio');
示例11: strtolower
$opt = strtolower(substr($operation, 6));
if (!in_array($opt, array('install', 'uninstall', 'upgrade'))) {
cpmsg('BAD INPUT');
}
//load common lib
require_once DISCUZ_ROOT . './source/plugin/dsu_medalCenter/include/install/FSO.class.php';
require_once DISCUZ_ROOT . './source/plugin/dsu_medalCenter/include/function_common.php';
$stepMax = 3;
if (empty($_G['gp_step'])) {
require DISCUZ_ROOT . './source/plugin/dsu_medalCenter/include/install/stat.inc.php';
$step = 1;
} else {
$step = max(intval($_G['gp_step']), 1);
}
$stepArr = array(1 => array('插件文件处理', $step == 1), 2 => array('数据库升级', $step == 2), 3 => array('数据处理', $step == 3));
if (1 <= $step && $step <= $stepMax) {
showsubmenusteps('【DSU】勋章中心安装程序', $stepArr);
}
$nextstep = max(intval($_G['gp_nextstep']), $step);
if ($nextstep == $step) {
$nextstep = $nextstep + 1;
cpmsg('操作执行中,请稍后……', "action=plugins&operation={$operation}&dir=dsu_medalCenter&step={$step}&nextstep={$nextstep}", 'loading');
} else {
$nextstep = $step + 1;
}
if (1 <= $step && $step <= $stepMax) {
require DISCUZ_ROOT . './source/plugin/dsu_medalCenter/include/install/' . $opt . '.php';
cpmsg('操作完成!进入下一步操作。', "action=plugins&operation={$operation}&dir=dsu_medalCenter&step={$nextstep}", 'succeed');
} else {
$finish = TRUE;
}
示例12: array_merge
$search_condition = array_merge($_GET, $_POST);
foreach ($search_condition as $k => $v) {
if (in_array($k, array('action', 'operation', 'formhash', 'submit', 'page')) || $v === '') {
unset($search_condition[$k]);
}
}
$medals = '';
$query = DB::query("SELECT * FROM " . DB::table('forum_medal') . " WHERE available='1' ORDER BY displayorder");
while ($medal = DB::fetch($query)) {
$medals .= showtablerow('', array('class="td25"', 'class="td23"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"medals[{$medal['medalid']}]\" value=\"1\" />", "<img src=\"static/image/common/{$medal['image']}\" />", $medal['name']), TRUE);
}
if (!$medals) {
cpmsg('members_edit_medals_nonexistence', 'plugins&operation=config&identifier=dsu_medalCenter&pmod=admin_manage', 'error');
}
if (!submitcheck('confermedalsubmit', 1)) {
showsubmenusteps('nav_members_confermedal', array(array('nav_members_select', !$_G['gp_submit']), array('nav_members_confermedal', $_G['gp_submit'])));
showsearchform('confermedal');
if (submitcheck('submit', 1)) {
$membernum = countmembers($search_condition, $urladd);
showtagheader('div', 'confermedal', TRUE);
showformheader('plugins&operation=config&identifier=dsu_medalCenter&pmod=admin_confer' . $urladd);
echo '<table class="tb tb1">';
if (!$membernum) {
showtablerow('', 'class="lineheight"', $lang['members_search_nonexistence']);
showtablefooter();
} else {
showtablerow('class="first"', array('class="th11"'), array(cplang('members_confermedal_members'), cplang('members_search_result', array('membernum' => $membernum)) . "<a href=\"###\" onclick=\"\$('searchmembers').style.display='';\$('confermedal').style.display='none';\$('step1').className='current';\$('step2').className='';\" class=\"act\">{$lang['research']}</a>"));
echo '<tr><td class="th12">' . cplang('members_confermedal') . '</td><td>';
showtableheader('', 'noborder');
showsubtitle(array('medals_grant', 'medals_image', 'name'));
echo $medals;
示例13: serialize
$upgrade_step['step'] = $step;
$upgrade_step['operation'] = $operation;
$upgrade_step['version'] = $version;
$upgrade_step['release'] = $release;
$upgrade_step['charset'] = $charset;
$upgrade_step['locale'] = $locale;
C::t('common_cache')->insert(array('cachekey' => 'upgrade_step', 'cachevalue' => serialize($upgrade_step), 'dateline' => $_G['timestamp']), false, true);
$upgrade_run = C::t('common_cache')->fetch('upgrade_run');
if (!$upgrade_run) {
C::t('common_cache')->insert(array('cachekey' => 'upgrade_run', 'cachevalue' => serialize($_G['setting']['upgrade']), 'dateline' => $_G['timestamp']), false, true);
$upgrade_run = $_G['setting']['upgrade'];
} else {
$upgrade_run = dunserialize($upgrade_run['cachevalue']);
}
shownav('tools', 'nav_founder_upgrade');
showsubmenusteps('nav_founder_upgrade', array(array('founder_upgrade_updatelist', $step == 1), array('founder_upgrade_download', $step == 2), array('founder_upgrade_compare', $step == 3), array('founder_upgrade_upgrading', $step == 4), array('founder_upgrade_complete', $step == 5)));
showtableheader();
if ($step != 5) {
foreach ($upgrade_run as $type => $list) {
if ($type == $operation && $version == $list['latestversion'] && $release == $list['latestrelease']) {
$discuz_upgrade->locale = $locale;
$discuz_upgrade->charset = $charset;
$upgradeinfo = $list;
break;
}
}
if (!$upgradeinfo) {
cpmsg('upgrade_none', '', '', array('upgradeurl' => upgradeinformation(-1)));
}
$updatefilelist = $discuz_upgrade->fetch_updatefile_list($upgradeinfo);
$updatemd5filelist = $updatefilelist['md5'];
示例14: cpheader
cpheader();
$detail = $_G['gp_detail'];
$albumname = $_G['gp_albumname'];
$albumid = $_G['gp_albumid'];
$uid = $_G['gp_uid'];
$users = $_G['gp_users'];
$starttime = $_G['gp_starttime'];
$endtime = $_G['gp_endtime'];
$searchsubmit = $_G['gp_searchsubmit'];
$albumids = $_G['gp_albumids'];
$ppp = $_G['ppp'];
if (!submitcheck('albumsubmit')) {
$starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $starttime) ? dgmdate(TIMESTAMP - 86400 * 7, 'Y-n-j') : $starttime;
$endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $endtime) ? dgmdate(TIMESTAMP, 'Y-n-j') : $endtime;
shownav('topic', 'nav_album');
showsubmenusteps('nav_album', array(array('album_search', !$searchsubmit), array('nav_album', $searchsubmit)));
showtips('album_tips');
echo <<<EOT
<script type="text/javascript" src="static/js/forum_calendar.js"></script>
<script type="text/JavaScript">
function page(number) {
\t\$('albumforum').page.value=number;
\t\$('albumforum').searchsubmit.click();
}
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit);
showformheader("album", '', 'albumforum');
showhiddenfields(array('page' => $page));
showtableheader();
showsetting('album_search_detail', 'detail', $detail, 'radio');
示例15: while
$query = DB::query("SELECT f.name FROM " . DB::table('forum_moderator') . " m, " . DB::table('forum_forum') . " f WHERE m.uid='{$_G['uid']}' AND m.fid=f.fid");
while ($forum = DB::fetch($query)) {
$forumselect .= $comma . $forum['name'];
$comma = ', ';
}
$forumselect = $forumselect ? $forumselect : $lang['none'];
}
if ($fromumanage) {
$starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $_G['gp_starttime']) ? '' : $_G['gp_starttime'];
$endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $_G['gp_endtime']) ? '' : $_G['gp_endtime'];
} else {
$starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $_G['gp_starttime']) ? dgmdate(TIMESTAMP - 86400 * 7, 'Y-n-j') : $_G['gp_starttime'];
$endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $_G['gp_endtime']) ? dgmdate(TIMESTAMP, 'Y-n-j') : $_G['gp_endtime'];
}
shownav('topic', 'nav_prune' . ($operation ? '_' . $operation : ''));
showsubmenusteps('nav_prune' . ($operation ? '_' . $operation : ''), array(array('prune_search', !$searchsubmit), array('nav_prune', $searchsubmit)));
showtips('prune_tips');
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
function page(number) {
\t\$('pruneforum').page.value=number;
\t\$('pruneforum').searchsubmit.click();
}
</script>
EOT;
$posttableselect = getposttableselect();
showtagheader('div', 'searchposts', !$searchsubmit);
showformheader("prune" . ($operation ? '&operation=' . $operation : ''), '', 'pruneforum');
showhiddenfields(array('page' => $page, 'pp' => $_G['gp_pp'] ? $_G['gp_pp'] : $_G['gp_perpage']));
showtableheader();