📄 glydl.asp
字号:
<!--#include file="mdb.asp"-->
<%
response.cookies("user")=""
response.cookies("adminok")=""
user=trim(request.form("user"))
pwd=trim(request.form("pwd"))%>
<%if user<>"" and pwd<>"" then%>
<%
set rsadm=server.createobject("adodb.recordset")
sqladm="select * from admin where user='"&user&"'"
rsadm.open sqladm,conn,1,1
if not rsadm.eof then
if rsadm("pwd")="" then
response.redirect "glydl.asp"
end if
if pwd=rsadm("pwd") then
response.cookies("user")=rsadm("user")
response.cookies("adminok")=rsadm("pwd")
response.redirect "newsdl.asp"
else
response.redirect "glydl.asp"
end if
else
end if
response.redirect "glydl.asp"
rsadm.close
set rsadm=nothing
conn.close
set conn=nothing
end if%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理员登录</title>
</head>
<body style="text-align: left" background="newpic/bg.gif">
<form method="POST" action="glydl.asp" onsubmit="return juge(this)">
<p style="text-align: center"> </p>
<p style="text-align: center"><b><font size="5" color="#0066FF">管理员登录</font></b></p>
<div align="center">
<table border="1" width="426" id="table1" style="border-collapse: collapse" bordercolor="#6595D6" height="120">
<tr>
<td width="20" background="newpic/key.gif" height="14">
<p align="center"> </td>
<td colspan="2" width="309" background="newpic/key.gif" height="14"> </td>
<td width="13" background="newpic/key.gif" height="14"> </td>
<td width="21" background="newpic/key.gif" height="14"> </td>
</tr>
<tr>
<td width="20" rowspan="3" background="newpic/a21.gif"> </td>
<td width="135" height="40" align="center">用户名:</td>
<td width="171" height="40">
<input type="text" name="user" size="21"></td>
<td width="13" rowspan="3">
<img border="0" src="newpic/key.jpg" width="65" height="64"></td>
<td width="21" rowspan="3" background="newpic/a211.gif"> </td>
</tr>
<tr>
<td width="135" height="41" align="center">密 码:</td>
<td width="171" height="41">
<input type="password" name="pwd" size="21"></td>
</tr>
<tr>
<td width="306" height="20" colspan="2" bgcolor="#E4E8EF"> </td>
</tr>
</table>
</div>
<p align="center">
<input type="submit" value="提交" name="B1" style="color: #6A8FDA; font-size: 12pt; border: 1px solid #5D86D6; background-color: #DAE3F5">
<input type="reset" value="重置" name="B2" style="font-size: 12pt; color: #658BD8; border: 1px solid #688DD9; background-color: #DEE6F6"></p>
</form>
<p align="center">>>><a href="index.asp">返回首页</a>>>><a href="liuyan.asp">返回留言本</a>>>></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -