modify_paypwd.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.payment_password_instructions1|raw}</li>
  7. <li>{$Think.lang.payment_password_instructions2}</li>
  8. </ul>
  9. </div>
  10. <div class="dsm-default-form">
  11. <form method="post" id="password_form" name="password_form" action="{:url('Membersecurity/modify_paypwd')}">
  12. <dl>
  13. <dt><i class="required">*</i>{$Think.lang.set_payment_password}:</dt>
  14. <dd>
  15. <input type="password" maxlength="40" class="password" name="password" id="password"/>
  16. <label for="password" generated="true" class="error"></label>
  17. <p class="hint">{$Think.lang.payment_password_instructions3}</p></dd>
  18. </dl>
  19. <dl>
  20. <dt><i class="required">*</i>{$Think.lang.confirm_payment_password}:</dt>
  21. <dd>
  22. <input type="password" maxlength="40" class="password" name="confirm_password" id="confirm_password" />
  23. <label for="confirm_password" generated="true" class="error"></label>
  24. </dd>
  25. </dl>
  26. <dl class="bottom">
  27. <dt>&nbsp;</dt>
  28. <dd>
  29. <input type="submit" class="submit" value="{$Think.lang.ds_submit}" />
  30. </dd>
  31. </dl>
  32. </form>
  33. </div>
  34. <script type="text/javascript">
  35. $(function(){
  36. $('#password_form').validate({
  37. submitHandler:function(form){
  38. ds_ajaxpost('password_form', 'url', "{:url('Membersecurity/index')}")
  39. },
  40. rules : {
  41. password : {
  42. required : true,
  43. minlength : 6,
  44. maxlength : 20
  45. },
  46. confirm_password : {
  47. required : true,
  48. equalTo : '#password'
  49. }
  50. },
  51. messages : {
  52. password : {
  53. required : '<i class="iconfont">&#xe64c;</i>{$Think.lang.please_enter_password_correctly}',
  54. minlength : '<i class="iconfont">&#xe64c;</i>{$Think.lang.please_enter_password_correctly}',
  55. maxlength : '<i class="iconfont">&#xe64c;</i>{$Think.lang.please_enter_password_correctly}'
  56. },
  57. confirm_password : {
  58. required : '<i class="iconfont">&#xe64c;</i>{$Think.lang.please_enter_password_correctly}',
  59. equalTo : '<i class="iconfont">&#xe64c;</i>{$Think.lang.two_password_inconsistencies}'
  60. }
  61. }
  62. });
  63. });
  64. </script>
  65. {/block}