?? login.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>系統登錄</title>
</head>
<%
myName=Request.Form("name")
PWD=Request.Form("password")
If myName<>"" Then
%>
<!-- #include file="../Conn/conn.asp" -->
<%
sql="select * from tb_Manager where Name='"&myName&"' and Password='"&PWD&"'"
rs.open sql,conn,1,3
If not rs.Eof Then
Session("Admin")=rs("Name")
Session("Type")=rs("Type")
Session("id")=rs("ID")
set rs=nothing
conn.close
set conn=nothing
%>
<!-- #include file="../Conn/conn.asp" -->
<%
sql="insert into tb_Log(Name,Content,IssueDate) values('"&session("Admin")&_
"','后臺登錄驗證成功','"&Now()&"')"
rs.open sql,conn
set rs=nothing
conn.close
set conn=nothing
%>
<script language="javascript">
opener.location="Manager.asp";
window.close();
</script>
<%
Else
%>
<script language="javascript">
alert("您的輸入有誤,本系統將取消您登錄后臺的權利,登錄入口即將關閉!");
window.close();
</script>
<%
Set rs=nothing
conn.close
Set conn=nothing
End if
End if
%>
<link rel="stylesheet" href="../Css/Style.css">
<body leftmargin="0" topmargin="0">
<Form name="login" method="post" action="Login.asp">
<table width="528" border="0" align="center" cellpadding="0"
cellspacing="0" class="wenbenkuang">
<tr>
<td height="80" colspan="3"><img src="../Image/Back/al_top.gif" width="526"
height="80"></td>
</tr>
<tr>
<td height="50" colspan="3">
<table width="526" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="155" height="50">
<img src="../Image/Back/al_username.gIf" width="155" height="50"></td>
<td width="98" background="../Image/Back/al_body_bg.gIf">
<input name="name" type="text" class="text" size="14"></td>
<td width="93">
<img src="../Image/Back/al_password.gIf" width="93" height="50"></td>
<td width="112" background="../Image/Back/al_body_bg.gIf">
<input name="password" type="password" class="text" size="13"></td>
<td width="68">
<img src="../Image/Back/al_body_right.gIf" width="68" height="50"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="77" height="88"><img src="../Image/Back/al_End_left.gIf"
width="77" height="88"></td>
<td width="339"><img src="../Image/Back/al_End_bg.gIf" width="21"
height="49"><img src="../Image/Back/al_end_bg.gif" width="318"
height="49"><img src="../Image/Back/al_End_End.gIf" width="339" height="39"></td>
<td width="110">
<img src="../Image/Back/al_End_right.gIf" width="110"
height="88" border="0" usemap="#Map"></td>
<map name="Map">
<area shape="rect" coords="1,3,110,91" onclick="javascript:login.submit()">
</map>
</tr>
</table>
</Form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -