?? login.asp
字號:
<% Response.Buffer=True %>
<% Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("../asp/infos.mdb") %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>后臺管理</title>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type">
<meta content="zh-cn" http-equiv="Content-Language">
<style type="text/css">body { margin-left: 0px; margin-top: 20px }
p { font-family: 宋體; font-size: 9pt; line-height: 14pt }
div { font-family: 宋體; font-size: 9pt; line-height: 14pt }
a { color: #000000; text-decoration: none }
a:hover { color: #ff0000; text-decoration: underline }
a:active { color: #ff0000; text-decoration: underline }
a.top { color: #ffffff; font-family: 宋體; font-size: 9pt }
a.top:hover { color: #ffcc00 }
td { font-family: 宋體; font-size: 9pt }
.f1_v { font-family: 宋體; font-size: 9pt }
.f2_v { font-family: 宋體; font-size: 9pt }
.f2_A { font-family: 宋體; font-size: 9pt }
li { color: #ff0000; font-size: 9pt }
li.li1 { color: #ffffff; font-size: 1pt }
</style>
<meta content="Microsoft FrontPage 4.0" name="GENERATOR">
<meta content="FrontPage.Editor.Document" name="ProgId">
</head>
<body>
<div align="center">
<table bgcolor="#808080" border="0" cellpadding="18" cellspacing="3" width="670">
<tbody>
<tr>
<td bgcolor="#ffffff" width="100%">
<div align="center">
<table bgcolor="#919793" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#FFFFFF">
<td colspan="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27%"><img border="1" src="../images/tb1.gif" width="168" height="49"></td>
<td width="73%" valign="bottom">
<div align="right">[<a href="../">進入主頁</a>] </div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<center>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td bgcolor="#919793" height="1"><img alt="1pix" border="0" src="../images/1px.gif" width="1" height="1"></td>
</tr>
</tbody>
</table>
</div>
<div align="center">
<table bgcolor="#e7e7e7" border="0" cellpadding="2" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="39%"> </td>
<center></center>
<td width="61%"> </td>
</tr>
</tbody>
</table>
</div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%">
<table bgcolor="#FFFFFF" border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="100%" height="10">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td width="100%" valign="top" align="center" height="30"> </td>
</tr>
<tr>
<td width="100%" valign="top" align="center" height="30"><font size="3"><b>管理員登錄</b></font></td>
</tr>
<tr>
<td width="100%" valign="bottom" align="center"></td>
</tr>
<tr>
<td>
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" width="320" bordercolor="#0069A2" bordercolordark="#FFFFFF">
<form action="../jlzx/login.asp" method="post">
<tr>
<td width="320" height="50">
<p align="center">帳 號:
<input type="text" name="admin" size="15" maxlength="15" style="font-family: 宋體; color: #000060; font-size: 9pt">
密 碼:
<input type="password" name="pwd" size="15" maxlength="15" style="font-family: 宋體; color: #000060; font-size: 9pt">
</p>
</td>
</tr>
<tr>
<td width="320" height="30">
<center>
<p>
<input type="submit" value="登 錄" name="B1" style="font-family: 宋體; font-size: 9pt; height: 19; position: relative">
</center>
</td>
</tr>
</form>
</table>
</center>
</div>
</tr>
</table>
</center>
</div>
<center>
<table border="0" cellpadding="0" cellspacing="0" width="600">
<tr>
<td width="100%" height="5"> </td>
</tr>
<tr>
<td width="100%" height="5">...................................................................................................</td>
</tr>
<tr>
<td width="100%" height="20"></td>
</tr>
</table>
<center>
<div align="center">
<table border="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td bgcolor="#f3f3f3" width="87%">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="5%">
<p align="center"></p>
</td>
<td width="95%"></td>
</tr>
</tbody>
</table>
</div>
</td>
<td bgcolor="#0012C1" width="13%">
<p align="center"><a class="top" href="javascript:window.close()">關閉窗口</a></p>
</td>
</tr>
</tbody>
</table>
</div>
</center></center></td>
</tr>
</tbody>
</table>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="670">
<tr>
<td align="right" class="sorenge" valign="top" width="178" height="10"></td>
<td class="sbtxt" width="587" height="10"></td>
</tr>
<tr>
<td align="right" class="sorenge" valign="top" width="178"></td>
<td class="sbtxt" width="587"></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</center></td>
</tr>
</table>
</div>
</body>
</html>
<% admin=request("admin")
if admin="" then
response.end
end if
pwd=request("pwd")
set rs=server.createobject("adodb.recordset")
sql="select * from system where admin='"&admin&"' and pwd='"&pwd&"'"
rs.open sql,conn,1,1
if rs.bof or rs.eof then
response.write"<SCRIPT language=JavaScript>alert('錯誤的用戶或名密碼,請重新輸入!');"
response.write"javascript:history.go(-1)</SCRIPT>"
else
session("flag")=admin
response.Redirect "danwei_jl.asp"
end if %>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -