editPwd.htm 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <link rel="stylesheet" href="/admin/assets/css/bootstrap.min.css" />
  2. <link rel="stylesheet" href="/admin/assets/css/font-awesome.min.css" />
  3. <link rel="stylesheet" href="/admin/assets/css/ace.min.css" />
  4. <link rel="stylesheet" href="/admin/assets/css/ace-rtl.min.css" />
  5. <link rel="stylesheet" href="/admin/assets/css/ace-skins.min.css" />
  6. <script src="/admin/script/jquery.min.js"></script>
  7. <script src="/admin/script/jquery.form.js"></script>
  8. <div class="page-content" style="height:450px;overflow:scroll;">
  9. <div class="page-header">
  10. <h1>账户安全</h1>
  11. </div>
  12. <div class="row">
  13. <div class="col-xs-12">
  14. <form class="form-horizontal" action="/admin/system/updatePwd" method="post" id="submit_form">
  15. <div class="form-group">
  16. <label class="col-sm-3 control-label"><span style="color: #f00">*</span>密码</label>
  17. <div class="col-sm-9">
  18. <input type="password" name="password" class="col-xs-10 col-sm-5" style="border: 1px solid #ccc" />
  19. </div>
  20. </div>
  21. <div class="space-4"></div>
  22. <div class="form-group">
  23. <label class="col-sm-3 control-label"><span style="color: #f00">*</span>确认密码</label>
  24. <div class="col-sm-9">
  25. <input type="password" name="check_password" class="col-xs-10 col-sm-5" style="border: 1px solid #ccc" />
  26. </div>
  27. </div>
  28. </form>
  29. </div>
  30. </div>
  31. </div>
  32. <div style="width:100%;text-align: center;">
  33. <button type="button" class="btn btn-info" onclick="return submitForm()" style="padding:0px 5px;margin-top:5px;">
  34. <i class="icon-ok bigger-110"></i>确定
  35. </button>
  36. &nbsp;&nbsp;
  37. <button type="reset" class="btn" onclick="parent.hideAlert()" style="padding:0px 5px;margin-top:5px;">
  38. <i class="icon-undo bigger-110"></i>取消
  39. </button>
  40. </div>
  41. <script>
  42. function submitForm(){
  43. $('#submit_form').ajaxSubmit({
  44. success: function(data){
  45. alert(data.msg);
  46. if(data.success){
  47. parent.location.href="/admin/layout";
  48. }
  49. }
  50. });
  51. }
  52. </script>