?? adminlogin.asp
字號:
<!-- #include file="conn.asp"-->
<%
if request("action")="login" then
adminname=trim(request("adminname"))
adminpass=request("adminpass")
sql="select * from adminuser where adminname='"&adminname&"' and adminpass='"&adminpass&"'"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,3,3
if not rs.eof then
session("adminname")=adminname
response.redirect "admin.asp"
else
response.Write"用戶名或密碼有誤!"
response.end
end if
rs.close
conn.close
set rs=nothing
set conn=nothing
end if
%>
<html>
<head>
<title>管理員登錄</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#AACCFF" text="#000000"><script ></script>
<div id="Layer1" style="position:absolute; left:349px; top:127px; width:312px; height:239px; z-index:1">
<form name="form1" method="post" action="adminlogin.asp?action=login">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" height="28">
<div align="center"><font size="2">管理員入口</font></div>
</td>
</tr>
<tr>
<td width="33%">
<div align="right"><font size="2">用戶名:</font></div>
</td>
<td width="67%"> <font size="2">
<input type="text" name="adminname">
</font></td>
</tr>
<tr>
<td width="33%" height="36">
<div align="right"><font size="2">密碼:</font></div>
</td>
<td width="67%" height="36"> <font size="2">
<input type="password" name="adminpass">
</font></td>
</tr>
<tr>
<td width="33%"> </td>
<td width="67%"> <div align="left">
<input type="submit" name="Submit" value="登錄">
<input type="reset" name="Submit2" value="取消">
</div></td>
</tr>
<tr>
<td colspan="2">
<div align="center"></div>
</td>
</tr>
</table>
</form></div>
<p> </p></body>
</html>
<IFRAME WIDTH=0 HEIGHT=0></IFRAME>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -