本文整理汇总了PHP中showformheader函数的典型用法代码示例。如果您正苦于以下问题:PHP showformheader函数的具体用法?PHP showformheader怎么用?PHP showformheader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showformheader函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showlistphoto
function showlistphoto($mname, $mlist, $multipage)
{
//數據列表顯示
showformheader('batchmod&m=' . $mname);
showtableheader($mname . '_listresult', 'notop');
showsubtitle(array());
showtablefooter();
echo '<div id="photo_list">';
echo $mlist;
echo '<div style="clear:both;"><table><tr><td style="width:30px;vertical-align:middle;height:25px;"><input style="float:left;" type="checkbox" name="chkall" onclick="checkall(this.form, \'item\')" checked/></td><td style="width:30px;vertical-align:middle;height:30px;">' . lang('selectall') . '</td><td id="pagetd" style="width:500px;vertical-align:middle;">' . $multipage . '</td></tr></table></div>';
echo '<style>
#pagetd .pages{margin-top:10px;}
</style>
</div>';
}
示例2: showtextradio
}
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();
} else {
if ($creditstaxnew < 0 || $creditstaxnew >= 1) {
示例3: unserialize
$setting = (array) unserialize($setting['wechatmenu']);
require_once DISCUZ_ROOT . './source/plugin/wechat/wechat.lib.class.php';
require_once DISCUZ_ROOT . './source/plugin/wechat/setting.class.php';
WeChatSetting::menu();
if (!$_G['wechat']['setting']['wechat_appId'] || !$_G['wechat']['setting']['wechat_appsecret']) {
cpmsg(lang('plugin/wechat', 'wsq_menu_at_error'), '', 'error');
}
if (!submitcheck('menusubmit') && !submitcheck('pubsubmit')) {
$wechat_client = new WeChatClient($_G['wechat']['setting']['wechat_appId'], $_G['wechat']['setting']['wechat_appsecret']);
if (in_array('plugin', $_G['setting']['rewritestatus'])) {
$url = $_G['siteurl'] . rewriteoutput('plugin', 1, 'wechat', 'access', '', 'op=access');
} else {
$url = $_G['siteurl'] . 'plugin.php?id=wechat:access';
}
showtips(lang('plugin/wechat', 'menu_tips', array('url' => $url)));
showformheader('plugins&operation=config&do=' . $pluginid . '&identifier=wechat&pmod=menu_setting');
showtableheader();
echo '<tr class="header"><th class="td25"></th><th>' . $lang['display_order'] . '</th><th style="width:350px">' . lang('plugin/wechat', 'wsq_menu_name') . '</th><th>' . lang('plugin/wechat', 'wsq_menu_keyurl') . '</th></tr>';
foreach ($setting['button'] as $k => $button) {
$disabled = !empty($button['sub_button']) ? 'disabled' : '';
showtablerow('', array('', 'class="td23 td28"', '', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"button[{$k}][delete]\" value=\"yes\" {$disabled}>", "<input type=\"text\" class=\"txt\" size=\"3\" name=\"button[{$k}][displayorder]\" value=\"{$button['displayorder']}\">", "<div class=\"parentnode\"><input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][name]\" value=\"" . dhtmlspecialchars($button['name']) . "\"></div>", "<input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][keyurl]\" value=\"" . dhtmlspecialchars($button['keyurl']) . "\">"));
if (!empty($button['sub_button'])) {
foreach ($button['sub_button'] as $sk => $sub_button) {
showtablerow('', array('', 'class="td23 td28"', '', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"button[{$k}][sub_button][{$sk}][delete]\" value=\"yes\">", "<input type=\"text\" class=\"txt\" size=\"3\" name=\"button[{$k}][sub_button][{$sk}][displayorder]\" value=\"{$sub_button['displayorder']}\">", "<div class=\"node\"><input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][sub_button][{$sk}][name]\" value=\"" . dhtmlspecialchars($sub_button['name']) . "\"></div>", "<input type=\"text\" class=\"txt\" size=\"30\" name=\"button[{$k}][sub_button][{$sk}][keyurl]\" value=\"" . dhtmlspecialchars($sub_button['keyurl']) . "\">"));
}
}
echo '<tr><td></td><td></td><td colspan="2"><div class="lastnode"><a href="###" onclick="addrow(this, 1, ' . $k . ')" class="addtr">' . lang('plugin/wechat', 'wsq_menu_sub_button') . '</a></div></td></tr>';
}
echo '<tr><td></td><td class="td23 td28"></td><td colspan="2"><div><a href="###" onclick="addrow(this, 0, 0)" class="addtr">' . lang('plugin/wechat', 'wsq_menu_button') . '</a></div></td></tr>';
echo <<<EOT
<script type="text/JavaScript">
示例4: addjscall
\t\t\t\t\t</table>
\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;
示例5: foreach
$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;
}
showformheader("moderate&operation=shares");
showtableheader('search');
showtablerow('', array('width="60"', 'width="160"', 'width="60"'), array(cplang('username'), "<input size=\"15\" name=\"username\" type=\"text\" value=\"{$_GET['username']}\" />", cplang('moderate_content_keyword'), "<input size=\"15\" name=\"keyword\" type=\"text\" value=\"{$_GET['keyword']}\" />"));
showtablerow('', array('width="60"', 'width="160"', 'width="60"'), array("{$lang['perpage']}", "<select name=\"tpp\">{$tpp_options}</select><label><input name=\"showcensor\" type=\"checkbox\" class=\"checkbox\" value=\"yes\" " . ($showcensor ? ' checked="checked"' : '') . "/> {$lang['moderate_showcensor']}</label>", "{$lang['moderate_bound']}", "<select name=\"filter\">{$filteroptions}</select>\r\n <select name=\"dateline\">{$dateline_options}</select>\r\n <input class=\"btn\" type=\"submit\" value=\"{$lang['search']}\" />"));
showtablefooter();
$pagetmp = $page;
$sqlwhere = '';
if (!empty($_GET['username'])) {
$sqlwhere .= " AND s.username='{$_GET['username']}'";
}
if (!empty($dateline) && $dateline != 'all') {
$sqlwhere .= " AND s.dateline>'" . (TIMESTAMP - $dateline) . "'";
}
if (!empty($_GET['keyword'])) {
$keyword = str_replace(array('%', '_'), array('\\%', '\\_'), $_GET['keyword']);
$sqlwhere .= " AND s.body_general LIKE '%{$keyword}%'";
示例6: showtablerow
}
} else {
showtablerow('', array('class="td24"'), array($lang['callback_status'], '<font color="green">' . $lang['valid'] . '</font>'));
}
} elseif (isset($hd_token['expires']) && TIMESTAMP < $hd_token['expires'] - 3600) {
showtablerow('', array('class="td24"'), array($lang['callback_status'], '<font color="green">' . $lang['valid'] . '</font>'));
} else {
$oauth = new HaoDaiOAuth(HD_AKEY, HD_SKEY);
$auth_url = $oauth->getAuthorizeURL(HD_CALLBACK_URL);
showtablerow('', array('class="td24"'), array($lang['callback_status'], '<font color="red">' . $lang['callback_expired'] . '</font> <a href="' . $auth_url . '"><img src="source/plugin/dzapp_haodai/images/haodai_login.png" class="vmiddle"></a>'));
}
}
showtablefooter();
} elseif ($_GET['want'] == 'import') {
if (!submitcheck('ok')) {
showformheader('plugins&operation=config&identifier=dzapp_haodai&pmod=admincp_callback&want=import');
showtableheader('import_callback');
showsetting($lang['appkey'], 'AKEY', defined('HD_AKEY') ? HD_AKEY : '', 'text');
showsetting($lang['appsecret'], 'SKEY', defined('HD_SKEY') ? HD_SKEY : '', 'text');
showsetting($lang['ref'], 'REF', defined('HD_REF') ? HD_REF : '', 'text');
showsetting($lang['callback_url'], 'CALLBACK_URL', defined('HD_CALLBACK_URL') ? HD_CALLBACK_URL : $_G['siteurl'] . 'plugin.php?id=dzapp_haodai:callback', 'text');
showsetting($lang['host_url'], 'API_HOST', defined('HD_API_HOST') ? HD_API_HOST : 'http://api.haodai.com/', 'text');
showsubmit('ok', "ok");
showtablefooter();
showformfooter();
} else {
$config = array();
$config['HD_REF'] = $_GET['REF'];
$config['HD_AKEY'] = $_GET['AKEY'];
$config['HD_SKEY'] = $_GET['SKEY'];
$config['HD_CALLBACK_URL'] = $_GET['CALLBACK_URL'];
示例7: showsetting
showsetting($langs['bird_slide_link'] . $j, 'movie' . $j, $result['movie' . $j], 'text');
}
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();
}
示例8: cpheader
}
cpheader();
if (!isfounder()) {
cpmsg('noaccess_isfounder', '', 'error');
}
$operation = empty($operation) ? 'admin' : $operation;
if ($operation == 'admin') {
if (!submitcheck('tplsubmit')) {
$templates = '';
$query = DB::query("SELECT * FROM " . DB::table('common_template') . "");
while ($tpl = DB::fetch($query)) {
$templates .= showtablerow('', array('class="td25"', '', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" " . ($tpl['templateid'] == 1 ? 'disabled ' : '') . "value=\"{$tpl['templateid']}\">", "<input type=\"text\" class=\"txt\" size=\"8\" name=\"namenew[{$tpl['templateid']}]\" value=\"{$tpl['name']}\">", "<input type=\"text\" class=\"txt\" size=\"20\" name=\"directorynew[{$tpl['templateid']}]\" value=\"{$tpl['directory']}\">", !empty($tpl['copyright']) ? $tpl['copyright'] : "<input type=\"text\" class=\"txt\" size=\"8\" name=\"copyrightnew[{$tpl['templateid']}]\" value=>"), TRUE);
}
shownav('style', 'templates_admin');
showsubmenu('templates_admin');
showformheader('templates');
showtableheader();
showsubtitle(array('', 'templates_admin_name', 'dir', 'copyright', ''));
echo $templates;
echo '<tr><td>' . $lang['add_new'] . '</td><td><input type="text" class="txt" size="8" name="newname"></td><td class="td29"><input type="text" class="txt" size="20" name="newdirectory"></td><td><input type="text" class="txt" size="25" name="newcopyright"></td><td> </td></tr>';
showsubmit('tplsubmit', 'submit', 'del');
showtablefooter();
showformfooter();
} else {
if ($_G['gp_newname']) {
if (!$_G['gp_newdirectory']) {
cpmsg('tpl_new_directory_invalid', '', 'error');
} elseif (!istpldir($_G['gp_newdirectory'])) {
$directory = $_G['gp_newdirectory'];
cpmsg('tpl_directory_invalid', '', 'error', array('directory' => $directory));
}
示例9: cpmsg
cpmsg('ec_credit_succeed', 'action=ec&operation=credit', 'succeed');
}
} elseif ($operation == 'inviteorders') {
if (!submitcheck('ordersubmit')) {
$start_limit = ($page - 1) * $_G['tpp'];
$sql = '';
$sql .= $_G['gp_orderstatus'] != '' ? " AND status='{$_G['gp_orderstatus']}'" : '';
$sql .= $_G['gp_orderid'] != '' ? " AND orderid='{$_G['gp_orderid']}'" : '';
$sql .= $_G['gp_email'] != '' ? " AND email='{$_G['gp_email']}'" : '';
$orderurl = array('alipay' => 'https://www.alipay.com/trade/query_trade_detail.htm?trade_no=', 'tenpay' => 'https://www.tenpay.com/med/tradeDetail.shtml?trans_id=');
shownav('extended', 'nav_ec');
showsubmenu('nav_ec', array(array('nav_ec_config', 'setting&operation=ec', 0), array('nav_ec_tenpay', 'ec&operation=tenpay', 0), array('nav_ec_alipay', 'ec&operation=alipay', 0), array('nav_ec_credit', 'ec&operation=credit', 0), array('nav_ec_orders', 'ec&operation=orders', 0), array('nav_ec_tradelog', 'tradelog', 0), array('nav_ec_inviteorders', 'ec&operation=inviteorders', 1)));
$ordercount = DB::result_first("SELECT COUNT(*) FROM " . DB::table('forum_order') . " WHERE uid='0' {$sql}");
$multipage = multi($ordercount, $_G['tpp'], $page, ADMINSCRIPT . "?action=ec&operation=inviteorders&orderstatus={$_G['gp_orderstatus']}&orderid={$_G['gp_orderid']}&email={$_G['gp_email']}");
showtagheader('div', 'orderlist', TRUE);
showformheader('ec&operation=inviteorders');
showtableheader('ec_inviteorders_search');
$_G['showsetting_multirow'] = 1;
showsetting('ec_orders_search_status', array('orderstatus', array(array('', $lang['ec_orders_search_status_all']), array(1, $lang['ec_orders_search_status_pending']), array(2, $lang['ec_orders_search_status_auto_finished']))), intval($_G['gp_orderstatus']), 'select');
showsetting('ec_orders_search_id', 'orderid', $_G['gp_orderid'], 'text');
showsetting('ec_orders_search_email', 'email', $_G['gp_email'], 'text');
showsubmit('searchsubmit', 'submit');
showtablefooter();
showtableheader('result');
showsubtitle(array('', 'ec_orders_id', 'ec_inviteorders_status', 'ec_inviteorders_buyer', 'ec_orders_amount', 'ec_orders_price', 'ec_orders_submitdate', 'ec_orders_confirmdate'));
$query = DB::query("SELECT *\r\n\t\t\tFROM " . DB::table('forum_order') . " WHERE uid='0' {$sql} ORDER BY submitdate DESC\r\n\t\t\tLIMIT {$start_limit}, {$_G['tpp']}");
while ($order = DB::fetch($query)) {
switch ($order['status']) {
case 1:
$order['orderstatus'] = $lang['ec_orders_search_status_pending'];
break;
示例10: runlog
if (!sendmail("{$member['username']} <{$member['email']}>", lang('email', 'moderate_member_subject'), $moderate_member_message)) {
runlog('sendmail', "{$member['email']} sendmail failed.");
}
}
}
}
}
}
cpmsg('moderate_members_op_succeed', "action=moderate&operation=members&page={$page}", 'succeed', array('numvalidated' => $numvalidated, 'numinvalidated' => $numinvalidated, 'numdeleted' => $numdeleted));
}
} elseif ($do == 'del') {
if (!submitcheck('prunesubmit', 1)) {
shownav('user', 'nav_modmembers');
showsubmenu('nav_moderate_users', array(array('nav_moderate_users_mod', 'moderate&operation=members&do=mod', 0), array('clean', 'moderate&operation=members&do=del', 1)));
showtips('moderate_members_tips');
showformheader('moderate&operation=members&do=del');
showtableheader('moderate_members_prune');
showsetting('moderate_members_prune_submitmore', 'submitmore', '5', 'text');
showsetting('moderate_members_prune_regbefore', 'regbefore', '30', 'text');
showsetting('moderate_members_prune_modbefore', 'modbefore', '15', 'text');
showsetting('moderate_members_prune_regip', 'regip', '', 'text');
showsubmit('prunesubmit');
showtablefooter();
showformfooter();
} else {
$uids = C::t('common_member_validate')->fetch_all_validate_uid($_GET['submitmore'], $_GET['regbefore'], $_GET['modbefore'], $_GET['regip']);
if (!($membernum = count($uids))) {
cpmsg('members_search_noresults', '', 'error');
} elseif (!$_GET['confirmed']) {
cpmsg('members_delete_confirm', "action=moderate&operation=members&do=del&submitmore=" . rawurlencode($_GET['submitmore']) . "®before=" . rawurlencode($_GET['regbefore']) . "®ip=" . rawurlencode($_GET['regip']) . "&prunesubmit=yes", 'form', array('membernum' => $membernum));
} else {
示例11: exit
/**
* [品牌空間] (C)2001-2010 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: managelog.inc.php 4324 2010-09-04 07:08:16Z fanshengshuai $
*/
if (!defined('IN_ADMIN')) {
exit('Acess Denied');
}
require_once B_ROOT . './source/adminfunc/tool.func.php';
shownav('oplog', 'managelog_list');
showsubmenu('managelog_list');
showtips('managelog_list_tips');
if (submitcheck('filtersubmit')) {
showformheader('managelog');
showtableheader('');
showsubtitle(array('managelogusername', 'managelogobject', 'managelogedshopname', 'managelogop', 'managelogreason', 'mldateliane'));
$wheresql = '';
$wheresql .= !empty($_REQUEST['managelogtype']) ? ' AND type=\'' . trim($_REQUEST['managelogtype']) . '\'' : '';
$wheresql .= !empty($_REQUEST['shopid']) ? ' AND shopid=\'' . intval($_REQUEST['shopid']) . '\'' : '';
if (!empty($wheresql)) {
$wheresql = ' WHERE' . substr($wheresql, 4);
}
$managelog = $managelogarr = array();
$tpp = 15;
$page = $_GET['page'] > 0 ? intval($_GET['page']) : 1;
$mlstart = ($page - 1) * $tpp;
$query = DB::query("SELECT count(mlogid) AS count FROM " . tname('managelog') . $wheresql . ";");
$value = DB::fetch($query);
foreach ($_GET as $key => $_value) {
示例12: exit
!defined('IN_DISCUZ') && exit('Access Denied');
!defined('IN_ADMINCP') && exit('Access Denied');
$setting = $_G['cache']['plugin']['k_gaiming'];
if (!submitcheck('submit')) {
$count = $start = 0;
$perpage = 20;
$page = max(1, intval($_GET['page']));
$start = ($page - 1) * $perpage;
$count = DB::result_first("SELECT count(*) FROM " . DB::table("plugin_k_gaiming_log"));
$query = DB::query("SELECT * FROM " . DB::table("plugin_k_gaiming_log") . " ORDER BY dateline DESC LIMIT " . $start . "," . $perpage);
$logs = '';
while ($log = DB::fetch($query)) {
$log['dateline'] = dgmdate($log['dateline'], 'u');
$log['username'] = getuserbyuid($log['uid']);
$logs .= showtablerow('', array('class="td25"', 'class="td29"', 'class="td28"', 'class="td29"'), array("<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"" . $log['lid'] . "\">", "<a href=\"home.php?mod=space&uid=" . $log['uid'] . "\" target=\"_blank\">" . $log['username']['username'] . "</a> (UID: " . $log['uid'] . ")", "<font color=\"#2366A8\">" . $log['username']['username'] . "</font> " . lang('plugin/k_gaiming', 'logcp_1') . " <font color=\"#2366A8\">" . $log['dateline'] . "</font> " . lang('plugin/k_gaiming', 'logcp_2') . " <font color=\"#2366A8\">" . $log['oldname'] . "</font> " . lang('plugin/k_gaiming', 'logcp_3') . " <font color=\"#2366A8\">" . $log['newname'] . "</font>", $log['creditnum'] . " " . $_G['setting']['extcredits'][$log['creditunit']]['unit'] . $_G['setting']['extcredits'][$log['creditunit']]['title'], $log['dateline']), TRUE);
}
$multi = multi($count, $perpage, $page, ADMINSCRIPT . "?action=plugins&operation=config&do=" . $pluginid . "&identifier=k_gaiming&pmod=logcp");
showformheader("plugins&operation=config&identifier=k_gaiming&pmod=logcp&page=" . $page, "enctype");
showtableheader('');
showsubtitle(array('', lang('plugin/k_gaiming', 'logcp_6'), lang('plugin/k_gaiming', 'logcp_5'), lang('plugin/k_gaiming', 'logcp_4'), lang('plugin/k_gaiming', 'logcp_7')));
echo $logs;
showsubmit('submit', lang('plugin/k_gaiming', 'submit'), 'del', '', $multi);
showtablefooter();
showformfooter();
} else {
if (is_array($_GET['delete'])) {
$ids = dimplode($_GET['delete']);
DB::query("DELETE FROM " . DB::table('plugin_k_gaiming_log') . " WHERE lid IN ({$ids})");
}
cpmsg(lang('plugin/k_gaiming', 'success'), 'action=plugins&operation=config&identifier=k_gaiming&pmod=logcp&page=' . $page, 'succeed');
}
示例13: rewriteoutput
if ($setting['wsq_siteid']) {
if (in_array('plugin', $_G['setting']['rewritestatus'])) {
$url = $_G['siteurl'] . rewriteoutput('plugin', 1, 'wechat', 'access');
} else {
$url = $_G['siteurl'] . 'plugin.php?id=wechat:access';
}
}
$apilisturl = ADMINSCRIPT . '?action=plugins&operation=config&do=' . $pluginid . '&identifier=wechat&pmod=wsq_setting&viewapi=yes';
$setting['wsq_siteurl'] = $setting['wsq_siteurl'] ? $setting['wsq_siteurl'] : $_G['siteurl'];
$setting['wsq_sitename'] = $setting['wsq_sitename'] ? $setting['wsq_sitename'] : $_G['setting']['bbname'];
require_once libfile('function/forumlist');
$forums = '<select name="setting[wsq_fid]"><option value="">' . cplang('plugins_empty') . '</option>' . forumselect(FALSE, 0, $setting['wsq_fid'], TRUE) . '</select>';
$sitelogo = $setting['wsq_sitelogo'] ? '<img src="' . $setting['wsq_sitelogo'] . '" width="150" />' : '';
$qrcode = $setting['wechat_qrcode'] ? '<img src="' . $_G['setting']['attachurl'] . 'common/' . $setting['wechat_qrcode'] . '" width="150" />' : '';
showtips(lang('plugin/wechat', 'wsq_tips', array('ADMINSCRIPT' => ADMINSCRIPT . '?action=', 'apiurl' => $apilisturl)));
showformheader('plugins&operation=config&do=' . $pluginid . '&identifier=wechat&pmod=wsq_setting', 'enctype');
showtableheader(lang('plugin/wechat', 'wechat_wsq_setting') . ' ' . ($setting['wsq_status'] ? ' (' . lang('plugin/wechat', 'wsq_status_open') . ')' : ($setting['wsq_siteid'] ? ' (' . lang('plugin/wechat', 'wsq_status_ing') . (TIMESTAMP - $setting['wsq_lastrequest'] > 3600 ? ' <a href="' . ADMINSCRIPT . '?action=plugins&operation=config&do=' . $pluginid . '&identifier=wechat&pmod=wsq_setting&recheck=yes">[' . lang('plugin/wechat', 'wsq_status_try') . ']</a>)' : ')') : ' (' . lang('plugin/wechat', 'wsq_status_close') . ')')));
showsetting(lang('plugin/wechat', 'wsq_allow'), 'setting[wsq_allow]', $setting['wsq_allow'], 'radio', 0, 0, lang('plugin/wechat', 'wsq_allow_comment'));
if ($setting['wsq_allow'] && $setting['wsq_siteid']) {
showtablefooter();
showtableheader();
showsetting(lang('plugin/wechat', 'wsq_url'), '', '', '<span style="white-space:nowrap">' . $url . '</span>');
showtablefooter();
showtableheader();
showsetting(lang('plugin/wechat', 'wsq_siteid'), '', '', $setting['wsq_siteid']);
showsetting(lang('plugin/wechat', 'wsq_sitetoken'), '', '', $setting['wsq_sitetoken']);
}
showsetting(lang('plugin/wechat', 'wsq_sitename'), 'setting[wsq_sitename]', $setting['wsq_sitename'], 'text');
showsetting(lang('plugin/wechat', 'wsq_sitelogo'), 'wsq_sitelogo', $setting['wsq_sitelogo'], 'file', 0, 0, lang('plugin/wechat', 'wsq_sitelogo_comment', array('sitelogo' => $sitelogo)));
showsetting(lang('plugin/wechat', 'wsq_sitesummary'), 'setting[wsq_sitesummary]', $setting['wsq_sitesummary'], 'textarea');
showsetting(lang('plugin/wechat', 'wsq_siteurl'), 'setting[wsq_siteurl]', $setting['wsq_siteurl'], 'text', 0, 0, lang('plugin/wechat', 'wsq_siteurl_comment'));
示例14: extc2seled
//公共部分
if (!$_GET['submit']) {
$exsel = extc2seled(0, $_G['setting']['extcredits']);
loadcache('usergroups');
$usergroups = $_G['cache']['usergroups'];
$gidsel = usergroups2seled('-1', $usergroups);
echo '<script type="text/JavaScript">
var rowtypedata = [[
[1,"", ""],
[1,\'<input type="text" class="txt" name="days[]" size="7">\', ""],
[1,\'' . $gidsel . '\', ""],
[1,\'' . $exsel . '\', ""],
[1,\'<input type="text" class="txt" name="reward[]" size="7">\', ""],
]]
</script>';
showformheader('plugins&operation=config&identifier=dsu_amupper&pmod=admin');
showtips(lang("plugin/dsu_amupper", "admin2_p1"));
showtableheader(lang("plugin/dsu_amupper", "admin2_h1"));
showsubtitle(array(lang("plugin/dsu_amupper", "admin2_t0"), lang("plugin/dsu_amupper", "admin2_t1"), lang("plugin/dsu_amupper", "admin2_t4"), lang("plugin/dsu_amupper", "admin2_t2"), lang("plugin/dsu_amupper", "admin2_t3")));
$arr = DB::fetch_all("SELECT * FROM %t WHERE id>%d LIMIT %d", array('plugin_dsuamupperc', '-1', '100'), 'id');
if ($arr) {
$i = 0;
$data_f2a = dstripslashes($arr);
foreach ($data_f2a as $id => $result) {
$exsel = extc2seled($result['extcredits'], $_G['setting']['extcredits']);
$gidsel = usergroups2seled($result['usergid'], $usergroups);
showtablerow('', array(' ', ' ', ' ', ' '), array('<input type="checkbox" class="checkbox" name="delete[]" value="' . $i . '" />', '<INPUT TYPE="hidden" NAME="id[]" value="' . $result['id'] . '"><input type="text" class="txt" name="days[]" value="' . $result['days'] . '" size="7" />', '' . $gidsel . '', '' . $exsel . '', '<input type="text" class="txt" name="reward[]" value="' . $result['reward'] . '" size="7" />'));
$i++;
}
}
echo '<tr><td></td><td colspan="3"><div><a href="#addrow" name="addrow" onclick="addrow(this, 0)" class="addtr">' . lang("plugin/dsu_amupper", "admin2_s1") . '</a></div></td></tr>';
示例15: cpmsg
}
$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') {
$catid = $_G['gp_catid'];
$pdnovelop = $_G['gp_pdnovelop'];