📄 bottom.asp
字号:
<!--#include file="conn.inc"-->
<%
names=trim(request("names"))
pass=trim(request("password"))
if request("actions")="1" then
set rs=server.CreateObject("adodb.recordset")
sql="select * from manage where id=1"
rs.open sql,connstr
Mname=rs("names")
Mpass=rs("password")
if names<>Mname then
response.write "<script language='javascript'>alert('帐号错误!');history.go(-1);</script>"
elseif pass<>Mpass then
response.write "<script language='javascript'>alert('密码错误!');history.go(-1);</script>"
else
session("manage")=1
response.Redirect "manage.asp"
rs.close
set rs=nothing
end if
else
%>
<!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">
<title>管理页面</title>
<style type="text/css">
<!--
body,td,th {
font-family: 宋体;
font-size: 12px;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<p> </p>
<p> </p>
<p> </p>
<form name="form1" method="post" action="">
<table width="300" height="103" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#CCCCCC">
<td height="30" colspan="2" bgcolor="#FFFFFF">请在下面登陆: </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="92" height="23" bgcolor="#FFFFFF">管理帐号:</td>
<td width="197" bgcolor="#F0F0F0"><input name="names" type="text" class="input" id="names"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="12" bgcolor="#FFFFFF">管理密码:</td>
<td bgcolor="#F0F0F0"><input name="password" type="password" class="input" id="password"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="13" colspan="2"><div align="center">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
<input name="actions" type="hidden" id="actions" value="1">
</div></td>
</tr>
</table>
</form>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -