?? login.asp
字號:
<%
if request("action")="login" then
admin_name=request("admin_name")
admin_pass=request("admin_pass")
%>
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from admin where admin_name='"&admin_name&"' and admin_pass='"&admin_pass&"'"
rs.open sql,conn,3,3
if rs.eof then
response.write "<center>用戶名和密碼不匹配"
else
session("admin_name")=rs("admin_name")
response.redirect "manage.asp"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
%>
<title>后臺管理登陸</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=../style.css rel=STYLESHEET type=text/css>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
.an {
border: #000000;
#000000: #ffffff; border: 1px #000000 solid; font-family: "宋體", "Tahoma", "Verdana"; font-size: 12px; line-height: 120%; text-decoration: none; background-color: #ffffff}
-->
</style><BODY background="../image/bg4.gif" bgColor=#ffffff
leftMargin=0 topMargin=50 marginwidth="0" marginheight="0">
<center>
<p align="center">
請您輸入您的用戶名和密碼
<p><table align=center border=1 bordercolor=#000000
cellpadding=0 cellspacing=1 valign=center width=200>
<tbody>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<form action="login.asp?action=login" method="post">
<tr>
<td bgcolor="#818181" colspan="2" width="1"></td>
</tr>
<tr>
<td valign="bottom" nowrap align=center>
管理員帳號:<font color="#FFFFFF">
<input name="admin_name" type="text" class="an" id="admin_name" size="15">
</font></div>
</td>
</tr>
<tr>
<td valign="bottom" nowrap align=center>
管理員密碼:<font color="#FFFFFF">
<input name="admin_pass" type="password" class="an" id="admin_pass" size="15">
</font></div>
</td>
</tr>
<tr>
<td colspan="2" height="2">
<table align=center border=0 cellpadding=0 cellspacing=0>
<tr>
<td align=middle><input type="submit" name="Submit" value="提交">
</td>
<td align=middle><input type="reset" name="Submit" value="重置">
</td>
</tr>
<tbody> </tbody>
</table>
</td>
</tr>
</form>
</table>
</td>
</tr>
</tbody>
</table>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -