本文整理汇总了PHP中showsubmenu函数的典型用法代码示例。如果您正苦于以下问题:PHP showsubmenu函数的具体用法?PHP showsubmenu怎么用?PHP showsubmenu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showsubmenu函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: menu
function menu()
{
global $_G;
$_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']);
echo <<<EOF
<style>
.floattop { display: none; }
.floattopempty { display: none; }
.mymenu { height:35px; }
.mymenu .floattop { display: inline; }
.mymenu .floattopempty { display: inline; }
</style>
EOF;
echo '<div class="mymenu">';
showsubmenu(lang('plugin/wechat', 'menu_root'), array(array(array('menu' => lang('plugin/wechat', 'menu_wsq'), 'submenu' => array(array(lang('plugin/wechat', 'menu_wsq_base'), 'plugins&operation=config&identifier=wechat&pmod=wsq_setting', $_GET['pmod'] == 'wsq_setting'), array(lang('plugin/wechat', 'menu_wsq_show'), 'plugins&operation=config&identifier=wechat&pmod=showactivity_setting', $_GET['pmod'] == 'showactivity_setting'), array(lang('plugin/wechat', 'menu_wsq_stat'), 'plugins&operation=config&identifier=wechat&pmod=wsq_stat', $_GET['pmod'] == 'wsq_stat')))), array(array('menu' => lang('plugin/wechat', 'menu_wechat'), 'submenu' => array(array(lang('plugin/wechat', 'menu_wechat_base'), 'plugins&operation=config&identifier=wechat&pmod=wechat_setting', $_GET['pmod'] == 'wechat_setting'), array(lang('plugin/wechat', 'menu_wechat_msg'), 'plugins&operation=config&identifier=wechat&pmod=response_setting', $_GET['pmod'] == 'response_setting'), array(lang('plugin/wechat', 'menu_wechat_menu'), 'plugins&operation=config&identifier=wechat&pmod=menu_setting', $_GET['pmod'] == 'menu_setting'), array(lang('plugin/wechat', 'menu_wechat_resource'), 'plugins&operation=config&identifier=wechat&pmod=resource_setting', $_GET['pmod'] == 'resource_setting'), array(lang('plugin/wechat', 'menu_wechat_masssend'), 'plugins&operation=config&identifier=wechat&pmod=masssend_setting', $_GET['pmod'] == 'masssend_setting')))), array(lang('plugin/wechat', 'menu_app'), 'plugins&operation=config&identifier=wechat&pmod=wsq_app', $_GET['pmod'] == 'wsq_app'), array(lang('plugin/wechat', 'menu_api'), 'plugins&operation=config&identifier=wechat&pmod=api_setting', $_GET['pmod'] == 'api_setting')));
echo '</div>';
if ($_G['wechat']['setting']['wsq_siteid']) {
$time = TIMESTAMP;
echo <<<EOF
<script>
function pubEventCallbackCommon(re) {
\tif(re.errCode) {
\t\treturn;
\t}
\tif(typeof re.data.event.peId != 'undefined') {
\t\t\$('pubEventNum').innerHTML = 'New!';
\t\t\$('pubEventNum').style.display = '';
\t}
}
</script>
<script src="http://api.wsq.qq.com/publicEvent?sId={$_G[wechat][setting][wsq_siteid]}&resType=jsonp&isAjax=1&_={$time}&isDiscuz=1&callback=pubEventCallbackCommon">
</script>
EOF;
}
}
示例2: menu
function menu()
{
echo <<<EOF
<style>
.floattop { display: none; }
.floattopempty { display: none; }
.mymenu { height:35px; }
.mymenu .floattop { display: inline; }
.mymenu .floattopempty { display: inline; }
</style>
EOF;
echo '<div class="mymenu">';
showsubmenu(lang('plugin/wechat', 'menu_root'), array(array(array('menu' => lang('plugin/wechat', 'menu_wsq'), 'submenu' => array(array(lang('plugin/wechat', 'menu_wsq_base'), 'plugins&operation=config&identifier=wechat&pmod=wsq_setting', $_GET['pmod'] == 'wsq_setting'), array(lang('plugin/wechat', 'menu_wsq_show'), 'plugins&operation=config&identifier=wechat&pmod=showactivity_setting', $_GET['pmod'] == 'showactivity_setting'), array(lang('plugin/wechat', 'menu_wsq_stat'), 'plugins&operation=config&identifier=wechat&pmod=wsq_stat', $_GET['pmod'] == 'wsq_stat')))), array(array('menu' => lang('plugin/wechat', 'menu_wechat'), 'submenu' => array(array(lang('plugin/wechat', 'menu_wechat_base'), 'plugins&operation=config&identifier=wechat&pmod=wechat_setting', $_GET['pmod'] == 'wechat_setting'), array(lang('plugin/wechat', 'menu_wechat_msg'), 'plugins&operation=config&identifier=wechat&pmod=response_setting', $_GET['pmod'] == 'response_setting'), array(lang('plugin/wechat', 'menu_wechat_menu'), 'plugins&operation=config&identifier=wechat&pmod=menu_setting', $_GET['pmod'] == 'menu_setting'), array(lang('plugin/wechat', 'menu_wechat_resource'), 'plugins&operation=config&identifier=wechat&pmod=resource_setting', $_GET['pmod'] == 'resource_setting'), array(lang('plugin/wechat', 'menu_wechat_masssend'), 'plugins&operation=config&identifier=wechat&pmod=masssend_setting', $_GET['pmod'] == 'masssend_setting')))), array(lang('plugin/wechat', 'menu_app'), 'plugins&operation=config&identifier=wechat&pmod=wsq_app', $_GET['pmod'] == 'wsq_app'), array(lang('plugin/wechat', 'menu_api'), 'plugins&operation=config&identifier=wechat&pmod=api_setting', $_GET['pmod'] == 'api_setting')));
echo '</div>';
}
示例3: cpheader
$hot2 = $_G['gp_hot2'];
$starttime = $_G['gp_starttime'];
$endtime = $_G['gp_endtime'];
$searchsubmit = $_G['gp_searchsubmit'];
$sids = $_G['gp_sids'];
cpheader();
if (!submitcheck('sharesubmit')) {
if (empty($_G['gp_search'])) {
$newlist = 1;
$detail = 1;
$starttime = dgmdate(TIMESTAMP - 86400 * 7, 'Y-m-d');
}
$starttime = !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $starttime) ? dgmdate(TIMESTAMP - 86400 * 7, 'Y-m-d') : $starttime;
$endtime = $_G['adminid'] == 3 || !preg_match("/^(0|\\d{4}\\-\\d{1,2}\\-\\d{1,2})\$/", $endtime) ? dgmdate(TIMESTAMP, 'Y-m-d') : $endtime;
shownav('topic', 'nav_share');
showsubmenu('nav_share', array(array('newlist', 'share', !empty($newlist)), array('search', 'share&search=true', empty($newlist))));
empty($newlist) && showsubmenusteps('', array(array('share_search', !$searchsubmit), array('nav_share', $searchsubmit)));
showtips('share_tips');
echo <<<EOT
<script type="text/javascript" src="static/js/calendar.js"></script>
<script type="text/JavaScript">
function page(number) {
\t\$('shareforum').page.value=number;
\t\$('shareforum').searchsubmit.click();
}
</script>
EOT;
showtagheader('div', 'searchposts', !$searchsubmit && empty($newlist));
showformheader("share" . (!empty($_G['gp_search']) ? '&search=true' : ''), '', 'shareforum');
showhiddenfields(array('page' => $page, 'pp' => $_G['gp_pp'] ? $_G['gp_pp'] : $_G['gp_perpage']));
showtableheader();
示例4: exit
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: moderate_share.php 27434 2012-01-31 08:57:34Z chenmengshu $
*/
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
if (!submitcheck('modsubmit') && !$_GET['fast']) {
shownav('topic', $lang['moderate_shares']);
showsubmenu('nav_moderate_posts', $submenu);
$select[$_GET['tpp']] = $_GET['tpp'] ? "selected='selected'" : '';
$tpp_options = "<option value='20' {$select['20']}>20</option><option value='50' {$select['50']}>50</option><option value='100' {$select['100']}>100</option>";
$tpp = !empty($_GET['tpp']) ? $_GET['tpp'] : '20';
$start_limit = ($page - 1) * $ppp;
$dateline = $_GET['dateline'] ? $_GET['dateline'] : '604800';
$dateline_options = '';
foreach (array('all', '604800', '2592000', '7776000') as $v) {
$selected = '';
if ($dateline == $v) {
$selected = "selected='selected'";
}
$dateline_options .= "<option value=\"{$v}\" {$selected}>" . cplang("dateline_{$v}");
}
$share_status = 1;
if ($_GET['filter'] == 'ignore') {
$share_status = 2;
}
示例5: empty
$cover = empty($allthread) ? 0 : null;
$_G['forum']['ismoderator'] = 1;
foreach (C::t('forum_thread')->fetch_all_by_fid_cover_lastpost($fid, $cover, $starttime, $endtime, $current, $pertask) as $thread) {
$processed = 1;
$pid = C::t('forum_post')->fetch_threadpost_by_tid_invisible($thread['tid'], 0);
$pid = $pid['pid'];
setthreadcover($pid);
}
if ($processed) {
cpmsg("{$lang['counter_thread_cover']}: " . cplang('counter_processing', array('current' => $current, 'next' => $next)), $nextlink, 'loading');
} else {
cpmsg('counter_thread_cover_succeed', 'action=counter', 'succeed');
}
} else {
shownav('tools', 'nav_updatecounters');
showsubmenu('nav_updatecounters');
showtips('counter_tips');
showformheader('counter');
showtableheader();
showsubtitle(array('', 'counter_amount'));
showhiddenfields(array('pertask' => ''));
showtablerow('', array('class="td21"'), array("{$lang['counter_forum']}:", '<input name="pertask1" type="text" class="txt" value="15" /><input type="submit" class="btn" name="forumsubmit" onclick="this.form.pertask.value=this.form.pertask1.value" value="' . $lang['submit'] . '" />'));
showtablerow('', array('class="td21"'), array("{$lang['counter_digest']}:", '<input name="pertask2" type="text" class="txt" value="1000" /><input type="submit" class="btn" name="digestsubmit" onclick="this.form.pertask.value=this.form.pertask2.value" value="' . $lang['submit'] . '" />'));
showtablerow('', array('class="td21"'), array("{$lang['counter_member']}:", '<input name="pertask3" type="text" class="txt" value="1000" /><input type="submit" class="btn" name="membersubmit" onclick="this.form.pertask.value=this.form.pertask3.value" value="' . $lang['submit'] . '" />'));
showtablerow('', array('class="td21"'), array("{$lang['counter_thread']}:", '<input name="pertask4" type="text" class="txt" value="500" /><input type="submit" class="btn" name="threadsubmit" onclick="this.form.pertask.value=this.form.pertask4.value" value="' . $lang['submit'] . '" />'));
showtablerow('', array('class="td21"'), array("{$lang['counter_special']}:", '<input name="pertask7" type="text" class="txt" value="1" disabled/><input type="submit" class="btn" name="specialarrange" onclick="this.form.pertask.value=this.form.pertask7.value" value="' . $lang['submit'] . '" />'));
showtablerow('', array('class="td21"'), array("{$lang['counter_groupnum']}:", '<input name="pertask8" type="text" class="txt" value="10" /><input type="submit" class="btn" name="groupnum" onclick="this.form.pertask.value=this.form.pertask8.value" value="' . $lang['submit'] . '" />'));
showtablerow('', array('class="td21"'), array("{$lang['counter_groupmember_num']}:", '<input name="pertask9" type="text" class="txt" value="100" /><input type="submit" class="btn" name="groupmembernum" onclick="this.form.pertask.value=this.form.pertask9.value" value="' . $lang['submit'] . '" />'));
showtablerow('', array('class="td21"'), array("{$lang['counter_groupmember_post']}:", '<input name="pertask10" type="text" class="txt" value="100" /><input type="submit" class="btn" name="groupmemberpost" onclick="this.form.pertask.value=this.form.pertask10.value" value="' . $lang['submit'] . '" />'));
showtablerow('', array('class="td21"'), array("{$lang['counter_blog_replynum']}:", '<input name="pertask11" type="text" class="txt" value="100" /><input type="submit" class="btn" name="blogreplynum" onclick="this.form.pertask.value=this.form.pertask11.value" value="' . $lang['submit'] . '" />'));
showtablerow('', array('class="td21"'), array("{$lang['counter_friendnum']}:", '<input name="pertask12" type="text" class="txt" value="100" /><input type="submit" class="btn" name="friendnum" onclick="this.form.pertask.value=this.form.pertask12.value" value="' . $lang['submit'] . '" />'));
示例6: cpmsg
cpmsg('modifypasswd_error', '', 'error', '', true, true, $checkresults);
}
require_once B_ROOT . './uc_client/client.php';
$ucresult = uc_user_edit($_G['username'], $_POST['password'], $_POST['newpassword1']);
if ($ucresult == -1) {
array_push($checkresults, array('password' => $lang['old_password_invalid']));
} elseif ($ucresult == -7) {
array_push($checkresults, array('message' => $lang['no_change']));
} elseif ($ucresult == -8) {
array_push($checkresults, array('message' => $lang['protection_of_users']));
}
if (!empty($checkresults)) {
cpmsg('modifypasswd_error', '', 'error', '', true, true, $checkresults);
}
sclearcookie();
cpmsg('getpasswd_succeed', 'index.php', 'succeed');
}
shownav('shop', 'nav_modifypasswd');
showsubmenu('nav_modifypasswd');
showtips('modifypasswd_list_tips');
showformheader('modifypasswd');
showtableheader('');
$required = '<span style="color:red">*</span>';
showsetting('modifypasswd_passwd', 'password', '', 'password', '', '', '', '', $required);
showsetting('modifypasswd_newpasswd1', 'newpassword1', '', 'password', '', '', '', '', $required);
showsetting('modifypasswd_newpasswd2', 'newpassword2', '', 'password', '', '', '', '', $required);
showsubmit('valuesubmit');
showtablefooter();
showformfooter();
bind_ajax_form();
exit;
示例7: encodeadvcode
$advnew['code'] = encodeadvcode($advnew);
$extra = $type != 'custom' ? '' : '&customid=' . $parameters['extra']['customid'];
$advnew['parameters'] = addslashes(serialize(array_merge(is_array($parameters) ? $parameters : array(), array('style' => $advnew['style']), $advnew['style'] == 'code' ? array() : $advnew[$advnew['style']], array('html' => $advnew['code']), array('displayorder' => $advnew['displayorder']))));
$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)) {
示例8: cpmsg
DB::query("UPDATE " . DB::table('common_taskvar') . " SET value='" . $value . "' WHERE taskid='{$id}' AND variable='{$item}'");
}
}
cpmsg('tasks_succeed', "action=tasks", 'succeed');
}
} elseif ($operation == 'delete' && $id) {
if (!$_G['gp_confirmed']) {
cpmsg('tasks_del_confirm', "action=tasks&operation=delete&id={$id}", 'form');
}
DB::query("DELETE FROM " . DB::table('common_task') . " WHERE taskid='{$id}'");
DB::query("DELETE FROM " . DB::table('common_taskvar') . " WHERE taskid='{$id}'");
DB::query("DELETE FROM " . DB::table('common_mytask') . " WHERE taskid='{$id}'");
cpmsg('tasks_del', 'action=tasks', 'succeed');
} elseif ($operation == 'type') {
shownav('extended', 'nav_tasks');
showsubmenu('nav_tasks', array(array('admin', 'tasks', 0), $submenus ? array(array('menu' => 'add', 'submenu' => $submenus), '', 0) : array(), array('nav_task_type', 'tasks&operation=type', 1)));
showtips('tasks_tips_add_type');
$tasks = gettasks();
showtableheader('', 'fixpadding');
if ($tasks) {
showsubtitle(array('name', 'tasks_version', 'copyright', ''));
foreach ($tasks as $task) {
showtablerow('', '', array($task['name'] . ($task['filemtime'] > TIMESTAMP - 86400 ? ' <font color="red">New!</font>' : ''), $task['version'], $task['copyright'], in_array($task['class'], $custom_scripts) ? "<a href=\"" . ADMINSCRIPT . "?action=tasks&operation=upgrade&script={$task['class']}\" class=\"act\">{$lang['tasks_upgrade']}</a> <a href=\"" . ADMINSCRIPT . "?action=tasks&operation=uninstall&script={$task['class']}\" class=\"act\">{$lang['tasks_uninstall']}</a><br />" : "<a href=\"" . ADMINSCRIPT . "?action=tasks&operation=install&script={$task['class']}\" class=\"act\">{$lang['tasks_install']}</a>"));
}
} else {
showtablerow('', '', $lang['task_module_nonexistence']);
}
showtablefooter();
} elseif ($operation == 'install' && $_G['gp_script']) {
if (DB::result_first("SELECT COUNT(*) FROM " . DB::table('common_task') . " WHERE scriptname='{$_G['gp_script']}'")) {
cpmsg('tasks_install_duplicate', '', 'error');
示例9: intval
$creditstransselect .= '<option value="' . $i . '" ' . ($i == intval($creditstrans[0]) ? 'selected' : '') . '>' . ($i ? 'extcredits' . $i . ' (' . $extcredits[$i]['title'] . ')' : $lang['none']) . '</option>';
}
}
function showtextradio($textname, $textvalue, $radioname, $radioes = array())
{
$a = '<input type="text" class="txt marginbot" name="' . $textname . '" id="' . $textname . '" value="' . $textvalue . '" /><ul style="width: 340px;" onmouseover="altStyle(this);">';
if (is_array($radioes)) {
foreach ($radioes as $radio) {
$a .= '<li><input type="radio" name="' . $radioname . '" value="' . $radio[1] . '" class="radio" onclick="$(\'' . $textname . '\').value = this.value"' . ($radio[2] ? ' checked="checked"' : '') . ' /> ' . $radio[0] . '</li>';
}
}
$a .= '</ul>';
return $a;
}
shownav('tools', 'nav_creditwizard');
showsubmenu('nav_creditwizard', array(array('creditwizard_step_menu_1', 'creditwizard&step=1', $step == 1), array('creditwizard_step_menu_2', 'creditwizard&step=2', $step == 2), array('creditwizard_step_menu_3', 'creditwizard&step=3', $step == 3), array('creditwizard_step_menu_4', 'settings&operation=ec&from=creditwizard', 0), array('ec_alipay', 'ec&operation=alipay&from=creditwizard', 0)));
showtips('creditwizard_tips_creditsuse');
showformheader('creditwizard&step=3');
showtableheader('creditwizard_step_menu_3');
showsetting('settings_credits_trans', '', '', '<select onchange="$(\'allowcreditstrans\').style.display = this.value != 0 ? \'\' : \'none\'" name="creditstransnew">' . $creditstransselect . '</select>');
showsetting('settings_credits_tax', '', '', showtextradio('creditstaxnew', $creditstax, 'creditstaxradio', array(array($lang['low'] . ' (0.01)', '0.01', $creditstax == '0.01'), array($lang['middle'] . ' (0.1)', '0.1', $creditstax == '0.1'), array($lang['high'] . ' (0.5)', '0.5', $creditstax == '0.5'))));
showsetting('settings_credits_minexchange', '', '', showtextradio('exchangemincreditsnew', $exchangemincredits, 'exchangemincreditsradio', array(array($lang['low'] . ' (100)', 100, $exchangemincredits == 100), array($lang['middle'] . ' (1000)', 1000, $exchangemincredits == 1000), array($lang['high'] . ' (5000)', 5000, $exchangemincredits == 5000))));
showtagheader('tbody', 'allowcreditstrans', $creditstrans);
showtitle('creditwizard_allowcreditstrans');
showsetting('settings_credits_mintransfer', '', '', showtextradio('transfermincreditsnew', $transfermincredits, 'transfermincreditsradio', array(array($lang['low'] . ' (100)', 100, $transfermincredits == 100), array($lang['middle'] . ' (1000)', 1000, $transfermincredits == 1000), array($lang['high'] . ' (5000)', 5000, $transfermincredits == 5000))));
showsetting('settings_credits_maxincperthread', '', '', showtextradio('maxincperthreadnew', $maxincperthread, 'maxincperthreadradio', array(array($lang['nolimit'] . ' (0)', 0, $maxincperthread == 0), array($lang['low'] . ' (10)', 10, $maxincperthread == 10), array($lang['middle'] . ' (50)', 50, $maxincperthread == 50), array($lang['high'] . ' (100)', 100, $maxincperthread == 100))));
showsetting('settings_credits_maxchargespan', '', '', showtextradio('maxchargespannew', $maxchargespan, 'maxchargespanradio', array(array($lang['nolimit'] . ' (0)', 0, $maxchargespan == 0), array($lang['low'] . ' (5)', 5, $maxchargespan == 5), array($lang['middle'] . ' (24)', 24, $maxchargespan == 24), array($lang['high'] . ' (48)', 48, $maxchargespan == 48))));
showtagfooter('tbody');
showsubmit('settingsubmit');
showtablefooter();
showformfooter();
示例10: unset
unset($_G['cache']['pluginlanguage_install'][$identifier]);
save_syscache('pluginlanguage_install', $_G['cache']['pluginlanguage_install']);
}
require_once libfile('function/cloudaddons');
cloudaddons_uninstall($dir . '.plugin', DISCUZ_ROOT . './source/plugin/' . $dir);
cpmsg('plugins_delete_succeed', "action=plugins", 'succeed');
}
} elseif ($operation == 'vars') {
$pluginvarid = $_G['gp_pluginvarid'];
$pluginvar = DB::fetch_first("SELECT * FROM " . DB::table('common_plugin') . " p, " . DB::table('common_pluginvar') . " pv WHERE p.pluginid='{$pluginid}' AND pv.pluginid=p.pluginid AND pv.pluginvarid='{$pluginvarid}'");
if (!$pluginvar) {
cpmsg('pluginvar_not_found', '', 'error');
}
if (!submitcheck('varsubmit')) {
shownav('plugin');
showsubmenu($lang['plugins_edit'] . ' - ' . $pluginvar['name'], array(array('plugins_list', 'plugins', 0), array('config', 'plugins&operation=edit&pluginid=' . $pluginid . '&anchor=config', 0), array('plugins_config_module', 'plugins&operation=edit&pluginid=' . $pluginid . '&anchor=modules', 0), array('plugins_config_vars', 'plugins&operation=edit&pluginid=' . $pluginid . '&anchor=vars', 1), array('export', 'plugins&operation=export&pluginid=' . $pluginid, 0)));
$typeselect = '<select name="typenew" onchange="if(this.value.indexOf(\'select\') != -1) $(\'extra\').style.display=\'\'; else $(\'extra\').style.display=\'none\';">';
foreach (array('number', 'text', 'radio', 'textarea', 'select', 'selects', 'color', 'date', 'datetime', 'forum', 'forums', 'group', 'groups', 'extcredit', 'forum_text', 'forum_textarea', 'forum_radio', 'forum_select', 'group_text', 'group_textarea', 'group_radio', 'group_select') as $type) {
$typeselect .= '<option value="' . $type . '" ' . ($pluginvar['type'] == $type ? 'selected' : '') . '>' . $lang['plugins_edit_vars_type_' . $type] . '</option>';
}
$typeselect .= '</select>';
showformheader("plugins&operation=vars&pluginid={$pluginid}&pluginvarid={$pluginvarid}");
showtableheader();
showtitle($lang['plugins_edit_vars'] . ' - ' . $pluginvar['title']);
showsetting('plugins_edit_vars_title', 'titlenew', $pluginvar['title'], 'text');
showsetting('plugins_edit_vars_description', 'descriptionnew', $pluginvar['description'], 'textarea');
showsetting('plugins_edit_vars_type', '', '', $typeselect);
showsetting('plugins_edit_vars_variable', 'variablenew', $pluginvar['variable'], 'text');
showtagheader('tbody', 'extra', $pluginvar['type'] == 'select' || $pluginvar['type'] == 'selects');
showsetting('plugins_edit_vars_extra', 'extranew', $pluginvar['extra'], 'textarea');
showtagfooter('tbody');
示例11: cpmsg
if ($value['formtype'] == 'select' || $value['formtype'] == 'radio' || in_array($fieldid, $fieldids)) {
$options[$fieldid] = $value['title'];
}
}
if (!empty($_GET['fieldid']) && !isset($options[$_GET['fieldid']])) {
cpmsg('members_stat_bad_fieldid', 'action=members&operation=stat', 'error');
}
if (!empty($_GET['fieldid']) && $_GET['fieldid'] == 'groupid') {
$usergroups = array();
foreach (C::t('common_usergroup')->range() as $value) {
$usergroups[$value['groupid']] = $value['grouptitle'];
}
}
if (!submitcheck('statsubmit')) {
shownav('user', 'nav_members_stat');
showsubmenu('nav_members_stat');
showtips('members_stat_tips');
showformheader('members&operation=stat&fieldid=' . $_GET['fieldid']);
showtableheader('members_stat_options');
$option_html = '<ul>';
foreach ($options as $key => $value) {
$extra_style = $_GET['fieldid'] == $key ? ' font-weight: 900;' : '';
$option_html .= "" . "<li style=\"float: left; width: 160px;{$extra_style}\">" . "<a href=\"" . ADMINSCRIPT . "?action=members&operation=stat&fieldid={$key}\">{$value}</a>" . "</li>";
}
$option_html .= '</ul><br style="clear: both;" />';
showtablerow('', array('colspan="5"'), array($option_html));
if ($_GET['fieldid']) {
$list = array();
$total = 0;
foreach ($list = C::t('common_member_stat_field')->fetch_all_by_fieldid($_GET['fieldid']) as $value) {
$total += $value['users'];
示例12: exit
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: admincp_collection.php 27779 2012-02-14 07:33:17Z chenmengshu $
*/
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
cpheader();
$operation = in_array($operation, array('admin', 'comment')) ? $operation : 'admin';
$current = array($operation => 1);
$fromumanage = $_GET['fromumanage'] ? 1 : 0;
shownav('global', 'collection');
showsubmenu('collection', array(array('collection_admin', 'collection&operation=admin', $current['admin']), array('collection_comment', 'collection&operation=comment', $current['comment'])));
echo '<script src="static/js/calendar.js"></script>';
if ($operation == 'comment') {
$tagarray = array();
if (submitcheck('submit') && !empty($_GET['cidarray']) && is_array($_GET['cidarray']) && count($_GET['cidarray']) && !empty($_GET['operate_type'])) {
$class_tag = new tag();
$cidarray = array();
$operate_type = $_GET['operate_type'];
$cidarray = $_GET['cidarray'];
if ($operate_type == 'delete') {
require_once libfile('function/delete');
$cidlist = C::t('forum_collectioncomment')->fetch_all($cidarray);
C::t('forum_collectioncomment')->delete_by_cid_ctid($cidarray);
foreach ($cidlist as $uniquecid) {
$decreasnum[$uniquecid['ctid']]++;
}
示例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: exit
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: admincp_topic.php 18628 2010-11-30 06:04:06Z zhangguosheng $
*/
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
cpheader();
$operation = 'list';
shownav('portal', 'topic');
$searchctrl = '<span style="float: right; padding-right: 40px;">' . '<a href="javascript:;" onclick="$(\'tb_search\').style.display=\'\';$(\'a_search_show\').style.display=\'none\';$(\'a_search_hide\').style.display=\'\';" id="a_search_show" style="display:none">' . cplang('show_search') . '</a>' . '<a href="javascript:;" onclick="$(\'tb_search\').style.display=\'none\';$(\'a_search_show\').style.display=\'\';$(\'a_search_hide\').style.display=\'none\';" id="a_search_hide">' . cplang('hide_search') . '</a>' . '</span>';
showsubmenu('topic', array(array('list', 'topic', 1), array('topic_add', 'portal.php?mod=portalcp&ac=topic', 0, 1, 1)), $searchctrl);
if (submitcheck('opsubmit')) {
if (empty($_POST['ids'])) {
cpmsg('topic_choose_at_least_one_topic', 'action=topic', 'error');
}
if ($_POST['optype'] == 'delete') {
require_once libfile('function/delete');
deleteportaltopic($_POST['ids']);
cpmsg('topic_delete_succeed', 'action=topic', 'succeed');
} elseif ($_POST['optype'] == 'close') {
DB::query('UPDATE ' . DB::table('portal_topic') . " SET closed = '1' WHERE topicid IN (" . dimplode($_POST['ids']) . ")");
cpmsg('topic_close_succeed', 'action=topic', 'succeed');
} elseif ($_POST['optype'] == 'open') {
DB::query('UPDATE ' . DB::table('portal_topic') . " SET closed = '0' WHERE topicid IN (" . dimplode($_POST['ids']) . ")");
cpmsg('topic_open_succeed', 'action=topic', 'succeed');
} else {
示例15: showhiddenfields
showhiddenfields(array('op' => $op));
showtableheader();
showsetting('cloud_site_id', 'my_siteid', $_G['setting']['my_siteid'], 'text');
showsetting('cloud_site_key', 'my_sitekey', preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['my_sitekey']), 'text');
showsetting('cloud_site_status', array('cloud_status', array(array('0', $lang['cloud_doctor_status_0']), array('1', $lang['cloud_doctor_status_1']), array('2', $lang['cloud_doctor_status_2']))), $_G['setting']['cloud_status'], 'select');
showsubmit('setidkeysubmit');
showtablefooter();
showformfooter();
echo '</div>';
ajaxshowfooter();
} else {
$appService = Cloud::loadClass('Service_App');
$doctorService = Cloud::loadClass('Service_Doctor');
require_once DISCUZ_ROOT . './source/discuz_version.php';
shownav('navcloud', 'menu_cloud_doctor');
showsubmenu('menu_cloud_doctor');
showtips('cloud_doctor_tips');
echo '<script type="text/javascript">var disallowfloat = "";</script>';
showtableheader();
showtagheader('tbody', '', true);
showtitle('cloud_doctor_title_status');
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_url') . '</strong>', $_G['siteurl']));
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_id') . '</strong>', $_G['setting']['my_siteid']));
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_key') . '</strong>', preg_replace('/(\\w{2})\\w*(\\w{2})/', '\\1****\\2', $_G['setting']['my_sitekey']) . ' ' . $lang['cloud_site_key_safetips']));
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_status') . '</strong>', isfounder() ? $doctorService->showCloudStatus($_G['setting']['cloud_status']) . ' <a href="javascript:;" onClick="showWindow(\'cloudApiIpWin\', \'' . ADMINSCRIPT . '?action=cloud&operation=doctor&op=setidkey\'); return false;">' . $lang['cloud_doctor_modify_siteidkey'] . '</a>' : $doctorService->showCloudStatus($_G['setting']['cloud_status'])));
showtablerow('', array('class="td24"'), array('<strong>' . cplang('setting_basic_bbclosed') . '</strong>', $_G['setting']['bbclosed'] ? $lang['cloud_doctor_close_yes'] : $lang['no']));
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_site_version') . '</strong>', DISCUZ_VERSION . ' ' . DISCUZ_RELEASE));
showtagfooter('tbody');
showtagheader('tbody', '', true);
showtitle('cloud_doctor_title_result');
showtablerow('', array('class="td24"'), array('<strong>' . cplang('cloud_timecheck') . '</strong>', '<span id="cloud_time_check">' . cplang('cloud_doctor_time_check', array('imgdir' => $_G['style']['imgdir'])) . '</span>'));