本文整理汇总了PHP中shownav函数的典型用法代码示例。如果您正苦于以下问题:PHP shownav函数的具体用法?PHP shownav怎么用?PHP shownav使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了shownav函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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();
}
示例2: exit
*
* $Id: admincp_block.php 21678 2011-04-08 02:51:13Z zhangguosheng $
*/
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
cpheader();
$operation = in_array($operation, array('jscall', 'list', 'perm')) ? $operation : 'list';
shownav('portal', 'block');
loadcache('blockclass');
if ($operation == 'perm') {
$bid = intval($_G['gp_bid']);
if (!submitcheck('permsubmit')) {
loadcache('diytemplatename');
$block = DB::fetch_first('SELECT * FROM ' . DB::table('common_block') . " WHERE bid='{$bid}'");
shownav('portal', 'block', 'block_perm');
showsubmenu(cplang('block_perm_edit') . ' - ' . ($block['name'] ? $block['name'] : cplang('block_name_null')));
showtips('block_perm_tips');
showformheader("block&operation=perm&bid={$bid}");
$inheritance_checked = !$block['notinherited'] ? 'checked' : '';
showtableheader('<label><input class="checkbox" type="checkbox" name="inheritance" value="1" ' . $inheritance_checked . '/>' . cplang('block_perm_inheritance') . '</label>', 'fixpadding');
showsubtitle(array('', 'username', '<input class="checkbox" type="checkbox" name="chkallmanage" onclick="checkAll(\'prefix\', this.form, \'allowmanage\', \'chkallmanage\')" id="chkallmanage" /><label for="chkallmanage">' . cplang('block_perm_manage') . '</label>', '<input class="checkbox" type="checkbox" name="chkallrecommend" onclick="checkAll(\'prefix\', this.form, \'allowrecommend\', \'chkallrecommend\')" id="chkallrecommend" /><label for="chkallrecommend">' . cplang('block_perm_recommend') . '</label>', '<input class="checkbox" type="checkbox" name="chkallneedverify" onclick="checkAll(\'prefix\', this.form, \'needverify\', \'chkallneedverify\')" id="chkallneedverify" /><label for="chkallneedverify">' . cplang('block_perm_needverify') . '</label>', 'block_perm_inherited'));
$query = DB::query("SELECT m.username, cp.* FROM " . DB::table('common_member') . " m ," . DB::table('common_block_permission') . " cp WHERE cp.bid='{$bid}' AND cp.uid=m.uid ORDER BY inheritedtplname");
$line = '−';
while ($value = DB::fetch($query)) {
if (!empty($value['inheritedtplname'])) {
showtablerow('', array('class="td25"'), array("", "{$value['username']}", $value['allowmanage'] ? '√' : $line, $value['allowrecommend'] ? '√' : $line, $value['needverify'] ? '√' : $line, '<a href="' . ADMINSCRIPT . '?action=diytemplate&operation=perm&targettplname=' . $value['inheritedtplname'] . '">' . $_G['cache']['diytemplatename'][$value['inheritedtplname']] . '</a>'));
} else {
showtablerow('', array('class="td25"'), array("<input type=\"checkbox\" class=\"checkbox\" name=\"delete[{$value['uid']}]\" value=\"{$value['uid']}\" />\r\n\t\t\t\t\t<input type=\"hidden\" name=\"perm[{$value['uid']}][allowmanage]\" value=\"{$value['allowmanage']}\" />\r\n\t\t\t\t\t<input type=\"hidden\" name=\"perm[{$value['uid']}][allowrecommend]\" value=\"{$value['allowrecommend']}\" />\r\n\t\t\t\t\t<input type=\"hidden\" name=\"perm[{$value['uid']}][needverify]\" value=\"{$value['needverify']}\" />", "{$value['username']}", "<input type=\"checkbox\" class=\"checkbox\" name=\"allowmanage[{$value['uid']}]\" value=\"1\" " . ($value['allowmanage'] ? 'checked' : '') . ' />', "<input type=\"checkbox\" class=\"checkbox\" name=\"allowrecommend[{$value['uid']}]\" value=\"1\" " . ($value['allowrecommend'] ? 'checked' : '') . ' />', "<input type=\"checkbox\" class=\"checkbox\" name=\"needverify[{$value['uid']}]\" value=\"1\" " . ($value['needverify'] ? 'checked' : '') . ' />', $line));
}
}
示例3: showformheader
showformheader('recyclebinpost&operation=search&frame=no', 'target="rbframe"', 'rbform');
showtableheader(cplang('recyclebinpost_result') . ' ' . $postlistcount . ' <a href="#" onclick="$(\'postlist\').style.display=\'none\';$(\'postsearch\').style.display=\'\';" class="act lightlink normal">' . cplang('research') . '</a>', 'fixpadding');
if ($postlistcount && recyclebinpostshowpostlist($inforum, $authors, $pstarttime, $pendtime, $keywords, $start_limit, $lpp)) {
$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');
示例4: 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;
示例5: 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;
}
示例6: is_array
$value = is_array($value) ? addslashes(serialize($value)) : $value;
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']}'")) {
示例7: isset
$advnew['displayorder'] = isset($advnew['displayorder']) ? implode("\t", $advnew['displayorder']) : '';
$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'");
示例8: shownav
} else {
echo "domains";
}
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="main.css" type="text/css" charset="utf-8" />
</head>
<body>
<div id="page">
<div class="navcontainer">
<?php
shownav('white', $mode, '', '');
?>
</div>
<table width="100%" summary="header">
<tr>
<td>
<h1>Whitelisted <?php
echo $title;
?>
</h1>
</td>
<td align="right">
<a class="navlike" href="#end" title="End of List">EoL</a>
</td>
</tr>
示例9: cpmsg
if (!$catid) {
cpmsg('category_not_found', '', 'error');
}
$upid = $pdnovelcategory[$catid]['upid'];
if ($upid == 0) {
if ($pdnovelcategory[$catid]['children']) {
cpmsg('category_chlidren_error', 'action=pdnovel&operation=category', 'error');
} else {
DB::query('DELETE FROM ' . DB::table('pdnovel_category') . (' WHERE catid = ' . $catid . ';'));
pdnovelcache('pdnovelcategory', 'pdnovel');
cpmsg('category_delete_succeed', 'action=pdnovel&operation=category', 'succeed');
}
} else {
$pdnovel_count = DB::result_first('SELECT COUNT(*) FROM ' . DB::table('pdnovel_view') . (' WHERE catid = ' . $catid));
if ($pdnovel_count) {
shownav('pdnovel', 'category');
showsubmenu('category', array(array('delete', 'pdnovel&operation=category&do=delete&catid=' . $catid, 1)));
showformheader('pdnovel&operation=category&do=mdelete&catid=' . $catid);
showtableheader();
echo "<tr><td colspan=\"2\" class=\"td27\">" . cplang('delete') . $pdnovelcategory[$catid]['catname'] . ":</td></tr>\r\n\t\t\t\t\t<tr class=\"noborder\">\r\n\t\t\t\t\t\t<td class=\"vtop rowform\">\r\n\t\t\t\t\t\t\t<ul class=\"nofloat\" onmouseover=\"altStyle(this);\">\r\n\t\t\t\t\t\t\t<li class=\"checked\"><input class=\"radio\" type=\"radio\" name=\"pdnovelop\" value=\"move\" checked /> " . cplang('category_moveto') . ' ' . category_showselect('toid', $catid) . "</li>\r\n\t\t\t\t\t\t\t<li><input class=\"radio\" type=\"radio\" name=\"pdnovelop\" value=\"delete\" /> " . cplang('category_delete') . "</li>\r\n\t\t\t\t\t\t\t</ul></td>\r\n\t\t\t\t\t\t<td class=\"vtop tips2\"></td>\r\n\t\t\t\t\t</tr>";
showsubmit('deletesubmit');
showtablefooter();
showformfooter();
} else {
DB::query('DELETE FROM ' . DB::table('pdnovel_category') . (' WHERE catid = ' . $catid . ';'));
pdnovelcache('pdnovelcategory', 'pdnovel');
cpmsg('category_delete_succeed', 'action=pdnovel&operation=category', 'succeed');
}
}
} else {
if ($do = 'mdelete') {
示例10: unset
if (isset($_G['cache']['pluginlanguage_install'][$identifier])) {
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');
示例11: intval
if ($i == 0 || $extcredits[$i]['available']) {
$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();
示例12: foreach
foreach ($_G['cache']['profilesetting'] as $fieldid => $value) {
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) {
示例13: exit
<?php
/**
* [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']]++;
示例14: exit
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: cloud_union.php 22747 2011-05-19 04:11:31Z yexinhao $
*/
if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
exit('Access Denied');
}
if (!$_G['inajax']) {
cpheader();
shownav('navcloud', 'cloud_stats');
}
$unionDomain = 'http://union.discuz.qq.com';
$signUrl = generateSiteSignUrl();
headerLocation($unionDomain . '/site/application/?' . $signUrl);
示例15: exit
<?php
/*
[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();