modify_email.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. <div class="alert alert-success">
  4. <h4>{$Think.lang.operating_hints}:</h4>
  5. <ul>
  6. <li>{$Think.lang.verify_email_prompt1}</li>
  7. <li>{$Think.lang.verify_email_prompt2}</li>
  8. <li>{$Think.lang.verify_email_prompt3}</li>
  9. </ul>
  10. </div>
  11. <div class="dsm-default-form">
  12. <form method="post" id="email_form" action="{:url('Membersecurity/send_bind_email')}">
  13. <dl>
  14. <dt><i class="required">*</i>{$Think.lang.bind_mailbox_address}:</dt>
  15. <dd>
  16. <input type="text" class="text w180" maxlength="40" value="{$member_info.member_email}" name="email" id="email" />
  17. <label for="email" generated="true" class="error"></label>
  18. </dd>
  19. </dl>
  20. <dl class="bottom">
  21. <dt>&nbsp;</dt>
  22. <dd>
  23. <input type="submit" class="submit" value="{$Think.lang.send_verification_mail}" />
  24. </dd>
  25. </dl>
  26. </form>
  27. </div>
  28. <script type="text/javascript">
  29. $(function(){
  30. $('#email_form').validate({
  31. submitHandler:function(form){
  32. ds_ajaxpost('email_form', 'url', "{:url('Membersecurity/index')}")
  33. },
  34. rules : {
  35. email : {
  36. required : true,
  37. email : true
  38. }
  39. },
  40. messages : {
  41. email : {
  42. required : '<i class="iconfont">&#xe64c;</i>{$Think.lang.please_fill_mailbox_correctly}',
  43. email : '<i class="iconfont">&#xe64c;</i>{$Think.lang.please_fill_mailbox_correctly}'
  44. }
  45. }
  46. });
  47. });
  48. </script>
  49. {/block}