⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_login.asp

📁 默认管理员:etaodu 密码:etaodu 陶都房市++介绍: 本版本是基于<住易江南>美化
💻 ASP
字号:
<%db="data/etaodu.mdb"%><!--#include file="conn.ini"-->
<%
if session("board_admin")<>"" then
  response.redirect "admin_index.asp"
end if
%>
<%
if request("Submit")<>"" then
  set rs=server.createobject("adodb.recordset")
  sql="SELECT username,password from admin where username='"&request("username")&"'"
  rs.open sql,conn,1,3
  if rs.bof and rs.eof then
    msg="错误:用户名不存在"
  else
    if rs("password")=request("password") then
	  session("board_admin")=rs("username")
	  response.redirect "admin_index.asp"
	else
	  msg="错误:密码不正确"
	end if
  end if
  rs.close
  set rs=nothing
  call connclose
end if
%>
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理</title>
<LINK href="style.css" rel=Stylesheet type=text/css>
</head>
<body leftmargin="0" topmargin="0">
<table>
  <tr>
    <td colspan="2"><!--#include file="top.ini"--></td>
  </tr>
  <tr>
    <form name="form1" method="post" action=""><td colspan="2">
      用户名:
          <input name="username" type="text" maxlength="10">
          密码:
          <input name="password" type="password" maxlength="10">
      <input type="submit" name="Submit" value="登录">
      <input type="reset" name="Submit2" value="重置"> <%=msg%>
        </td></form>
  </tr>
</table>
</body>
</html>
<script language = "JavaScript" src = "bottom.js"/></script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -