spacecp_profile.htm 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. <!--{template common/header}-->
  2. <!--{subtemplate home/spacecp_header}-->
  3. <!--{if $validate}-->
  4. <p class="tbmu mbm">{lang validator_comment}</p>
  5. <form action="member.php?mod=regverify" method="post" autocomplete="off">
  6. <input type="hidden" value="{FORMHASH}" name="formhash" />
  7. <table summary="{lang memcp_profile}" cellspacing="0" cellpadding="0" class="tfm">
  8. <tr>
  9. <th>{lang validator_remark}</th>
  10. <td>$validate[remark]</td>
  11. <td>&nbsp;</td>
  12. </tr>
  13. <tr>
  14. <th>{lang validator_message}</th>
  15. <td><input type="text" class="px" name="regmessagenew" value="" /></td>
  16. <td>&nbsp;</td>
  17. </tr>
  18. <tr>
  19. <th>&nbsp;</th>
  20. <td colspan="2">
  21. <button type="submit" name="verifysubmit" value="true" class="pn pnc" /><strong>{lang validator_submit}</strong></button>
  22. </td>
  23. </tr>
  24. </table>
  25. </div></div>
  26. <div class="appl">
  27. <!--{subtemplate home/spacecp_footer}-->
  28. </div>
  29. <!--{else}-->
  30. <!--{if $operation == 'password'}-->
  31. <script type="text/javascript" src="{$_G[setting][jspath]}register.js?{VERHASH}"></script>
  32. <p class="bbda pbm mbm">
  33. <!--{if !$_G['member']['freeze']}-->
  34. <!--{if !$_G['setting']['connect']['allow'] || !$conisregister}-->{lang old_password_comment}<!--{elseif $wechatuser}-->{lang wechat_config_newpassword_comment}<!--{else}-->{lang connect_config_newpassword_comment}<!--{/if}-->
  35. <!--{elseif $_G['member']['freeze'] == 1}-->
  36. <strong class="xi1">{lang freeze_pw_tips}</strong>
  37. <!--{elseif $_G['member']['freeze'] == 2}-->
  38. <strong class="xi1">{lang freeze_email_tips}</strong>
  39. <!--{/if}-->
  40. </p>
  41. <form action="home.php?mod=spacecp&ac=profile" method="post" autocomplete="off">
  42. <input type="hidden" value="{FORMHASH}" name="formhash" />
  43. <table summary="{lang memcp_profile}" cellspacing="0" cellpadding="0" class="tfm">
  44. <!--{if !$_G['setting']['connect']['allow'] || !$conisregister}-->
  45. <tr>
  46. <th><span class="rq" title="{lang required}">*</span>{lang old_password}</th>
  47. <td><input type="password" name="oldpassword" id="oldpassword" class="px" /></td>
  48. </tr>
  49. <!--{/if}-->
  50. <tr>
  51. <th>{lang new_password}</th>
  52. <td>
  53. <input type="password" name="newpassword" id="newpassword" class="px" />
  54. <p class="d" id="chk_newpassword">{lang memcp_profile_passwd_comment}</p>
  55. </td>
  56. </tr>
  57. <tr>
  58. <th>{lang new_password_confirm}</th>
  59. <td>
  60. <input type="password" name="newpassword2" id="newpassword2"class="px" />
  61. <p class="d" id="chk_newpassword2">{lang memcp_profile_passwd_comment}</p>
  62. </td>
  63. </tr>
  64. <tr id="contact"{if $_GET[from] == 'contact'} style="background-color: {$_G['style']['specialbg']};"{/if}>
  65. <th>{lang email}</th>
  66. <td>
  67. <input type="text" name="emailnew" id="emailnew" value="$space[email]" class="px" />
  68. <p class="d">
  69. <!--{if empty($space['newemail'])}-->
  70. {lang email_been_active}
  71. <!--{else}-->
  72. $acitvemessage
  73. <!--{/if}-->
  74. </p>
  75. <!--{if $_G['setting']['regverify'] == 1 && (($_G['group']['grouptype'] == 'member' && $_G['adminid'] == 0) || $_G['groupid'] == 8) || $_G['member']['freeze']}--><p class="d">{lang memcp_profile_email_comment}</p><!--{/if}-->
  76. </td>
  77. </tr>
  78. <!--{if $_G['member']['freeze'] == 2}-->
  79. <tr>
  80. <th>{lang freeze_reason}</th>
  81. <td>
  82. <textarea rows="3" cols="80" name="freezereson" class="pt">$space[freezereson]</textarea>
  83. <p class="d" id="chk_newpassword2">{lang freeze_reason_comment}</p>
  84. </td>
  85. </tr>
  86. <!--{/if}-->
  87. <tr>
  88. <th>{lang security_question}</th>
  89. <td>
  90. <select name="questionidnew" id="questionidnew">
  91. <option value="" selected>{lang memcp_profile_security_keep}</option>
  92. <option value="0">{lang security_question_0}</option>
  93. <option value="1">{lang security_question_1}</option>
  94. <option value="2">{lang security_question_2}</option>
  95. <option value="3">{lang security_question_3}</option>
  96. <option value="4">{lang security_question_4}</option>
  97. <option value="5">{lang security_question_5}</option>
  98. <option value="6">{lang security_question_6}</option>
  99. <option value="7">{lang security_question_7}</option>
  100. </select>
  101. <p class="d">{lang memcp_profile_security_comment}</p>
  102. </td>
  103. </tr>
  104. <tr>
  105. <th>{lang security_answer}</th>
  106. <td>
  107. <input type="text" name="answernew" id="answernew" class="px" />
  108. <p class="d">{lang memcp_profile_security_answer_comment}</p>
  109. </td>
  110. </tr>
  111. <!--{if $secqaacheck || $seccodecheck}-->
  112. </table>
  113. <!--{eval $sectpl = '<table cellspacing="0" cellpadding="0" class="tfm"><tr><th><sec></th><td><sec><p class="d"><sec></p></td></tr></table>';}-->
  114. <!--{subtemplate common/seccheck}-->
  115. <table summary="{lang memcp_profile}" cellspacing="0" cellpadding="0" class="tfm">
  116. <!--{/if}-->
  117. <tr>
  118. <th>&nbsp;</th>
  119. <td><button type="submit" name="pwdsubmit" value="true" class="pn pnc" /><strong>{lang save}</strong></button></td>
  120. </tr>
  121. </table>
  122. <input type="hidden" name="passwordsubmit" value="true" />
  123. </form>
  124. <script type="text/javascript">
  125. var strongpw = new Array();
  126. <!--{if $_G['setting']['strongpw']}-->
  127. <!--{loop $_G['setting']['strongpw'] $key $val}-->
  128. strongpw[$key] = $val;
  129. <!--{/loop}-->
  130. <!--{/if}-->
  131. var pwlength = <!--{if $_G['setting']['pwlength']}-->$_G['setting']['pwlength']<!--{else}-->0<!--{/if}-->;
  132. checkPwdComplexity($('newpassword'), $('newpassword2'), true);
  133. </script>
  134. <!--{else}-->
  135. <!--{hook/spacecp_profile_top}-->
  136. <!--{subtemplate home/spacecp_profile_nav}-->
  137. <!--{if $vid}-->
  138. <p class="tbms mtm {if !$showbtn}tbms_r{/if}"><!--{if $showbtn}-->{lang spacecp_profile_message1}<!--{else}-->{lang spacecp_profile_message2}<!--{/if}--></p>
  139. <!--{/if}-->
  140. <iframe id="frame_profile" name="frame_profile" style="display: none"></iframe>
  141. <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} onsubmit="clearErrorInfo();">
  142. <input type="hidden" value="{FORMHASH}" name="formhash" />
  143. <!--{if $_GET[vid]}-->
  144. <input type="hidden" value="$_GET[vid]" name="vid" />
  145. <!--{/if}-->
  146. <table cellspacing="0" cellpadding="0" class="tfm" id="profilelist">
  147. <tr>
  148. <th>{lang username}</th>
  149. <td>$_G[member][username]</td>
  150. <td>&nbsp;</td>
  151. </tr>
  152. <!--{loop $settings $key $value}-->
  153. <!--{if $value[available]}-->
  154. <tr id="tr_$key">
  155. <th id="th_$key"><!--{if $value[required]}--><span class="rq" title="{lang required}">*</span><!--{/if}-->$value[title]</th>
  156. <td id="td_$key">
  157. $htmls[$key]
  158. </td>
  159. <td class="p">
  160. <!--{if $vid}-->
  161. <input type="hidden" name="privacy[$key]" value="3" />
  162. <!--{else}-->
  163. <select name="privacy[$key]">
  164. <option value="0"{if $privacy[$key] == "0"} selected="selected"{/if}>{lang open_privacy}</option>
  165. <option value="1"{if $privacy[$key] == "1"} selected="selected"{/if}>{lang friend_privacy}</option>
  166. <option value="3"{if $privacy[$key] == "3"} selected="selected"{/if}>{lang secrecy}</option>
  167. </select>
  168. <!--{/if}-->
  169. </td>
  170. </tr>
  171. <!--{/if}-->
  172. <!--{/loop}-->
  173. <!--{if $allowcstatus && in_array('customstatus', $allowitems)}-->
  174. <tr>
  175. <th id="th_customstatus">{lang permission_basic_status}</th>
  176. <td id="td_customstatus">
  177. <input type="text" value="$space[customstatus]" name="customstatus" id="customstatus" class="px" />
  178. <div class="rq mtn" id="showerror_customstatus"></div>
  179. </td>
  180. <td>&nbsp;</td>
  181. </tr>
  182. <!--{/if}-->
  183. <!--{if $_G['group']['maxsigsize'] && in_array('sightml', $allowitems)}-->
  184. <tr>
  185. <th id="th_sightml">{lang personal_signature}</th>
  186. <td id="td_sightml">
  187. <div class="tedt">
  188. <div class="bar">
  189. <span class="y"><a href="javascript:;" onclick="$('signhtmlpreview').innerHTML = bbcode2html($('sightmlmessage').value)">{lang preview}</a></span>
  190. <!--{if $_G['group']['allowsigbbcode']}-->
  191. <!--{if $_G['group']['allowsigimgcode']}-->
  192. <!--{eval $seditor = array('sightml', array('bold', 'color', 'img', 'link', 'smilies'));}-->
  193. <!--{else}-->
  194. <!--{eval $seditor = array('sightml', array('bold', 'color', 'link', 'smilies'));}-->
  195. <!--{/if}-->
  196. <!--{subtemplate common/seditor}-->
  197. <!--{/if}-->
  198. </div>
  199. <div class="area">
  200. <textarea rows="3" cols="80" name="sightml" id="sightmlmessage" class="pt" onkeydown="ctrlEnter(event, 'profilesubmitbtn');">$space[sightml]</textarea>
  201. </div>
  202. </div>
  203. <div id="signhtmlpreview"></div>
  204. <div id="showerror_sightml" class="rq mtn"></div>
  205. <script type="text/javascript" src="{$_G[setting][jspath]}bbcode.js?{VERHASH}"></script>
  206. <script type="text/javascript">var forumallowhtml = 0,allowhtml = 0,allowsmilies = 0,allowbbcode = parseInt('{$_G[group][allowsigbbcode]}'),allowimgcode = parseInt('{$_G[group][allowsigimgcode]}');var DISCUZCODE = [];DISCUZCODE['num'] = '-1';DISCUZCODE['html'] = [];</script>
  207. </td>
  208. <td>&nbsp;</td>
  209. </tr>
  210. <!--{/if}-->
  211. <!--{if in_array('timeoffset', $allowitems)}-->
  212. <tr>
  213. <th id="th_timeoffset">{lang time_zone}</th>
  214. <td id="td_timeoffset">
  215. <!--{eval $timeoffset = array({lang timezone});}-->
  216. <select name="timeoffset">
  217. <!--{loop $timeoffset $key $desc}-->
  218. <option value="$key"{if $key==$space[timeoffset]} selected="selected"{/if}>$desc</option>
  219. <!--{/loop}-->
  220. </select>
  221. <p class="mtn">{lang current_time} : <!--{date($_G[timestamp])}--></p>
  222. <p class="d">{lang time_zone_message}</p>
  223. </td>
  224. <td>&nbsp;</td>
  225. </tr>
  226. <!--{/if}-->
  227. <!--{if $operation == 'contact'}-->
  228. <tr>
  229. <th id="th_sightml">Email</th>
  230. <td id="td_sightml">$space[email]&nbsp;(<a href="home.php?mod=spacecp&ac=profile&op=password&from=contact#contact">{lang modify}</a>)</td>
  231. <td>&nbsp;</td>
  232. </tr>
  233. <!--{/if}-->
  234. <!--{if $operation == 'plugin'}-->
  235. <!--{eval include(template($_GET['id']));}-->
  236. <!--{/if}-->
  237. <!--{hook/spacecp_profile_extra}-->
  238. <!--{if $showbtn}-->
  239. <tr>
  240. <th>&nbsp;</th>
  241. <td colspan="2">
  242. <input type="hidden" name="profilesubmit" value="true" />
  243. <button type="submit" name="profilesubmitbtn" id="profilesubmitbtn" value="true" class="pn pnc" /><strong>{lang save}</strong></button>
  244. <span id="submit_result" class="rq"></span>
  245. </td>
  246. </tr>
  247. <!--{/if}-->
  248. </table>
  249. <!--{hook/spacecp_profile_bottom}-->
  250. </form>
  251. <script type="text/javascript">
  252. function show_error(fieldid, extrainfo) {
  253. var elem = $('th_'+fieldid);
  254. if(elem) {
  255. elem.className = "rq";
  256. fieldname = elem.innerHTML;
  257. extrainfo = (typeof extrainfo == "string") ? extrainfo : "";
  258. $('showerror_'+fieldid).innerHTML = "{lang check_date_item} " + extrainfo;
  259. $(fieldid).focus();
  260. }
  261. }
  262. function show_success(message) {
  263. message = message == '' ? '{lang update_date_success}' : message;
  264. showDialog(message, 'right', '{lang reminder}', function(){
  265. top.window.location.href = top.window.location.href;
  266. }, 0, null, '', '', '', '', 3);
  267. }
  268. function clearErrorInfo() {
  269. var spanObj = $('profilelist').getElementsByTagName("div");
  270. for(var i in spanObj) {
  271. if(typeof spanObj[i].id != "undefined" && spanObj[i].id.indexOf("_")) {
  272. var ids = explode('_', spanObj[i].id);
  273. if(ids[0] == "showerror") {
  274. spanObj[i].innerHTML = '';
  275. $('th_'+ids[1]).className = '';
  276. }
  277. }
  278. }
  279. }
  280. </script>
  281. <!--{/if}-->
  282. </div>
  283. </div>
  284. <div class="appl">
  285. <!--{subtemplate home/spacecp_footer}-->
  286. </div>
  287. <!--{/if}-->
  288. </div>
  289. <!--{template common/footer}-->