📄 admpost.asp
字号:
<html>
<head>
<%
username=request("username") '接受管理员用户名
password=request("password") '接受管理员密码
keys=request("keys")
mm=0
%>
<!--#include file="conn1.asp"-->
<%
if username<>"" and password<>"" then
set rs=newconn.execute("select * from admin where username='"& username & "'") '判断是否存在该用户
if not (rs.bof and rs.eof) then '判断是否有该权限
if rs("password")=password then
session("password")=rs("password") '为真则将该用户的该权限放入SESSION中
Response.Redirect "admin.asp" '跳转到管理员管理页面
else
mm=1
end if
else
mm=2
end if
elseif keys="submit" then
mm=3
end if
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>计科二班</title>
<style type="text/css">
<!--
body {
scrollbar-face-color: #FFC4B0;
scrollbar-highlight-color: #FFC4B0;
scrollbar-shadow-color: #FF7142;
scrollbar-3dlight-color: #FF7142;
scrollbar-arrow-color: #FF7142;
scrollbar-darkshadow-color:#FFC4B0;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(img/bg3.gif);
background-position:center;
margin-left: 0px;
}
body,td,th {
font-size: 12px;
color: #FF7142;
font-family: 宋体;
}
a {
font-family: 宋体;
font-size: 12px;
}
a:link {
text-decoration: none;
color: #FF7142;
}
a:visited {
text-decoration: none;
color: #FF7142;
}
a:hover {
text-decoration: none;
color: #FFB59D;
}
a:active {
text-decoration: none;
color: #FFB59D;
}
h1,h2,h3,h4,h5,h6 {
font-family: 宋体;
}
.style2 {color: #ff41b5}
-->
</style>
</head>
<body>
<table width="495" height="578" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="495" height="83" align="center" valign="top" background="img/top3.gif"> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="421" valign="top">
<table width="430" border="0" height="90%" align="center" cellpadding="0" cellspacing="0">
<tr><td width="478" height='421' valign='top' background="img/bg33.gif"><div align=center>
<p>
<p>计科二班期末考试成绩在线查询
</p>
</p>
<br>
<form action="admpost.asp" method="post" name="form2" id="form2">
<table width="412" border="0">
<tr align="center">
<td colspan="2">管理员登陆页面</td>
</tr>
<tr>
<td colspan="2">
<%
if mm=1 then
Response.Write "对不起,您输入的密码有误!"
elseif mm=2 then
Response.Write "您没有登陆的权限!"
elseif mm=3 then
Response.Write "请输入完整的用户名和密码!"
end if
%>
</td>
</tr>
<tr>
<td width="197" align="right">管理员帐号:</td>
<td width="205"><input name="keys" type="hidden" value="submit">
<input name="username" type="text" id="username" class="editbox1"></td>
</tr>
<tr>
<td align="right">管理员密码:</td>
<td><input name="password" type="password" class="editbox1" size="21" maxlength="30"></td>
</tr>
<tr align="center">
<td colspan="2">
<input type="submit" name="Reg2" value="马上登录" class="bottom">
<input type="reset" name="Submit32" value="重新填写" class="bottom"> </td>
</tr>
</table>
</form>
<p>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="33" align="center"><img src="img/bott3.gif" width="495" height="33"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -