📄 login.asp
字号:
<!--#include file="fn/conn.asp"-->
<% if request("p")="login" then
If Trim(Request("name"))<>"" Then
dim rs,strsql
strsql="Select * From admin where admin='"&Request("name")&"'"
Set rs=conn.Execute(strsql)
If Not rs.Bof and Not rs.Eof Then
pw=rs("pwd")
if pw<>trim(request("password")) then
response.Write"<script>alert('密码错误!');history.go(-1);</script>"
else
session.Timeout=60
Session("admin")=rs("admin")
Session("step")=rs("step")
Session("id")=rs("id")
rs.close
set rs=nothing
response.Redirect("ad_kf.asp")
end if
End If
End If
end if
%>
<STYLE type=text/css>
A:link {
COLOR: #000000; FONT-FAMILY: 宋体; TEXT-DECORATION: none
}
A:visited {
COLOR: #000000; FONT-FAMILY: 宋体; TEXT-DECORATION: none
}
A:active {
FONT-FAMILY: 宋体; TEXT-DECORATION: underline
}
A:hover {
COLOR: #84bd6b; TEXT-DECORATION: underline overline
}
BODY {
COLOR: #000000; FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
TABLE {
COLOR: #000000; FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
.f24 {
COLOR: #ff0000; FONT-FAMILY: 宋体; FONT-SIZE: 9pt; TEXT-DECORATION: underline overline
}
.l17 {
LINE-HEIGHT: 170%
}
.f18 {
FONT-SIZE: 18px
}
</STYLE>
<html>
<link href="style/css.css" rel="stylesheet" type="text/css">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>成员登陆</title>
</head>
<body>
<center>
<form method="post" action="admin_login.asp?p=login">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="298" height="99%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="25" colspan="2" bgcolor="#006666" class="write">后台管理</td>
</tr>
<tr>
<h2 align="center">
<td height="25" bgcolor="#F3F3F3"><div align="center">帐号:</div></td>
<td bgcolor="#F3F3F3"><div align="left">
<input type="text" name="name" size="20">
</div></td>
</h2>
</tr>
<tr>
<td height="25" bgcolor="#F3F3F3"><div align="center">密码:</div></td>
<td bgcolor="#F3F3F3"><input type="password" name="password" size="20"></td>
</tr>
<tr>
<td height="25" bgcolor="#F3F3F3"><div align="center">验证码:</div></td>
<td bgcolor="#F3F3F3"> </td>
</tr>
<tr>
<td height="25" bgcolor="#F3F3F3"></td>
<td bgcolor="#F3F3F3"><input name="submit" type="submit" value="确定"></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -