📄 login_regist_test.asp
字号:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<%Response.Buffer=true;%>
<!--#include file="conn.asp"-->
<%
var rs;
var AdminRs;
var UserName;
var PassWord;
UserName=Request.Form("name");
PassWord=Request.Form("password");
rs=Server.CreateObject("ADODB.Recordset");
rs.ActiveConnection=Conn;
rs.Source="SELECT * FROM login WHERE 帐号='"+UserName+"'"+" and "+"密码='"+PassWord+"'"+" and "+"权限='超级管理员'";
rs.CursorType=0;
rs.CursorLocation=2;
rs.LockType=3;
rs.Open();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="link.asp"-->
<title>管理员注册测试</title>
</style>
</head>
<body>
<!--#include file="top.asp"-->
<table border="1" width="760" cellpadding=0 cellspacing=0 bgcolor="#FFFFCC" bordercolor="#111111"
bordercolordark="#000000" bordercolorlight="#000000" style="BORDER-COLLAPSE: collapse" height="340">
<tr>
<td width="760" colspan="7" height="20" background="images/bar.gif"></td>
</tr>
<tr>
<td width="20" rowspan="14"></td>
<td width="80"></td>
<td width="20" rowspan="14"></td>
<td width="520" rowspan="14">
<%
if(rs.EOF)
{
Response.Write("<table width='520' border='1' cellspacing='1' cellpadding='1' bgcolor='#33FFCC'>");
Response.Write("<tr>");
Response.Write("<td width='520' height='20'><div align='center'><font size='6' color='#FF0000'>登陆失败!</font></div></td>");
Response.Write("</tr>");
Response.Write("<tr>");
Response.Write("<td height='20'></td>");
Response.Write("</tr>");
Response.Write("<tr>");
Response.Write("<td height='20'></td>");
Response.Write("</tr>");
Response.Write("<tr>");
Response.Write("<td height='20'><div align='center'><font size='2' color='#FF0000'>请检查您的帐号及密码是否为超级管理员!</font></div></td>");
Response.Write("</tr>");
Response.Write("<tr>");
Response.Write("<td height='20'></td>");
Response.Write("</tr>");
Response.Write("<tr>");
Response.Write("<td height='20'></td>");
Response.Write("</tr>");
Response.Write("<tr>");
Response.Write("<td width='520' height='20'><div align='center'><font size='2' color='#ff0000'><a href='login_regist_load.asp'>返回登陆页面</a></font></div></td>");
Response.Write("</tr>");
Response.Write("</table>");
}
if(!rs.EOF)
{
rs.Close();
rs=null;
Conn.Close();
Conn=null;
Response.Redirect("login_manage.asp");
}
rs.Close();
rs=null;
Conn.Close();
Conn=null;
%>
</td>
<td width="20" rowspan="14"></td>
<td width="80"></td>
<td width="20" rowspan="14"></td>
</tr>
<tr>
<td width="80" height="20" background="images/bar1.gif"></td>
<td width="80" height="20" background="images/bar1.gif"></td>
</tr>
<tr>
<td width="80" height="20"></td>
<td width="80" height="20"></td>
</tr>
<tr>
<td width="80" height="20" background="images/bar1.gif"></td>
<td width="80" height="20" background="images/bar1.gif"></td>
</tr>
<tr>
<td width="80" height="20"></td>
<td width="80" height="20"></td>
</tr>
<tr>
<td width="80" height="20" background="images/bar1.gif"></td>
<td width="80" height="20" background="images/bar1.gif"></td>
</tr>
<tr>
<td width="80" height="20"></td>
<td width="80" height="20"></td>
</tr>
<tr>
<td width="80" height="20" background="images/bar1.gif"></td>
<td width="80" height="20" background="images/bar1.gif"></td>
</tr>
<tr>
<td width="80" height="20"></td>
<td width="80" height="20"></td>
</tr>
<tr>
<td width="80" height="20" background="images/bar1.gif"></td>
<td width="80" height="20" background="images/bar1.gif"></td>
</tr>
<tr>
<td width="80" height="20"></td>
<td width="80" height="20"></td>
</tr>
<tr>
<td width="80" height="20" background="images/bar1.gif"></td>
<td width="80" height="20" background="images/bar1.gif"></td>
</tr>
<tr>
<td width="80" height="20"></td>
<td width="80" height="20"></td>
</tr>
<tr>
<td width="80" height="20" background="images/bar1.gif"></td>
<td width="80" height="20" background="images/bar1.gif"></td>
</tr>
<tr>
<td width="760" colspan="7" height="20" background="images/bar.gif"></td>
</tr>
<tr>
<td width="760" colspan="7" height="20"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -