setpwd.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <include file="Public:header" />
  2. <div id="main-content">
  3. <div id="top-alert" class="fixed alert alert-error" style="display: none;">
  4. <button class="close fixed" style="margin-top: 4px;">&times;</button>
  5. <div class="alert-content">警告内容</div>
  6. </div>
  7. <div id="main" class="main">
  8. <div class="main-title-h">
  9. <span class="h1-title">修改密码</span>
  10. </div>
  11. <div class="tab-wrap">
  12. <div class="tab-content">
  13. <form id="form" action="{:U('User/setpwd')}" method="post" class="form-horizontal">
  14. <div id="tab" class="tab-pane in tab">
  15. <div class="form-item cf">
  16. <table>
  17. <tr class="controls">
  18. <td class="item-label">旧密码 :</td>
  19. <td><input type="password" class="form-control" name="oldpassword" value=""></td>
  20. <td class="item-note"></td>
  21. </tr>
  22. <tr class="controls">
  23. <td class="item-label">新密码 :</td>
  24. <td><input type="password" class="form-control" name="newpassword" value=""></td>
  25. <td class="item-note"></td>
  26. </tr>
  27. <tr class="controls">
  28. <td class="item-label">确认密码 :</td>
  29. <td><input type="password" class="form-control" name="repassword" value=""></td>
  30. <td class="item-note"></td>
  31. </tr>
  32. <tr class="controls">
  33. <td class="item-label"></td>
  34. <td>
  35. <div class="form-item cf">
  36. <button class= "btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确
  37. 定</button>
  38. <a class="btn btn-return" href="{$Think.server.HTTP_REFERER}">返 回</a>
  39. <notempty name="data.id"> <input type="hidden" name="id" value="{$data.id}" /> </notempty>
  40. </div>
  41. </td>
  42. </tr>
  43. </table>
  44. </div>
  45. </div>
  46. </form>
  47. <script type="text/javascript">
  48. //提交表单
  49. $('#submit').click(function() {
  50. $('#form').submit();
  51. });
  52. </script>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. <script type="text/javascript">
  58. $(function() {
  59. //主导航高亮
  60. $('.index-box').addClass('current');
  61. //边导航高亮
  62. $('.index-index').addClass('current');
  63. });
  64. </script>
  65. <include file="Public:footer" />