本文整理汇总了PHP中showtablefooter函数的典型用法代码示例。如果您正苦于以下问题:PHP showtablefooter函数的具体用法?PHP showtablefooter怎么用?PHP showtablefooter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showtablefooter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: admincp_show
function admincp_show($setting)
{
global $_G;
$creditset = $setting['MarketCredit'];
showtableheader('积分价格', 'notop', 'id="creditbody"');
include template('dsu_medalCenter:admin_extcredit');
showtablefooter();
}
示例2: 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>';
}
示例3: shownewsletter
function shownewsletter()
{
global $lang;
showtableheader();
showsetting('members_newsletter_subject', 'subject', '', 'text');
showsetting('members_newsletter_message', 'message', '', 'textarea');
if ($_GET['do'] == 'mobile') {
showsetting('members_newsletter_system', 'system', 0, 'radio');
showhiddenfields(array('notifymembers' => 'mobile'));
} else {
showsetting('members_newsletter_method', array('notifymembers', array(array('email', $lang['email'], array('pmextra' => 'none', 'posttype' => '')), array('notice', $lang['notice'], array('pmextra' => 'none', 'posttype' => '')), array('pm', $lang['grouppm'], array('pmextra' => '', 'posttype' => 'none')))), 'pm', 'mradio');
showtagheader('tbody', 'posttype', '', 'sub');
showsetting('members_newsletter_posttype', array('posttype', array(array(0, cplang('members_newsletter_posttype_text')), array(1, cplang('members_newsletter_posttype_html'))), TRUE), '0', 'mradio');
showtagfooter('tbody');
showtagheader('tbody', 'pmextra', true, 'sub');
showsetting('members_newsletter_system', 'system', 0, 'radio');
showtagfooter('tbody');
}
showsetting('members_newsletter_num', 'pertask', 100, 'text');
showtablefooter();
}
示例4: siteftp_form
function siteftp_form($action)
{
showformheader($action);
showtableheader('cloudaddons_ftp_setting');
showsetting('setting_attach_remote_enabled_ssl', 'siteftp[ssl]', '', 'radio');
showsetting('setting_attach_remote_ftp_host', 'siteftp[host]', '', 'text');
showsetting('setting_attach_remote_ftp_port', 'siteftp[port]', '21', 'text');
showsetting('setting_attach_remote_ftp_user', 'siteftp[username]', '', 'text');
showsetting('setting_attach_remote_ftp_pass', 'siteftp[password]', '', 'text');
showsetting('setting_attach_remote_ftp_pasv', 'siteftp[pasv]', 0, 'radio');
showsetting('setting_attach_ftp_dir', 'siteftp[attachdir]', '', 'text');
showsubmit('settingsubmit');
showtablefooter();
showformfooter();
}
示例5: 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');
}
示例6: showSearchForm
function showSearchForm() {
require_once libfile('function/forumlist');
showformheader('cloud&operation=qqgroup&anchor=block&op=searchForm', 'onSubmit="ajaxGetSearchResultThreads(); return false;"', 'search_form');
showtableheader();
$orderoptions = array('views', 'replies', 'heats', 'dateline', 'lastpost', 'recommends');
$orderoption = '';
foreach($orderoptions as $value) {
$orderoption .= '<option value="'.$value.'" '.($value == 'dateline' ? 'selected="selected"' : '').'>'.cplang('qqgroup_search_order_'.$value).'</option>';
}
$datelineoptions = array(1, 2, 3, 4);
$datelineoption = '';
foreach($datelineoptions as $value) {
$datelineoption .= '<option value="'.$value.'" '.($value == 4 ? 'selected="selected"' : '').'>'.cplang(sprintf('qqgroup_search_dateline_%s', $value)).'</option>';
}
echo '
<tr>
<td><select id="srchorder" name="srchorder" onchange="ajaxChangeSearch();">'.$orderoption.'</select></td>
<td><select id="srchdateline" name="srchdateline" onChange="ajaxChangeSearch();">'.$datelineoption.'</select></td>
<td><label for="srchtid">'.cplang('qqgroup_search_tid').'</label></td>
<td><input type="text" value="" id="srchtid" name="srchtid" style="width:80px;" /></td>
<td><input type="submit" value="'.cplang('qqgroup_search_button').'" id="search_submit" name="search_submit" class="btn" /></td>
</tr>
';
showtablefooter();
showformfooter();
}
示例7: showtips
function showtips($tips, $id = 'tips', $display = TRUE)
{
$tips = cplang($tips);
$tips = preg_replace('#</li>\\s*<li>#i', '</li><li>', $tips);
$tmp = explode('</li><li>', substr($tips, 4, -5));
if (count($tmp) > 4) {
$tips = '<li>' . $tmp[0] . '</li><li>' . $tmp[1] . '</li><li id="' . $id . '_more" style="border: none; background: none; margin-bottom: 6px;"><a href="###" onclick="var tiplis = $(\'' . $id . 'lis\').getElementsByTagName(\'li\');for(var i = 0; i < tiplis.length; i++){tiplis[i].style.display=\'\'}$(\'' . $id . '_more\').style.display=\'none\';">' . cplang('tips_all') . '...</a></li>';
foreach ($tmp as $k => $v) {
if ($k > 1) {
$tips .= '<li style="display: none">' . $v . '</li>';
}
}
}
unset($tmp);
showtableheader('tips', '', 'id="' . $id . '"' . (!$display ? ' style="display: none;"' : ''), 0);
showtablerow('', 'class="tipsblock"', '<ul id="' . $id . 'lis">' . $tips . '</ul>');
showtablefooter();
}
示例8: showalbummod
function showalbummod()
{
global $_G, $_SGLOBAL, $_SC, $norepeat, $albumid, $mycats;
//批量操作方法
showtableheader(lang('operation_form'), 'nobottom');
showsubtitle(array('', 'operation', 'option', 'description'));
showtablerow('', array('class="td25"', 'class="td24"', 'class="td24" style="width:360px;"', 'class="rowform" style="width:auto;"'), array('', lang('import_norepeat'), '<input class="checkbox" type="checkbox" name="namenorepeat" id="norepeat" value="1" onclick="norepeatcheck();" ' . ($norepeat ? ' checked="checked" ' : '') . '/>', lang('import_norepeat_comment')));
if ($albumid > 0) {
showtablerow('', array('class="td25"', 'class="td24"', 'class="td24"', 'class="rowform" style="width:auto;"'), array('<input class="radio" type="radio" name="albumop" value="choose" />', lang('import_albumchoose'), $albumid, lang('import_albumchoose_comment')));
}
showtablerow('', array('class="td25"', 'class="td24"', 'class="td24"', 'class="rowform" style="width:auto;"'), array('<input class="radio" type="radio" name="albumop" value="new" checked="checked" />', lang('import_albumnew'), '<input class="txt" type="text" name="albumname" value="' . $_G['cookie']['i_t_subject'] . '" style="width:350px;" /><br />
<textarea name="albumdesc" style="width:350px; height:80px;">' . $_G['cookie']['i_t_message'] . '</textarea>', lang('import_albumnew_comment')));
$catstr = '';
foreach ($mycats as $value) {
$catstr .= '<option value="' . $value['catid'] . '" >' . $value['name'] . '</option>';
}
showtablerow('', array('class="td25"', 'class="td24"', 'class="td24"', 'class="rowform" style="width:auto;"'), array('', lang('album_catid'), '<select name="catid" id="album_catid" style="width:140px;"><option value="0" selected="selected">' . lang('please_select') . '</option>' . $catstr . '</select>', lang('album_catid_comment')));
showtablerow('', array('colspan="4"'), array('<div id="album_attr"></div>'));
echo '
<script type="text/javascript" charset="' . $_G['charset'] . '">
//分類變更時讀取屬性篩選器
$("#album_catid").change(function() { getAlbumAttrList();});
function getAlbumAttrList() {
jSetCookie("' . $_SC['cookiepre'] . 'imp_catid", $("#album_catid").val(), 900);
$.get(
"batch.attribute.php",
{ ajax:"1", type:"album", typeid:$("#album_catid").val()},
function(data) {
$("#album_attr").html(data);
getAlbumAttrCookie();
$("#album_attr :input").change(function() { setAlbumAttrCookie();});
});
}
//分類改變時讀取相冊屬性cookie
function getAlbumAttrCookie() {
var attrlength = $("#album_attr :input[name^=\'attr_ids\']").length;
var attrkey = "";
var attrvalue ="";
for(var attri=0; attri<attrlength; attri++) {
attrkey = $("#album_attr :input[name^=\'attr_ids\']")[attri].name.substring(9);
attrkey = attrkey.replace("]", "");
attrvalue = jGetCookie("' . $_SC['cookiepre'] . 'imp_attr_"+attrkey);
if(attrvalue!=null) {
$("#album_attr :input[name=\'attr_ids["+attrkey+"]\']").val(attrvalue);
}
}
}
//屬性改變時設置屬性cookie
function setAlbumAttrCookie() {
var attrlength = $("#album_attr :input[name^=\'attr_ids\']").length;
var attrname = "";
var attrvalue ="";
for(var attri=0; attri<attrlength; attri++) {
attrkey = $("#album_attr :input[name^=\'attr_ids\']")[attri].name.substring(9);
attrkey = attrkey.replace("]", "");
attrvalue = $("#album_attr :input[name^=\'attr_ids\']")[attri].value;
jSetCookie("' . $_SC['cookiepre'] . 'imp_attr_"+attrkey, attrvalue, 900);
}
}
//頁面初始化時選擇分類
$(function(){ readAlbumCatid();});
function readAlbumCatid() {
var albumcatid = jGetCookie("' . $_SC['cookiepre'] . 'imp_catid");
if(albumcatid==null) { albumcatid=0;}
$("#album_catid").val(albumcatid);
getAlbumAttrList();
}
</script>';
//屬性聯動
showsubmit('listsubmit', 'submit', '');
showtablefooter();
}
示例9: showRTitle
function showRTitle($appId)
{
global $ak, $sk, $_G, $pluginid;
$str = '';
$str .= '<li>' . sprintf(lang('plugin/bigapp', 'myapp_tip1'), $_G['setting']['plugins']['version']['bigapp']) . '</li>';
$str .= '<li>' . lang('plugin/bigapp', 'myapp_tip2') . $_G['setting']['version'] . '</li>';
$str .= '<li>' . lang('plugin/bigapp', 'myapp_tip3') . '</li>';
//$str .= '<li>' . lang('plugin/bigapp', 'myapp_tip4') . '</li>';
$str .= '<li style="color:red;font-weight:bold">' . lang('plugin/bigapp', 'jump2conf_tip1') . '<a href="' . rtrim($_G['siteurl'], '/') . '/admin.php?action=plugins&operation=config&do=' . $pluginid . '&identifier=bigapp&pmod=buildapp' . '">' . lang('plugin/bigapp', 'menu_app_gen') . '</a>' . lang('plugin/bigapp', 'jump2conf_tip2') . '</li>';
showtips($str, '', true);
$str = '';
$str .= '<li>APP_KEY: ' . $ak . '</li>';
$str .= '<li>APP_SECRET: ' . $sk . '</li>';
$title = lang('plugin/bigapp', 'basic_setting');
$be = checkBoost();
$exit = 0;
if (0 !== $be) {
if (1 == $be) {
$str = '<li>' . lang('plugin/bigapp', 'boost_file_miss1') . '</li>';
} else {
$str = '<li>' . lang('plugin/bigapp', 'boost_file_miss2') . '</li>';
}
$exit = 1;
$title = lang('plugin/bigapp', 'api_invalid');
}
showtips($str, '', true, $title);
showtablefooter();
return $exit;
}
示例10: showModuleParamView
public static function showModuleParamView()
{
$mid = (int) $_GET['moduleid'];
$showSourceTypeFid = PortalModule::getSourceCount($mid, PortalModule::SOURCE_TYPE_NORMAL, array('idtype' => array(PortalModule::SOURCE_TYPE_FID))) > 0;
$showSourceTypeCatid = PortalModule::getSourceCount($mid, PortalModule::SOURCE_TYPE_NORMAL, array('idtype' => array(PortalModule::SOURCE_TYPE_CATID))) > 0;
!$showSourceTypeFid && !$showSourceTypeCatid && cpmsg(Appbyme::lang('mobcent_error_portal_module_param'), '', 'error');
showtagheader('div', 'portal_module_param', true);
showtableheader(Appbyme::lang('mobcent_portal_module_param_edit'));
$digestLang = explode(',', Appbyme::lang('mobcent_portal_module_param_topic_digest'));
$stickLang = explode(',', Appbyme::lang('mobcent_portal_module_param_topic_stick'));
$specialLang = explode(',', Appbyme::lang('mobcent_portal_module_param_topic_special'));
$otherLang = explode(',', Appbyme::lang('mobcent_portal_module_param_other_filter'));
$topicOrderbyLang = explode(',', Appbyme::lang('mobcent_portal_module_param_topic_orderby'));
$timeLang = explode(',', Appbyme::lang('mobcent_portal_module_param_time'));
$topicStyleLang = explode(',', Appbyme::lang('mobcent_portal_module_param_topic_style'));
$articleOrderbyLang = explode(',', Appbyme::lang('mobcent_portal_module_param_article_ordby'));
$module = PortalModule::getModule($mid);
$param = unserialize($module['param']);
$param == false && ($param = PortalModule::initModuleParam());
if ($showSourceTypeFid) {
showsetting($digestLang[0], array('param[topic_digest]', array(array(1, $digestLang[1]), array(2, $digestLang[2]), array(3, $digestLang[3]), array(0, $digestLang[4]))), $param['topic_digest'], 'mcheckbox', '', 0, '', '', '', true);
showsetting($stickLang[0], array('param[topic_stick]', array(array(1, $stickLang[1]), array(2, $stickLang[2]), array(3, $stickLang[3]), array(0, $stickLang[4]))), $param['topic_stick'], 'mcheckbox', '', 0, '', '', '', true);
showsetting($specialLang[0], array('param[topic_special]', array(array(1, $specialLang[1]), array(2, $specialLang[2]), array(3, $specialLang[3]), array(4, $specialLang[4]), array(5, $specialLang[5]), array(0, $specialLang[6]))), $param['topic_special'], 'mcheckbox', '', 0, '', '', '', true);
showsetting($otherLang[0], array('param[other_filter]', array(array('friend', $otherLang[1]), array('follow', $otherLang[2]), array('favoriteForum', $otherLang[3]))), $param['other_filter'], 'mcheckbox', '', 0, '', '', '', true);
showsetting(Appbyme::lang('mobcent_portal_module_param_topic_picrequired'), 'param[topic_picrequired]', $param['topic_picrequired'], 'radio', '', 0, '', '', '', true);
showsetting($topicOrderbyLang[0], array('param[topic_orderby]', array(array('lastpost', $topicOrderbyLang[1]), array('dateline', $topicOrderbyLang[2]), array('replies', $topicOrderbyLang[3]), array('views', $topicOrderbyLang[4]), array('heats', $topicOrderbyLang[5]), array('recommends', $topicOrderbyLang[6]), array('distance', $topicOrderbyLang[7]))), $param['topic_orderby'], 'select', '', 0, '', '', '', true);
showsetting(Appbyme::lang('mobcent_portal_module_param_topic_postdateline'), array('param[topic_postdateline]', array(array(0, $timeLang[0]), array(3600, $timeLang[1]), array(86400, $timeLang[2]), array(604800, $timeLang[3]), array(2592000, $timeLang[4]))), $param['topic_postdateline'], 'select', '', 0, '', '', '', true);
showsetting(Appbyme::lang('mobcent_portal_module_param_topic_lastpost'), array('param[topic_lastpost]', array(array(0, $timeLang[0]), array(3600, $timeLang[1]), array(86400, $timeLang[2]), array(604800, $timeLang[3]), array(2592000, $timeLang[4]))), $param['topic_lastpost'], 'select', '', 0, '', '', '', true);
showsetting(Appbyme::lang('mobcent_portal_module_param_style'), array('param[topic_style]', array(array(1, $topicStyleLang[0]), array(2, $topicStyleLang[1]))), $param['topic_style'], 'select', '', 0, '', '', '', true);
}
if ($showSourceTypeCatid) {
showsetting(Appbyme::lang('mobcent_portal_module_param_article_picrequired'), 'param[article_picrequired]', $param['article_picrequired'], 'radio', '', 0, '', '', '', true);
showsetting(Appbyme::lang('mobcent_portal_module_param_article_starttime'), 'param[article_starttime]', $param['article_starttime'] ? dgmdate($param['article_starttime'], 'Y-n-j H:i') : '', 'calendar', '', 0, '', 1, '', true);
showsetting(Appbyme::lang('mobcent_portal_module_param_article_endtime'), 'param[article_endtime]', $param['article_endtime'] ? dgmdate($param['article_endtime'], 'Y-n-j H:i') : '', 'calendar', '', 0, '', 1, '', true);
showsetting($articleOrderbyLang[0], array('param[article_orderby]', array(array('dateline', $articleOrderbyLang[1]), array('viewnum', $articleOrderbyLang[2]), array('commentnum', $articleOrderbyLang[3]))), $param['article_orderby'], 'select', '', 0, '', '', '', true);
showsetting(Appbyme::lang('mobcent_portal_module_param_article_publishdateline'), array('param[article_publishdateline]', array(array(0, $timeLang[0]), array(3600, $timeLang[1]), array(86400, $timeLang[2]), array(604800, $timeLang[3]), array(2592000, $timeLang[4]))), $param['article_publishdateline'], 'select', '', 0, '', '', '', true);
}
echo '<script type="text/javascript" src="static/js/calendar.js"></script>';
showsubmit('portal_submit', 'submit');
showtablefooter();
showtagfooter('div');
}
示例11: showTaskInfo
function showTaskInfo($appInfo, $confInfo, $shareSettingInfo)
{
global $_G;
$force = '&force=1';
if (isset($_GET['force']) && $_GET['force']) {
$force = '&force=' . $_GET['force'];
}
if (function_exists('iconv')) {
$confInfo['task_info']['app_name'] = iconv('UTF-8', CHARSET . '//ignore', $confInfo['task_info']['app_name']);
$confInfo['task_info']['channel_name'] = iconv('UTF-8', CHARSET . '//ignore', $confInfo['task_info']['channel_name']);
$confInfo['task_info']['bbs_name'] = iconv('UTF-8', CHARSET . '//ignore', $confInfo['task_info']['bbs_name']);
} else {
$confInfo['task_info']['app_name'] = mb_convert_encoding($confInfo['task_info']['app_name'], CHARSET, 'UTF-8');
$confInfo['task_info']['channel_name'] = mb_convert_encoding($confInfo['task_info']['channel_name'], CHARSET, 'UTF-8');
$confInfo['task_info']['bbs_name'] = mb_convert_encoding($confInfo['task_info']['bbs_name'], CHARSET, 'UTF-8');
}
showformheader('plugins&operation=config&do=' . $pluginid . '&identifier=bigapp&pmod=buildapp&createtask=1&task_id=' . $confInfo['task_id'] . $force, 'enctype', 'newtask');
showtableheader(lang('plugin/bigapp', 'conf_tip'));
echo '<tr><td style="line-height:30px;color:red;font-weight:bold">' . lang('plugin/bigapp', 'conf_comment') . '</td></tr>';
showtablefooter();
showtableheader('');
showsetting(lang('plugin/bigapp', 'app_name'), 'app_name', $confInfo['task_info']['app_name'], 'text', 0, 0, lang('plugin/bigapp', 'app_name_comment'), '', '', true);
showsetting(lang('plugin/bigapp', 'package_name'), 'package_name', $confInfo['task_info']['package_name'], 'text', 0, 0, lang('plugin/bigapp', 'package_name_comment'), '', '', true);
showsetting(lang('plugin/bigapp', 'channel_name'), 'channel_name', $confInfo['task_info']['channel_name'], 'text', 0, 0, lang('plugin/bigapp', 'channel_name_comment'), '', '', true);
showsetting(lang('plugin/bigapp', 'bbs_name'), 'bbs_name', $confInfo['task_info']['bbs_name'], 'text', 0, 0, lang('plugin/bigapp', 'bbs_name_comment'), '', '', true);
echo '<tr><td style="line-height:30px;font-weight:bold">' . lang('plugin/bigapp', 'nav_color') . ': </td></tr>';
echo '<tr class="noborder" onmouseover="setfaq(this, \'faqbda4\')"><td class="vtop rowform"><input type="text" name="nav_color" style="width:250px" ' . 'id="color" value="' . $confInfo['task_info']['nav_color'] . '" /></td><td class="vtop tips2" s="1">' . lang('plugin/bigapp', 'nav_color_comment') . '</td></tr>';
//echo '<tr class="noborder" onmouseover="setfaq(this, \'faqbda4\')"><td class="vtop rowform"> <input type="text" name="nav_color" value="' .
// $confInfo['task_info']['nav_color'] . '" style= "color:' . $confInfo['task_info']['nav_color'] .
// ';width:250px" id="nav_color" /></td><td class="vtop tips2" s="1">' . lang('plugin/bigapp', 'nav_color_comment') . '</td></tr>';
$iconUrl = rtrim($_G['siteurl'], '/') . '/' . BigAppConf::$upfileUrl . '&key=' . urlencode('icon_image_s');
$startupUrl = rtrim($_G['siteurl'], '/') . '/' . BigAppConf::$upfileUrl . '&key=' . urlencode('startup_image_s');
$tpl = @file_get_contents(dirname(__FILE__) . '/view/input-file.tpl');
if (is_string($tpl) && strtolower(CHARSET) != 'utf-8' && strtolower(CHARSET) != 'utf8') {
if (function_exists('iconv')) {
$tpl = @iconv('UTF-8', 'GBK//ignore', $tpl);
} else {
if (function_exists('mb_convert_encoding')) {
$tpl = @mb_convert_encoding($tpl, 'GBK', 'UTF-8');
}
}
}
$tpl = str_replace('<% btn_name %>', lang('plugin/bigapp', 'btn_name'), $tpl);
$tpl = str_replace('<% upload_url_icon %>', $iconUrl, $tpl);
$tpl = str_replace('<% error_str %>', lang('plugin/bigapp', 'upload_file_failed'), $tpl);
$tpl = str_replace('<% upid_icon %>', 'icon_image', $tpl);
$tpl = str_replace('<% file_tip_icon %>', lang('plugin/bigapp', 'icon_image_comment'), $tpl);
$tpl = str_replace('<% upload_url_startup %>', $startupUrl, $tpl);
$tpl = str_replace('<% upid_startup %>', 'startup_image', $tpl);
$tpl = str_replace('<% file_tip_startup %>', lang('plugin/bigapp', 'startup_image_comment'), $tpl);
$tpl = str_replace('<% icon_image_title %>', lang('plugin/bigapp', 'icon_image'), $tpl);
$tpl = str_replace('<% startup_image_title %>', lang('plugin/bigapp', 'startup_image'), $tpl);
$tpl = str_replace('<% app_charset %>', CHARSET, $tpl);
echo $tpl;
$var = array('os', array(array(0, 'android'), array(1, 'ios')));
$tmp = $confInfo['task_info']['os'];
$i = 0;
$val = array();
while ($tmp != 0) {
if (1 == ($tmp & 1)) {
$val[] = $i;
}
$i++;
$tmp = $tmp >> 1;
}
$var1 = array('choose_release', array(array(0, lang('plugin/bigapp', 'choose_release_title'))));
//////////////////////////////////////
showsetting(lang('plugin/bigapp', 'version_name'), 'version_name', $confInfo['task_info']['version_name'], 'text', 0, 0, lang('plugin/bigapp', 'version_name_comment'), '', '', true);
/*
echo '<tr><td style="line-height:30px;font-weight:bold">APP版本号: </td></tr>';
echo '<tr class="noborder" onmouseover="setfaq(this, \'faq7088\')">'.
'<td class="vtop rowform">'.
' <select name="app_version" id="app_version" class="txt" style="cursor:pointer;"></select></td>'.
'<td class="vtop tips2" s="1">输入两位或三位版本号(如1.0.2, 2.1)</td></tr>';
*/
//////////////////////////////////////
echo '<tr><td style="line-height:30px;color:red;font-weight:bold">' . lang('plugin/bigapp', 'key_store_setting') . '</td></tr>';
//key store别名
showsetting(lang('plugin/bigapp', 'key_alias'), 'key_alias', $shareSettingInfo['data']['key_alias'], 'text', 0, 0, lang('plugin/bigapp', 'key_alias_comment'), '', '', true);
//秘钥库密码
showsetting(lang('plugin/bigapp', 'store_password') . '(store password)', 'store_password', $shareSettingInfo['data']['store_password'], 'text', 0, 0, lang('plugin/bigapp', 'store_password_comment'), '', '', true);
//key store密码
showsetting(lang('plugin/bigapp', 'key_password') . '(key password)', 'key_password', $shareSettingInfo['data']['key_password'], 'text', 0, 0, lang('plugin/bigapp', 'key_password_comment'), '', '', true);
//key store文件上传
showsetting(lang('plugin/bigapp', 'key_store_file'), 'key_store_file', $shareSettingInfo['data']['key_store_name'], 'file', 0, 0, lang('plugin/bigapp', 'key_store_file_comment'), '', '', true);
$val1[0] = 1;
showsetting(lang('plugin/bigapp', ''), $var1, $val1, 'mcheckbox', 0, 0, lang('plugin/bigapp', 'choose_release_msg'), '', '', true);
$shareInfo = (array) json_decode($shareSettingInfo['data']['share_plat'], true);
echo '<tr><td style="line-height:30px;color:red;font-weight:bold">' . lang('plugin/bigapp', 'share_plat_setting') . '</td></tr>';
echo '<tr><td style="line-height:30px;font-weight:bold">' . lang('plugin/bigapp', 'wechat') . '</td></tr>';
showsetting('App ID', 'app_id_wechat', $shareInfo[0]['app_id'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
showsetting('Secret Key', 'sec_key_wechat', $shareInfo[0]['sec_key'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
echo '<tr><td style="line-height:30px;font-weight:bold">QQ</td></tr>';
showsetting('App ID', 'app_id_qq', $shareInfo[1]['app_id'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
showsetting('Secret Key', 'sec_key_qq', $shareInfo[1]['sec_key'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
echo '<tr><td style="line-height:30px;font-weight:bold">' . lang('plugin/bigapp', 'sina') . '</td></tr>';
showsetting('App ID', 'app_id_sina', $shareInfo[2]['app_id'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
showsetting('Secret Key', 'sec_key_sina', $shareInfo[2]['sec_key'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
showsetting('Redirect Url', 'redirect_url_sina', $shareInfo[2]['redirect_url_sina'], 'text', 0, 0, lang('plugin/bigapp', ''), '', '', true);
showsetting(lang('plugin/bigapp', 'app_type'), $var, $val, 'mcheckbox', 0, 0, lang('plugin/bigapp', 'app_type_comment'), '', '', true);
//.........这里部分代码省略.........
示例12: admincp_show
//.........这里部分代码省略.........
}
$('formulapermnew').value = $('formulapermnew').value.substr(0, $('formulapermnew').selectionStart) + text + $('formulapermnew').value.substr($('formulapermnew').selectionEnd);
} else if(document.selection && document.selection.createRange) {
var sel = document.selection.createRange();
if(textend != '') {
text = text + sel.text + textend;
}
sel.text = text.replace(/\r?\n/g, '\r\n');
sel.moveStart('character', -strlen(text));
} else {
$('formulapermnew').value += text;
}
formulaexp();
}
var formulafind = new Array('digestposts', 'posts', 'threads');
var formulareplace = new Array(<?php
echo $formulareplace;
?>
);
function formulaexp() {
var result = $('formulapermnew').value;
<?php
$extcreditsbtn = '';
for ($i = 1; $i <= 8; $i++) {
$extcredittitle = $_G['setting']['extcredits'][$i]['title'] ? $_G['setting']['extcredits'][$i]['title'] : $lang['setting_credits_formula_extcredits'] . $i;
echo 'result = result.replace(/extcredits' . $i . '/g, \'<u>' . $extcredittitle . '</u>\');';
$extcreditsbtn .= '<a href="###" onclick="insertunit(\'extcredits' . $i . '\')">' . $extcredittitle . '</a> ';
}
echo 'result = result.replace(/digestposts/g, \'<u>' . $lang['setting_credits_formula_digestposts'] . '</u>\');';
echo 'result = result.replace(/posts/g, \'<u>' . $lang['setting_credits_formula_posts'] . '</u>\');';
echo 'result = result.replace(/threads/g, \'<u>' . $lang['setting_credits_formula_threads'] . '</u>\');';
echo 'result = result.replace(/oltime/g, \'<u>' . $lang['setting_credits_formula_oltime'] . '</u>\');';
echo 'result = result.replace(/and/g, \' ' . $lang['setting_credits_formulaperm_and'] . ' \');';
echo 'result = result.replace(/or/g, \' ' . $lang['setting_credits_formulaperm_or'] . ' \');';
echo 'result = result.replace(/>=/g, \'≥\');';
echo 'result = result.replace(/<=/g, \'≤\');';
?>
$('formulapermexp').innerHTML = result;
}
</script>
<tr><td colspan="2"><div class="extcredits">
<?php
echo $extcreditsbtn;
?>
<br />
<a href="###" onclick="insertunit(' digestposts ')"><?php
echo $lang['setting_credits_formula_digestposts'];
?>
</a>
<a href="###" onclick="insertunit(' posts ')"><?php
echo $lang['setting_credits_formula_posts'];
?>
</a>
<a href="###" onclick="insertunit(' threads ')"><?php
echo $lang['setting_credits_formula_threads'];
?>
</a>
<a href="###" onclick="insertunit(' oltime ')"><?php
echo $lang['setting_credits_formula_oltime'];
?>
</a>
<a href="###" onclick="insertunit(' + ')"> + </a>
<a href="###" onclick="insertunit(' - ')"> - </a>
<a href="###" onclick="insertunit(' * ')"> * </a>
<a href="###" onclick="insertunit(' / ')"> / </a>
<a href="###" onclick="insertunit(' > ')"> > </a>
<a href="###" onclick="insertunit(' >= ')"> >= </a>
<a href="###" onclick="insertunit(' < ')"> < </a>
<a href="###" onclick="insertunit(' <= ')"> <= </a>
<a href="###" onclick="insertunit(' = ')"> = </a>
<a href="###" onclick="insertunit(' (', ') ')"> ( ) </a>
<a href="###" onclick="insertunit(' and ')"> <?php
echo $lang['setting_credits_formulaperm_and'];
?>
</a>
<a href="###" onclick="insertunit(' or ')"> <?php
echo $lang['setting_credits_formulaperm_or'];
?>
</a> <br />
</div><div id="formulapermexp" class="marginbot diffcolor2"><?php
echo $formulapermexp;
?>
</div>
<textarea name="formulapermnew" id="formulapermnew" style="width: 80%" rows="3" onkeyup="formulaexp()"><?php
echo dhtmlspecialchars($medal['permission']);
?>
</textarea>
<br /><span class="smalltxt"><?php
echo $lang['medals_permformula'];
?>
</span>
<br /><?php
echo $lang['creditwizard_current_formula_notice'];
?>
<script type="text/JavaScript">formulaexp()</script>
</td></tr>
<?php
showtablefooter();
}
示例13: 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/forum_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', $_G['gp_username'], 'text');
showsetting('members_search_uid', 'uid', $_G['gp_uid'], 'text');
showsetting('members_search_group', '', '', '<select name="groupid[]" multiple="multiple" size="10"><option value="all"' . (in_array('all', $usergroupid) ? ' selected' : '') . '>' . cplang('unlimited') . '</option>' . $groupselect . '</select>');
showtagheader('tbody', 'advanceoption');
showsetting('members_search_email', 'srchemail', $_G['gp_srchemail'], 'text');
showsetting("{$lang['credits']} {$lang['members_search_between']}", array("credits_high", "credits_low"), array($_G['gp_credits_high'], $_G['gp_credtis_lower']), 'range');
if (!empty($_G['setting']['extcredits'])) {
foreach ($_G['setting']['extcredits'] as $id => $credit) {
showsetting("{$credit['title']} {$lang['members_search_between']}", array("extcredits{$id}" . "_high", "extcredits{$id}" . "_low"), array($_G['gp_extcredits' . $id . '_high'], $_G['gp_extcredits' . $id . '_low']), 'range');
}
}
showsetting('members_search_postsrange', array('postshigher', 'postslower'), array($_G['gp_postshigher'], $_G['gp_postslower']), 'range');
showsetting('members_search_regip', 'regip', $_G['gp_regip'], 'text');
showsetting('members_search_lastip', 'lastip', $_G['gp_lastip'], 'text');
showsetting('members_search_regdaterange', array('regdateafter', 'regdatebefore'), array($_G['gp_regdateafter'], $_G['gp_regdatebefore']), 'daterange');
showsetting('members_search_lastvisitrange', array('lastvisitafter', 'lastvisitbefore'), array($_G['gp_lastvisitafter'], $_G['gp_lastvisitbefore']), 'daterange');
showsetting('members_search_lastpostrange', array('lastpostafter', 'lastpostbefore'), array($_G['gp_lastpostafter'], $_G['gp_lastpostbefore']), 'daterange');
$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']);
foreach ($_G['cache']['profilesetting'] as $fieldid => $value) {
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 == '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');
showsubmit('submit', $operation == 'clean' ? 'members_delete' : 'search', '', 'more_options');
showtablefooter();
showformfooter();
showtagfooter('div');
}
示例14: anchorfooter
function anchorfooter(){
showtablefooter();
showtagfooter('div');
}
示例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";
}
//.........这里部分代码省略.........