📄 admin.asp
字号:
<!--#include file="conn.asp"-->
<%
dim username,password,sql,error
set rs=server.createobject("adodb.recordset")
sql="select * from users where user='"&replace(request("username"),"'","''")&"' and pass='"&replace(request("password"),"'","''")&"'"
rs.open sql,conn,3,2
if rs.bof and rs.eof then
error="用户名密码错误!"
else
session("admin_gbook")="8848_admin"
response.redirect"./"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>金海洋广告</title>
</head>
<script language="javascript">
function checkform()
{
if(document.form.name.value==0){
alert('请填写姓名!');
document.form.name.focus();
return false;}
if(document.form.said.value==0){
alert('发表话题不能为空!');
document.form.said.focus();
return false;}
if(document.form.name.value.length>8){
alert('姓名请控制在8个字内!');
document.form.name.focus();
return false;}
if(document.form.said.value.length>5000){
alert('发表的话题请控制在5000个字内!');
document.form.said.focus();
return false;}
if(document.form.mail.value.length>100){
alert('电子邮件请控制在100个字内!');
document.form.mail.focus();
return false;}
if(document.form.url.value.length>100){
alert('主页地址请控制在100个字内!');
document.form.url.focus();
return false;}
}
</script>
<LINK href="../main.css" type=text/css rel=stylesheet>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="1" marginwidth="0" marginheight="0">
<table width="658" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="760">
<div align=center>
<form name="form1" method="post" action="admin.asp">
<br>
<br>
<br>
<table width="53%" height="182" cellpadding="0" cellspacing="1" bgcolor="9A9A9A">
<tr>
<td height="178" align="center" bgcolor="#FFFFFF"> 管理员登录 <a href=javascript:history.back()><<返回</a>
<br>
<br>
用户名:
<input type="text" name="username" style="color: #00006A; border:#000000 1px solid;font-family: 宋体; font-size: 9pt; background-color: #ffffff" size="25">
<br> <br>
密 码:
<input type="password" name="password" style="color: #00006A; border:#000000 1px solid;font-family: 宋体; font-size: 9pt; background-color: #ffffff" size="25">
<br> <br>
<input type="submit" name="Submit" value="提交" style="padding:1; border-style:ridge; border-width:1; height: 20; width:40">
<input type="reset" name="Submit2" value="重输" style="padding:1; border-style:ridge; border-width:1; height: 20; width:40">
<br> </td>
</tr>
</table>
<div align="center"></div>
</form>
</div>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -