Index_profile.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <script>if(self==top){
  2. window.top.location.href = '{:U("Login/index")}';
  3. }</script>
  4. <style>.mainnav_title{display:none;}</style>
  5. <form method='post' id="myform" action="{:U('Index/profile')}">
  6. <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
  7. <tr>
  8. <td width="120">{:L('username')}</td>
  9. <td>{$vo.username}</td>
  10. </tr>
  11. <tr>
  12. <td width="120">{:L('realname')}</td>
  13. <td><input type="text" class="input-text" name="realname" value="{$vo.realname}"></td>
  14. </tr>
  15. <tr>
  16. <td>{:L('email')}</td>
  17. <td><input type="text" class="input-text" name="email" value="{$vo.email}" validate="required:true,email:true,remote: '{:U('Login/checkEmail?userid='.$_SESSION['userid'])}' , minlength:1, maxlength:40"></td>
  18. </tr>
  19. <tr>
  20. <td>{:L('question')}</td>
  21. <td><input type="text" class="input-text" name="question" value="{$vo.question}"></td>
  22. </tr>
  23. <tr>
  24. <td>{:L('answer')}</td>
  25. <td><input type="text" class="input-text" name="answer" value="{$vo.answer}"></td>
  26. </tr>
  27. <tr>
  28. <td>{:L('sex')}</td>
  29. <td><input type="radio" id="" name="sex" value=1 <eq name='vo.sex' value='1'>checked </eq> />{:L('sex1')}&nbsp;<input type="radio" id="" name="sex" value=2 <eq name='vo.sex' value='2'>checked </eq> />{:L('sex2')} &nbsp;<input type="radio" id="" name="sex" value=1 <eq name='vo.sex' value='0'>checked </eq> />{:L('sex0')}</td>
  30. </tr>
  31. <tr>
  32. <td>{:L('telephone')}</td>
  33. <td><input type="text" class="input-text" name="tel" value="{$vo.tel}"></td>
  34. </tr>
  35. <tr>
  36. <td>{:L('mobile')}</td>
  37. <td><input type="text" class="input-text" name="mobile" value="{$vo.mobile}"></td>
  38. </tr>
  39. <tr>
  40. <td>{:L('fax')}</td>
  41. <td><input type="text" class="input-text" name="fax" value="{$vo.fax}"></td>
  42. </tr>
  43. <tr>
  44. <td>{:L('web_url')}</td>
  45. <td><input type="text" class="input-text" name="web_url" value="{$vo.web_url}"></td>
  46. </tr>
  47. <tr>
  48. <td>{:L('address')}</td>
  49. <td><input type="text" class="input-text" name="address" value="{$vo.address}"></td>
  50. </tr>
  51. </table>
  52. <div class="btn">
  53. <input TYPE="hidden" name="id" value="{$vo.id}">
  54. <INPUT TYPE="submit" name="dosubmit" value="{:L('dosubmit')}" class="button buttonBtn" ><input type="hidden" name="dosubmit" value="1" />
  55. <input TYPE="reset" value="{:L('cancel')}" class="button">
  56. </div>
  57. </form>