ReworkPwd.jsp
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:3k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html; charset=GBK" %>
- <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
- <html>
- <head>
- <title>ReworkPwd</title>
- <link href="<%=request.getContextPath() %>/Manage/Css/skinv2.0.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript">
- var $ = function(s)
- {
- return (typeof s == "object") ? s: document.getElementById(s);
- };
- function Check(){
- if($("txtOld").value == ""){
- alert("旧密码必须填写!");
- return false;
- }
- if($("txtNew1").value == ""){
- alert("新密码必须填写!");
- return false;
- }
- if($("txtNew1").length > 6){
- alert("密码长度必须大于6");
- return false;
- }
- if($("txtNew2").value == ""){
- alert("重复密码必须填写!");
- return false;
- }
- if($("txtNew1").value != $("txtNew2").value){
- alert("两次密码输入必须一样");
- return false;
- }
- }
- </script>
- </head>
- <body bgcolor="#ffffff">
- <form method="post" action="<%=request.getContextPath() %>/Manage/Admin.do?todo=UpdatePwd" enctype="multipart/form-data">
- <table cellspacing="0" cellpadding="0" width="100%" border="0">
- <tr bgcolor="#cfdbe8">
- <td style="WIDTH: 20px" width="20" bgcolor="#cfdbe8" height="19"> <img height="10" src="<%=request.getContextPath() %>/Manage/images/icon.gif" width="12" alt="" /></td>
- <td valign="middle" bgcolor="#cfdbe8" colspan="2"> 用户管理</td>
- </tr>
- <tr>
- <td style="HEIGHT: 31px" valign="top" align="left" height="80"> </td>
- <td style="HEIGHT: 31px" valign="middle" align="left" colspan="2">
- <img src="<%=request.getContextPath() %>/Manage/images/edit.gif" align="middle" alt="" /> 修改密码
- </td>
- </tr>
- <tr>
- <td style="HEIGHT: 1px" valign="top" align="left"></td>
- <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
- <td style="HEIGHT: 1px; width: 144px;" valign="top" align="left"></td>
- </tr>
- <tr>
- <td style="HEIGHT: 381px" valign="top" align="left"></td>
- <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
- <br/>
- <table align="left" bgcolor="#cccccc" border="0" cellpadding="1" cellspacing="1" width="98%">
- <tr bgcolor="#ffffff">
- <td style="height: 25px; width: 117px;">
- 输入旧密码:
- </td>
- <td style="height: 23px">
- <input type="password" id="txtOld" name="oldPwd" value='' />
- </td>
- </tr>
- <tr bgcolor="#ffffff">
- <td style="height: 25px; width: 117px;">
- 输入新密码:
- </td>
- <td style="height: 23px">
- <input type="password" id="txtNew1" name="newPwd1" value='' />
- </td>
- </tr>
- <tr bgcolor="#ffffff">
- <td style="height: 25px; width: 117px;">
- 重复新密码:
- </td>
- <td style="height: 23px">
- <input type="password" id="txtNew2" name="newPwd2" value='' />
- </td>
- </tr>
- <tr bgcolor="#ffffff" align="center">
- <td colspan="2">
- <input type="submit" id="btnSave" value="保 存" onclick="return Check();" />
- <input type="button" value="返 回" onclick="window.history.go(-1);" />
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>