?? index.asp
字號:
<!--#include file="conn.asp"-->
<script language=javascript>
function check()
{if (document.form1.id.value=="")
{alert ("請輸入賬號!");
document.form1.id.focus();
return false;}
if (document.form1.pwd.value=="")
{alert ("請輸入密碼!");
document.form1.pwd.focus();
return false;}
document.form1.ctype.value="types";
document.form1.submit();
}
</script>
<%
if request("ctype")="types" then
sqlfind="select * from admin where admin='"&trim(request("id"))&"' and adminpassword='"&trim(request("pwd"))&"'"
set rs=conn.execute (sqlfind)
if rs.eof then
%>
<script language=javascript>
alert("錯誤:無此管理員,或管理員密碼錯誤!");
history.back();
</script>
<%else
session("adminid")=rs("admin")
%>
<script language=javascript>
window.navigate("admin.asp");
</script>
<%end if
else
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>網上考試系統</title>
<link rel="stylesheet" type="text/css" href="../css.css">
</head>
<body topmargin="100" leftmargin="0">
<p align="center"><b><font face="隸書" size="6">后臺管理員登錄</font></b></p>
<div align="center">
<center>
<form name=form1 action="">
<input type=hidden name=ctype >
<table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="300">
<tr>
<td width="100" align="right">用戶名:</td>
<td width="200">
<input type="text" name="id" size="20" style="height: 22; border-style: solid; border-width: 1px"></td>
</tr>
<tr>
<td align="right">密 碼:</td>
<td>
<input type="text" name="pwd" size="20" style="height: 22; border-style: solid; border-width: 1px"></td>
</tr>
<tr>
<td> </td>
<td>
<input type="button" value="提交" name="B1" onclick="check()" style="width: 60; height: 22; border-style: solid; border-width: 1px; background-color: #FFFFFF">
<input type="reset" value="重置" name="B2" style="width: 60; height: 22; border-style: solid; border-width: 1px; background-color: #FFFFFF"></td>
</tr>
</table>
</form>
</center>
</div>
</body>
</html>
<%end if %>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -