本文整理汇总了PHP中showsubmit函数的典型用法代码示例。如果您正苦于以下问题:PHP showsubmit函数的具体用法?PHP showsubmit怎么用?PHP showsubmit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showsubmit函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showbody
function showbody(){
$submenu = array();
foreach($this->anchors as $anchor){
$submenu[] = array('setting_'.$anchor, $anchor, $this->dxanchor == $anchor);
}
$hookselect = '<select name="varsnew[hookid]">';
for($i = 1; $i <= 3; $i++){
$hookselect .= '<option value="'.$i.'"'.($this->settings['hookid'] == $i ? ' selected' : '').'>'.$this->lang('setting_hookid_'.$i).'</option>';
}
$hookselect .= '</select>';
$this->formheader();
$this->subanchors($submenu);
$this->anchorheader('basic');
$this->showsetting('setting_hookid', '', '', $hookselect);
$this->showsetting('setting_cityid', 'varsnew[cityid]', $this->settings['cityid'], 'text');
$this->showsetting('setting_loadingstr', 'varsnew[loadingstr]', $this->settings['loadingstr'], 'text');
$this->showsetting('setting_linkreplace', 'varsnew[linkreplace]', $this->settings['linkreplace'], 'text');
showsubmit('dxsubmit');
$this->anchorfooter();
$this->anchorheader('navstyle');
$this->showsetting('setting_fontcolor', 'varsnew[dx_fontcolor]', $this->settings['dx_fontcolor'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_citycolor', 'varsnew[dx_citycolor]', $this->settings['dx_citycolor'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_highcolor', 'varsnew[dx_highcolor]', $this->settings['dx_highcolor'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_lowcolor', 'varsnew[dx_lowcolor]', $this->settings['dx_lowcolor'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_weekcolor', 'varsnew[dx_weekcolor]', $this->settings['dx_weekcolor'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_stacolor', 'varsnew[dx_stacolor]', $this->settings['dx_stacolor'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_suncolor', 'varsnew[dx_suncolor]', $this->settings['dx_suncolor'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_lineheight', 'varsnew[height]', intval($this->settings['height']), 'text');
$this->showsetting('setting_popleft', 'varsnew[left]', intval($this->settings['left']), 'text');
$this->showsetting('setting_poptop', 'varsnew[top]', intval($this->settings['top']), 'text');
showsubmit('dxsubmit');
$this->anchorfooter();
$this->anchorheader('customstyle');
$this->showsetting('setting_fontcolor', 'varsnew[dx_fontcolor3]', $this->settings['dx_fontcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_citycolor', 'varsnew[dx_citycolor3]', $this->settings['dx_citycolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_highcolor', 'varsnew[dx_highcolor3]', $this->settings['dx_highcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_lowcolor', 'varsnew[dx_lowcolor3]', $this->settings['dx_lowcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_glcolor', 'varsnew[dx_glcolor3]', $this->settings['dx_glcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_llcolor', 'varsnew[dx_llcolor3]', $this->settings['dx_llcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_weekcolor', 'varsnew[dx_weekcolor3]', $this->settings['dx_weekcolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_stacolor', 'varsnew[dx_stacolor3]', $this->settings['dx_stacolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_suncolor', 'varsnew[dx_suncolor3]', $this->settings['dx_suncolor3'], 'color', '', 0, $this->lang('setting_color_comment'));
$this->showsetting('setting_popleft', 'varsnew[left3]', intval($this->settings['left3']), 'text');
$this->showsetting('setting_poptop', 'varsnew[top3]', intval($this->settings['top3']), 'text');
showsubmit('dxsubmit');
$this->anchorfooter();
showformfooter();
}
示例2: showsearchform
//.........这里部分代码省略.........
showsetting('members_search_online', array('sid_noempty', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_online'], 'mradio');
showsetting('members_search_lockstatus', array('status', array(array(-1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_status'], 'mradio');
showsetting('members_search_emailstatus', array('emailstatus', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_emailstatus'], 'mradio');
showsetting('members_search_avatarstatus', array('avatarstatus', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_avatarstatus'], 'mradio');
showsetting('members_search_email', 'email', $_G['gp_email'], 'text');
showsetting("{$lang['credits']} {$lang['members_search_between']}", array("credits_low", "credits_high"), array($_G['gp_credits_low'], $_G['gp_credtis_high']), 'range');
if (!empty($_G['setting']['extcredits'])) {
foreach ($_G['setting']['extcredits'] as $id => $credit) {
showsetting("{$credit['title']} {$lang['members_search_between']}", array("extcredits{$id}" . "_low", "extcredits{$id}" . "_high"), array($_G['gp_extcredits' . $id . '_low'], $_G['gp_extcredits' . $id . '_high']), 'range');
}
}
showsetting('members_search_friendsrange', array('friends_low', 'friends_high'), array($_G['gp_friends_low'], $_G['gp_friends_high']), 'range');
showsetting('members_search_postsrange', array('posts_low', 'posts_high'), array($_G['gp_posts_low'], $_G['gp_posts_high']), 'range');
showsetting('members_search_regip', 'regip', $_G['gp_regip'], 'text');
showsetting('members_search_lastip', 'lastip', $_G['gp_lastip'], 'text');
showsetting('members_search_regdaterange', array('regdate_after', 'regdate_before'), array($_G['gp_regdate_after'], $_G['gp_regdate_before']), 'daterange');
showsetting('members_search_lastvisitrange', array('lastvisit_after', 'lastvisit_before'), array($_G['gp_lastvisit_after'], $_G['gp_lastvisit_before']), 'daterange');
showsetting('members_search_lastpostrange', array('lastpost_after', 'lastpost_before'), array($_G['gp_lastpost_after'], $_G['gp_lastpost_before']), 'daterange');
showsetting('members_search_group_fid', 'fid', $_G['gp_fid'], 'text');
if ($_G['setting']['verify']) {
$verifydata = array();
foreach ($_G['setting']['verify'] as $key => $value) {
if ($value['available']) {
$verifydata[] = array('verify' . $key, $value['title']);
}
}
if (!empty($verifydata)) {
showsetting('members_search_verify', array('verify', $verifydata), $_G['gp_verify'], 'mcheckbox');
}
}
$yearselect = $monthselect = $dayselect = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
$yy = dgmdate(TIMESTAMP, 'Y');
for ($y = $yy; $y >= $yy - 100; $y--) {
$y = sprintf("%04d", $y);
$yearselect .= "<option value=\"{$y}\" " . ($_G['gp_birthyear'] == $y ? 'selected' : '') . ">{$y}</option>\n";
}
for ($m = 1; $m <= 12; $m++) {
$m = sprintf("%02d", $m);
$monthselect .= "<option value=\"{$m}\" " . ($_G['gp_birthmonth'] == $m ? 'selected' : '') . ">{$m}</option>\n";
}
for ($d = 1; $d <= 31; $d++) {
$d = sprintf("%02d", $d);
$dayselect .= "<option value=\"{$d}\" " . ($_G['gp_birthday'] == $d ? 'selected' : '') . ">{$d}</option>\n";
}
showsetting('members_search_birthday', '', '', '<select class="txt" name="birthyear" style="width:75px; margin-right:0">' . $yearselect . '</select> ' . $lang['year'] . ' <select class="txt" name="birthmonth" style="width:75px; margin-right:0">' . $monthselect . '</select> ' . $lang['month'] . ' <select class="txt" name="birthday" style="width:75px; margin-right:0">' . $dayselect . '</select> ' . $lang['day']);
loadcache('profilesetting');
unset($_G['cache']['profilesetting']['uid']);
unset($_G['cache']['profilesetting']['birthyear']);
unset($_G['cache']['profilesetting']['birthmonth']);
unset($_G['cache']['profilesetting']['birthday']);
require_once libfile('function/profile');
foreach ($_G['cache']['profilesetting'] as $fieldid => $value) {
if (!$value['available'] || in_array($fieldid, array('birthprovince', 'birthdist', 'birthcommunity', 'resideprovince', 'residedist', 'residecommunity'))) {
continue;
}
if ($fieldid == 'gender') {
$select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
$select .= "<option value=\"0\">" . cplang('members_edit_gender_secret') . "</option>\n";
$select .= "<option value=\"1\">" . cplang('members_edit_gender_male') . "</option>\n";
$select .= "<option value=\"2\">" . cplang('members_edit_gender_female') . "</option>\n";
showsetting($value['title'], '', '', '<select class="txt" name="gender">' . $select . '</select>');
} elseif ($fieldid == 'birthcity') {
$elems = array('birthprovince', 'birthcity', 'birthdist', 'birthcommunity');
showsetting($value['title'], '', '', '<div id="birthdistrictbox">' . showdistrict(array(0, 0, 0, 0), $elems, 'birthdistrictbox', 1) . '</div>');
} elseif ($fieldid == 'residecity') {
$elems = array('resideprovince', 'residecity', 'residedist', 'residecommunity');
showsetting($value['title'], '', '', '<div id="residedistrictbox">' . showdistrict(array(0, 0, 0, 0), $elems, 'residedistrictbox', 1) . '</div>');
} elseif ($fieldid == 'constellation') {
$select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
for ($i = 1; $i <= 12; $i++) {
$name = lang('space', 'constellation_' . $i);
$select .= "<option value=\"{$name}\">{$name}</option>\n";
}
showsetting($value['title'], '', '', '<select class="txt" name="constellation">' . $select . '</select>');
} elseif ($fieldid == 'zodiac') {
$select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
for ($i = 1; $i <= 12; $i++) {
$option = lang('space', 'zodiac_' . $i);
$select .= "<option value=\"{$option}\">{$option}</option>\n";
}
showsetting($value['title'], '', '', '<select class="txt" name="zodiac">' . $select . '</select>');
} elseif ($value['formtype'] == 'select' || $value['formtype'] == 'list') {
$select = "<option value=\"\">" . cplang('nolimit') . "</option>\n";
$value['choices'] = explode("\n", $value['choices']);
foreach ($value['choices'] as $option) {
$option = trim($option);
$select .= "<option value=\"{$option}\">{$option}</option>\n";
}
showsetting($value['title'], '', '', '<select class="txt" name="' . $fieldid . '">' . $select . '</select>');
} else {
showsetting($value['title'], '', '', '<input class="txt" name="' . $fieldid . '" />');
}
}
showtagfooter('tbody');
$_G['showsetting_multirow'] = 0;
showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options');
showtablefooter();
showformfooter();
showtagfooter('div');
}
示例3: foreach
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">
var rowtypedata = [
[[1,''], [1,'<input name="newbutton[displayorder][]" value="" size="3" type="text" class="txt">', 'td23 td28'], [1, '<input name="newbutton[name][]" value="" size="30" type="text" class="txt">'], [1, '<input name="newbutton[keyurl][]" value="" size="30" type="text" class="txt">', 'td29']],
[[1,''], [1,'<input name="newsub_button[{1}][displayorder][]" value="" size="3" type="text" class="txt">', 'td23 td28'], [1, '<div class=\\"node\\"><input name="newsub_button[{1}][name][]" value="" size="30" type="text" class="txt"></div>'], [1, '<input name="newsub_button[{1}][keyurl][]" value="" size="30" type="text" class="txt">', 'td29']],
];
</script>
EOT;
showsubmit('menusubmit', lang('plugin/wechat', 'wsq_menu_save'), 'del', '<input type="submit" class="btn" name="pubsubmit" value="' . lang('plugin/wechat', 'wsq_menu_pub') . '" />');
showtablefooter();
showformfooter();
} else {
if (!empty($_GET['newbutton'])) {
foreach ($_GET['newbutton']['name'] as $k => $name) {
$button = array('displayorder' => $_GET['newbutton']['displayorder'][$k], 'name' => $name, 'keyurl' => $_GET['newbutton']['keyurl'][$k]);
$setting['button'][] = $button;
}
}
foreach ($_GET['button'] as $k => $value) {
if ($value['sub_button']) {
foreach ($value['sub_button'] as $sk => $v) {
if ($v['delete']) {
unset($value['sub_button'][$sk]);
}
示例4: while
} else {
$sharecount = 0;
$query = DB::query("SELECT s.sid FROM " . DB::table('home_share') . " s WHERE 1 {$sql}");
while ($share = DB::fetch($query)) {
$sids .= ',' . $share['sid'];
$sharecount++;
}
$multi = '';
}
if (!$sharecount) {
$error = 'share_post_nonexistence';
}
}
showtagheader('div', 'postlist', $searchsubmit || $newlist);
showformheader('share&frame=no', 'target="shareframe"');
showhiddenfields(array('sids' => authcode($sids, 'ENCODE')));
showtableheader(cplang('share_result') . ' ' . $sharecount . (empty($newlist) ? ' <a href="###" onclick="$(\'searchposts\').style.display=\'\';$(\'postlist\').style.display=\'none\';$(\'shareforum\').pp.value=\'\';$(\'shareforum\').page.value=\'\';" class="act lightlink normal">' . cplang('research') . '</a>' : ''), 'fixpadding');
if ($error) {
echo "<tr><td class=\"lineheight\" colspan=\"15\">{$lang[$error]}</td></tr>";
} else {
if ($detail) {
showsubtitle(array('', 'author', 'share_title', 'share_body', 'share_type', 'time'));
echo $shares;
}
}
showsubmit('sharesubmit', 'delete', $detail ? 'del' : '', '', $multi);
showtablefooter();
showformfooter();
echo '<iframe name="shareframe" style="display:none"></iframe>';
showtagfooter('div');
}
示例5: showsetting
$tablelist .= '<option value="' . $tid . '">' . ($info['memo'] ? $info['memo'] : 'forum_post' . ($tid ? '_' . $tid : '')) . '(' . $tablestatus['Data_length'] . ')' . '</option>';
}
}
showsetting('postsplit_to', '', '', '<select onchange="if(this.value >= 0) {$(\'tableinfo\').style.display = \'none\';} else {$(\'tableinfo\').style.display = \'\';}" name="targettable">' . $tablelist . '</select>');
showtagheader('tbody', 'tableinfo', true, 'sub');
showsetting('postsplit_manage_table_memo', "memo", '', 'text');
showtagfooter('tbody');
$datasize = round($status['Data_length'] / 1048576);
$maxsize = round(($datasize - ($tableid ? 0 : 300)) / 100);
$maxi = $maxsize > 10 ? 10 : ($maxsize < 1 ? 1 : $maxsize);
for ($i = 1; $i <= $maxi; $i++) {
$movesize = $i == 10 ? 1024 : $i * 100;
$maxsizestr .= '<option value="' . $movesize . '">' . ($i == 10 ? sizecount($movesize * 1048576) : $movesize . 'MB') . '</option>';
}
showsetting('postsplit_move_size', '', '', '<select name="movesize">' . $maxsizestr . '</select>');
showsubmit('splitsubmit', 'postsplit_manage_submit');
showtablefooter();
showformfooter();
} else {
$targettable = intval($_G['gp_targettable']);
$createtable = false;
if ($targettable == -1) {
$maxtableid = getmaxposttableid();
DB::query('SET SQL_QUOTE_SHOW_CREATE=0', 'SILENT');
$tableinfo = DB::fetch_first("SHOW CREATE TABLE " . DB::table(getposttable()));
$createsql = $tableinfo['Create Table'];
$targettable = $maxtableid + 1;
$newtable = 'forum_post_' . $targettable;
$createsql = str_replace(getposttable(), $newtable, $createsql);
DB::query($createsql);
$posttable_info[$targettable]['memo'] = $_G['gp_memo'];
示例6: showsetting
param.top = Math.round((maxHeight - param.height) / 2);
return param;
}
\t\t\t\t\t</script>
\t\t\t<tr><td><div id="preview">
\t\t\t</div></td></tr>
\t\t<br/>
\t\t<tr><td><input type="file" name='upfile' onchange="previewImage(this)" />
\t\t\t</td></tr>
INPUT;
showsetting('所属目的地', 'area', cplang($area), 'text');
showsetting('名称', 'name', $result['name'], 'text');
showsetting('area', 'areaid', $maparea[$area], 'text');
showsetting('简介', 'introduction', $result['introduction'], 'textarea');
showsetting('级别划分', 'level', $result['level'], 'text');
showsubmit('detailsubmit');
showtablefooter();
showformfooter();
} else {
$file = $_FILES["upfile"];
$destination = '/var/www/yiiframework-cms/data/attachment/yuexiamen';
$filename = $file["tmp_name"];
$image_size = getimagesize($filename);
$pinfo = pathinfo($file["name"]);
$ftype = $pinfo['extension'];
$destination = $destination_folder . time() . "." . $ftype;
move_uploaded_file($filename, $destination);
$editcat = array('area' => $_GET['area'], 'introduction' => $_GET['introduction'], 'name' => $_GET['name'], 'areaid' => $_GET['areaid'], 'level' => $_GET['level'], 'pic' => $destination);
$editcat['dateline'] = TIMESTAMP;
$editcat['username'] = $_G['username'];
if ($operation == 'add') {
示例7: showtableheader
showtableheader('', 'nobottom');
$typeclass = array(1, 2);
showtablerow('', array(), array(shownavmenu($type, $typeclass, $langs)));
showtablefooter();
showformheader($thisurl . '&type=' . $type, 'enctype');
showtableheader($langs['slide'], 'nobottom');
for ($j = 1; $j < 6; $j++) {
$grouplogohtml = '';
$pic = '';
if ($result['pic' . $j]) {
$pic = $result['pic' . $j];
$grouplogohtml = '<label>' . $langs['slideimgtip'] . '<br /><img src="' . fiximage($pic) . '?' . random(6) . '" width="400" height="100" />';
}
showsetting($langs['slide_img'] . $j, 'pic' . $j, $pic, 'filetext', '', 0, $grouplogohtml);
showsetting($langs['slide_link'] . $j, 'movie' . $j, $result['movie' . $j], 'text');
}
showsubmit('submit');
showtablefooter();
showformfooter();
}
function shownavmenu($type, $typeclass, $langs)
{
$result = '<ul class="tab1">';
$typelist = array();
$typelist[$type] = ' class="current"';
foreach ($typeclass as $key => $value) {
$result .= '<li' . $typelist[$value] . '><a href="' . ADMINSCRIPT . '?action=plugins&operation=config&act=slide&identifier=sanree_brand&pmod=admincp&type=' . $value . '"><span>' . $langs['slide' . $value] . '</span></a></li>';
}
$result .= '</ul>';
return $result;
}
示例8: empty
$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));
}
DB::insert('common_template', array('name' => $_G['gp_newname'], 'directory' => $_G['gp_newdirectory'], 'copyright' => $_G['gp_newcopyright']));
}
foreach ($_G['gp_directorynew'] as $id => $directory) {
if (!$_G['gp_delete'] || $_G['gp_delete'] && !in_array($id, $_G['gp_delete'])) {
if (!istpldir($directory)) {
示例9: rawurlencode
$order['orderstatus'] = $lang['ec_orders_search_status_pending'];
break;
case 2:
$order['orderstatus'] = '<b>' . $lang['ec_orders_search_status_auto_finished'] . '</b>';
break;
case 3:
$order['orderstatus'] = '<b>' . $lang['ec_orders_search_status_manual_finished'] . '</b><br />(<a href="home.php?mod=space&username=' . rawurlencode($order['admin']) . '" target="_blank">' . $order['admin'] . '</a>)';
break;
}
$order['submitdate'] = dgmdate($order['submitdate']);
$order['confirmdate'] = $order['confirmdate'] ? dgmdate($order['confirmdate']) : 'N/A';
list($orderid, $apitype) = explode("\t", $order['buyer']);
$apitype = $apitype ? $apitype : 'alipay';
$orderid = '<a href="' . $orderurl[$apitype] . $orderid . '" target="_blank">' . $orderid . '</a>';
showtablerow('', '', array("<input class=\"checkbox\" type=\"checkbox\" name=\"validate[]\" value=\"{$order['orderid']}\" " . ($order['status'] != 1 ? 'disabled' : '') . ">", "{$order['orderid']}<br />{$orderid}", $order['orderstatus'], "{$order['email']}<br>{$order['ip']}", $order['amount'], "{$lang['rmb']} {$order['price']} {$lang['rmb_yuan']}", $order['submitdate'], $order['confirmdate']));
}
showtablerow('', array('colspan="7"'), array($multipage));
showsubmit('ordersubmit', 'ec_orders_validate', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'validate\')" />');
showtablefooter();
showformfooter();
showtagfooter('div');
} else {
if ($_G['gp_validate']) {
$query = DB::query("SELECT * FROM " . DB::table('forum_order') . " WHERE orderid IN (" . dimplode($_G['gp_validate']) . ") AND status='1'");
if ($numvalidate = DB::num_rows($query)) {
DB::query("UPDATE " . DB::table('forum_order') . " SET status='3', admin='{$_G['username']}', confirmdate='{$_G['timestamp']}' WHERE orderid IN (" . dimplode($_G['gp_validate']) . ")");
}
}
cpmsg('orders_validate_succeed', "action=ec&operation=inviteorders&orderstatus={$_G['gp_orderstatus']}&orderid={$_G['gp_orderid']}&email={$_G['gp_email']}", 'succeed');
}
}
示例10: cpmsg
}
}
}
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 {
$numdeleted = C::t('common_member')->delete_no_validate(array_keys($uids));
cpmsg('members_delete_succeed', '', 'succeed', array('numdeleted' => $numdeleted));
}
}
}
示例11: 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');
}
示例12: showsetting
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'));
showsetting(lang('plugin/wechat', 'wsq_fid'), '', '', $forums, 0, 0, lang('plugin/wechat', 'wsq_fid_comment'));
if (!empty($_G['setting']['domain']['root']['forum'])) {
showsetting(lang('plugin/wechat', 'wsq_domain'), '', '', 'http://<input type="text" name="setting[wsq_domain]" class="txt" value="' . $setting['wsq_domain'] . '" style="width:100px; margin-right:0px;" >.' . $_G['setting']['domain']['root']['forum'], !function_exists('domain_create'), 0, lang('plugin/wechat', 'wsq_domain_comment'));
} else {
showsetting(lang('plugin/wechat', 'wsq_domain'), 'setting[wsq_domain]', '', 'text', 1, 0, lang('plugin/wechat', 'wsq_domain_comment'));
}
showsetting(lang('plugin/wechat', 'wechat_float_qrcode'), 'setting[wechat_float_qrcode]', $setting['wechat_float_qrcode'], 'radio');
showsetting(lang('plugin/wechat', 'wsq_wapdefault'), 'setting[wsq_wapdefault]', $setting['wsq_wapdefault'], 'radio');
showsubmit('settingsubmit');
showtablefooter();
showformfooter();
} else {
if ($_FILES['wsq_sitelogo']['tmp_name']) {
$upload = new discuz_upload();
if (!$upload->init($_FILES['wsq_sitelogo'], 'common', random(3, 1), random(8)) || !$upload->save()) {
cpmsg($upload->errormessage(), '', 'error');
}
$parsev = parse_url($_G['setting']['attachurl']);
$_GET['setting']['wsq_sitelogo'] = ($parsev['host'] ? '' : $_G['siteurl']) . $_G['setting']['attachurl'] . 'common/' . $upload->attach['attachment'];
} else {
$_GET['setting']['wsq_sitelogo'] = $setting['wsq_sitelogo'];
}
if (!$_GET['setting']['wsq_fid']) {
cpmsg(lang('plugin/wechat', 'wsq_fid_empty'), '', 'error');
示例13: showtips
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>';
showsubmit('submit', lang("plugin/dsu_amupper", "admin2_s2"));
showtablefooter();
showformfooter();
} elseif ($_G['adminid'] == '1' && $_GET['formhash'] == FORMHASH) {
$mrcs = array();
$max_i = max(count($_GET['days']), count($_GET['usergid']), count($_GET['extcredits']), count($_GET['reward']));
for ($i = 0; $i < $max_i; $i++) {
if (intval($_GET['days'][$i]) && intval($_GET['extcredits'][$i]) && intval($_GET['usergid'][$i]) && intval($_GET['reward'][$i] * 100) && !in_array($i, $_GET['delete'])) {
$mrcs[$i]['days'] = intval($_GET['days'][$i]);
$mrcs[$i]['usergid'] = intval($_GET['usergid'][$i]);
$mrcs[$i]['extcredits'] = intval($_GET['extcredits'][$i]);
$mrcs[$i]['reward'] = intval($_GET['reward'][$i] * 100) / 100;
$mrcs[$i]['id'] = intval($i);
}
}
DB::query('DELETE FROM %t', array('plugin_dsuamupperc'));
示例14: cpmsg
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'];
if ($pdnovelop == 'move') {
$toid = $_G['gp_toid'];
if (empty($toid)) {
示例15: foreach
$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');
showsubmit('varsubmit');
showtablefooter();
showformfooter();
} else {
$titlenew = cutstr(dhtmlspecialchars(trim($_G['gp_titlenew'])), 25);
$descriptionnew = cutstr(dhtmlspecialchars(trim($_G['gp_descriptionnew'])), 255);
$variablenew = trim($_G['gp_variablenew']);
$extranew = dhtmlspecialchars(trim($_G['gp_extranew']));
if (!$titlenew) {
cpmsg('plugins_edit_var_title_invalid', '', 'error');
} elseif ($variablenew != $pluginvar['variable']) {
$query = DB::query("SELECT pluginvarid FROM " . DB::table('common_pluginvar') . " WHERE variable='{$variablenew}'");
if (DB::num_rows($query) || !$variablenew || strlen($variablenew) > 40 || !ispluginkey($variablenew)) {
cpmsg('plugins_edit_vars_invalid', '', 'error');
}
}