📄 login.asp
字号:
<%
if request("action")="login" then
admin_name=request("admin_name")
admin_pass=request("admin_pass")
%>
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from admin where admin_name='"&admin_name&"' and admin_pass='"&admin_pass&"'"
rs.open sql,conn,3,3
if rs.eof then
response.write "<center>用户名和密码不匹配"
else
session("admin_name")=rs("admin_name")
response.redirect "manage.asp"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
%>
<title>后台管理登陆</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=../style.css rel=STYLESHEET type=text/css>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
.an {
border: #000000;
#000000: #ffffff; border: 1px #000000 solid; font-family: "宋体", "Tahoma", "Verdana"; font-size: 12px; line-height: 120%; text-decoration: none; background-color: #ffffff}
-->
</style><BODY background="../image/bg4.gif" bgColor=#ffffff
leftMargin=0 topMargin=50 marginwidth="0" marginheight="0">
<center>
<p align="center">
请您输入您的用户名和密码
<p><table align=center border=1 bordercolor=#000000
cellpadding=0 cellspacing=1 valign=center width=200>
<tbody>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<form action="login.asp?action=login" method="post">
<tr>
<td bgcolor="#818181" colspan="2" width="1"></td>
</tr>
<tr>
<td valign="bottom" nowrap align=center>
管理员帐号:<font color="#FFFFFF">
<input name="admin_name" type="text" class="an" id="admin_name" size="15">
</font></div>
</td>
</tr>
<tr>
<td valign="bottom" nowrap align=center>
管理员密码:<font color="#FFFFFF">
<input name="admin_pass" type="password" class="an" id="admin_pass" size="15">
</font></div>
</td>
</tr>
<tr>
<td colspan="2" height="2">
<table align=center border=0 cellpadding=0 cellspacing=0>
<tr>
<td align=middle><input type="submit" name="Submit" value="提交">
</td>
<td align=middle><input type="reset" name="Submit" value="重置">
</td>
</tr>
<tbody> </tbody>
</table>
</td>
</tr>
</form>
</table>
</td>
</tr>
</tbody>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -