?? login.asp
字號:
<!--#include file="conn.asp"-->
<%
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "SELECT * FROM admin1"
rs.open sql, conn, 1,1
%>
<%
adminname=rs("number")
adminpassword=rs("passwd")
if Request.Form("manageid")<> "" then
if Request.Form("manageid") = adminname and Request.Form("managepassword")=adminpassword then
Session.Contents("thegbmaster")="enshi"
response.redirect("main.asp")
else
%>
非法的請求
<%
end if
else
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>理學院成績查詢系統</title>
<link rel="stylesheet" href="css.css">
</head>
<body leftmargin="0" Topmargin="0" marginwidth="0" marginheight="0" background="images/greystrip.gIf">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#316395" vspace="0" hspace="0" bordercolor="#316395" bordercolordark="#FFFFFF" bordercolorlight="#316395" background="images/titbg.gIf" height="26">
<tr>
<td height="25"><div align="center"><font color="#000000">歡迎光臨理學院學生成績查詢系統!</font></div></td>
</tr>
</table>
<CENTER>
<br><br><br>
<form method=post action="login.asp">
<table border="1" cellspacing="0" cellpadding="0" width="197" align="center" height="10" bordercolor="#7C96B8" bordercolordark="#FFFFFF">
<TR>
<td width="201" height="20" colspan="6" bgcolor="#6699CC">
<div align="center"><font color="#FFFFFF">理學院成績查詢系統-管理</font></div></td>
</TR>
<tr><td align=center>用戶名:
<input name='manageid' type=text class=input3 size="10"></td></tr>
<tr>
<td align=center>密 碼:
<input name='managepassword' type=password class=input3 size="10"></td></tr>
<tr><td align=center><INPUT type="submit" value="確定" class="backc">
<input type="reset" name="Submit" value="重置"></td></tr>
</table>
</form>
<br><br><br>
</body></html>
<%end if%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -