pwd_Modify.jsp
上传用户:ycdfsj258
上传日期:2022-08-04
资源大小:1094k
文件大小:3k
源码类别:

图形图象

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ page import="com.actionForm.ManagerForm" %>
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <%
  5. ManagerForm managerForm=(ManagerForm)request.getAttribute("pwdQueryif");
  6. %>
  7. <head>
  8. <title>图书馆管理系统</title>
  9. <link href="CSS/style.css" rel="stylesheet">
  10. </head>
  11. <script language="javascript">
  12. function checkForm(form){
  13. if(form.oldpwd.value==""){
  14. alert("请输入的原密码!");form.oldpwd.focus();return false;
  15. }
  16. if(form.oldpwd.value!=form.holdpwd.value){
  17. alert("您输入的原密码不正确,请重新输入!");form.oldpwd.value="";
  18. form.oldpwd.focus();return false;
  19. }
  20. if(form.pwd.value==""){
  21. alert("请输入的新密码!");form.pwd.focus();return false;
  22. }
  23. if(form.pwd1.value==""){
  24. alert("请确认新密码!");form.pwd1.focus();return false;
  25. }
  26. if(form.pwd.value!=form.pwd1.value){
  27. alert("您两次输入的新密码不一致,请重新输入!");
  28. form.pwd.value="";form.pwd1.value="";
  29. form.pwd.focus();return false;
  30. }
  31. }
  32. </script>
  33. <body onLoad="clockon(bgclock)">
  34. <table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
  35.   <tr>
  36.     <td height="183">
  37. <%@include file="navigation.jsp"%>
  38. </td>
  39. </tr>
  40. <td>
  41. <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  42.   <tr>
  43.     <td valign="top" bgcolor="#FFFFFF"><table width="99%" height="510"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
  44.   <tr>
  45.     <td height="510" valign="top" style="padding:5px;"><table width="98%" height="487"  border="0" cellpadding="0" cellspacing="0">
  46.       <tr>
  47.         <td height="22" valign="top" class="word_orange">当前位置:更改口令 &gt;&gt;&gt;</td>
  48.       </tr>
  49.       <tr>
  50.         <td align="center" valign="top">
  51.  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  52.   <tr>
  53.     <td width="84%">&nbsp;      </td>
  54. </tr>
  55. </table>  <form name="form1" method="post" action="manager.do?action=modifypwd">
  56.   <table width="47%"  border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
  57.   <tr align="center">
  58.     <td width="27%" align="left" style="padding:5px;">管理员名称:</td>
  59.     <td width="73%" align="left">
  60.       <input name="name" type="text" id="name" value="<%=chStr.toChinese(managerForm.getName())%>" readonly="yes" size="30">    </td>
  61.     <tr>
  62.     <td align="left" style="padding:5px;">原密码:</td>
  63.     <td align="left"><input name="oldpwd" type="password" id="oldpwd" size="30">
  64.       <input name="holdpwd" type="hidden" id="holdpwd" value="<%=chStr.toChinese(managerForm.getPwd())%>"></td>
  65.     </tr>
  66.     <tr>
  67.       <td align="left" style="padding:5px;">新密码:</td>
  68.       <td align="left"><input name="pwd" type="password" id="pwd" size="30"></td>
  69.     </tr>
  70.     <tr>
  71.       <td align="left" style="padding:5px;">确认新密码:</td>
  72.       <td align="left"><input name="pwd1" type="password" id="pwd1" size="30"></td>
  73.     </tr>
  74.     <tr>
  75.       <td height="65" align="left" style="padding:5px;">&nbsp;</td>
  76.       <td><input name="Submit" type="submit" class="btn_grey" value="保存" onClick="return checkForm(form1)">
  77.         &nbsp;
  78.         <input name="Submit2" type="reset" class="btn_grey" value="取消"></td>
  79.     </tr>
  80. </table>
  81. </form></td>
  82.       </tr>
  83.     </table>
  84. </td>
  85.   </tr>
  86. </table><%@ include file="copyright.jsp"%></td>
  87.   </tr>
  88. </table>
  89. </td>
  90.  
  91. </table>
  92. </body>
  93. </html>