⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 passwd.asp

📁 一个简单的客户管理系统
💻 ASP
字号:
<!--#include file="conn.asp"-->

  <script language=javascript>
function CheckForm() {
        
         if (document.form1.passw.value!=document.form1.passw1.value)
           {
            alert("两次输入新密码不同,请重新输入!");
            return false;
           }
}
</script>
<style type="text/css">
<!--
.STYLE2 {font-size: 18px}
.STYLE3 {
	font-size: 18px;
	font-weight: bold;
	color: #FFFFFF;
}
a:link {
	color: #003366;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #003366;
}
a:hover {
	text-decoration: none;
	color: #003366;
}
a:active {
	text-decoration: none;
	color: #003366;
}
body {
	background-color: #ced7f7;
	margin-left: 0px;
	margin-right: 0px;
}
.STYLE5 {
	font-size: 12px;
	color: #000055;
}
-->
</style>

<BODY leftmargin="0" topmargin="0">

<table width="100%" height="35" border="0"  background="../image/top.gif" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><div align="center"><span class="STYLE3">修改密码</span></div></td>
  </tr>
</table>
<div align="center">
  <p>&nbsp;</p>
  <p>
    <%user=session("user")

  exec="select *from che where name='"&user&"'"
  set rs=server.createobject("adodb.recordset")
  rs.open exec,conn,1,3


  if request("action")="set" then
     passold=request.Form("passold")	   
	 if passold=rs("password") then
        rs("password")=request.Form("passw")
		rs.update
	    response.Write "密码修改成功!"
	    rs.Close
        Set rs=Nothing
        Conn.Close
        Set Conn=Nothing
      else 
	  response.Write "密码输入错误!"%>
	  <input type="button" name="Submit" value="请重新输入" onClick="location.href='passwd.asp'">  <%
	 end if
  else
    response.Write "用户名:"    
  response.write user
  %>
    
    
  </p>
</div>
<form name="form1" method="post" action="passwd.asp?action=set" onSubmit="return CheckForm()">
   
    <p align="center">输入原密码:
      <input name="passold" type="text" size="18">
    </p>
    <p align="center">输入新密码:
      <input name="passw" type="password" size="18">
    </p>
    <p align="center">确认新密码:
      <input name="passw1" type="password" size="18">
    </p>
    <p align="center">
      <label>
      <input type="submit" name="Submit" value="提交">
      </label>
      <label>
      <input type="reset" name="Submit2" value="重置">
      </label>
    </p>
</form>
  <p align="center">
    <%end if%>
</p>
  <p>&nbsp;  </p>
  <table width="100%" height="18" border="0"  background="../image/bottom.gif" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td valign="bottom"><div align="center"><span class="STYLE5">版权所有  杰尔康</span><br />
      </div></td>
    </tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -