本文整理汇总了PHP中showtagheader函数的典型用法代码示例。如果您正苦于以下问题:PHP showtagheader函数的具体用法?PHP showtagheader怎么用?PHP showtagheader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showtagheader函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showsubtitle
showsubtitle(array('enable', 'forums_edit_threadtypes_name', 'forums_edit_threadtypes_note', 'forums_edit_threadtypes_show', 'forums_edit_threadtypes_defaultshow'));
echo $sortselect;
showtablefooter();
showtagfooter('div');
showtagfooter('div');
}
showtagheader('div', 'perm', $anchor == 'perm');
showtableheader('forums_edit_perm_forum', 'nobottom');
showsetting('forums_edit_perm_passwd', 'passwordnew', $forum['password'], 'text');
showsetting('forums_edit_perm_users', 'formulapermusersnew', dstripslashes($forum['formulapermusers']), 'textarea');
$colums = array();
loadcache('medals');
foreach ($_G['cache']['medals'] as $medalid => $medal) {
$colums[] = array($medalid, $medal['name']);
}
showtagheader('tbody', '', $_G['setting']['medalstatus']);
showsetting('forums_edit_perm_medal', array('medalnew', $colums), $forum['medal'], 'mcheckbox');
showtagfooter('tbody');
showtablefooter();
if (!$multiset) {
showtableheader('forums_edit_perm_forum', 'noborder fixpadding');
showsubtitle(array('', '<input class="checkbox" type="checkbox" name="chkall1" onclick="checkAll(\'prefix\', this.form, \'viewperm\', \'chkall1\')" id="chkall1" /><label for="chkall1"><br />' . cplang('forums_edit_perm_view') . '</label>', '<input class="checkbox" type="checkbox" name="chkall2" onclick="checkAll(\'prefix\', this.form, \'postperm\', \'chkall2\')" id="chkall2" /><label for="chkall2"><br />' . cplang('forums_edit_perm_post') . '</label>', '<input class="checkbox" type="checkbox" name="chkall3" onclick="checkAll(\'prefix\', this.form, \'replyperm\', \'chkall3\')" id="chkall3" /><label for="chkall3"><br />' . cplang('forums_edit_perm_reply') . '</label>', '<input class="checkbox" type="checkbox" name="chkall4" onclick="checkAll(\'prefix\', this.form, \'getattachperm\', \'chkall4\')" id="chkall4" /><label for="chkall4"><br />' . cplang('forums_edit_perm_getattach') . '</label>', '<input class="checkbox" type="checkbox" name="chkall5" onclick="checkAll(\'prefix\', this.form, \'postattachperm\', \'chkall5\')" id="chkall5" /><label for="chkall5"><br />' . cplang('forums_edit_perm_postattach') . '</label>', '<input class="checkbox" type="checkbox" name="chkall6" onclick="checkAll(\'prefix\', this.form, \'postimageperm\', \'chkall6\')" id="chkall6" /><label for="chkall6"><br />' . cplang('forums_edit_perm_postimage') . '</label>'));
foreach (array('member', 'special', 'specialadmin', 'system') as $type) {
$tgroups = is_array($groups[$type]) ? $groups[$type] : array();
showtablerow('', '', array('<b>' . cplang('usergroups_' . $type) . '</b>'));
foreach ($tgroups as $group) {
$colums = array('<input class="checkbox" title="' . cplang('select_all') . '" type="checkbox" name="chkallv' . $group['groupid'] . '" onclick="checkAll(\'value\', this.form, ' . $group['groupid'] . ', \'chkallv' . $group['groupid'] . '\')" id="chkallv_' . $group['groupid'] . '" /><label for="chkallv_' . $group['groupid'] . '"> ' . $group['grouptitle'] . '</label>');
foreach ($perms as $perm) {
$checked = strstr($forum[$perm], "\t{$group['groupid']}\t") ? 'checked="checked"' : NULL;
$colums[] = '<input class="checkbox" type="checkbox" name="' . $perm . '[]" value="' . $group['groupid'] . '" chkvalue="' . $group['groupid'] . '" ' . $checked . '>';
}
示例2: lang
$sharetitle = lang('admincp', 'share_type_space');
break;
case 'blog':
$shareurl = "home.php?mod=space&uid={$share['fromuid']}&do=blog&id={$share['itemid']}&modblogkey={$share['modkey']}";
$sharetitle = lang('admincp', 'share_type_blog');
break;
case 'album':
$shareurl = "home.php?mod=space&uid={$share['fromuid']}&do=album&id={$share['itemid']}&modalbumkey={$share['modkey']}";
$sharetitle = lang('admincp', 'share_type_album');
break;
case 'article':
$shareurl = "portal.php?mod=view&aid={$share['itemid']}&modarticlekey={$share['modkey']}";
$sharetitle = lang('admincp', 'share_type_article');
break;
}
showtagheader('tbody', '', true, 'hover');
showtablerow("id=\"mod_{$share['sid']}_row1\"", array("id=\"mod_{$share['sid']}_row1_op\" rowspan=\"3\" class=\"rowform threadopt\" style=\"width:80px;\"", '', 'width="120"', 'width="120"', 'width="55"', 'width="55"'), array("<ul class=\"nofloat\"><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$share['sid']}]\" id=\"mod_{$share['sid']}_1\" value=\"validate\" onclick=\"mod_setbg({$share['sid']}, 'validate');\"><label for=\"mod_{$share['sid']}_1\">{$lang['validate']}</label></li><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$share['sid']}]\" id=\"mod_{$share['sid']}_2\" value=\"delete\" onclick=\"mod_setbg({$share['sid']}, 'delete');\"><label for=\"mod_{$share['sid']}_2\">{$lang['delete']}</label></li><li><input class=\"radio\" type=\"radio\" name=\"moderate[{$share['sid']}]\" id=\"mod_{$doing['doid']}_3\" value=\"ignore\" onclick=\"mod_setbg({$share['sid']}, 'ignore');\"><label for=\"mod_{$share['sid']}_3\">{$lang['ignore']}</label></li></ul>", "<h3><a href=\"javascript:;\" onclick=\"display_toggle({$share[sid]});\">{$short_desc} {$share_censor_text}</a></h3>", $sharetitle, "<p><a target=\"_blank\" href=\"" . ADMINSCRIPT . "?action=members&operation=search&uid={$share['uid']}&submit=yes\">{$share['username']}</a></p> <p>{$share['dateline']}</p>", "<a target=\"_blank\" href=\"{$shareurl}\">{$lang['view']}</a>"));
showtablerow("id=\"mod_{$share['sid']}_row2\"", 'colspan="4" style="padding: 10px; line-height: 180%;"', '<div style="overflow: auto; overflow-x: hidden; max-height:120px; height:auto !important; height:100px; word-break: break-all;">' . $share['body_general'] . '</div>');
showtablerow("id=\"mod_{$share['sid']}_row3\"", 'class="threadopt threadtitle" colspan="4"', "<a href=\"?action=moderate&operation=shares&fast=1&sid={$share['sid']}&moderate[{$share['sid']}]=validate&page={$page}&frame=no\" target=\"fasthandle\">{$lang['validate']}</a> | <a href=\"?action=moderate&operation=shares&fast=1&sid={$share['sid']}&moderate[{$share['sid']}]=delete&page={$page}&frame=no\" target=\"fasthandle\">{$lang['delete']}</a> | <a href=\"?action=moderate&operation=shares&fast=1&sid={$share['sid']}&moderate[{$share['sid']}]=ignore&page={$page}&frame=no\" target=\"fasthandle\">{$lang['ignore']}</a>");
showtagfooter('tbody');
}
showsubmit('modsubmit', 'submit', '', '<a href="#all" onclick="mod_setbg_all(\'validate\')">' . cplang('moderate_all_validate') . '</a> <a href="#all" onclick="mod_setbg_all(\'delete\')">' . cplang('moderate_all_delete') . '</a> <a href="#all" onclick="mod_setbg_all(\'ignore\')">' . cplang('moderate_all_ignore') . '</a> <a href="#all" onclick="mod_cancel_all();">' . cplang('moderate_all_cancel') . '</a>', $multipage, false);
showtablefooter();
showformfooter();
} else {
$moderation = array('validate' => array(), 'delete' => array(), 'ignore' => array());
$validates = $deletes = $ignores = 0;
if (is_array($moderate)) {
foreach ($moderate as $sid => $act) {
$moderation[$act][] = $sid;
}
示例3: showsetting
showsetting('postsplit', '', '', getposttableselect());
if ($secStatus) {
showsetting('recyclebin_search_security_thread', 'security', $security, 'radio');
}
showsubmit('searchsubmit');
showtablefooter();
showformfooter();
showtagfooter('div');
if (submitcheck('searchsubmit')) {
$security = $secStatus && $security;
if ($security) {
$postlistcount = C::t('#security#security_evilpost')->count_by_search($posttableid, null, $keywords, -5, $inforum, null, $authors ? explode(',', str_replace(' ', '', $authors)) : null, strtotime($pstarttime), strtotime($pendtime));
} else {
$postlistcount = C::t('forum_post')->count_by_search($posttableid, null, $keywords, -5, $inforum, null, $authors ? explode(',', str_replace(' ', '', $authors)) : null, strtotime($pstarttime), strtotime($pendtime));
}
showtagheader('div', 'postlist', $searchsubmit);
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)) {
示例4: showtagfooter
showtagfooter('tbody');
showtagheader('tbody', 'reward_invite', $task['reward'] == 'invite');
showsetting('tasks_add_invitenum', 'prize_invite', $task['prize'], 'text');
showsetting('tasks_add_inviteexp', 'bonus_invite', $task['bonus'], 'text');
showtagfooter('tbody');
showtagheader('tbody', 'reward_group', $task['reward'] == 'group');
showsetting('tasks_add_group', array('prize_group', fetcharray('groupid', 'grouptitle', 'common_usergroup', "type='special' AND radminid='0'")), $task['prize'], 'select');
showsetting('tasks_add_groupexp', 'bonus_group', $task['bonus'], 'text');
showtagfooter('tbody');
showtitle('tasks_add_appyperm');
if (!$task['applyperm']) {
$task['applyperm'] = 'all';
}
$task['grouplimit'] = in_array($task['applyperm'], array('all', 'member', 'admin')) ? $task['applyperm'] : 'special';
showsetting('tasks_add_groupperm', array('grouplimit', array(array('all', cplang('tasks_add_group_all'), array('specialgroup' => 'none')), array('member', cplang('tasks_add_group_member'), array('specialgroup' => 'none')), array('admin', cplang('tasks_add_group_admin'), array('specialgroup' => 'none')), array('special', cplang('tasks_add_group_special'), array('specialgroup' => '')))), $task['grouplimit'], 'mradio');
showtagheader('tbody', 'specialgroup', $task['grouplimit'] == 'special');
showsetting('tasks_add_usergroup', array('applyperm[]', fetcharray('groupid', 'grouptitle', 'common_usergroup', '')), explode("\t", $task['applyperm']), 'mselect');
showtagfooter('tbody');
showsetting('tasks_add_relatedtask', array('relatedtaskid', fetcharray('taskid', 'name', 'common_task', "available='2' AND taskid!='{$task['taskid']}'")), $task['relatedtaskid'], 'select');
showsetting('tasks_add_maxnum', 'tasklimits', $task['tasklimits'], 'text');
$taskvars = array();
$query = DB::query("SELECT * FROM " . DB::table('common_taskvar') . " WHERE taskid='{$id}'");
while ($taskvar = DB::fetch($query)) {
if ($taskvar['sort'] == 'apply') {
$taskvars['apply'][] = $taskvar;
} elseif ($taskvar['sort'] == 'complete') {
$taskvars['complete'][$taskvar['variable']] = $taskvar;
} elseif ($taskvar['sort'] == 'setting' && $taskvar['name']) {
$taskvars['setting'][$taskvar['variable']] = $taskvar;
}
}
示例5: showsetting
showsetting('adv_edit_style_text_link', 'advnew[text][link]', $adv['parameters']['link'], 'text');
showsetting('adv_edit_style_text_size', 'advnew[text][size]', $adv['parameters']['size'], 'text');
showtagfooter('tbody');
showtagheader('tbody', 'style_image', $adv['parameters']['style'] == 'image');
showtitle('adv_edit_style_image');
showsetting('adv_edit_style_image_url', 'advnewimage', $adv['parameters']['url'], 'filetext');
showsetting('adv_edit_style_image_link', 'advnew[image][link]', $adv['parameters']['link'], 'text');
showsetting('adv_edit_style_image_alt', 'advnew[image][alt]', $adv['parameters']['alt'], 'text');
if ($imagesizes) {
$v = $adv['parameters']['width'] . 'x' . $adv['parameters']['height'];
showsetting('adv_edit_style_image_size', '', '', '<select onchange="setsize(this.value, \'image\')"><option value="x">' . cplang('adv_edit_style_custom') . '</option>' . str_replace('"' . $v . '"', '"' . $v . '" selected="selected"', $imagesizes) . '</select>');
}
showsetting('adv_edit_style_image_width', 'advnew[image][width]', $adv['parameters']['width'], 'text', '', 0, '', 'id="imagewidth" onchange="setpreview(\'image\')"');
showsetting('adv_edit_style_image_height', 'advnew[image][height]', $adv['parameters']['height'], 'text', '', 0, '', 'id="imageheight" onchange="setpreview(\'image\')"');
showtagfooter('tbody');
showtagheader('tbody', 'style_flash', $adv['parameters']['style'] == 'flash');
showtitle('adv_edit_style_flash');
showsetting('adv_edit_style_flash_url', 'advnewflash', $adv['parameters']['url'], 'filetext');
if ($imagesizes) {
$v = $adv['parameters']['flash'] . 'x' . $adv['parameters']['flash'];
showsetting('adv_edit_style_flash_size', '', '', '<select onchange="setsize(this.value, \'flash\')"><option>' . cplang('adv_edit_style_custom') . '</option>' . str_replace('"' . $v . '"', '"' . $v . '" selected="selected"', $imagesizes) . '</select>');
}
showsetting('adv_edit_style_flash_width', 'advnew[flash][width]', $adv['parameters']['width'], 'text', '', 0, '', 'id="flashwidth" onchange="setpreview(\'flash\')"');
showsetting('adv_edit_style_flash_height', 'advnew[flash][height]', $adv['parameters']['height'], 'text', '', 0, '', 'id="flashheight" onchange="setpreview(\'flash\')"');
showtagfooter('tbody');
echo '<tr><td colspan="2">';
if ($operation == 'edit') {
echo '<input id="previewbtn" type="button" class="btn" onclick="$(\'advpreview\').style.display=\'\';this.form.preview.value=1;this.form.target=\'preview\';this.form.submit();" name="jspreview" value="' . $lang['preview'] . '"> ';
}
echo '<input type="submit" class="btn" name="advsubmit" onclick="this.form.preview.value=0;this.form.target=\'\'" value="' . $lang['submit'] . '"><input name="preview" type="hidden" value="0"></td></tr>';
showtablefooter();
示例6: foreach
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) {
$creditstaxnew = 0;
}
$creditstrans = explode(',', $creditstrans);
$creditstrans[0] = (double) $creditstransnew;
$db->query("REPLACE INTO {$tablepre}settings (variable, value) VALUES ('creditstrans', '" . implode(',', $creditstrans) . "')");
示例7: searchgroups
function searchgroups($submit)
{
global $_G;
require_once libfile('function/group');
empty($_GET['selectgroupid']) && ($_GET['selectgroupid'] = array());
$groupselect = get_groupselect(0, $_GET['selectgroupid'], 0);
$monthselect = $dayselect = $birthmonth = $birthday = '';
for ($m = 1; $m <= 12; $m++) {
$m = sprintf("%02d", $m);
$monthselect .= "<option value=\"{$m}\" " . ($birthmonth == $m ? 'selected' : '') . ">{$m}</option>\n";
}
for ($d = 1; $d <= 31; $d++) {
$d = sprintf("%02d", $d);
$dayselect .= "<option value=\"{$d}\" " . ($birthday == $d ? 'selected' : '') . ">{$d}</option>\n";
}
showtagheader('div', 'searchgroups', !$submit);
echo '<script src="static/js/calendar.js" type="text/javascript"></script>';
showformheader("group&operation=manage");
showtableheader();
showsetting('groups_manage_name', 'srchname', $srchname, 'text');
showsetting('groups_manage_id', 'srchfid', $srchfid, 'text');
showsetting('groups_editgroup_category', '', '', '<select name="selectgroupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $_GET['selectgroupid']) ? ' selected' : '') . '>' . cplang('unlimited') . '</option>' . $groupselect . '</select>');
showsetting('groups_manage_membercount', array('memberlower', 'memberhigher'), array($_GET['memberlower'], $_GET['memberhigher']), 'range');
showsetting('groups_manage_threadcount', array('threadshigher', 'threadslower'), array($threadshigher, $threadslower), 'range');
showsetting('groups_manage_replycount', array('postshigher', 'postslower'), array($postshigher, $postslower), 'range');
showsetting('groups_manage_createtime', array('datelineafter', 'datelinebefore'), array($datelineafter, $datelinebefore), 'daterange');
showsetting('groups_manage_updatetime', array('lastupdateafter', 'lastupdatebefore'), array($lastupdateafter, $lastupdatebefore), 'daterange');
showsetting('groups_manage_founder', 'srchfounder', $srchfounder, 'text');
showsetting('groups_manage_founder_uid', 'srchfounderid', $srchfounderid, 'text');
showtagfooter('tbody');
showsubmit('submit');
showtablefooter();
showformfooter();
showtagfooter('div');
}
示例8: trim
$_G['gp_code'][$key] = trim($_G['gp_code'][$key]);
$codeadd = !empty($_G['gp_code'][$key]) ? ", code='{$_G['gp_code'][$key]}'" : '';
DB::query("UPDATE " . DB::table('common_smiley') . " SET displayorder='{$_G['gp_displayorder'][$key]}' {$codeadd} WHERE id='{$key}'");
}
}
$fastsmiley[$id] = array_diff(array_unique(array_merge((array) $fastsmiley[$id], (array) $_G['gp_fast'])), $unsfast);
DB::insert('common_setting', array('skey' => 'fastsmiley', 'svalue' => addslashes(serialize($fastsmiley))), false, true);
updatecache(array('smilies', 'smileycodes', 'smilies_js'));
cpmsg('smilies_edit_succeed', "action=smilies&operation=edit&id={$id}&page={$_G['gp_page']}", 'succeed');
}
} elseif ($do == 'add') {
if (!submitcheck('editsubmit')) {
shownav('style', 'nav_smilies');
showsubmenu(cplang('smilies_edit') . ' - ' . $type[name], array(array('smilies_type', 'smilies', 0), array('admin', "smilies&operation=edit&id={$id}", !$do), array('add', "smilies&operation=edit&do=add&id={$id}", $do == 'add')));
showtips('smilies_tips');
showtagheader('div', 'addsmilies', TRUE);
showtableheader('smilies_add', 'notop fixpadding');
showtablerow('', '', "<span class=\"bold marginright\">{$lang['smilies_type']}:</span>{$type['name']}");
showtablerow('', '', "<span class=\"bold marginright\">{$lang['dir']}:</span>{$smurl} {$lang['smilies_add_search']}");
showtablerow('', '', '<input type="button" class="btn" value="' . $lang['search'] . '" onclick="ajaxget(\'' . ADMINSCRIPT . '?action=smilies&operation=edit&do=add&id=' . $id . '&search=yes\', \'addsmilies\', \'addsmilies\', \'auto\');doane(event);">');
showtablefooter();
showtagfooter('div');
if ($_G['gp_search']) {
$newid = 1;
$newimages = '';
$imgfilter = array();
$query = DB::query("SELECT url FROM " . DB::table('common_smiley') . " WHERE typeid='{$id}' AND type='smiley'");
while ($img = DB::fetch($query)) {
$imgfilter[] = $img[url];
}
$smiliesdir = dir($smdir);
示例9: dgmdate
$fids[] = $thread['fid'];
$thread['lastpost'] = dgmdate($thread['lastpost']);
$threads .= showtablerow('', array('class="td25"', '', '', '', '', ''), array("<input class=\"checkbox\" type=\"checkbox\" name=\"tidarray[]\" value=\"{$thread['tid']}\" checked=\"checked\" />", "<a href=\"forum.php?mod=viewthread&tid={$thread['tid']}\" target=\"_blank\">{$thread['subject']}</a>", "<a href=\"forum.php?mod=forumdisplay&fid={$thread['fid']}\" target=\"_blank\">{$_G['cache'][forums][$thread[fid]][name]}</a>", "<a href=\"home.php?mod=space&uid={$thread['authorid']}\" target=\"_blank\">{$thread['author']}</a>", $thread['replies'], $thread['views']), TRUE);
}
$multi = multi($threadcount, $topicperpage, $page, ADMINSCRIPT . "?action=threadsplit&operation=move");
$multi = preg_replace("/href=\"" . ADMINSCRIPT . "\\?action=threadsplit&operation=move&page=(\\d+)\"/", "href=\"javascript:page(\\1)\"", $multi);
$multi = str_replace("window.location='" . ADMINSCRIPT . "?action=threadsplit&operation=move&page='+this.value", "page(this.value)", $multi);
} else {
foreach ($threadlist as $thread) {
$fids[] = $thread['fid'];
$tids .= ',' . $thread['tid'];
}
$multi = '';
}
$fids = implode(',', array_unique($fids));
showtagheader('div', 'threadlist', TRUE);
showformheader("threadsplit&operation=move&sourcetableid={$_GET['sourcetableid']}&threadtomove=" . $threadtomove);
showhiddenfields($_GET['detail'] ? array('fids' => $fids) : array('conditions' => serialize($conditions)));
showtableheader(cplang('threads_result') . ' ' . $threadcount . ' <a href="###" onclick="$(\'threadlist\').style.display=\'none\';$(\'threadsearch\').style.display=\'\';" class="act lightlink normal">' . cplang('research') . '</a>', 'nobottom');
showsubtitle(array('', 'threadsplit_move_to', 'threadsplit_manage_threadcount', 'threadsplit_manage_datalength', 'threadsplit_manage_indexlength', 'threadsplit_manage_table_createtime', 'threadsplit_manage_table_memo'));
if (!$threadcount) {
showtablerow('', 'colspan="3"', cplang('threads_thread_nonexistence'));
} else {
$threadtable_orig = C::t('forum_thread')->gettablestatus();
$tableid = 0;
showtablerow('', array('class="td25"'), array("<input class=\"radio\" " . ($_GET['sourcetableid'] == '0' ? 'disabled="disabled"' : '') . " type=\"radio\" name=\"tableid\" value=\"0\" />", $threadtable_orig['Name'], $threadtable_orig['Rows'], $threadtable_orig['Data_length'], $threadtable_orig['Index_length'], $threadtable_orig['Create_time'], $threadtable_info[0]['memo']));
foreach ($threadtableids as $tableid) {
if ($tableid) {
$tablename = "forum_thread_{$tableid}";
$tablestatus = C::t('forum_thread')->gettablestatus($tableid);
showtablerow('', array(), array("<input class=\"radio\" " . ($_GET['sourcetableid'] == $tableid ? 'disabled="disabled"' : '') . " type=\"radio\" name=\"tableid\" value=\"{$tableid}\" />", $tablestatus['Name'] . ($threadtable_info[$tableid]['displayname'] ? " (" . dhtmlspecialchars($threadtable_info[$tableid]['displayname']) . ")" : ''), $tablestatus['Rows'], $tablestatus['Data_length'], $tablestatus['Index_length'], $tablestatus['Create_time'], $threadtable_info[$tableid]['memo']));
示例10: cplang
$db_export_key = 'discuz';
$uc_backup_url = UC_API . '/admin.php?m=db&a=ls&iframe=1';
$db_export_tips = cplang('db_export_tips_nouc', array('uc_backup_url' => $uc_backup_url)) . cplang('db_export_tips');
$db_export_discuz_table = cplang('db_export_discuz_table');
}
shownav('founder', 'nav_db', 'nav_db_export');
showsubmenu('nav_db', array(array('nav_db_export', 'db&operation=export', 1), array('nav_db_import', 'db&operation=import', 0), array('nav_db_runquery', 'db&operation=runquery', 0), array('nav_db_optimize', 'db&operation=optimize', 0), array('nav_db_dbcheck', 'db&operation=dbcheck', 0)));
showtips($db_export_tips);
showformheader('db&operation=export&setup=1');
showtableheader();
showsetting('db_export_type', array('type', array(array($db_export_key, $lang[$db_export], array('showtables' => 'none')), array('custom', $lang['db_export_custom'], array('showtables' => '')))), $db_export_key, 'mradio');
showtagheader('tbody', 'showtables');
showtablerow('', '', '<input class="checkbox" name="chkall" onclick="checkAll(\'prefix\', this.form, \'customtables\', \'chkall\', true)" checked="checked" type="checkbox" id="chkalltables" /><label for="chkalltables"> ' . cplang('db_export_custom_select_all') . ' - ' . $db_export_discuz_table) . '</label>';
showtablerow('', 'colspan="2"', mcheckbox('customtables', $dztables));
showtagfooter('tbody');
showtagheader('tbody', 'advanceoption');
showsetting('db_export_method', '', '', '<ul class="nofloat"><li><input class="radio" type="radio" name="method" value="shell" ' . $shelldisabled . ' onclick="if(\'' . intval($db->version() < '4.1') . '\') {if(this.form.sqlcompat[2].checked==true) this.form.sqlcompat[0].checked=true; this.form.sqlcompat[2].disabled=true; this.form.sizelimit.disabled=true;} else {this.form.sqlcharset[0].checked=true; for(var i=1; i<=5; i++) {if(this.form.sqlcharset[i]) this.form.sqlcharset[i].disabled=true;}}" id="method_shell" /><label="method_shell"> ' . $lang['db_export_shell'] . '</label></li><li><input class="radio" type="radio" name="method" value="multivol" checked="checked" onclick="this.form.sqlcompat[2].disabled=false; this.form.sizelimit.disabled=false; for(var i=1; i<=5; i++) {if(this.form.sqlcharset[i]) this.form.sqlcharset[i].disabled=false;}" id="method_multivol" /><label for="method_multivol"> ' . $lang['db_export_multivol'] . '</label> <input type="text" class="txt" size="40" name="sizelimit" value="2048" /></li></ul>');
showtitle('db_export_options');
showsetting('db_export_options_extended_insert', 'extendins', 0, 'radio');
showsetting('db_export_options_sql_compatible', array('sqlcompat', array(array('', $lang['default']), array('MYSQL40', 'MySQL 3.23/4.0.x'), array('MYSQL41', 'MySQL 4.1.x/5.x'))), '', 'mradio');
showsetting('db_export_options_charset', array('sqlcharset', array(array('', cplang('default')), $dbcharset ? array($dbcharset, strtoupper($dbcharset)) : array(), $db->version() > '4.1' && $dbcharset != 'utf8' ? array('utf8', 'UTF-8') : array()), TRUE), 0, 'mradio');
showsetting('db_export_usehex', 'usehex', 1, 'radio');
if (function_exists('gzcompress')) {
showsetting('db_export_usezip', array('usezip', array(array('1', $lang['db_export_zip_1']), array('2', $lang['db_export_zip_2']), array('0', $lang['db_export_zip_3']))), 0, 'mradio');
}
showsetting('db_export_filename', '', '', '<input type="text" class="txt" name="filename" value="' . $defaultfilename . '" />.sql');
showtagfooter('tbody');
showsubmit('exportsubmit', 'submit', '', 'more_options');
showtablefooter();
showformfooter();
} else {
示例11: showtagfooter
showtagfooter('tbody');
showtagheader('tbody', "style_radio", $option['type'] == 'radio');
showtitle('threadtype_edit_vars_type_radio');
showsetting('threadtype_edit_choices', 'rules[radio][choices]', $option['rules']['choices'], 'textarea');
showtagfooter('tbody');
showtagheader('tbody', "style_checkbox", $option['type'] == 'checkbox');
showtitle('threadtype_edit_vars_type_checkbox');
showsetting('threadtype_edit_choices', 'rules[checkbox][choices]', $option['rules']['choices'], 'textarea');
showtagfooter('tbody');
showtagheader('tbody', "style_image", $option['type'] == 'image');
showtitle('threadtype_edit_vars_type_image');
showsetting('threadtype_edit_images_weight', 'rules[image][maxwidth]', $option['rules']['maxwidth'], 'text');
showsetting('threadtype_edit_images_height', 'rules[image][maxheight]', $option['rules']['maxheight'], 'text');
showsetting('threadtype_edit_inputsize', 'rules[image][inputsize]', $option['rules']['inputsize'], 'text');
showtagfooter('tbody');
showtagheader('tbody', "style_range", $option['type'] == 'range');
showtitle('threadtype_edit_vars_type_range');
showsetting('threadtype_edit_maxnum', 'rules[range][maxnum]', $option['rules']['maxnum'], 'text');
showsetting('threadtype_edit_minnum', 'rules[range][minnum]', $option['rules']['minnum'], 'text');
showsetting('threadtype_edit_inputsize', 'rules[range][inputsize]', $option['rules']['inputsize'], 'text');
showsetting('threadtype_edit_searchtxt', 'rules[range][searchtxt]', $option['rules']['searchtxt'], 'text');
showtagfooter('tbody');
showsubmit('editsubmit');
showtablefooter();
showformfooter();
} else {
$titlenew = trim($_G['gp_titlenew']);
$_G['gp_identifiernew'] = trim($_G['gp_identifiernew']);
if (!$titlenew || !$_G['gp_identifiernew']) {
cpmsg('threadtype_infotypes_option_invalid', '', 'error');
}
示例12: cplang
<br /><span class="smalltxt"><?php
cplang('forums_edit_perm_formula_comment', null, true);
?>
</span>
</td></tr>
<?php
showtablefooter();
showtableheader('', 'noborder fixpadding');
$forum['spviewperm'] = explode("\t", $forum['spviewperm']);
showsetting('forums_edit_perm_spview', array('spviewpermnew', $spviewgroup), $forum['spviewperm'], 'mcheckbox');
showsetting('forums_edit_perm_formulapermmessage', 'formulapermmessagenew', $forum['formulapermmessage'], 'textarea');
showtablefooter();
}
if ($pluginsetting) {
showtagfooter('div');
showtagheader('div', 'plugin', $anchor == 'plugin');
showtableheader('', 'noborder fixpadding');
foreach ($pluginsetting as $setting) {
showtitle($setting['name']);
foreach ($setting['setting'] as $varid => $var) {
if ($var['type'] != 'select') {
showsetting($var['title'], 'pluginnew[' . $varid . ']', $forum['plugin'][$varid], $var['type'], '', 0, $var['description']);
} else {
showsetting($var['title'], array('pluginnew[' . $varid . ']', $var['select']), $forum['plugin'][$varid], $var['type'], '', 0, $var['description']);
}
}
}
showtablefooter();
}
showtagfooter('div');
showtableheader('', 'notop');
示例13: searchmembers
function searchmembers($operation = '')
{
global $db, $tablepre, $usergroupid, $username, $srchemail, $lower, $higher, $extcredits, $submit, $lang;
$groupselect = array();
$usergroupid = isset($usergroupid) && is_array($usergroupid) ? $usergroupid : array();
$query = $db->query("SELECT type, groupid, grouptitle, radminid FROM {$tablepre}usergroups WHERE groupid NOT IN ('6', '7') ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid");
while ($group = $db->fetch_array($query)) {
$group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type'];
$groupselect[$group['type']] .= "<option value=\"{$group['groupid']}\" " . (in_array($group['groupid'], $usergroupid) ? 'selected' : '') . ">{$group['grouptitle']}</option>\n";
}
$groupselect = '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($groupselect['special'] ? '<optgroup label="' . $lang['usergroups_special'] . '">' . $groupselect['special'] . '</optgroup>' : '') . ($groupselect['specialadmin'] ? '<optgroup label="' . $lang['usergroups_specialadmin'] . '">' . $groupselect['specialadmin'] . '</optgroup>' : '') . '<optgroup label="' . $lang['usergroups_system'] . '">' . $groupselect['system'] . '</optgroup>';
$monthselect = $dayselect = '';
for ($m = 1; $m <= 12; $m++) {
$m = sprintf("%02d", $m);
$monthselect .= "<option value=\"{$m}\" " . ($birthmonth == $m ? 'selected' : '') . ">{$m}</option>\n";
}
for ($d = 1; $d <= 31; $d++) {
$d = sprintf("%02d", $d);
$dayselect .= "<option value=\"{$d}\" " . ($birthday == $d ? 'selected' : '') . ">{$d}</option>\n";
}
showtagheader('div', 'searchmembers', !$submit);
echo '<script src="include/js/calendar.js" type="text/javascript"></script>';
showformheader("members&operation={$operation}", "onSubmit=\"if(\$('updatecredittype1') && \$('updatecredittype1').checked && !window.confirm('{$lang['members_reward_clean_alarm']}')){return false;} else {return true;}\"");
showtableheader();
showsetting('members_search_user', 'username', $username, 'text');
showsetting('members_search_uid', 'uid', $uid, 'text');
showsetting('members_search_group', '', '', '<select name="usergroupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $usergroupid) ? ' selected' : '') . '>' . lang('unlimited') . '</option>' . $groupselect . '</select>');
showtagheader('tbody', 'advanceoption');
showsetting('members_search_email', 'srchemail', $srchemail, 'text');
showsetting("{$lang['credits']} {$lang['members_search_between']}", array("higher[credits]", "lower[credits]"), array($higher[credits], $lower[credits]), 'range');
if (!empty($extcredits)) {
foreach ($extcredits as $id => $credit) {
showsetting("{$credit['title']} {$lang['members_search_between']}", array("higher[extcredits{$id}]", "lower[extcredits{$id}]"), array($higher['extcredits' . $id], $lower['extcredits' . $id]), 'range');
}
}
showsetting('members_search_postsrange', array('postshigher', 'postslower'), array($postshigher, $postslower), 'range');
showsetting('members_search_regip', 'regip', $regip, 'text');
showsetting('members_search_lastip', 'lastip', $lastip, 'text');
showsetting('members_search_regdaterange', array('regdateafter', 'regdatebefore'), array($regdateafter, $regdatebefore), 'daterange');
showsetting('members_search_lastvisitrange', array('lastvisitafter', 'lastvisitbefore'), array($lastvisitafter, $lastvisitbefore), 'daterange');
showsetting('members_search_lastpostrange', array('lastpostafter', 'lastpostbefore'), array($lastpostafter, $lastpostbefore), 'daterange');
showsetting('members_search_birthday', '', '', '<input type="text" class="txt" name="birthyear" style="width:86px; margin-right:0" value="' . dhtmlspecialchars($year) . '"> ' . $lang['year'] . ' <input type="text" class="txt" name="birthmonth" style="width:45px; margin-right:0" value="' . dhtmlspecialchars($month) . '"> ' . $lang['month'] . ' <input type="text" class="txt" name="birthday" style="width:45px; margin-right:0" value="' . dhtmlspecialchars($day) . '"> ' . $lang['day']);
showtagfooter('tbody');
showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options');
showtablefooter();
showformfooter();
showtagfooter('div');
}
示例14: showsetting
}
showsetting('setting_ranklist_update_cache_choose', array('update_ranklist_cache', $ranklistarray), '', 'mcheckbox');
showtablerow('', 'colspan="10" class="lineheight"', $lang['setting_ranklist_cache_comment']);
showtablefooter();
showtableheader('', 'notop');
showhiddenfields(array('updateranklistcache' => 0));
showsubmit('', '', '<input type="submit" class="btn" name="settingsubmit" value="' . cplang('setting_ranklist_update_cache') . '" onclick="this.form.updateranklistcache.value=1">');
showtablefooter();
showformfooter();
exit;
} elseif ($operation == 'mobile') {
$setting['mobile'] = unserialize($setting['mobile']);
showtips('setting_mobile_status_tips');
showtableheader('setting_mobile_status', '', 'id="status"' . ($_G['gp_anchor'] != 'status' ? ' style="display: none"' : ''));
showsetting('setting_mobile_allowmobile', array('settingnew[mobile][allowmobile]', array(array(1, $lang['yes'], array('mobileext' => '')), array(0, $lang['no'], array('mobileext' => 'none'))), TRUE), $setting['mobile']['allowmobile'] ? $setting['mobile']['allowmobile'] : 0, 'mradio');
showtagheader('tbody', 'mobileext', $setting['mobile']['allowmobile'], 'sub');
showsetting('setting_mobile_mobileforward', 'settingnew[mobile][mobileforward]', $setting['mobile']['mobileforward'], 'radio');
showsetting('setting_mobile_register', 'settingnew[mobile][mobileregister]', $setting['mobile']['mobileregister'], 'radio');
showsetting('setting_mobile_seccode', 'settingnew[mobile][mobileseccode]', $setting['mobile']['mobileseccode'], 'radio');
showsetting('setting_mobile_simpletype', array('settingnew[mobile][mobilesimpletype]', array(array(0, cplang('setting_mobile_simpletype_no')), array(1, cplang('setting_mobile_simpletype_yes')))), $setting['mobile']['mobilesimpletype'] ? $setting['mobile']['mobilesimpletype'] : 0, 'mradio');
showsetting('setting_mobile_topicperpage', 'settingnew[mobile][mobiletopicperpage]', $setting['mobile']['mobiletopicperpage'] ? $setting['mobile']['mobiletopicperpage'] : 10, 'text');
showsetting('setting_mobile_postperpage', 'settingnew[mobile][mobilepostperpage]', $setting['mobile']['mobilepostperpage'] ? $setting['mobile']['mobilepostperpage'] : 5, 'text');
showsetting('setting_mobile_cachetime', 'settingnew[mobile][mobilecachetime]', $setting['mobile']['mobilecachetime'] ? $setting['mobile']['mobilecachetime'] : 0, 'text');
showsetting('setting_mobile_index_forumview', array('settingnew[mobile][mobileforumview]', array(array(1, $lang['pack']), array(0, $lang['unwind']))), $setting['mobile']['mobileforumview'] ? $setting['mobile']['mobileforumview'] : 0, 'mradio');
showsetting('setting_mobile_come_from', 'settingnew[mobile][mobilecomefrom]', $setting['mobile']['mobilecomefrom'], 'textarea');
showsetting('setting_mobile_preview', 'settingnew[mobile][mobilepreview]', $setting['mobile']['mobilepreview'], 'radio');
showtagfooter('tbody');
showsubmit('settingsubmit');
showformfooter();
showtablefooter();
exit;
示例15: showsearchform
function showsearchform($operation = '')
{
global $_G, $lang;
$groupselect = array();
$usergroupid = isset($_G['gp_usergroupid']) && is_array($_G['gp_usergroupid']) ? $_G['gp_usergroupid'] : array();
$query = DB::query("SELECT type, groupid, grouptitle, radminid FROM " . DB::table('common_usergroup') . " WHERE groupid NOT IN ('6', '7') ORDER BY (creditshigher<>'0' || creditslower<>'0'), creditslower, groupid");
while ($group = DB::fetch($query)) {
$group['type'] = $group['type'] == 'special' && $group['radminid'] ? 'specialadmin' : $group['type'];
$groupselect[$group['type']] .= "<option value=\"{$group['groupid']}\" " . (in_array($group['groupid'], $usergroupid) ? 'selected' : '') . ">{$group['grouptitle']}</option>\n";
}
$groupselect = '<optgroup label="' . $lang['usergroups_member'] . '">' . $groupselect['member'] . '</optgroup>' . ($groupselect['special'] ? '<optgroup label="' . $lang['usergroups_special'] . '">' . $groupselect['special'] . '</optgroup>' : '') . ($groupselect['specialadmin'] ? '<optgroup label="' . $lang['usergroups_specialadmin'] . '">' . $groupselect['specialadmin'] . '</optgroup>' : '') . '<optgroup label="' . $lang['usergroups_system'] . '">' . $groupselect['system'] . '</optgroup>';
showtagheader('div', 'searchmembers', !$_G['gp_submit']);
echo '<script src="static/js/calendar.js" type="text/javascript"></script>';
echo '<style type="text/css">#residedistrictbox select, #birthdistrictbox select{width: auto;}</style>';
showformheader("plugins&operation=config&do=" . $_G['gp_do'] . "&identifier=smstong&pmod=sendsms", "onSubmit=\"if(\$('updatecredittype1') && \$('updatecredittype1').checked && !window.confirm('{$lang['members_reward_clean_alarm']}')){return false;} else {return true;}\"");
showtableheader();
showsetting('members_search_user', 'username', $_G['gp_username'], 'text');
showsetting('members_search_uid', 'uid', $_G['gp_uid'], 'text');
showsetting('members_search_group', '', '', '<select name="groupid[]" multiple="multiple" size="10">' . $groupselect . '</select>');
showtablefooter();
showtableheader();
$_G['showsetting_multirow'] = 1;
showtagheader('tbody', 'advanceoption');
if (!empty($_G['setting']['connect']['allow'])) {
showsetting('members_search_conisbind', array('conisbind', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_conisbind'], 'mradio');
showsetting('members_search_uinblacklist', array('uin_low', array(array(1, $lang['yes']), array(0, $lang['no'])), 1), $_G['gp_uin_low'], 'mradio');
}
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";
}
//.........这里部分代码省略.........