updatepassword.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:10k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="updatepassword.aspx.cs" Inherits="updatepassword" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>修改密码</title>
  6.     <script language="JavaScript">
  7. <!--
  8. function check() {
  9. if (document.form1.oldpd.value=="") {
  10. window.alert ("请输入旧密码 !")
  11. document.form1.oldpd.focus()
  12. return false
  13. }
  14. if (document.form1.oldpd.value.length<5) {
  15. window.alert ("请输入5位及以上旧密码 !")
  16. document.form1.oldpd.focus()
  17. return false
  18. }
  19. if (document.form1.newpd.value=="") {
  20. window.alert ("请输入新密码 !")
  21. document.form1.newpd.focus()
  22. return false
  23. }
  24. if (document.form1.newpd.value.length<5) {
  25. window.alert ("请输入5位及以上新密码 !")
  26. document.form1.newpd.focus()
  27. return false
  28. }
  29. if (document.form1.conpd.value=="") {
  30. window.alert ("请输入确认密码 !")
  31. document.form1.conpd.focus()
  32. return false
  33. }
  34. if (document.form1.conpd.value.length<5) {
  35. window.alert ("请输入5位及以上确认密码!")
  36. document.form1.conpd.focus()
  37. return false
  38. }
  39. if(document.form1.conpd.value!=document.form1.newpd.value) {
  40. window.alert ("两次输入的密码不一样 !")
  41. document.form1.conpd.focus()
  42. return false
  43. }
  44.   if ((document.form1.oldpd.value.indexOf(",")>-1)||(document.form1.newpd.value.indexOf("=")>-1)||(document.form1.oldpd.value.indexOf("=")>-1)||(document.form1.newpd.value.indexOf(".")>-1)||(document.form1.oldpd.value.indexOf(".")>-1)||(document.form1.newpd.value.indexOf(",")>-1)||(document.form1.oldpd.value.indexOf("'")>-1)||(document.form1.newpd.value.indexOf("'")>-1)||(document.form1.oldpd.value.indexOf("'")>-1)||(document.form1.newpd.value.indexOf("'")>-1)||(document.form1.newpd.value.indexOf("?")>-1)||(document.form1.oldpd.value.indexOf("?")>-1)||(document.form1.newpd.value.indexOf(";")>-1)||(document.form1.oldpd.value.indexOf(";")>-1)||(document.form1.newpd.value.indexOf("=")>-1)||(document.form1.oldpd.value.indexOf("=")>-1)||(document.form1.newpd.value.indexOf("+")>-1)||(document.form1.oldpd.value.indexOf("+")>-1)||(document.form1.newpd.value.indexOf("-")>-1)||(document.form1.oldpd.value.indexOf("-")>-1)||(document.form1.newpd.value.indexOf("&")>-1)||(document.form1.oldpd.value.indexOf("&")>-1)||(document.form1.newpd.value.indexOf("/")>-1))
  45.   {
  46. alert("请勿输入非法字符!")
  47. return false;
  48. }
  49. return true
  50. }
  51. -->
  52. </SCRIPT>
  53.    <style type="text/css">
  54. <!--
  55. .style1 {color: #FFFFFF}
  56. -->
  57. </style>
  58. <link href="../css/link.css" rel="stylesheet" type="text/css">
  59. <link href="../css/input.css" rel="stylesheet" type="text/css">
  60. <style type="text/css">
  61. <!--
  62. .style6 {font-size: 12px}
  63. -->
  64. </style>
  65. </head>
  66. <body>
  67. <% 
  68. //取登陆人信息 
  69.                     COM.OA.Entity.users loginuser =Session["loginuser"] as COM.OA.Entity.users;
  70.     //如果取不到跳转到登陆页
  71.                     if (loginuser == null)
  72.                     {
  73.                         this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
  74.                     }
  75.                      %>
  76.     <div align="center">
  77.   <table width="58%"  border="0">
  78.     <tr>
  79.       <td height="88"><form name="form1" method="post" action="password.aspx" onSubmit="return check()">
  80.         <div align="center">
  81.           <table width="600" height="21" border="0" cellpadding="0" cellspacing="1" background="../images/wximg/1.jpg">
  82.             <tr>
  83.               <td><div align="center"><span class="style1"><strong>密 码 修 改</strong></span></div></td>
  84.             </tr>
  85.           </table>
  86.           <table width="600" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
  87.             <tr>
  88.               <td><table width="100%"  border="0" cellpadding="3" cellspacing="0">
  89.                 <tr>
  90.                   <td colspan="2" bgcolor="#FFFFFF"><div align="center"></div></td>
  91.                 </tr>
  92.                 <tr bgcolor="#FFFFFF">
  93.                   <td width="27%"><div align="right">旧密码:</div></td>
  94.                   <td width="73%"><div align="left">
  95.                       <input name="oldpd" type="password" id="oldpd">
  96.                   </div></td>
  97.                 </tr>
  98.                 <tr bgcolor="#FFFFFF">
  99.                   <td><div align="right">新密码:</div></td>
  100.                   <td><div align="left">
  101.                       <input name="newpd" type="password" id="newpd">
  102.                   </div></td>
  103.                 </tr>
  104.                 <tr bgcolor="#FFFFFF">
  105.                   <td><div align="right">确认密码:</div></td>
  106.                   <td><div align="left">
  107.                       <input name="conpd" type="password" id="conpd">
  108.                   </div></td>
  109.                 </tr>
  110.                 <tr bgcolor="#FFFFFF">
  111.                   <td><div align="right"></div></td>
  112.                   <td><div align="left">
  113.                       <span class="style6"><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
  114.                       <input name="提交" type=submit style="FONT-SIZE: 12px; HEIGHT: 27px"  value= " 保 存 " >
  115.                       </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG> </font></strong></font></strong></font></strong> </font></strong></FONT></STRONG> </FONT></STRONG> <STRONG><FONT color=#ffffff> <strong><font color=#ffffff> <STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>   <STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
  116.                       <input name="重置" type=reset style="FONT-SIZE: 12px; HEIGHT: 27px"  value= " 重 填 " >
  117.                       </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG> </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG> &nbsp;
  118.                       </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></span></span></span></div></td>
  119.                 </tr>
  120.                 <tr bgcolor="#FFFFFF">
  121.                   <td height="10" colspan="2">&nbsp;</td>
  122.                   </tr>
  123.               </table></td>
  124.             </tr>
  125.           </table>
  126.           <p>&nbsp;</p>
  127.         </div>
  128.       </form></td>
  129.     </tr>
  130.   </table>
  131. </div>
  132. </body>
  133. </html>