updatepassword.aspx
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:10k
源码类别:
OA系统
开发平台:
C#
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="updatepassword.aspx.cs" Inherits="updatepassword" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <title>修改密码</title>
- <script language="JavaScript">
- <!--
- function check() {
- if (document.form1.oldpd.value=="") {
- window.alert ("请输入旧密码 !")
- document.form1.oldpd.focus()
- return false
- }
- if (document.form1.oldpd.value.length<5) {
- window.alert ("请输入5位及以上旧密码 !")
- document.form1.oldpd.focus()
- return false
- }
- if (document.form1.newpd.value=="") {
- window.alert ("请输入新密码 !")
- document.form1.newpd.focus()
- return false
- }
- if (document.form1.newpd.value.length<5) {
- window.alert ("请输入5位及以上新密码 !")
- document.form1.newpd.focus()
- return false
- }
- if (document.form1.conpd.value=="") {
- window.alert ("请输入确认密码 !")
- document.form1.conpd.focus()
- return false
- }
- if (document.form1.conpd.value.length<5) {
- window.alert ("请输入5位及以上确认密码!")
- document.form1.conpd.focus()
- return false
- }
- if(document.form1.conpd.value!=document.form1.newpd.value) {
- window.alert ("两次输入的密码不一样 !")
- document.form1.conpd.focus()
- return false
- }
- 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))
- {
- alert("请勿输入非法字符!")
- return false;
- }
- return true
- }
- -->
- </SCRIPT>
- <style type="text/css">
- <!--
- .style1 {color: #FFFFFF}
- -->
- </style>
- <link href="../css/link.css" rel="stylesheet" type="text/css">
- <link href="../css/input.css" rel="stylesheet" type="text/css">
- <style type="text/css">
- <!--
- .style6 {font-size: 12px}
- -->
- </style>
- </head>
- <body>
- <%
- //取登陆人信息
- COM.OA.Entity.users loginuser =Session["loginuser"] as COM.OA.Entity.users;
- //如果取不到跳转到登陆页
- if (loginuser == null)
- {
- this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
- }
- %>
- <div align="center">
- <table width="58%" border="0">
- <tr>
- <td height="88"><form name="form1" method="post" action="password.aspx" onSubmit="return check()">
- <div align="center">
- <table width="600" height="21" border="0" cellpadding="0" cellspacing="1" background="../images/wximg/1.jpg">
- <tr>
- <td><div align="center"><span class="style1"><strong>密 码 修 改</strong></span></div></td>
- </tr>
- </table>
- <table width="600" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
- <tr>
- <td><table width="100%" border="0" cellpadding="3" cellspacing="0">
- <tr>
- <td colspan="2" bgcolor="#FFFFFF"><div align="center"></div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="27%"><div align="right">旧密码:</div></td>
- <td width="73%"><div align="left">
- <input name="oldpd" type="password" id="oldpd">
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right">新密码:</div></td>
- <td><div align="left">
- <input name="newpd" type="password" id="newpd">
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right">确认密码:</div></td>
- <td><div align="left">
- <input name="conpd" type="password" id="conpd">
- </div></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td><div align="right"></div></td>
- <td><div align="left">
- <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>
- <input name="提交" type=submit style="FONT-SIZE: 12px; HEIGHT: 27px" value= " 保 存 " >
- </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>
- <input name="重置" type=reset style="FONT-SIZE: 12px; HEIGHT: 27px" value= " 重 填 " >
- </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>
- </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>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="10" colspan="2"> </td>
- </tr>
- </table></td>
- </tr>
- </table>
- <p> </p>
- </div>
- </form></td>
- </tr>
- </table>
- </div>
- </body>
- </html>