369 lines
16 KiB
PHP
369 lines
16 KiB
PHP
<?php echo 'Discuz!应用中心开发者-简约设计';exit;?>
|
|
|
|
<!--{template common/header}-->
|
|
|
|
<!-- header start -->
|
|
<header class="header_xin">
|
|
<div class="hdc_xin cl" id="byg_header">
|
|
<div class="header_z cl">
|
|
<a href="javascript:;" class="shouye">
|
|
<img src="<!--{avatar($_G['uid'], 'middle', true)}-->" alt="头像"/>
|
|
<!--{if $_G[member][newpm] || $post_notice_new}-->
|
|
<img src="{$_G['style']['styleimgdir']}/new_pm.png" alt="提醒" class="new_pm"/>
|
|
<!--{/if}-->
|
|
</a>
|
|
<em>›</em>
|
|
<a href="home.php?mod=space&uid=$_G[uid]&do=profile&mycenter=1" title="个人中心">个人中心</a>
|
|
<em>›</em>
|
|
<span><!--{if $operation == 'password'}-->密码安全<!--{else}-->修改资料<!--{/if}--></span>
|
|
</div>
|
|
<a href="javascript:history.back();" title="返回上一页" class="header_y">
|
|
<img src="{$_G['style']['styleimgdir']}/houtui.png" alt="返回"/></a>
|
|
</div>
|
|
</header>
|
|
<!--{hook/global_header_mobile}-->
|
|
<!-- header end -->
|
|
|
|
<!--{if $validate}-->
|
|
<!--{else}-->
|
|
<!--{if $operation == 'password'}-->
|
|
<!--{subtemplate home/spacecp_header}-->
|
|
<style type="text/css">
|
|
.new_password_p{ margin: .1rem; padding: .08rem; border: 1px dashed #eee; background: #ffe; border-radius: .02rem; font-size: .14rem;}
|
|
.new_password{ table-layout: fixed; width: 100%; margin: .1rem 0; border: 1px solid #eee; font-size: .15rem; background: #fff;}
|
|
.new_password tr{ width: 100%; line-height: .2rem; border: 1px solid #eee;}
|
|
.new_password th{ width: .9rem; padding: .1rem 0 .1rem .1rem; background: #fafafa; border: 1px solid #eee;}
|
|
.new_password td{ padding: .05rem 0 .05rem .05rem;}
|
|
.new_password td input, .new_password td textarea{ width: 2.48rem; padding: .04rem; line-height: .16rem; border: .01rem solid #ddd; font-size: .14rem;}
|
|
.new_password td select{ padding: .01rem 0 .02rem; font-size: .14rem; border: .01rem solid #ddd;}
|
|
.new_password td p{ font-size: .13rem; width: 2.58rem; line-height: .18rem; margin-top: .03rem; color: #888;}
|
|
.new_password td a{ color: #06c;}
|
|
.bg_xin .sec_code{ background: #fff;}
|
|
.bg_xin .sec_code .px{ padding: 4px; line-height: 20px;}
|
|
.new_password_sub{ display: block; margin: .1rem; width: 3.55rem; line-height: .36rem; font-size: .16rem;}
|
|
</style>
|
|
<script type="text/javascript" src="{$_G['style']['styleimgdir']}/jq_register.js?{VERHASH}"></script>
|
|
<p class="new_password_p">
|
|
<!--{if !$_G['member']['freeze']}-->
|
|
<!--{if !$_G['setting']['connect']['allow'] || !$conisregister}-->{lang old_password_comment}<!--{elseif $wechatuser}-->{lang wechat_config_newpassword_comment}<!--{else}-->{lang connect_config_newpassword_comment}<!--{/if}-->
|
|
<!--{elseif $_G['member']['freeze'] == 1}-->
|
|
<strong class="xi1">{lang freeze_pw_tips}</strong>
|
|
<!--{elseif $_G['member']['freeze'] == 2}-->
|
|
<strong class="xi1">{lang freeze_email_tips}</strong>
|
|
<!--{elseif $_G['member']['freeze'] == -1}-->
|
|
<strong class="xi1">{lang freeze_admincp_tips}</strong>
|
|
<!--{/if}-->
|
|
</p>
|
|
<form action="home.php?mod=spacecp&ac=profile" method="post" autocomplete="off">
|
|
<input type="hidden" value="{FORMHASH}" name="formhash" />
|
|
<table summary="{lang memcp_profile}" cellspacing="0" cellpadding="0" class="new_password">
|
|
<!--{if !$_G['setting']['connect']['allow'] || !$conisregister}-->
|
|
<tr>
|
|
<th><span class="rq" title="{lang required}">*</span>{lang old_password}</th>
|
|
<td><input type="password" name="oldpassword" id="oldpassword" class="px" /></td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
<tr>
|
|
<th>{lang new_password}</th>
|
|
<td>
|
|
<input type="password" name="newpassword" id="newpassword" class="px" />
|
|
<p class="d" id="chk_newpassword">{lang memcp_profile_passwd_comment}</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{lang new_password_confirm}</th>
|
|
<td>
|
|
<input type="password" name="newpassword2" id="newpassword2"class="px" />
|
|
<p class="d" id="chk_newpassword2">{lang memcp_profile_passwd_comment}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="contact"{if $_GET[from] == 'contact'} style="background-color: {$_G['style']['specialbg']};"{/if}>
|
|
<th>{lang email}</th>
|
|
<td>
|
|
<input type="text" name="emailnew" id="emailnew" value="$space[email]" class="px" />
|
|
<p class="d">
|
|
<!--{if $_G['member']['freeze'] == 2}-->
|
|
{lang freeze_email_tips}
|
|
<!--{elseif empty($space['newemail'])}-->
|
|
{lang email_been_active}
|
|
<!--{else}-->
|
|
$acitvemessage
|
|
<!--{/if}-->
|
|
</p>
|
|
<!--{if $_G['setting']['regverify'] == 1 && (($_G['group']['grouptype'] == 'member' && in_array($_G['adminid'], array(0, -1))) || $_G['groupid'] == 8) || $_G['member']['freeze']}--><p class="d">{lang memcp_profile_email_comment}</p><!--{/if}-->
|
|
</td>
|
|
</tr>
|
|
|
|
<!--{if isset($_G['setting']['mobile']['forum'])}-->
|
|
<tr>
|
|
<th>{lang secmobile}</th>
|
|
<td>
|
|
<input type="text" name="secmobiccnew" id="secmobiccnew" value="$space[secmobicc]" class="px" style="width: 30px;" />
|
|
<input type="text" name="secmobilenew" id="secmobilenew" value="$space[secmobile]" class="px" style="width: 60%;" />
|
|
<p class="d">{lang memcp_profile_secmobile_comment}</p>
|
|
</td>
|
|
</tr>
|
|
<!--{if $_G['setting']['smsstatus']}-->
|
|
<tr>
|
|
<th>{lang secmobseccode}</th>
|
|
<td>
|
|
<input type="text" name="secmobseccodenew" id="secmobseccodenew" value="" class="px" />
|
|
<button type="button" name="secmobseccodesendnew" id="secmobseccodesendnew" value="true" class="pn pnc" onclick="memcp_sendsecmobseccode();" /><strong>{lang send}</strong></button>
|
|
<p class="d">{lang memcp_profile_secmobseccode_comment}</p>
|
|
</td>
|
|
</tr>
|
|
<script type="text/javascript">
|
|
function memcp_sendsecmobseccode() {
|
|
memcp_svctype = 1;
|
|
memcp_secmobicc = getID("secmobiccnew").value;
|
|
memcp_secmobile = getID("secmobilenew").value;
|
|
return sendsecmobseccode(memcp_svctype, memcp_secmobicc, memcp_secmobile);
|
|
}
|
|
</script>
|
|
<!--{/if}-->
|
|
<!--{/if}-->
|
|
|
|
<!--{if $_G['member']['freeze'] == 2 || $_G['member']['freeze'] == -1}-->
|
|
<tr>
|
|
<th>{lang freeze_reason}</th>
|
|
<td>
|
|
<textarea rows="3" name="freezereson" class="pt">$space[freezereson]</textarea>
|
|
<!--{if $_G['member']['freeze'] == 2}--><p class="d" id="chk_newpassword2">{lang freeze_reason_comment}</p><!--{/if}-->
|
|
<!--{if $_G['member']['freeze'] == -1}--><p class="d" id="chk_newpassword2">{lang freeze_reason_admincp_comment}</p><!--{/if}-->
|
|
</td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
|
|
<!--{if ($_G['member']['freeze'] == 2 || $_G['member']['freeze'] == -1) && !empty($space[freezemodremark])}-->
|
|
<tr>
|
|
<th>{lang freeze_remark}</th>
|
|
<td>
|
|
<textarea rows="3" name="freezemodremark" class="pt" disabled="disabled">$space[freezemodremark]</textarea>
|
|
<p class="d" id="chk_newpassword2">{lang freeze_remark_comment}</p>
|
|
</td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
|
|
<tr>
|
|
<th>{lang security_question}</th>
|
|
<td>
|
|
<select name="questionidnew" id="questionidnew">
|
|
<option value="" selected>{lang memcp_profile_security_keep}</option>
|
|
<option value="0">{lang security_question_0}</option>
|
|
<option value="1">{lang security_question_1}</option>
|
|
<option value="2">{lang security_question_2}</option>
|
|
<option value="3">{lang security_question_3}</option>
|
|
<option value="4">{lang security_question_4}</option>
|
|
<option value="5">{lang security_question_5}</option>
|
|
<option value="6">{lang security_question_6}</option>
|
|
<option value="7">{lang security_question_7}</option>
|
|
</select>
|
|
<p class="d">{lang memcp_profile_security_comment}</p>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>{lang security_answer}</th>
|
|
<td>
|
|
<input type="text" name="answernew" id="answernew" class="px" />
|
|
<p class="d">{lang memcp_profile_security_answer_comment}</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!--{if $secqaacheck || $seccodecheck}-->
|
|
<!--{subtemplate common/seccheck}-->
|
|
<!--{/if}-->
|
|
<button type="submit" name="pwdsubmit" value="true" class="new_password_sub" />{lang save}</button>
|
|
<input type="hidden" name="passwordsubmit" value="true" />
|
|
</form>
|
|
<script type="text/javascript">
|
|
var strongpw = new Array();
|
|
<!--{if $_G['setting']['strongpw']}-->
|
|
<!--{loop $_G['setting']['strongpw'] $key $val}-->
|
|
strongpw[$key] = $val;
|
|
<!--{/loop}-->
|
|
<!--{/if}-->
|
|
var pwlength = <!--{if $_G['setting']['pwlength']}-->$_G['setting']['pwlength']<!--{else}-->0<!--{/if}-->;
|
|
checkPwdComplexity(document.getElementById('newpassword'), document.getElementById('newpassword2'), true);
|
|
</script>
|
|
<!--{else}-->
|
|
<style>
|
|
#uhd{ position: relative; background: $_G['style']['zhuti']; width: 3.75rem; overflow: hidden;}
|
|
#uhd_bg{ position: relative; z-index: 1; width: 4.75rem; height: 1.55rem; overflow: hidden; margin-top: -.2rem; margin-left: -1rem;}
|
|
.home_forum_header_js{ background: #fff !important; opacity: 0.15 !important;}
|
|
|
|
.byg_vid_show{ margin: .1rem 0 -.1rem; padding: .1rem; background: #ffe; border-radius: .02rem; font-size: .12rem; color: #f26c4f; text-align: center;}
|
|
.byg_profilelist{ table-layout: fixed; width: 100%; margin: .1rem 0; border: 1px solid #eee; font-size: .14rem; background: #fff;}
|
|
.byg_profilelist tr{ width: 100%; line-height: .2rem; border: 1px solid #eee;}
|
|
.byg_profilelist th{ width: .9rem; padding: .1rem 0 .1rem .1rem; background: #fafafa; border: 1px solid #eee; }
|
|
.byg_profilelist td{ padding: .05rem 0 .05rem .05rem;}
|
|
.byg_profilelist_y{ width: .9rem;}
|
|
.byg_profilelist td > input, .byg_profilelist td textarea{ width: 1.6rem; padding: .04rem; line-height: .16rem; border: .01rem solid #ddd; font-size: .14rem;}
|
|
.byg_profilelist td select{ padding: .01rem 0 .02rem; font-size: .14rem; border: .01rem solid #ddd;}
|
|
.byg_profilelist #tr_birthcity, .byg_profilelist #tr_residecity{ display: none;}
|
|
.byg_profilelist td img{ max-width: 100% !important;}
|
|
.byg_profilelist td .mtn{ margin: 0 !important;}
|
|
.byg_profilelist td .xi2{ font-size: .12rem;}
|
|
#profilesubmitbtn{ display: block; margin: .1rem; width: 3.55rem; line-height: .36rem; font-size: .16rem;}
|
|
.tip dd a{ display: none;}
|
|
</style>
|
|
<div id="uhd">
|
|
<div id="uhd_bg"></div>
|
|
<div class="user_avatar">
|
|
<div class="avatar_m"><a href="home.php?mod=spacecp&ac=avatar"><img src="<!--{avatar($_G['uid'], 'big', true)}-->" alt="头像" /><span>修改头像</span></a></div>
|
|
<h2 class="name">{$_G[username]}</h2>
|
|
</div>
|
|
</div>
|
|
<!--{subtemplate home/spacecp_profile_nav}-->
|
|
<!--{hook/spacecp_profile_top}-->
|
|
<!--{if $vid}-->
|
|
<p class="byg_vid_show"><!--{if $showbtn}-->{lang spacecp_profile_message1}<!--{else}-->{lang spacecp_profile_message2}<!--{/if}--></p>
|
|
<!--{/if}-->
|
|
<iframe id="frame_profile" name="frame_profile" style="display: none"></iframe>
|
|
<form action="{if $operation != 'plugin'}home.php?mod=spacecp&ac=profile&op=$operation{else}home.php?mod=spacecp&ac=plugin&op=profile&id=$_GET[id]{/if}" method="post" enctype="multipart/form-data" autocomplete="off"{if $operation != 'plugin'} target="frame_profile"{/if}>
|
|
<input type="hidden" value="{FORMHASH}" name="formhash" />
|
|
<!--{if $_GET[vid]}-->
|
|
<input type="hidden" value="$_GET[vid]" name="vid" />
|
|
<!--{/if}-->
|
|
<table cellspacing="0" cellpadding="0" class="byg_profilelist" id="profilelist">
|
|
<tr>
|
|
<th>{lang username}</th>
|
|
<td>$_G[member][username]</td>
|
|
<td class="byg_profilelist_y"> </td>
|
|
</tr>
|
|
<!--{loop $settings $key $value}-->
|
|
<!--{if $value[available]}-->
|
|
<tr id="tr_$key">
|
|
<th id="th_$key"><!--{if $value[required]}--><span class="rq" title="{lang required}">*</span><!--{/if}-->$value[title]</th>
|
|
<td id="td_$key">
|
|
$htmls[$key]
|
|
</td>
|
|
<td class="byg_profilelist_y">
|
|
<!--{if $vid}-->
|
|
<input type="hidden" name="privacy[$key]" value="3" />
|
|
<!--{else}-->
|
|
<select name="privacy[$key]">
|
|
<option value="0"{if $privacy[$key] == "0"} selected="selected"{/if}>{lang open_privacy}</option>
|
|
<option value="1"{if $privacy[$key] == "1"} selected="selected"{/if}>{lang friend_privacy}</option>
|
|
<option value="3"{if $privacy[$key] == "3"} selected="selected"{/if}>{lang secrecy}</option>
|
|
</select>
|
|
<!--{/if}-->
|
|
</td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
<!--{/loop}-->
|
|
<!--{if $allowcstatus && in_array('customstatus', $allowitems)}-->
|
|
<tr>
|
|
<th id="th_customstatus">{lang permission_basic_status}</th>
|
|
<td id="td_customstatus">
|
|
<input type="text" value="$space[customstatus]" name="customstatus" id="customstatus" class="" />
|
|
<div class="" id="showerror_customstatus"></div>
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
<!--{if $_G['group']['maxsigsize'] && in_array('sightml', $allowitems)}-->
|
|
<tr>
|
|
<th id="th_sightml">{lang personal_signature}</th>
|
|
<td id="td_sightml">
|
|
<div class="">
|
|
<div class="">
|
|
<textarea rows="3" name="sightml" id="sightmlmessage" class="">$space[sightml]</textarea>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
<!--{if in_array('timeoffset', $allowitems)}-->
|
|
<tr>
|
|
<th id="th_timeoffset">{lang time_zone}</th>
|
|
<td id="td_timeoffset">
|
|
<!--{eval $timeoffset = array({lang timezone});}-->
|
|
<select name="timeoffset">
|
|
<!--{loop $timeoffset $key $desc}-->
|
|
<option value="$key"{if $key==$space[timeoffset]} selected="selected"{/if}>$desc</option>
|
|
<!--{/loop}-->
|
|
</select>
|
|
<p class="xg1 xi2">{lang current_time} : <!--{date($_G['timestamp'])}--></p>
|
|
<p class="xg1 xi2">{lang time_zone_message}</p>
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
|
|
<!--{if $operation == 'contact'}-->
|
|
<tr>
|
|
<th id="th_sightml">Email</th>
|
|
<td id="td_sightml">$space[email]</td>
|
|
<td> </td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
|
|
<!--{hook/spacecp_profile_extra}-->
|
|
</table>
|
|
<!--{if $showbtn}-->
|
|
<div>
|
|
<input type="hidden" name="profilesubmit" value="true" />
|
|
<button type="submit" name="profilesubmitbtn" id="profilesubmitbtn" value="true">{lang save}</button>
|
|
</div>
|
|
<!--{/if}-->
|
|
<!--{hook/spacecp_profile_bottom}-->
|
|
</form>
|
|
<link rel="stylesheet" type="text/css" href="{$_G['style']['styleimgdir']}/swiper.min.css">
|
|
<script type="text/javascript" src="{$_G['style']['styleimgdir']}/swiper.jquery.min.js"></script>
|
|
<script type="text/javascript" src="{$_G['style']['styleimgdir']}/home_forum_header.js"></script>
|
|
<script type="text/javascript">
|
|
jQuery.firefly({
|
|
minPixel: 300,
|
|
maxPixel: 500,
|
|
total : 3,
|
|
on: '#uhd_bg',
|
|
namespace: 'home_forum_header_js'
|
|
});
|
|
|
|
if(jQuery(".portal_font_nav .on").length > 0) {
|
|
var font_nav_initial = jQuery(".portal_font_nav .on").offset().left + jQuery(".portal_font_nav .on").width() + 10 >= jQuery(window).width() ? jQuery(".portal_font_nav .on").index() : 0;
|
|
}else{
|
|
var font_nav_initial = 0;
|
|
}
|
|
var portal_font_nav = new Swiper('.portal_font_nav', {
|
|
initialSlide : font_nav_initial,
|
|
freeMode: true,
|
|
slidesPerView: 'auto',
|
|
});
|
|
|
|
function bygsjw_id(id) {
|
|
return !id ? null : document.getElementById(id);
|
|
}
|
|
function show_error(fieldid, extrainfo) {
|
|
var elem = bygsjw_id('th_'+fieldid);
|
|
if(elem) {
|
|
elem.className = "rq";
|
|
fieldname = elem.innerHTML;
|
|
extrainfo = (typeof extrainfo == "string") ? extrainfo : "";
|
|
bygsjw_id('showerror_'+fieldid).innerHTML = "{lang check_date_item} " + extrainfo;
|
|
bygsjw_id(fieldid).focus();
|
|
}
|
|
}
|
|
function show_success(message) {
|
|
message = message == '' ? '{lang update_date_success}' : message;
|
|
popup.open(message, 'confirm','home.php?mod=spacecp&ac=profile&op=$_GET[op]');
|
|
}
|
|
function clearErrorInfo() {
|
|
var spanObj = bygsjw_id('profilelist').getElementsByTagName("div");
|
|
for(var i in spanObj) {
|
|
if(typeof spanObj[i].id != "undefined" && spanObj[i].id.indexOf("_")) {
|
|
var ids = explode('_', spanObj[i].id);
|
|
if(ids[0] == "showerror") {
|
|
spanObj[i].innerHTML = '';
|
|
bygsjw_id('th_'+ids[1]).className = '';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<!--{/if}-->
|
|
<!--{/if}-->
|
|
|
|
<!--{template common/footer}-->
|