国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
6.7KB

  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
  6. <title>更改帐号基本资料 - 会员中心 - <?php echo $cfg_webname; ?></title>
  7. <link href="templets/style/base.css" rel="stylesheet" type="text/css" />
  8. <script type="text/javascript" src="../static/js/jquery.js"></script>
  9. <script type="text/javascript" language='javascript' src='templets/js/main.js'></script>
  10. <script type="text/javascript" src="templets/js/load.js"></script>
  11. <script type="text/javascript" src="templets/js/leftmenu.js"></script>
  12. <script type="text/javascript">
  13. function checkSubmit() {
  14. if (document.form2.oldpwd.value == '') {
  15. document.form2.oldpwd.focus();
  16. alert("旧密码必须填写!");
  17. return false;
  18. }
  19. if (document.form2.userpwdok.value != document.form2.userpwd.value) {
  20. document.form2.userpwdok.focus();
  21. alert("两次密码不一致!");
  22. return false;
  23. }
  24. if (document.form2.email.value == "") {
  25. document.form2.email.focus();
  26. alert("Email不能为空!");
  27. return false;
  28. }
  29. if (document.form2.uname.value == "") {
  30. document.form2.uname.focus();
  31. alert("用户昵称不能为空!");
  32. return false;
  33. }
  34. if (document.form2.vdcode.value == "") {
  35. document.form2.vdcode.focus();
  36. alert("验证码不能为空!");
  37. return false;
  38. }
  39. }
  40. </script>
  41. </head>
  42. <body>
  43. <div id="main">
  44. <?php include(DEDEMEMBER."/templets/head.htm"); ?>
  45. <div id="content" class="w960 clearfix">
  46. <?php include(DEDEMEMBER."/templets/menu.php"); ?>
  47. <div id="mcpmain">
  48. <div id="appTab">
  49. <ul>
  50. <li class="thisTab"><a href="edit_baseinfo.php">基本资料</a></li>
  51. <li><a href="edit_fullinfo.php">详细资料</a></li>
  52. <li><a href="edit_face.php">头像设置</a></li>
  53. </ul>
  54. </div>
  55. <form action="edit_baseinfo.php" method="post" enctype="multipart/form-data" name="form2"
  56. onsubmit="return checkSubmit();">
  57. <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>" />
  58. <input type="hidden" name="dopost" value="save" />
  59. <div id="mainCp">
  60. <h3 class="meTitle"><strong>基本资料</strong></h3>
  61. <div class="postForm">
  62. <p class="cellBg">
  63. <label>帐号类型:</label>
  64. <?php echo $row['mtype']; ?></p>
  65. <p>
  66. <label>用户名:</label>
  67. <?php echo $cfg_ml->M_LoginID; ?>
  68. </p>
  69. <p class="cellBg">
  70. <label style="width:90px">昵称/公司名称:</label>
  71. <input name="uname" type="text" id="uname" value="<?php echo $row['uname']; ?>" class="intxt"
  72. style="width:100px" />
  73. * <span id="_uname">(个人会员该项为昵称,企业会员填写公司名称)</span>
  74. </p>
  75. <p>
  76. <label>原登陆密码:</label>
  77. <input name="oldpwd" type="password" id="oldpwd" class="intxt" /> <span style="color:red;">*</span>
  78. </p>
  79. <p class="cellBg">
  80. <label>新密码:</label>
  81. <input name="userpwd" type="password" id="userpwd" class="intxt" />
  82. <span id="_userpwdok">(不修改密码请保留此项为空)</span>
  83. </p>
  84. <p>
  85. <label>确认新密码:</label>
  86. <input name="userpwdok" type="password" id="userpwdok" value="" class="intxt" />
  87. <span id="_userpwdok2">(不修改密码请保留此项为空)</span> </span>
  88. </p>
  89. <p class="cellBg">
  90. <label>原安全问题:</label>
  91. <?php
  92. require(DEDEDATA.'/safequestions.php');
  93. echo GetSafequestion($row['safequestion'],'safequestion');
  94. ?>
  95. <span id="_safequestion">(忘记密码时重设密码用)</span>
  96. </p>
  97. <p>
  98. <label>原问题答案:</label>
  99. <input name="safeanswer" type="text" id="safeanswer" value="" class="intxt" />
  100. </p>
  101. <p class="cellBg">
  102. <label>新安全问题:</label>
  103. <?php
  104. echo GetSafequestion(0,'newsafequestion');
  105. ?>
  106. <span id="_safequestionnew">(不修改不用填写)</span>
  107. </p>
  108. <p>
  109. <label>新问题答案:</label>
  110. <input name="newsafeanswer" type="text" id="newsafeanswer" class="intxt" />
  111. </p>
  112. <p class="cellBg">
  113. <label><span class="tdl">电子邮箱</span>:</label>
  114. <input name="email" type="text" id="email" value="<?php echo $row['email']; ?>" class="intxt" /><br>
  115. <span id="_email" style="margin-left:80px"> <span style="color:red;">*</span>
  116. (每个电子邮邮箱只能注册一个帐号,要修改电子邮箱必须填写正确安全问题的答案)</span>
  117. </p>
  118. <p>
  119. <label>性别:</label>
  120. <input type="radio" name="sex" value="男" <?php if($row['sex']=='男') echo " checked='checked' "; ?> />
  121. 男 &nbsp;
  122. <input type="radio" name="sex" value="女" <?php if($row['sex']=='女') echo " checked='checked' "; ?> />
  123. 女 &nbsp;
  124. <input type="radio" name="sex" value="保密'" <?php if($row['sex']=='保密') echo " checked='checked' "; ?> />
  125. 保密
  126. </p>
  127. <p class="cellBg">
  128. <label>验证码:</label>
  129. <input name="vdcode" type="text" id="vdcode" style='width:50px;text-transform:uppercase;'
  130. class="intxt" />
  131. <img src="../plus/vdimgck.php" align="absmiddle" alt="看不清?点击更换" style="cursor:pointer"
  132. onclick="this.src=this.src+'?'" />
  133. </p>
  134. <p>
  135. <button class="button2" type="submit">更新</button>
  136. <button class="button2 ml10" type="reset">重设</button>
  137. </p>
  138. </div>
  139. </div>
  140. </form>
  141. <!--主操作区域 -->
  142. </div>
  143. </div>
  144. <?php include(DEDEMEMBER."/templets/foot.htm"); ?>
  145. </div>
  146. </body>
  147. </html>