No Description
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.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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="/public/static/common/js/mobile_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" placeholder="原密码">
  27. </div>
  28. <div class="form-group">
  29. <input type="password" name="password" required class="form-control" placeholder="新密码">
  30. </div>
  31. <div class="form-group">
  32. <input type="password" name="password2" required data-password="password" 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. $.ajax({
  44. url: "{eyou:url link='user/Users/change_pwd' /}",
  45. data: $('#theForm_s').serialize(),
  46. type:'post',
  47. dataType:'json',
  48. success:function(res){
  49. if(res.code == 1){
  50. parent.layer.close(parentObj);
  51. parent.layer.msg(res.msg, {time: 1000});
  52. }else{
  53. layer.closeAll();
  54. layer.msg(res.msg, {icon: 5});
  55. }
  56. },
  57. error : function(e) {
  58. layer.closeAll();
  59. showErrorAlert(e.responseText);
  60. }
  61. });
  62. };
  63. </script>
  64. </body>
  65. </html>