📄 changepwd.asp
字号:
<!--#include file="jobconn.asp"-->
<!--#include file="inc/config.asp"-->
<% if session("puid")<>"" then uname=session("puid") end if
if session("cuid")<>"" then uname=session("cuid") end if
stype=request("stype") %>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" type=text/css rel=stylesheet>
<title><%=WebName%> 更改密码</title>
<style>
<!--
#fps0 {font-size: 5pt}
#fps1 {line-height: 150%}
#fps2 {font-size: 6pt}
#fps3 {color:#5e6378;}
-->
</style>
<script language=javaScript src="chromeless_35.js" type=text/javascript></script>
</head>
<body topmargin="0" leftmargin="0">
<div align=center>
<center><table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor=#111111 width=770 id=AutoNumber1 background=img/bg.gif>
<tr>
<td width=100%>
<div align=center>
<center>
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor=#111111 width=760 id=AutoNumber2>
<tr>
<td>
<p align="center">
<img border="0" src="img/01.jpg" >
</td>
</tr>
</table> </center>
</div>
<div align=center>
<center>
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor=#111111 width=760 id=AutoNumber3>
<tr>
<TD id=fps2 width=760 height=3 background=img/dot-black.gif align=center></TD>
</tr>
</table>
</center>
</div>
<div align=center>
<center>
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor=#111111 width=760 id=AutoNumber73>
<tr>
<td width=758 valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber103" bgcolor="#F5F5F5">
<tr>
<td width="100%" height="20">
<p align="center"><span style="letter-spacing: 2">
<b>-------------------------->> 个人信息综合维护中心
<<-------------------------</b></span></td>
</tr>
<tr>
<TD
background="img/bg_03b.gif"><IMG
height=1 src="" width=1></TD>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber104">
<tr>
<td width="175" bgcolor="#e4e5e8" valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber105" bgcolor="#bdbfc8" height="25">
<tr>
<td width="100%">
<p align="center">[ 控 制 向 导 ]</td>
</tr>
</table>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber106">
<tr>
<TD
background="img/bg_03b.gif"><IMG
height=1 src="" width=1></TD>
</tr>
</table>
</center>
</div>
<div align="center">
<center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber110">
<tr>
<td width="100%" height="25">
<p align="left">
<img border="0" src="img/cat.gif">
<span style="letter-spacing: 4"><a href="main.asp">信息中心</a></span></td>
</tr>
</table>
</center>
</div>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber108" height="16">
<tr>
<td width="100%" height="25">
<p align="left">
<img border="0" src="img/cat.gif">
<span style="letter-spacing: 4"><a href="register.asp">登陆简历</a></span></td>
</tr>
<tr>
<td width="100%" height="25" align="center">
<p align="left">
<img border="0" src="img/cat.gif">
<span style="letter-spacing: 4"><a href="modify.asp">维护简历</a></span></td>
</tr>
<tr>
<td width="100%" height="25" align="center">
<p align="left">
<img border="0" src="img/cat.gif">
<span style="letter-spacing: 4">
<a href="changepwd.asp?stype=person">修改密码</a></span></td>
</tr>
<tr>
<td width="100%" height="25" align="center">
<p align="left"> <img border="0" src="img/cat.gif">
<span style="letter-spacing: 4"><a href="exit.asp">退出中心</a></span></td>
</tr>
</table>
</td>
<td width="1" bgcolor="#393F59"> </td>
<td width="584">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber109">
<tr>
<td width="100%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="94%" id="AutoNumber111" bgcolor="#F5F5F5">
<tr>
<TD bgColor=#000000 height=5 bordercolor="#111111">
<IMG height=1 src=img/spacer.gif width=1></TD>
</tr>
<tr>
<td width="100%" bgcolor="#5E6378" height="20"> <font color="#FFFFFF">亲爱的用户:<font color="#FFcc00"><b><%=uname%></b></font>,您好!欢迎使用 </font><font color="#FFCC00"><%=webname%></font><font color="#FFFFFF"> 系统!</font></td>
</tr>
<tr>
<TD
background="img/bg_03b.gif"><IMG
height=1 src="" width=1></TD>
</tr>
<tr>
<td width="100%">
<div align="center">
<center>
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber66">
<tr>
<td width="100%">
<p align="center"><br>
<font color="#EC5106">====> 修 改 帐 号 密 码 <====<SCRIPT language=JavaScript>
<!--
function checkform()
{
if (document.changepwd.pwd.value=="") {
alert("请输入原密码!");
changepwd.pwd.focus();
return (false);
}
if (document.changepwd.newpwd.value=="") {
alert("请输入新密码!");
changepwd.pwd.focus();
return (false);
}
if (document.changepwd.newpwd.value.length<3) {
alert("密码不能少于三位!");
return false;
}
if (document.changepwd.newpwd.value != document.changepwd.newpwd2.value) {
alert("两次密码输入不一致!");
document.changepwd.newpwd.value="";
document.changepwd.newpwd2.value="";
return false;
}
return true;
}
//-->
</SCRIPT> </font>
<br>
</td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="8" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber70" bgcolor="#F5F5F5">
<tr>
<td width="25%"><form name=changepwd onsubmit="return checkform();" action="changepwd.asp?stype=<%=stype%>" method=post></td>
<td width="18%" align="right">您的用户名:</td>
<td width="32%"><font color="#FF0000"><b><%=uname%></b></font> </td>
<td width="25%"> </td>
</tr>
<tr>
<td width="25%"> </td>
<td width="18%" align="right">您的原密码:</td>
<td width="32%">
<input type="password" name="pwd" size="20" maxLength=20></td>
<td width="25%"> </td>
</tr>
<tr>
<td width="25%"> </td>
<td width="18%" align="right">您的新密码:</td>
<td width="32%">
<input type="password" name="newpwd" size="20" maxLength=20></td>
<td width="25%"> </td>
</tr>
<tr>
<td width="25%"> </td>
<td width="18%" align="right">重复新密码:</td>
<td width="32%">
<input type="password" name="newpwd2" size="20" maxLength=20 ></td>
<td width="25%"> </td>
</tr>
<tr>
<td width="25%"> </td>
<td width="18%" align="center">
<input type="submit" value="修 改" name="B1" ></td>
<td width="32%" align="center"> <input type="reset" value="重 写" name="B2"></td>
<td width="25%"></form></td>
</tr>
</table>
</center>
</div>
<p> </td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>
<div align=center>
<center> <table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor=#111111 width=760 id=AutoNumber100 bgcolor=#5E6378>
<tr>
<TD background=img/bg_03b.gif>
<IMG height=1 src=img/spacer.gif width=1></TD>
</tr>
<tr>
<TD bgColor=#393f59 height=5>
<IMG height=1 src=img/spacer.gif width=1></TD>
</tr>
<tr>
<td width=100%>
<p align="center" style="line-height: 150%"><font color=#F5F5F5>
多多校园电子商务工作室<font face="宋体"> • </font>个人简历系统<br>
版权所有 [2005-2007]</font></td>
</center>
</div>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
<% pwd=request("pwd")
if pwd="" then
response.end
end if
newpwd=request("newpwd")
if stype="person" then
set rs=server.createobject("adodb.recordset")
sql1="select * from person where uname='"&uname&"' and pwd='"&pwd&"'"
rs.open sql1,conn,3,3
if rs.bof or rs.eof then
response.write"<SCRIPT language=JavaScript>alert('原密码输入错误,请您重新输入!');"
response.write"javascript:history.go(-1)</SCRIPT>"
else
rs("pwd")=newpwd
rs.update
rs.close
response.write"<SCRIPT language=JavaScript>alert('恭喜!您的密码修改成功');"
response.write"this.location.href='main.asp';</SCRIPT>"
end if
end if
if stype="company" then
set rs=server.createobject("adodb.recordset")
sql2="select * from company where uname='"&uname&"' and pwd='"&pwd&"'"
rs.open sql2,conn,3,3
if rs.bof or rs.eof then
response.write"<SCRIPT language=JavaScript>alert('原密码输入错误,请您重新输入!');"
response.write"javascript:history.go(-1)</SCRIPT>"
else
rs("pwd")=newpwd
rs.update
rs.close
response.write"<SCRIPT language=JavaScript>alert('恭喜!您的密码修改成功');"
response.write"this.location.href='main.asp';</SCRIPT>"
end if
end if %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -