%%7A^7A8^7A8C3B5F%%modify_password.html.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php /* Smarty version 2.6.17, created on 2018-04-18 11:20:25
  2. compiled from admin/backUser/modify_password.html */ ?>
  3. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  4. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
  5. $this->_tpl_vars = $_smarty_tpl_vars;
  6. unset($_smarty_tpl_vars);
  7. ?>
  8. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  9. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
  10. $this->_tpl_vars = $_smarty_tpl_vars;
  11. unset($_smarty_tpl_vars);
  12. ?>
  13. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  14. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
  15. $this->_tpl_vars = $_smarty_tpl_vars;
  16. unset($_smarty_tpl_vars);
  17. ?>
  18. <?php if ($this->_tpl_vars['successMsg']): ?>
  19. <div class="tip_message_success"><?php echo $this->_tpl_vars['successMsg']; ?>
  20. </div>
  21. <?php endif; ?>
  22. <?php if ($this->_tpl_vars['errMsg']): ?>
  23. <div class="tip_message_fail"><?php echo $this->_tpl_vars['errMsg']; ?>
  24. </div>
  25. <?php endif; ?>
  26. <div style="width:400px;">
  27. <form class="form-horizontal" role="form" method="post">
  28. <div class="form-group">
  29. <label for="t1" class="col-sm-3 control-label">用户名:</label>
  30. <div class="col-sm-7">
  31. <p class="form-control-static"><?php echo $this->_tpl_vars['user']['name']; ?>
  32. </p>
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label for="t2" class="col-sm-3 control-label">原始密码:</label>
  37. <div class="col-sm-7">
  38. <input name='oldPassword' type="password" class="form-control" id="t2">
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label class="col-sm-3 control-label">新密码:</label>
  43. <div class="col-sm-7">
  44. <input name='newPassword' type="password" class="form-control" placeholder="新密码不能小于6位">
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="col-sm-3 control-label">确认密码:</label>
  49. <div class="col-sm-7">
  50. <input id="confirmPass" type="password" class="form-control">
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <div class="col-sm-offset-3 col-sm-7">
  55. <button type="submit" class="btn btn-primary btn-sm">提交</button>
  56. </div>
  57. </div>
  58. </form>
  59. </div>
  60. <script>
  61. KISSY.use('node', function (S, Node) {
  62. var $ = S.all;
  63. $('button').on('click', function () {
  64. var oldPassword = $('input[name=oldPassword]').val();
  65. if (!S.trim(oldPassword)) {
  66. alert('请填写原始密码');
  67. return false;
  68. }
  69. var newPassword = $('input[name=newPassword]').val();
  70. if (!S.trim(newPassword)) {
  71. alert('请填写新密码');
  72. return false;
  73. }
  74. var confirmPass = $('#confirmPass').val();
  75. if (!S.trim(confirmPass)) {
  76. alert('请填写确认密码');
  77. return false;
  78. }
  79. if (newPassword != confirmPass) {
  80. alert('确认密码填写错误');
  81. return false;
  82. }
  83. });
  84. });
  85. </script>
  86. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  87. $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
  88. $this->_tpl_vars = $_smarty_tpl_vars;
  89. unset($_smarty_tpl_vars);
  90. ?>