123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ page isELIgnored="false" %>
- <%
- String path = request.getContextPath();
- %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="pragma" content="no-cache" />
- <meta http-equiv="cache-control" content="no-cache" />
- <meta http-equiv="expires" content="0" />
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
- <meta http-equiv="description" content="This is my page" />
-
- <link rel="stylesheet" type="text/css" href="<%=path %>/css/base.css" />
-
- <script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
- <script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
- <script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
-
- <script language="javascript">
- function check()
- {
- var userPwReal="${sessionScope.admin.userpw}";
- if(document.formPw.userPw.value !=userPwReal)
- {
- alert("原密码不正确");
- return false;
- }
-
- if(document.formPw.userPw1.value =="")
- {
- alert("新密码不能空");
- return ;
- }
- if(document.formPw.userPw1.value != document.formPw.userPw2.value)
- {
- alert("两次输入的密码不一致");
- return ;
- }
-
- document.getElementById("indicator").style.display="block";
- loginService.adminPwEdit(document.formPw.userPw1.value,callback);
- }
- function callback(data)
- {
- document.getElementById("indicator").style.display="none";
- alert("修改成功");
- }
- </script>
- </head>
- <body leftmargin="2" topmargin="9" background='<%=path %>/images/allbg.gif'>
- <form method="post" action="<%=path %>/userPwEdit.action" name="formPw">
- <table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px">
- <tr bgcolor="#EEF4EA">
- <td colspan="2" background="<%=path %>/images/wbg.gif" class='title'><span>密码修改</span></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="25%" bgcolor="#FFFFFF" align="right">
- 登录名:
- </td>
- <td width="75%" bgcolor="#FFFFFF">
- <input type="text" value="${sessionScope.admin.username }" name="userName" style="width:340px"disabled="disabled"/>
- </td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="25%" bgcolor="#FFFFFF" align="right">
- 原密码:
- </td>
- <td width="75%" bgcolor="#FFFFFF">
- <input type="password" name="userPw" id="userPw" style="width:340px"/>
- </td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="25%" bgcolor="#FFFFFF" align="right">
- 新密码:
- </td>
- <td width="75%" bgcolor="#FFFFFF">
- <input type="password" id="userPw1" name="userPw1" style="width:340px"/>
- </td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="25%" bgcolor="#FFFFFF" align="right">
- 确认密码:
- </td>
- <td width="75%" bgcolor="#FFFFFF">
- <input type="password" name="userPw2" id="userPw2" style="width:340px"/>
- </td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="25%" bgcolor="#FFFFFF" align="right">
-
- </td>
- <td width="75%" bgcolor="#FFFFFF">
- <input type="button" value="修改" onclick="check()"/>
-
- <input type="reset" value="重置"/>
- <img id="indicator" src="<%=path %>/images/loading32.gif" alt="Loading..." style="display:none"/>
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>
|