Geen omschrijving
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.

users_change_pwd.htm 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>修改密码-{eyou:global name='web_name' /}</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
  9. {eyou:static file="users/skin/css/basic.css" /}
  10. {eyou:static file="users/skin/css/eyoucms.css" /}
  11. {eyou:include file="users/skin/css/diy_css.htm" /}
  12. {eyou:static file="/public/static/common/js/jquery.min.js"/}
  13. {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
  14. {eyou:static file="users/skin/js/global.js"/}
  15. <style type="text/css">
  16. #theForm_s .form-group{
  17. margin:10px 0px;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <div class="changepass">
  23. <form name='theForm_s' id="theForm_s" method="post">
  24. <div class="modal-body">
  25. <div class="form-group">
  26. <input type="password" name="oldpassword" required class="form-control" autocomplete="off" placeholder="原密码">
  27. </div>
  28. <div class="form-group">
  29. <input type="password" name="password" required class="form-control" autocomplete="off" placeholder="新密码">
  30. </div>
  31. <div class="form-group">
  32. <input type="password" name="password2" required data-password="password" autocomplete="off" class="form-control" placeholder="确认密码">
  33. </div>
  34. </div>
  35. <div class="modal-footer">
  36. <button type="button" class="btn btn-primary" onclick="checkUser();" style="width:100%">确定</button>
  37. </div>
  38. </form>
  39. </div>
  40. <script type="text/javascript">
  41. function checkUser(){
  42. var parentObj = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  43. layer_loading('正在处理');
  44. $.ajax({
  45. url: "{eyou:url link='user/Users/change_pwd' /}",
  46. data: $('#theForm_s').serialize(),
  47. type:'post',
  48. dataType:'json',
  49. success:function(res){
  50. layer.closeAll();
  51. if(res.code == 1){
  52. parent.layer.close(parentObj);
  53. parent.layer.msg(res.msg, {time: 1000});
  54. }else{
  55. showErrorMsg(res.msg);
  56. }
  57. },
  58. error : function(e) {
  59. layer.closeAll();
  60. showErrorAlert(e.responseText);
  61. }
  62. });
  63. };
  64. </script>
  65. </body>
  66. </html>