password.jsp
上传用户:liangcc
上传日期:2019-05-24
资源大小:4412k
文件大小:4k
源码类别:

WEB邮件程序

开发平台:

Java

  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <html>
  3. <head>
  4. <title>修改密码</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <link href="css/css.css" rel="stylesheet" type="text/css">
  7. </head>
  8. <SCRIPT LANGUAGE=javascript>
  9. <!--
  10. function doSave(){
  11. if(EditForm.oldPassword.value=="")
  12. {
  13. alert("旧密码不能为空!");
  14. EditForm.oldPassword.focus();
  15. return false;
  16. }
  17. if (EditForm.password.value != "" && EditForm.password1.value != "")
  18. {
  19. if (EditForm.password.value != EditForm.password1.value)
  20. {
  21. alert("输入的密码不相同");
  22. return false;
  23. }
  24. }
  25. else 
  26. {alert("新密码不能为空!");
  27. return false;
  28. }
  29. return true;
  30. }
  31. function encode(datastr, bassnum) {
  32. var tempstr;
  33. var tchar;
  34. var newdata = "";
  35. for (var i = 0; i < datastr.length; i++)
  36. {
  37. tchar = 65535 + bassnum - datastr.charCodeAt(i);
  38. tchar = tchar.toString();
  39. while(tchar.length < 5)
  40. {
  41. tchar = "0" + tchar;
  42. }
  43. newdata = newdata + tchar;
  44. }
  45. return newdata;
  46. }
  47. //-->
  48. </script>
  49. <BODY leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" >
  50. <div style="overflow: auto;height:100%;width:100%;">
  51. <table width="100%" height="5%"  border="0" cellpadding="0" cellspacing="0">
  52.   <tr>
  53.     <td width="11" height="11" >&nbsp;</td>
  54.     <td >&nbsp;</td>
  55.   </tr>
  56. </table>
  57. <table width="100%" height="95%"  border="0" cellpadding="0" cellspacing="0" bgcolor="ECF4F5">
  58.  <tr>
  59.     <td align="center" valign="top"><br>
  60.       <br>
  61. <div align="center">
  62. <FORM  name="EditForm" METHOD="POST" ACTION="config.ejf">
  63. <input type="hidden" name="easyJWebCommand" value="password">
  64. <input type="hidden" name="subCommand" value="change">
  65. <table width="90%" border="0" align="center" cellspacing="0" bgcolor="#EFF7FF" style='border-top:1px #8CA5B5 solid;'>
  66.   <tr bgcolor="#dbeaf5">
  67. <td colspan="2" height="30" nowrap style="border-left:1px #8CA5B5 solid; border-right:1px #8CA5B5 solid; border-bottom:1px #8CA5B5 solid;"> 
  68. <div align="center"><font class="s" color="#104A7B"><b>密码修改</b></font></div>
  69. </td>
  70. </tr>
  71.  <tr>
  72. <td width="20%" height="26" style="border-bottom:1px #8CA5B5 solid;"> 
  73. <div align="right">旧 密 码&nbsp;:&nbsp;</div>
  74. </td>
  75. <td style="border-bottom:1px #8CA5B5 solid;">  
  76. &nbsp;<input name="oldPassword" type="password" class="textbox" id="oldPassword" value="" size="50" maxlength="32">
  77. <font color="#FF0000">*</font>
  78. </td>
  79. </tr>
  80.   <tr>
  81. <td width="20%" height="26" style="border-bottom:1px #8CA5B5 solid;"> 
  82. <div align="right">新 密 码&nbsp;:&nbsp;</div>
  83. </td>
  84. <td style="border-bottom:1px #8CA5B5 solid;">  
  85. &nbsp;<input name="password" type="password" class="textbox" id="password" value="" size="50" maxlength="32">
  86. <font color="#FF0000">*</font>
  87. </td>
  88. </tr>
  89.       <tr>
  90.         <td width="20%" height="26" style="border-bottom:1px #8CA5B5 solid;">
  91.           <div align="right">密码确认&nbsp;:&nbsp;</div>
  92.         </td>
  93.         <td style="border-bottom:1px #8CA5B5 solid;">  
  94.           &nbsp;<input name="password1" type="password" class="textbox" id="password1" value="" size="50" maxlength="32">
  95.           <font color="#FF0000">*</font>
  96.           </td>
  97.       </tr>
  98.       <tr> 
  99.         <td colspan="2" align="center" bgcolor="#ffffff"> <br>
  100.   <input name="提交" type="submit" class="butt" onClick="return doSave()" value=" 确定 "> 
  101.   &nbsp;&nbsp;
  102.   <input type="button" value=" 取消 " onClick="location.replace('main.html')" class="Bsbttn"><br>
  103.         </td>
  104.       </tr>
  105.     </table>
  106. </FORM>
  107. </div>
  108. </td>
  109.   </tr>
  110. </table>
  111. </div>
  112. </body>
  113. </html>