ChangePassword.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:6k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  7. <title>修改密码-- GForce OA 2.0</title>
  8. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  9. <script language="JavaScript" src="/js/changestyle.js"></script>
  10. <SCRIPT language="JavaScript" src="/Calendar/PopUpCalendarDlg.js"></SCRIPT>
  11. <script language="JavaScript" type="text/javascript">
  12. function checkChangePassword()
  13. {
  14.     if(document.changepassword.UserName.value=="")
  15.     {
  16.         alert("请输入用户名称!");
  17.         document.changepassword.UserName.focus();
  18.         return false;
  19.     }
  20.     if(document.changepassword.OldPassword.value=="")
  21.     {
  22.         alert("输入旧用户密码!");
  23.         document.changepassword.OldPassword.focus();
  24.         return false;
  25.     }
  26.     if(document.changepassword.Password.value=="")
  27.     {
  28.         alert("输入新用户密码!");
  29.         document.changepassword.Password.focus();
  30.         return false;
  31.     }
  32.     if(document.changepassword.Password1.value=="")
  33.     {
  34.         alert("输入新确认密码!");
  35.         document.changepassword.Password1.focus();
  36.         return false;
  37.     }
  38.     if(document.changepassword.Password.value!=document.changepassword.Password1.value)
  39.     {
  40.         alert("新用户密码和新确认密码不一致,请重新填写新密码!");
  41.         document.changepassword.Password.value="";
  42.         document.changepassword.Password1.value="";
  43.         document.changepassword.Password.focus();
  44.         return false;
  45.     }
  46. }
  47. </script>
  48. </head>
  49. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  50.    <table width="100%" height="100%" border="0" align="center" cellspacing="0">
  51.     <tr>
  52.     <td align="center" valign="top">
  53.       <table width="100%" border="0" cellpadding="0" cellspacing="0">
  54.         <tr>
  55.           <td height="50" valign="top" background="../images/dy-back.gif">
  56.             <table width="100%" border="0" cellpadding="0" cellspacing="0">
  57.               <tr valign="middle">
  58.                 <td width="61" align="center" height="20"><img src="../images/dy-01.gif" width="38" height="36"></td>
  59.                 <td width="118" nowrap="nowrap" valign="middle"><strong><font color="#000000">修改用户密码</font></strong></td>
  60.                 <td align="right" nowrap="nowrap" valign="bottom">&nbsp;
  61.                    <!-- 群增<img src="../images/MulAdd.gif" onMouseOver="this.src='../images/MulAdd_a.gif';" onMouseOut="this.src='../images/MulAdd.gif';" border="0" height="22" width="59">&nbsp;-->
  62.                   <!--单增<img src="../images/Single.gif" onMouseOver="this.src='../images/Single_a.gif';" onMouseOut="this.src='../images/Single.gif';" border="0" height="22" width="59">&nbsp;-->
  63.                   <!-- 修改<img src="../images/Update.gif" onMouseOver="this.src='../images/Update_a.gif';" onMouseOut="this.src='../images/Update.gif';" border="0" height="22" width="59">&nbsp;-->
  64.                   <!-- 删除<img src="../images/Del.gif" onMouseOver="this.src='../images/Del_a.gif';" onMouseOut="this.src='../images/Del.gif';" border="0" height="22" width="59">&nbsp;-->
  65.                   <!-- 查看<img src="../images/Query.gif" onMouseOver="this.src='../images/Query_a.gif';" onMouseOut="this.src='../images/Query.gif';" border="0" height="22" width="59">&nbsp;-->
  66.                   <!-- 组合查询<img src="../images/GroupQuery.gif" onMouseOver="this.src='../images/GroupQuery_a.gif';" onMouseOut="this.src='../images/GroupQuery.gif';" border="0" height="22" width="79">&nbsp;-->
  67.                 </td>
  68.               </tr>
  69.             </table>
  70.           </td>
  71.         </tr>
  72.       </table>
  73.             <form name="changepassword" action="ChangePasswordAction.jsp" method="post" onSubmit="javascript:return checkChangePassword();">
  74.         <table width="70%"  border="1" align="center" cellpadding="1" cellspacing="1">
  75.           <tr>
  76.             <td width="14%" align="right" valign="middle"><font color="#0A0A0A">&nbsp;用&nbsp;户&nbsp;名&nbsp;称:&nbsp;</font></td>
  77.             <td width="70%" align="left" valign="middle" nowrap>&nbsp;<input name="UserName" type="text" maxlength="50" value="">
  78.             </td>
  79.           </tr>
  80.           <tr>
  81.             <td align="right" valign="middle"><font color="#0A0A0A">&nbsp;旧&nbsp;密&nbsp;码:&nbsp;</font></td>
  82.             <td align="left" valign="middle" nowrap>&nbsp;<input name="OldPassword" type="Password" value="" size="50">
  83.             </td>
  84.           </tr>
  85.           <tr>
  86.             <td align="right" valign="middle"><font color="#0A0A0A">&nbsp;新&nbsp;密&nbsp;码:&nbsp;</font></td>
  87.             <td align="left" valign="middle" nowrap>&nbsp;<input name="Password" type="Password" value="" size="50">
  88.             </td>
  89.           </tr>
  90.           <tr>
  91.             <td align="right" valign="middle"><font color="#0A0A0A">&nbsp;确&nbsp;认&nbsp;密&nbsp;码:&nbsp;</font></td>
  92.             <td align="left" valign="middle" nowrap>&nbsp;<input name="Password1" type="Password" value="" size="50">
  93.             </td>
  94.           </tr>
  95.         </table>
  96.         <table width="70%" border="0">
  97.                 <tr>
  98.                     <td>&nbsp;</td>
  99.                </tr>
  100.                 <tr>
  101.                   <td>&nbsp;</td>
  102.                    <td align="right" valign="middle" nowrap>
  103.                      <input type="submit" value="修 改 密 码" style="background-color: #FFFFFF; border: 1 solid #000000">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重 填" style="background-color: #FFFFFF; border: 1 solid #000000">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="返 回" onclick="history.back();" style="background-color: #FFFFFF; border: 1 solid #000000">
  104.             </td>
  105.                 </tr>
  106.                 <tr>
  107.                     <td align="right" valign="middle">&nbsp;</td>
  108.                </tr>
  109.             </table>
  110.             </form>
  111.         </td>
  112. <!--  去掉右边图片   马登军2003年6月3日
  113. -->
  114.     </tr>
  115. </table>
  116. </body>
  117. </html>