📄 memcp_profile.htm
字号:
{subtemplate header}
<div class="container">
<div id="foruminfo">
<div id="nav"><a href="$indexname">$bbname</a> » {lang memcp_profile}</div>
</div>
<div class="content">
<script type="text/javascript" src="include/javascript/calendar.js"></script>
<script type="text/javascript" src="include/javascript/bbcode.js"></script>
<script type="text/javascript">
var charset = '$charset';
var maxsigsize = parseInt('$maxsigsize');
var maxbiosize = parseInt('$maxbiosize');
var maxbiotradesize = parseInt('$maxbiotradesize');
var allowhtml = 0;
var forumallowhtml = 0;
var allowsmilies = 0;
var allowbbcode = 0;
var allowimgcode = 0;
var allowbiobbcode = parseInt('$allowbiobbcode');
var allowbioimgcode = parseInt('$allowbioimgcode');
var allowsigbbcode = parseInt('$allowsigbbcode');
var allowsigimgcode = parseInt('$allowsigimgcode');
function parseurl(str, mode) {
str = str.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, mode == 'html' ? '$1<img src="$2" border="0">' : '$1[img]$2[/img]');
str = str.replace(/([^>=\]"'\/@]|^)((((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|ed2k):\/\/)|www\.)([\w\-]+\.)*[:\.@\-\w\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!#]*)*)/ig, mode == 'html' ? '$1<a href="$2" target="_blank">$2</a>' : '$1[url]$2[/url]');
str = str.replace(/([^\w>=\]:"'\.\/]|^)(([\-\.\w]+@[\.\-\w]+(\.\w+)+))/ig, mode == 'html' ? '$1<a href="mailto:$2">$2</a>' : '$1[email]$2[/email]');
return str;
}
function validate(theform) {
<!--{if $typeid == 4}-->
<!--{if $maxsigsize}-->
if(mb_strlen(theform.signaturenew.value) > maxsigsize) {
alert('{lang memcp_profile_sig_toolong}');
return false;
}
<!--{/if}-->
if(mb_strlen(theform.bionew.value) > maxbiosize) {
alert('{lang memcp_profile_bio_toolong}');
return false;
}
if(mb_strlen(theform.biotradenew.value) > maxbiotradesize) {
alert('{lang memcp_profile_biotrade_toolong}');
return false;
}
<!--{/if}-->
return true;
}
function updateavatar() {
$('avatar').src='{echo discuz_uc_avatar($discuz_uid, 'middle', TRUE)}&random=1'+Math.random();
}
</script>
<form name="reg" method="post" action="memcp.php?action=profile&typeid=$typeid" onSubmit="return validate(this)">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="mainbox formbox">
<h1>{lang memcp_profile}</h1>
<ul class="tabs <!--{if $typeid==3}-->headertabs<!--{/if}-->">
<li<!--{if $typeid==1}--> class="current"<!--{/if}-->><a href="memcp.php?action=profile&typeid=1">{lang memcp_profile_type_1}</a></li>
<li<!--{if $typeid==2}--> class="current"<!--{/if}-->><a href="memcp.php?action=profile&typeid=2">{lang memcp_profile_type_2}</a></li>
<!--{if !empty($_DCACHE['fields_required']) || !empty($_DCACHE['fields_optional'])}-->
<li<!--{if $typeid==3}--> class="current"<!--{/if}-->><a href="memcp.php?action=profile&typeid=3">{lang memcp_profile_type_3}</a></li>
<!--{/if}-->
<li<!--{if $typeid==4}--> class="current"<!--{/if}-->><a href="memcp.php?action=profile&typeid=4">{lang memcp_profile_type_4}</a></li>
<li<!--{if $typeid==5}--> class="current"<!--{/if}-->><a href="memcp.php?action=profile&typeid=5">{lang memcp_profile_type_5}</a></li>
<li<!--{if $typeid==6}--> class="current"<!--{/if}-->><a href="memcp.php?action=profile&typeid=6">{lang memcp_profile_type_6}</a></li>
</ul>
<table summary="{lang memcp_profile}" cellspacing="0" cellpadding="0">
{subtemplate seccheck}
<!--{if $typeid == 1}-->
<tr>
<th><label for="oldpassword">{lang old_password}</label></th>
<td><input type="password" name="oldpassword" id="oldpassword" size="25" /> {lang old_password_comment}</td>
</tr>
<tr>
<th><label for="newpassword">{lang new_password}</label></th>
<td><input type="password" name="newpassword" id="newpassword" size="25" /></td>
</tr>
<tr>
<th><label for="newpassword2">{lang new_password_confirm}</label></th>
<td><input type="password" name="newpassword2" id="newpassword2" size="25" /></td>
</tr>
<tr>
<th><label for="emailnew">{lang email}</label></th>
<td><input type="text" name="emailnew" id="emailnew" size="25" value="$member[email]" />
<!--{if $regverify == 1 && (($grouptype == 'member' && $adminid == 0) && $groupid == 8)}--> <em>{lang memcp_profile_email_comment}</em><!--{/if}-->
</td>
</tr>
<tr>
<th><label for="questionidnew">{lang security_question}</label></th>
<td><select name="questionidnew" id="questionidnew">
<!--{if $discuz_secques}--><option value="-1">{lang memcp_profile_security_keep}</option><!--{/if}-->
<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> <em>{lang memcp_profile_security_comment}</em>
</td>
</tr>
<tr>
<th><label for="answernew">{lang security_answer}</label></th>
<td><input type="text" name="answernew" id="answernew" size="25" /> <em>{lang memcp_profile_security_answer_comment}</em></td>
</tr>
<!--{elseif $typeid == 2}-->
<!--{if $allownickname}-->
<tr>
<th><label for="nicknamenew">{lang nickname}</label></th>
<td><input type="text" name="nicknamenew" id="nicknamenew" size="25" value="$member[nickname]" /></td>
</tr>
<!--{/if}-->
<!--{if $allowcstatus}-->
<tr>
<th><label for="cstatusnew">{lang custom_status}</label></th>
<td>
<input type="text" name="cstatusnew" id="cstatusnew" size="25" value="$member[customstatus]" /></td>
</tr>
<!--{/if}-->
<tr>
<th>{lang gender}</th>
<td>
<label><input class="radio" type="radio" name="gendernew" value="1" $gendercheck[1] /> {lang male} <label>
<label><input class="radio" type="radio" name="gendernew" value="2" $gendercheck[2] /> {lang female} </label>
<label><input class="radio" type="radio" name="gendernew" value="0" $gendercheck[0] /> {lang secret}</label>
</td></tr>
<tr>
<th><label for="bdaynew">{lang birthday}</label></th>
<td><input type="text" name="bdaynew" id="bdaynew" size="25" onclick="showcalendar(event, this)" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" value="$member[bday]" /></td>
</tr>
<tr>
<th><label for="locationnew">{lang location}</label></th>
<td><input type="text" name="locationnew" id="locationnew" size="25" value="$member[location]" /></td>
</tr>
<tr>
<th><label for="sitenew">{lang homepage}</label></th>
<td><input type="text" name="sitenew" id="sitenew" size="25" value="$member[site]" /></td>
</tr>
<tr>
<th><label for="qqnew">QQ</label></th>
<td><input type="text" name="qqnew" id="qqnew" size="25" value="$member[qq]" /></td>
</tr>
<tr>
<th><label for="icqnew">ICQ</label></th>
<td><input type="text" name="icqnew" id="icqnew" size="25" value="$member[icq]" /></td>
</tr>
<tr>
<th><label for="yahoonew">Yahoo</label></th>
<td><input type="text" name="yahoonew" id="yahoonew" size="25" value="$member[yahoo]" /></td>
</tr>
<tr>
<th><label for="msnnew">MSN</label></th>
<td><input type="text" name="msnnew" id="msnnew" size="25" value="$member[msn]" /> <a href="http://settings.messenger.live.com/applications/websignup.aspx?returnurl={$boardurl}memcp.php?action=profile&privacyurl=http://privacy.microsoft.com/zh-cn/default.aspx" target="_blank">{lang msn_privacy}</a></td>
</tr>
<tr>
<th><label for="taobaonew">{lang taobao}</label></th>
<td><input type="text" name="taobaonew" id="taobaonew" size="25" value="$member[taobao]" /></td>
</tr>
<tr>
<th><label for="alipaynew">{lang alipay}</label></th>
<td><input type="text" name="alipaynew" id="alipaynew" size="25" value="$member[alipay]" /></td>
</tr>
<!--{elseif $typeid == 3 && (!empty($_DCACHE['fields_required']) || !empty($_DCACHE['fields_optional']))}-->
<!--{if $_DCACHE['fields_required']}-->
<thead class="separation">
<tr>
<td colspan="2">{lang required_info}</td>
</tr>
</thead>
<!--{loop $_DCACHE['fields_required'] $field}-->
<tr>
<th>$field[title]<!--{if $field['description']}--><br /><em>$field[description]</em><!--{/if}--></th>
<td>
<!--{if $field['selective']}-->
<select name="field_$field[fieldid]new" <!--{if $member['field_'.$field[fieldid]] && $field['unchangeable']}-->disabled<!--{/if}-->>
<option value="">{lang please_select}</option>
<!--{loop $field['choices'] $index $choice}-->
<option value="$index" <!--{if $index == $member['field_'.$field[fieldid]]}-->selected="selected"<!--{/if}-->>$choice</option>
<!--{/loop}-->
</select>
<!--{else}-->
<input type="text" name="field_$field[fieldid]new" size="25" value="$member['field_'.$field[fieldid]]" <!--{if $member['field_'.$field[fieldid]] && $field['unchangeable']}-->disabled<!--{/if}--> />
<!--{/if}-->
<!--{if $field['unchangeable']}--> <em>{lang memcp_profile_unchangeable_comment}</em><!--{/if}-->
</td></tr>
<!--{/loop}-->
<!--{/if}-->
<!--{if $_DCACHE['fields_optional']}-->
<thead class="separation">
<tr>
<td colspan="2">{lang optional_info}</td>
</tr>
</thead>
<!--{loop $_DCACHE['fields_optional'] $field}-->
<tr>
<th><label for="field_$field[fieldid]new">$field[title]<!--{if $field['description']}--><br /><em>$field[description]</em><!--{/if}--></label></th>
<td>
<!--{if $field['selective']}-->
<select name="field_$field[fieldid]new" id="field_$field[fieldid]new" <!--{if $member['field_'.$field[fieldid]] && $field['unchangeable']}-->disabled<!--{/if}-->>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -