updatePassword.jsp
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:3k
源码类别:

企业管理

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.domain.UserForm"%>
  3. <%@ page import="com.tool.Chinese"%>
  4. <%UserForm form=(UserForm)session.getAttribute("form");%>
  5. <%session.setAttribute("form",form);%>
  6. <%session.setMaxInactiveInterval(3600);%>
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  10. <title>添写新的密码</title>
  11. <style type="text/css">
  12. <!--
  13. body {
  14. background-color: #000000;
  15. margin-left: 0px;
  16. margin-top: 0px;
  17. }
  18. td{
  19. font-size:9pt;
  20. }
  21. .style1 {font-size: 11pt}
  22. -->
  23. </style>
  24. </head>
  25. <script language="JavaScript">
  26. function RgTest(){
  27. if(document.form.mm.value==""){
  28. window.alert("请输入新原来的密码");
  29. return false;
  30. }
  31. if(document.form.password.value==""){
  32. window.alert("请再输入新原来的密码");
  33. return false;
  34. }
  35. if(document.form.password.value!=document.form.mm.value){
  36. window.alert("密码不一致,请重新输入");
  37. return false;
  38. }
  39. return true;
  40. }
  41. </script>
  42. <body> 
  43. <table width="579"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
  44.   <tr> 
  45.     <td>&nbsp;</td> 
  46.   </tr> 
  47. </table> 
  48. <table width="579" border="0" cellpadding="0" cellspacing="0"> 
  49.   <tr> 
  50.     <td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487"  border="0" cellpadding="0" cellspacing="0"> 
  51.         <tr> 
  52.           <td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0"> 
  53.               <tr> 
  54.                 <td width="2%" height="28">&nbsp;</td> 
  55.                 <td width="9%" background="images/circle.jpg">&nbsp;</td> 
  56.                 <td width="89%" bgcolor="#FFFFFF"><span class="style1">输入新的密码</span></td> 
  57.               </tr> 
  58.               <tr style="line-height:2px"> 
  59.                 <td width="2%" height="5">&nbsp;</td> 
  60.                 <td height="5" colspan="2" bgcolor="#D4D0C8">&nbsp;</td> 
  61.               </tr> 
  62.               <tr align="center" valign="top" bgcolor="#FFFFFF"> 
  63.                 <td height="454" colspan="3">
  64. <form name="form" method="post" action="../../../userUpdatePassword.do?user-id=<%=request.getParameter("id")%>" onSubmit="return RgTest()">
  65.                       <p>&nbsp;</p>
  66.                       <table width="57%"  border="4" cellspacing="0" cellpadding="0">
  67.                         <tr>
  68.                           <td width="31%" height="41"><div align="center">输入新的密码</div></td>
  69.                           <td width="69%"><div  align="center"><input type="text" name="mm"></div></td>
  70.                         </tr>
  71. <tr>
  72.                           <td width="31%" height="41"><div align="center">再输入新的密码</div></td>
  73.                           <td width="69%"><div  align="center"><input type="text" name="password"></div></td>
  74.                         </tr>
  75.                       </table>
  76.   <p>
  77.   <input type="submit" name="Submit2" value="提交">
  78. &nbsp;&nbsp;&nbsp;&nbsp;
  79.         <input type="reset" name="Submit" value="重置">
  80.                       </p>
  81. </form>
  82.                 </table></td> 
  83.         </tr> 
  84.       </table></td> 
  85.   </tr> 
  86. </table> 
  87. </body>
  88. </html>