updadmin.jsp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <%@ page contentType="text/html;charset=UTF-8" language="java"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
  4. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  5. <%
  6. String base = pageContext.getServletContext().getContextPath();
  7. %>
  8. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  9. <html>
  10. <head>
  11. <link rel="stylesheet" type="text/css"
  12. href="${pageContext.request.contextPath}/static/admin/manage/h-ui/css/H-ui.min.css" />
  13. <link rel="stylesheet" type="text/css"
  14. href="${pageContext.request.contextPath}/static/admin/manage/h-ui.admin/css/H-ui.admin.css" />
  15. <link rel="stylesheet" type="text/css"
  16. href="${pageContext.request.contextPath}/static/admin/manage/Hui-iconfont/1.0.7/iconfont.css" />
  17. <link rel="stylesheet" type="text/css"
  18. href="${pageContext.request.contextPath}/static/admin/manage/icheck/icheck.css" />
  19. <link rel="stylesheet" type="text/css"
  20. href="${pageContext.request.contextPath}/static/admin/manage/h-ui.admin/skin/default/skin.css"
  21. id="skin" />
  22. <link rel="stylesheet" type="text/css"
  23. href="${pageContext.request.contextPath}/static/admin/manage/h-ui.admin/css/style.css" />
  24. <link rel="stylesheet" type="text/css"
  25. href="${pageContext.request.contextPath}/static/admin/css/laydate.css" />
  26. <script type="text/javascript"
  27. src="${pageContext.request.contextPath}/static/js/ajaxfileupload.js"></script>
  28. <script type="text/javascript"
  29. src="${pageContext.request.contextPath}/static/admin/manage/js/jquery.min.js"></script>
  30. <style type="text/css">
  31. .demo1 {
  32. height: 300px;
  33. }
  34. </style>
  35. <title>查看手机产品</title>
  36. </head>
  37. <%-- <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/jquery-1.9.1.min.js"></script> --%>
  38. <script type="text/javascript">
  39. $(function() {
  40. $("#yunapa").change(function() {
  41. var adPass = $("#yunapa").val();
  42. $.post("../admin/ajaxpass.html", {
  43. adPass : adPass
  44. }, function(data) {
  45. if (data.is) {
  46. } else {
  47. alert(data.msg);
  48. $("#yunapa").val("");
  49. }
  50. }, "json");
  51. });
  52. });
  53. </script>
  54. <style type="text/css">
  55. .demo1{
  56. height:300px;
  57. }
  58. </style>
  59. <body>
  60. <nav class="breadcrumb">
  61. <i class="Hui-iconfont">&#xe67f;</i> 首页
  62. <span class="c-gray en">&gt;</span> 管理员
  63. <span class="c-gray en">&gt;</span> 修改管理员
  64. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
  65. </nav>
  66. <div class="page-container">
  67. <form method="post" id="dw" enctype="multipart/form-data" class="form form-horizontal">
  68. <div class="row cl">
  69. <label class="form-label col-xs-4 col-sm-2"><span
  70. class="c-red">*</span>原 密 码:</label>
  71. <div class="formControls col-xs-8 col-sm-9">
  72. <input type="password" class="input-text" id="yunapa">
  73. <input type="hidden" value="1" name="id">
  74. </div>
  75. </div>
  76. <div class="row cl">
  77. <label class="form-label col-xs-4 col-sm-2"><span
  78. class="c-red">*</span>新 密 码:</label>
  79. <div class="formControls col-xs-8 col-sm-9">
  80. <input type="password" id="xingpa" class="input-text" name="password">
  81. </div>
  82. </div>
  83. <div class="row cl">
  84. <label class="form-label col-xs-4 col-sm-2"><span
  85. class="c-red">*</span>确认密码:</label>
  86. <div class="formControls col-xs-8 col-sm-9">
  87. <input type="password" class="input-text" id="querenpa">
  88. </div>
  89. </div>
  90. <div class="row cl">
  91. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  92. <input type="submit" value="确认修改" id="sub" class="btn btn-primary radius">
  93. </div>
  94. </div>
  95. </form>
  96. </div>
  97. <script type="text/javascript">
  98. $("#dw").submit(function() {
  99. var yunapa = $("#yunapa").val();
  100. var xingpa = $("#xingpa").val();
  101. var querenpa = $("#querenpa").val();
  102. if (yunapa == null || yunapa == "") {
  103. alert("请输入原密码~");
  104. return false;
  105. }
  106. if (xingpa == null || xingpa == "") {
  107. alert("请输入新密码~");
  108. return false;
  109. }
  110. if (xingpa != querenpa) {
  111. alert("两次输入的密码不一致~")
  112. return false;
  113. }
  114. $.post("../admin/updadmins.html", $("#dw").serialize(), function() {
  115. top.location.href = "login.html";
  116. }, "json");
  117. return false;
  118. });
  119. </script>
  120. </body>
  121. </html>