本文整理汇总了PHP中profile_setting函数的典型用法代码示例。如果您正苦于以下问题:PHP profile_setting函数的具体用法?PHP profile_setting怎么用?PHP profile_setting使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了profile_setting函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: nl2br
}
$bbrulestxt = nl2br("\n{$bbrulestxt}\n\n");
if ($_G['gp_action'] == 'activation') {
$auth = dhtmlspecialchars($auth);
}
if ($seccodecheck) {
$seccode = random(6, 1);
}
if ($_G['setting']['secqaa']['status'][1]) {
$seccode = random(1, 1) * 1000000 + substr($seccode, -6);
}
$username = dhtmlspecialchars($username);
$htmls = $settings = array();
foreach ($_G['cache']['fields_register'] as $field) {
$fieldid = $field['fieldid'];
$html = profile_setting($fieldid);
if ($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
$navtitle = $_G['setting']['reglinkname'];
include template('member/register');
} else {
if ($_G['setting']['regstatus'] == 2 && empty($invite)) {
showmessage('not_open_registration_invite');
}
if ($bbrules && $bbrulehash != $_POST['agreebbrule']) {
showmessage('register_rules_agree');
}
$activation = array();
示例2: while
}
}
}
if ($vid) {
$query = DB::query('SELECT field FROM ' . DB::table('common_member_verify_info') . " WHERE uid='{$_G['uid']}' AND verifytype='{$vid}'");
while ($value = DB::fetch($query)) {
$field = unserialize($value['field']);
foreach ($field as $key => $fvalue) {
$space[$key] = $fvalue;
}
}
}
$htmls = $settings = array();
foreach ($allowitems as $fieldid) {
if (!in_array($fieldid, array('sightml', 'customstatus', 'timeoffset'))) {
$html = profile_setting($fieldid, $space, $vid ? false : true);
if ($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
}
}
include template("home/spacecp_profile");
function profile_showerror($key, $extrainfo)
{
echo '<script>';
echo 'parent.show_error("' . $key . '", "' . $extrainfo . '");';
echo '</script>';
exit;
}
示例3: dreferer
$_G['qc']['dreferer'] = dreferer();
if (!$_G['qc']['connect_auth_hash']) {
$_G['qc']['connect_auth_hash'] = $_G['cookie']['con_auth_hash'];
}
$conopenid = authcode($_G['qc']['connect_auth_hash']);
if (empty($conopenid)) {
showmessage('qqconnect:connect_login_first', $referer);
}
$_G['qc']['connect_is_feed'] = true;
$_G['qc']['connect_app_id'] = $_G['setting']['connectappid'];
$_G['qc']['connect_openid'] = $conopenid;
unset($auth_code, $conopenid);
$_G['qc']['connect_is_notify'] = true;
foreach ($_G['cache']['fields_register'] as $field) {
$fieldid = $field['fieldid'];
$html = profile_setting($fieldid, $connectdefault);
if ($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
} else {
if (!empty($_G['setting']['checkuinlimit']) && !empty($_GET['uin'])) {
if ($_G['qc']['uinlimit']) {
showmessage('qqconnect:connect_register_uinlimit', '', array('limit' => $this->setting['connect']['register_uinlimit']));
}
if (!$_G['setting']['regconnect']) {
showmessage('qqconnect:connect_register_closed');
}
}
$conuin = $this->connect_guest['conuin'];
示例4: showsetting
showsetting('members_edit_regip', 'regipnew', $member['regip'], 'text');
showsetting('members_edit_regdate', 'regdatenew', $member['regdate'], 'text');
showsetting('members_edit_lastvisit', 'lastvisitnew', $member['lastvisit'], 'text');
showsetting('members_edit_lastip', 'lastipnew', $member['lastip'], 'text');
showsetting('members_edit_addsize', 'addsizenew', $member['addsize'], 'text');
showsetting('members_edit_addfriend', 'addfriendnew', $member['addfriend'], 'text');
showsetting('members_edit_timeoffset', 'timeoffsetnew', $member['timeoffset'], 'text');
showsetting('members_edit_invisible', 'invisiblenew', $member['invisible'], 'radio');
showtitle('members_edit_option');
showsetting('members_edit_cstatus', 'cstatusnew', $member['customstatus'], 'text');
showsetting('members_edit_signature', 'signaturenew', $member['signature'], 'textarea');
if ($fields) {
showtitle('members_profile');
include_once libfile('function/profile');
foreach ($fields as $fieldid => $fieldtitle) {
$html = profile_setting($fieldid, $member);
if ($html) {
showsetting($fieldtitle, '', '', $html);
}
}
}
showsubmit('editsubmit');
showtablefooter();
showformfooter();
} else {
loaducenter();
require_once libfile('function/discuzcode');
$questionid = $_GET['clearquestion'] ? 0 : '';
$ucresult = uc_user_edit(addslashes($member['username']), $_GET['passwordnew'], $_GET['passwordnew'], addslashes(strtolower(trim($_GET['emailnew']))), 1, $questionid);
if ($ucresult < 0) {
if ($ucresult == -4) {
示例5: dgmdate
$activity['expiration'] = $activity['expiration'] ? dgmdate($activity['expiration']) : 0;
$activity['attachurl'] = $activity['thumb'] = '';
if ($activity['ufield']) {
$activity['ufield'] = dunserialize($activity['ufield']);
if ($activity['ufield']['userfield']) {
$htmls = $settings = array();
require_once libfile('function/profile');
foreach ($activity['ufield']['userfield'] as $fieldid) {
if (empty($ufielddata['userfield'])) {
$memberprofile = C::t('common_member_profile')->fetch($_G['uid']);
foreach ($activity['ufield']['userfield'] as $val) {
$ufielddata['userfield'][$val] = $memberprofile[$val];
}
unset($memberprofile);
}
$html = profile_setting($fieldid, $ufielddata['userfield'], false, true);
if ($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
}
} else {
$activity['ufield'] = '';
}
if ($activity['aid']) {
$attach = C::t('forum_attachment_n')->fetch('tid:' . $_G['tid'], $activity['aid']);
if ($attach['isimage']) {
$activity['attachurl'] = ($attach['remote'] ? $_G['setting']['ftp']['attachurl'] : $_G['setting']['attachurl']) . 'forum/' . $attach['attachment'];
$activity['thumb'] = $attach['thumb'] ? getimgthumbname($activity['attachurl']) : $activity['attachurl'];
$activity['width'] = $attach['thumb'] && $_G['setting']['thumbwidth'] < $attach['width'] ? $_G['setting']['thumbwidth'] : $attach['width'];
示例6: on_register
//.........这里部分代码省略.........
$sendurl = false;
}
}
}
if (!submitcheck('regsubmit', 0, $seccodecheck, $secqaacheck)) {
if ($_GET['action'] == 'activation') {
$auth = explode("\t", authcode($auth, 'DECODE'));
if (FORMHASH != $auth[1]) {
showmessage('register_activation_invalid', 'member.php?mod=logging&action=login');
}
$username = $auth[0];
$activationauth = authcode("{$auth['0']}\t" . FORMHASH, 'ENCODE');
$sendurl = false;
}
if (!$sendurl) {
if ($fromuid) {
$member = getuserbyuid($fromuid);
if (!empty($member)) {
$fromuser = dhtmlspecialchars($member['username']);
} else {
dsetcookie('promotion');
}
}
if ($_GET['action'] == 'activation') {
$auth = dhtmlspecialchars($auth);
}
if ($seccodecheck) {
$seccode = random(6, 1);
}
$username = dhtmlspecialchars($username);
$htmls = $settings = array();
foreach ($_G['cache']['fields_register'] as $field) {
$fieldid = $field['fieldid'];
$html = profile_setting($fieldid, array(), false, false, true);
if ($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
$navtitle = $this->setting['reglinkname'];
if ($this->extrafile && file_exists($this->extrafile)) {
require_once $this->extrafile;
}
}
$bbrulestxt = nl2br("\n{$bbrulestxt}\n\n");
$dreferer = dreferer();
include template($this->template);
} else {
$activationauth = array();
if (isset($_GET['activationauth']) && $_GET['activationauth']) {
$activationauth = explode("\t", authcode($_GET['activationauth'], 'DECODE'));
if ($activationauth[1] != FORMHASH) {
showmessage('register_activation_invalid', 'member.php?mod=logging&action=login');
}
$sendurl = false;
}
if (!$activationauth && ($sendurl || !$_G['setting']['forgeemail'])) {
checkemail($_GET['email']);
}
if ($sendurl) {
$hashstr = urlencode(authcode("{$_GET['email']}\t{$_G['timestamp']}", 'ENCODE', $_G['config']['security']['authkey']));
$registerurl = "{$_G[siteurl]}member.php?mod=" . $this->setting['regname'] . "&hash={$hashstr}&email={$_GET[email]}";
$email_register_message = lang('email', 'email_register_message', array('bbname' => $this->setting['bbname'], 'siteurl' => $_G['siteurl'], 'url' => $registerurl));
if (!sendmail("{$_GET['email']} <{$_GET['email']}>", lang('email', 'email_register_subject'), $email_register_message)) {
runlog('sendmail', "{$_GET['email']} sendmail failed.");
}
示例7: get_zodiac
}
if (isset($_POST['birthyear']) && $space['birthyear'] != $_POST['birthyear']) {
$setarr['zodiac'] = get_zodiac($_POST['birthyear']);
}
if ($setarr) {
$setarr['uid'] = $uid;
C::t('user_profile1')->insert($setarr);
}
showmessage('用户资料修改成功', ADMINSCRIPT . '?mod=orguser#user_' . $uid . '_profile', array());
} else {
$allowitems = array();
foreach ($_G['cache']['profilesetting'] as $key => $value) {
if ($value['available'] > 0) {
$allowitems[] = $key;
}
}
$htmls = $settings = array();
foreach ($allowitems as $fieldid) {
if (!in_array($fieldid, array('department', 'timeoffset'))) {
$html = profile_setting($fieldid, $space, false, true);
if ($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
}
$active = array('profile' => 'class="active"');
include template('profile');
}
}
exit;
示例8: on_register
//.........这里部分代码省略.........
$bbrulehash = $bbrules ? substr(md5(FORMHASH), 0, 8) : '';
$auth = $_G['gp_auth'];
if (!$invitestatus) {
$invite = getinvite();
}
if (!submitcheck('regsubmit', 0, $seccodecheck, $secqaacheck)) {
if ($_G['gp_action'] == 'activation') {
$auth = explode("\t", authcode($auth, 'DECODE'));
if (FORMHASH != $auth[1]) {
showmessage('register_activation_invalid', 'member.php?mod=logging&action=login');
}
$username = $auth[0];
$activationauth = authcode("{$auth['0']}\t" . FORMHASH, 'ENCODE');
}
if ($fromuid) {
$query = DB::query("SELECT username FROM " . DB::table('common_member') . " WHERE uid='{$fromuid}'");
if (DB::num_rows($query)) {
$fromuser = dhtmlspecialchars(DB::result($query, 0));
} else {
dsetcookie('promotion');
}
}
$bbrulestxt = nl2br("\n{$bbrulestxt}\n\n");
if ($_G['gp_action'] == 'activation') {
$auth = dhtmlspecialchars($auth);
}
if ($seccodecheck) {
$seccode = random(6, 1);
}
$username = dhtmlspecialchars($username);
$htmls = $settings = array();
foreach ($_G['cache']['fields_register'] as $field) {
$fieldid = $field['fieldid'];
$html = profile_setting($fieldid, array(), false, false, true);
if ($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
$navtitle = $this->setting['reglinkname'];
if ($this->extrafile && file_exists(libfile('member/' . $this->extrafile, 'module'))) {
require_once libfile('member/' . $this->extrafile, 'module');
}
$dreferer = dreferer();
include template($this->template);
} else {
if ($this->setting['regstatus'] == 2 && empty($invite) && !$invitestatus) {
showmessage('not_open_registration_invite');
}
if ($bbrules && $bbrulehash != $_POST['agreebbrule']) {
showmessage('register_rules_agree');
}
$activation = array();
if (isset($_G['gp_activationauth'])) {
$activationauth = explode("\t", authcode($_G['gp_activationauth'], 'DECODE'));
if ($activationauth[1] == FORMHASH && !($activation = daddslashes(uc_get_user($activationauth[0]), 1))) {
showmessage('register_activation_invalid', 'member.php?mod=logging&action=login');
}
}
if (!$activation) {
$usernamelen = dstrlen($username);
if ($usernamelen < 3) {
showmessage('profile_username_tooshort');
} elseif ($usernamelen > 15) {
showmessage('profile_username_toolong');
}
示例9: str_replace
}
$result['weburl'] = str_replace("http://", '', $result['weburl']);
showformheader($thisurl . "&do=" . $do . "&bid=" . $bid . "&page=" . $page, 'enctype');
showtableheader($menustr, 'nobottom');
showsetting($langs['catename'], '', '', '<select name="cateid">' . $cateselect . '</select>', '', '', $langs['bitian']);
showsetting($langs['group'], '', '', '<select name="groupid">' . $groupselect . '</select>');
showsetting($langs['discount'], '', '', brand_discountsetting($result['discount']));
if ($isselfdistrict == 1) {
echo '<script language="javascript" src="source/plugin/sanree_brand/tpl/good/js/district.js"></script>';
$html = brand_setting('birthcity', $result);
if ($html) {
showsetting($langs['region'], '', '', $html);
}
} else {
include_once libfile('function/profile');
$html = profile_setting('birthcity', $result);
if ($html) {
showsetting($langs['region'], '', '', $html);
}
}
$mflist = array();
foreach (C::t('#sanree_brand#sanree_brand_mf')->fetch_all_mf() as $data) {
$mflist[] = array($data['mfid'], $data['mfname']);
}
showsetting($langs['brandmf'], array('brandmf', $mflist), explode(',', $result['brandmf']), 'mcheckbox');
?>
<div id="domfx"></div>
<script language="javascript">
disallowfloat = 'newthread';
var arrayObj = new Array(<?php
echo $result['brandtaglist'];
示例10: bloginfo
</title>
<meta name="generator" content="WordPress.com" />
<link rel="stylesheet" href="<?php
bloginfo('stylesheet_url');
?>
" type="text/css" media="screen" />
<?php
if (profile_setting('background_image')) {
?>
<style type="text/css">
body {
background: url('<?php
echo profile_setting('background_image');
?>
') fixed <?php
if (!profile_setting('background_tile')) {
echo 'no-';
}
?>
repeat top left;
}
</style>
<?php
}
?>
<link rel="alternate" type="application/rss+xml" title="<?php
bloginfo('name');
?>
RSS Feed" href="<?php
bloginfo('rss2_url');
?>
示例11: on_register
function on_register()
{
global $_G;
$_GET['username'] = $_GET['username'];
$_GET['nickname'] = $_GET['nickname'];
$_GET['password'] = $_GET['password'];
$_GET['password2'] = $_GET['password2'];
$_GET['email'] = $_GET['email'];
if ($_G['uid']) {
$url_forward = dreferer();
if (strpos($url_forward, 'reg') !== false) {
$url_forward = 'index.php';
}
showmessage('login_succeed', $url_forward ? $url_forward : './', array('username' => $_G['member']['username'], 'usergroup' => $_G['group']['grouptitle'], 'uid' => $_G['uid']), array());
} elseif (!$this->setting['regclosed']) {
if ($_GET['action'] == 'activation' || $_GET['activationauth']) {
if (!$this->setting['ucactivation'] && !$this->setting['closedallowactivation']) {
showmessage('register_disable_activation');
}
} elseif (!$this->setting['regstatus']) {
showmessage(!$this->setting['regclosemessage'] ? 'register_disable' : str_replace(array("\r", "\n"), '', $this->setting['regclosemessage']));
}
}
$bbrules =& $this->setting['bbrules'];
$bbrulesforce =& $this->setting['bbrulesforce'];
$bbrulestxt =& $this->setting['bbrulestxt'];
$welcomemsg =& $this->setting['welcomemsg'];
$welcomemsgtitle =& $this->setting['welcomemsgtitle'];
$welcomemsgtxt =& $this->setting['welcomemsgtxt'];
$regname = $this->setting['regname'];
$username = isset($_GET['username']) ? $_GET['username'] : '';
$invitestatus = false;
$seccodecheck = $this->setting['seccodestatus'] & 1;
$secqaacheck = 0;
$bbrulehash = $bbrules ? substr(md5(FORMHASH), 0, 8) : '';
$auth = $_GET['auth'];
if (!$invitestatus) {
$invite = getinvite();
}
if (!submitcheck('regsubmit', 0, $seccodecheck)) {
if ($seccodecheck) {
$seccode = random(6, 1);
}
$username = dhtmlspecialchars($username);
$htmls = $settings = array();
foreach ($_G['cache']['fields_register'] as $field) {
$fieldid = $field['fieldid'];
$html = profile_setting($fieldid, array(), false, false, true);
if ($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
$navtitle = $this->setting['reglinkname'];
if ($this->extrafile && file_exists($this->extrafile)) {
require_once $this->extrafile;
}
$bbrulestxt = nl2br("\n{$bbrulestxt}\n\n");
$dreferer = dreferer();
include template($this->template);
} else {
$emailstatus = 0;
if ($this->setting['regstatus'] == 2 && empty($invite) && !$invitestatus) {
showmessage('not_open_registration_invite');
}
//验证同意协议
if ($bbrules && $bbrulehash != $_POST['agreebbrule']) {
showmessage('register_rules_agree');
}
//验证用户姓名
$usernamelen = dstrlen($username);
if ($usernamelen < 3) {
showmessage('profile_username_tooshort');
}
if ($usernamelen > 30) {
showmessage('profile_username_toolong');
}
//验证用户名
if ($nickname = trim($_GET['nickname'])) {
$nicknamelen = dstrlen($nickname);
if ($nicknamelen < 3) {
showmessage('profile_nickname_tooshort');
}
if ($nicknamelen > 30) {
showmessage('profile_nickname_toolong');
}
} else {
$nickname = '';
}
//验证邮箱
$email = strtolower(trim($_GET['email']));
checkemail($email);
//验证密码长度
if ($this->setting['pwlength']) {
if (strlen($_GET['password']) < $this->setting['pwlength']) {
showmessage('profile_password_tooshort', '', array('pwlength' => $this->setting['pwlength']));
}
}
//验证密码强度
if ($this->setting['strongpw']) {
//.........这里部分代码省略.........
示例12: _adminUserInfo
private function _adminUserInfo($act)
{
global $_G;
$defaultop = '';
$profilegroup = C::t('common_setting')->fetch('profilegroup', true);
foreach ($profilegroup as $key => $value) {
if ($value['available']) {
$defaultop = $key;
break;
}
}
$errorMsg = '';
$operation = $act;
require_once libfile('function/editor');
include_once libfile('function/profile');
$space = getuserbyuid($_G['uid']);
space_merge($space, 'profile');
space_merge($space, 'field_home');
space_merge($space, 'field_forum');
$space['sightml'] = html2bbcode($space['sightml']);
$vid = $_GET['vid'] ? intval($_GET['vid']) : 0;
$privacy = $space['privacy']['profile'] ? $space['privacy']['profile'] : array();
$_G['setting']['privacy'] = $_G['setting']['privacy'] ? $_G['setting']['privacy'] : array();
$_G['setting']['privacy'] = is_array($_G['setting']['privacy']) ? $_G['setting']['privacy'] : dunserialize($_G['setting']['privacy']);
$_G['setting']['privacy']['profile'] = !empty($_G['setting']['privacy']['profile']) ? $_G['setting']['privacy']['profile'] : array();
$privacy = array_merge($_G['setting']['privacy']['profile'], $privacy);
$actives = array('profile' => ' class="a"');
$opactives = array($operation => ' class="a"');
$allowitems = array();
$allowitems = $profilegroup[$operation]['field'];
$showbtn = $vid && $verify['verify' . $vid] != 1 || empty($vid);
if (!empty($verify) && is_array($verify)) {
foreach ($verify as $key => $flag) {
if (in_array($key, array('verify1', 'verify2', 'verify3', 'verify4', 'verify5', 'verify6', 'verify7')) && $flag == 1) {
$verifyid = intval(substr($key, -1, 1));
if ($_G['setting']['verify'][$verifyid]['available']) {
foreach ($_G['setting']['verify'][$verifyid]['field'] as $field) {
$_G['cache']['profilesetting'][$field]['unchangeable'] = 1;
}
}
}
}
}
if ($vid) {
if ($value = C::t('common_member_verify_info')->fetch_by_uid_verifytype($_G['uid'], $vid)) {
$field = dunserialize($value['field']);
foreach ($field as $key => $fvalue) {
$space[$key] = $fvalue;
}
}
}
$htmls = $settings = array();
foreach ($allowitems as $fieldid) {
if (!in_array($fieldid, array('sightml', 'customstatus', 'timeoffset'))) {
$html = profile_setting($fieldid, $space, $vid ? false : true);
if ($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
}
if (!empty($_POST)) {
require_once libfile('function/discuzcode');
$forum = $setarr = $verifyarr = $errorarr = array();
$forumfield = array('customstatus', 'sightml');
$censor = discuz_censor::instance();
if ($_GET['vid']) {
$vid = intval($_GET['vid']);
$verifyconfig = $_G['setting']['verify'][$vid];
if ($verifyconfig['available'] && (empty($verifyconfig['groupid']) || in_array($_G['groupid'], $verifyconfig['groupid']))) {
$verifyinfo = C::t('common_member_verify_info')->fetch_by_uid_verifytype($_G['uid'], $vid);
if (!empty($verifyinfo)) {
$verifyinfo['field'] = dunserialize($verifyinfo['field']);
}
foreach ($verifyconfig['field'] as $key => $field) {
if (!isset($verifyinfo['field'][$key])) {
$verifyinfo['field'][$key] = $key;
}
}
} else {
$_GET['vid'] = $vid = 0;
$verifyconfig = array();
}
}
if (isset($_POST['birthprovince'])) {
$initcity = array('birthprovince', 'birthcity', 'birthdist', 'birthcommunity');
foreach ($initcity as $key) {
$_GET['' . $key] = $_POST[$key] = !empty($_POST[$key]) ? $_POST[$key] : '';
}
}
if (isset($_POST['resideprovince'])) {
$initcity = array('resideprovince', 'residecity', 'residedist', 'residecommunity');
foreach ($initcity as $key) {
$_GET['' . $key] = $_POST[$key] = !empty($_POST[$key]) ? $_POST[$key] : '';
}
}
foreach ($_POST as $key => $value) {
$field = $_G['cache']['profilesetting'][$key];
if (in_array($field['formtype'], array('text', 'textarea')) || in_array($key, $forumfield)) {
$censor->check($value);
//.........这里部分代码省略.........
示例13: importone
}
}
}
}
$result = C::t('#sanree_brand#common_district')->fetch_first_by_id($upid);
if ($result['level'] > 0 && $result['level'] < 4) {
importone($result[id], 0, 1);
}
cpmsg($langs['succeed'], "action=" . $thisurl, 'succeed');
} else {
cpmsg_error($langs['error_emptydis']);
}
} else {
include template('common/header');
include_once libfile('function/profile');
$districthtml = profile_setting('birthcity');
showformheader($thisurl . '&do=ajax&page=' . $page . '&upid=' . $upid);
showtableheader('', 'nobottom');
echo '<div style="height:170px;width:530px;"><h3 class="flb mn"><span><a href="javascript:;" class="flbc" onclick="hideWindow(\'showarea\',1,0);" title="{lang close}">{lang close}</a></span>' . $langs['pleaseinputdis'] . '</h3><div style="margin-left:10px;">' . $districthtml . '<p style="padding:10px; color:#3333CC; line-height:20px;">' . $langs['pleaseinputdistip'] . '</p></div></div>';
showsubmit('submit', 'import');
showtablefooter();
showformfooter();
include template('common/footer');
}
} elseif ($do == 'list') {
$id = intval($_G['sr_id']);
if (submitcheck('submit')) {
if (is_array($_G['sr_groupnamenewadd'])) {
foreach ($_G['sr_groupnamenewadd'] as $k => $v) {
if ($v) {
$setarr = array('name' => $v, 'displayorder' => $_G['sr_groupordernewadd'][$k], 'enabled' => 1, 'upid' => $upid, 'level' => $level + 1, 'usetype' => 3);