📄 getpwd.asp
字号:
<!--#include file="top.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="function.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>取回密码</title>
</head>
<link href="/images/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
@import url("wsbs.css");
-->
</style>
<body>
<%top()%>
<table width="540" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30"></td>
</tr>
<tr>
<td>
<%
action_e=request.QueryString("action")
Select Case action_e
Case ""
Call main()
Case "data_more"
Call data_more()
Case "show_mima"
Call show_mima()
end select
%>
<%sub main()%>
<table width="540" height=160 border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight=#0082d6 bordercolordark=#0082d6>
<tr><form name="form1" method="post" action="?action=data_more">
<td height="160" bgcolor="#ffffcc" align=center>
<span style="font-size: 14px;">请输入纳税人编码:</span>
<span style="font-size: 12px"><input name="userid" type="text" id="userid" size=20 maxlength="15" class=input1></span>
<span style="font-size: 12px"><input type="submit" name="Submit" value="下一步" class=button9></span>
</td>
</form>
</tr>
</table>
<%end sub%>
<%sub data_more()%>
<%
if request.form("userid")="" then
response.write"<script language=javascript>alert('请输入纳税人编码');history.back();</Script>"
response.end
end if
if myobj.ChkNum(request.form("userid"))=false or myobj.ChkLen(request.form("userid"))<>15 then
response.write"<script language=javascript>alert('用户账号只能是15位数字形式的纳税人编码');history.back();</Script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
rs.open "select * from user where username = '"&request.Form("userid")&"'",conn,1,1
if rs.eof then
call nr()
response.write"<script language=javascript>alert('该用户账号不存在,请重新填写');history.back();</Script>"
response.end
else
%>
<table width="540" height=160 border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight=#0082d6 bordercolordark=#0082d6>
<tr><form name="form1" method="post" action="?action=show_mima">
<td height="160" bgcolor="#ffffcc" align=center>
<table width=480 border=0 cellpadding=0 height="134">
<tr>
<td align="right">
<span style="font-size: 14px;">企业名称:</span>
</td>
<td>
<span style="font-size: 14px;"><%=rs("copname")%></span>
</td>
</tr>
<tr>
<td align="right">
<span style="font-size: 14px;">密码问题:</span>
</td>
<td>
<span style="font-size: 14px;"><%=rs("pwd_qu")%></span>
</td>
</tr>
<tr>
<td align="right">
<span style="font-size: 14px;">密码问题答案:</span>
</td>
<td>
<span style="font-size: 12px">
<input name="pwd_an" type="text" id="pwd_an" size=30 class=input1></span>
</td>
</tr>
<tr>
<td>
</td>
<td>
<span style="font-size: 12px"><input type="submit" name="Submit" value="取回密码" class=button9></span></td>
</tr>
</table>
</td>
<input type=hidden name="userid" value="<%=request.Form("userid")%>">
</form>
</tr>
</table>
<%end if%>
<%end sub%>
<%sub show_mima()%>
<%
if request.form("pwd_an")="" then
response.write"<script language=javascript>alert('请输入密码提示问题答案');history.back();</Script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
rs.open "select * from user where username = '"&request.Form("userid")&"'",conn,1,1
if rs("pwd_an")<>request.form("pwd_an") then
response.write"<script language=javascript>alert('密码提示问题答案不正确');history.back();</Script>"
response.end
else
%>
<table width="540" height=160 border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight=#0082d6 bordercolordark=#0082d6>
<tr>
<td height="160" bgcolor="#ffffcc" align=center>
<table width=480 border=0 cellpadding=0 height="68">
<tr>
<td align="right">
<span style="font-size: 14px;">会员账号:</span>
</td>
<td>
<span style="font-size: 18px;color:#d90000;font-family:tahoma;font-weight:normal"><%=rs("username")%></span>
</td>
</tr>
<tr>
<td align="right">
<span style="font-size: 14px;">密码:</span>
</td>
<td width=240>
<span style="font-size: 18px;color:#d90000;font-family:tahoma;font-weight:normal"><%=rs("password")%></span>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%end if%>
<%end sub%>
</td>
<tr>
<td height="30"></td>
</tr>
<%foot()%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -