?? adminlogin.asp
字號:
<%
if request("logout")<>"" then
session("aleave")=""
response.redirect "adminlogin.asp"
end if
action=request("action")
%>
<html>
<head>
<title>九江公交管理系統</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#0066CC" text="#000000">
<p align="center"><br>
<br>
<p align="center"><br>
<br>
<h1 align="center"><font face="黑體" color="#FFFFFF">九江公交管理系統</font></h1>
<h1 align="center"> </h1>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<form method=post action="adminlogin.asp?action=login">
<tr>
<td width="100%" height="30" align="center" valign="middle" bgcolor="#FFFFFF">用戶名:
<input style="color: #FF0000; background-color: #FFFFFF; border: 1px solid #000000" size="12" name="admin"></td>
</tr>
<tr>
<td width="100%" height="29" align="center" valign="middle" bgcolor="#FFFFFF">密 碼:
<input style="color: #FF0000; background-color: #FFFFFF; border: 1px solid #000000" type="password" size="12" name="password"></td>
</tr>
<tr>
<td width="100%" height="30" align="center" valign="middle" bgcolor="#FFFFFF">
<input style="color: #FFFFFF; background-color: #FF0000; border: 1px solid #000000" type="submit" value="確 定" name="Submit">
<input style="color: #FFFFFF; background-color: #FF0000; border: 1px solid #000000" type="reset" value="取 消" name="Submit2">
</td>
</tr>
</form>
</table>
<br>
<br><br>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><font color="#FFFFFF">© 程序制作:liyiwei</font></td>
</tr>
</table>
</body>
</html>
<%
if action="login" then
admin=trim(request("admin"))
password=trim(request("password"))
if admin="" or password="" then
response.write"<SCRIPT language=JavaScript>alert('用戶名和密碼不能為空!');"
response.write"javascript:history.go(-1)</SCRIPT>"
Response.End
end if
if admin<>"sql" then
response.write"<SCRIPT language=JavaScript>alert('用戶名錯誤!');"
response.write"javascript:history.go(-1)</SCRIPT>"
Response.End
end if
if admin="sql"and password<>"abc" then
response.write"<SCRIPT language=JavaScript>alert('密碼錯誤!');"
response.write"javascript:history.go(-1)</SCRIPT>"
Response.End
else
session("aleave")="ok"
response.redirect "admin.asp"
response.end
end if
end if
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -