ChangePassword.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:6k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>修改密码-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
- <script language="JavaScript" type="text/javascript">
- function checkChangePassword()
- {
- if(document.changepassword.UserName.value=="")
- {
- alert("请输入用户名称!");
- document.changepassword.UserName.focus();
- return false;
- }
- if(document.changepassword.OldPassword.value=="")
- {
- alert("输入旧用户密码!");
- document.changepassword.OldPassword.focus();
- return false;
- }
- if(document.changepassword.Password.value=="")
- {
- alert("输入新用户密码!");
- document.changepassword.Password.focus();
- return false;
- }
- if(document.changepassword.Password1.value=="")
- {
- alert("输入新确认密码!");
- document.changepassword.Password1.focus();
- return false;
- }
- if(document.changepassword.Password.value!=document.changepassword.Password1.value)
- {
- alert("新用户密码和新确认密码不一致,请重新填写新密码!");
- document.changepassword.Password.value="";
- document.changepassword.Password1.value="";
- document.changepassword.Password.focus();
- return false;
- }
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="50" valign="top" background="../images/dy-back.gif">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr valign="middle">
- <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
- <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">修改用户密码</font></strong></td>
- <td align="right" nowrap="nowrap" valign="bottom">
- <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59"> -->
- <!--单增<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59"> -->
- <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59"> -->
- <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59"> -->
- <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59"> -->
- <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79"> -->
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <form name="changepassword" action="ChangePasswordAction.jsp" method="post" onSubmit="javascript:return checkChangePassword();">
- <table width="70%" border="1" align="center" cellpadding="1" cellspacing="1">
- <tr>
- <td width="14%" align="right" valign="middle"><font color="#0A0A0A"> 用 户 名 称: </font></td>
- <td width="70%" align="left" valign="middle" nowrap> <input name="UserName" type="text" maxlength="50" value="">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A"> 旧 密 码: </font></td>
- <td align="left" valign="middle" nowrap> <input name="OldPassword" type="Password" value="" size="50">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A"> 新 密 码: </font></td>
- <td align="left" valign="middle" nowrap> <input name="Password" type="Password" value="" size="50">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A"> 确 认 密 码: </font></td>
- <td align="left" valign="middle" nowrap> <input name="Password1" type="Password" value="" size="50">
- </td>
- </tr>
- </table>
- <table width="70%" border="0">
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td> </td>
- <td align="right" valign="middle" nowrap>
- <input type="submit" value="修 改 密 码" style="background-color: #FFFFFF; border: 1 solid #000000"> <input type="reset" value="重 填" style="background-color: #FFFFFF; border: 1 solid #000000"> <input type="button" value="返 回" onclick="history.back();" style="background-color: #FFFFFF; border: 1 solid #000000">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- </tr>
- </table>
- </form>
- </td>
- <!-- 去掉右边图片 马登军2003年6月3日
- -->
- </tr>
- </table>
- </body>
- </html>