queryname.asp

来自「聊天室源码呵呵你好用~~~~~~2.0版本」· ASP 代码 · 共 68 行

ASP
68
字号
<%@ LANGUAGE=VBScript%>
<%Response.Expires=0
if Session("a_c_user_name")="" then
 Response.write "<b>[操作失败]</b><p>您尚未登录(或已经超时退出),不能进行此操作!"
 Response.end
end if
if Session("a_c_user_level")<9 then
 Response.Write "<b>[操作失败]</b><p>您没有帐号查询的权限!"
 Response.End
end if
queryname=Trim(Request.Form("queryname"))
queryname=Server.HTMLEncode(queryname)
dim show(8)
input=Application("a_c_reg_data")
countud=Application("a_c_reg_num")
countudnum=(countud-4)/8
yzc=0
for i=5 to countud step 8
 if input(i)=queryname then
  show(1)=input(i)
  show(2)=input(i+1)
  show(3)=input(i+2)
  show(4)=input(i+3)
  show(5)=input(i+4)
  show(6)=input(i+5)
  show(7)=input(i+6)
  show(8)=input(i+7)
  yzc=1
 end if
next%><html>
<head>
<title>帐号查询</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type='text/css'>
<!--
.p9 {line-height: 150%; font-size: 9pt;}
.p12 {line-height: 150%; font-size: 12pt;}
body {line-height: 150%;font-size : 12pt;}
A  {text-decoration: none;}
A:Hover  {text-decoration : none;}
a:visited {  color: #0000FF}
-->
</style>
</head>
<body bgcolor="FFFFFF">
<h1 align="center"><font color="0099FF">【帐号查询】</font></h1>
<hr noshade size="1" color=009900>
<blockquote> <%if yzc=0 then%> 
<p>对不起,用户名 <font color="FF0000"><b><%=queryname%></b></font> 不存在,不能进行查询!<a href="query.asp">【返回】</a></p>
<%end if%> <%if yzc=1 then%> 
<p><b>[查询成功]</b> 共有注册名 <font color="FF0000"><b><%=countudnum%></b></font> 个</p>
<p></p>
<p>以下是该用户名的注册资料: <a href="query.asp">【返回帐号查询】</a></p>
<blockquote> 
<p>用户名:<font color="FF0000"><%=show(1)%></font><br>
<%if Session("a_c_user_level")>=10 then%>密 码:<font color="FF0000"><%=show(2)%></font><br>
<%end if%>等 级:<font color="FF0000"><%=show(3)%></font><br>
次 数:<font color="FF0000"><%=show(4)%></font><br>
经验值:<font color="FF0000"><%=show(5)%></font><br>
首 次:<font color="FF0000"><%=show(6)%></font><br>
末 次:<font color="FF0000"><%=show(7)%></font><br>
IP地址:<font color="FF0000"><%=show(8)%></font></p>
<%end if%></blockquote></blockquote>
<hr noshade size="1" color=009900>
<div align="center" class="p9"><script src="use.asp"></script> <script src="sn.asp"></script><br><script src="copyright.asp"></script></div>
</body>
</html>

⌨️ 快捷键说明

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