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

📄 admin_body.asp

📁 不错的asp论坛,大家可以看看啊和呵呵.
💻 ASP
字号:
<%sub admin_body()
dim adminname
dim adminpwd
if request("action")="adminlogin" then
adminname=trim(replace(request("adminname"),"'",""))
adminpwd=trim(replace(request("adminpwd"),"'",""))

if adminname="" and adminpwd="" then
   founderr=true
   errmsg=errmsg+"<br>"+"<li>请输入用户名或密码!"
end if
if founderr then
call diserror
response.end
end if
openadmin
sql="select * from admin where admin_name='"&adminname&"' and admin_password='"&adminpwd&"'"
set rs=conn.execute(sql)
if rs.eof and rs.bof then
   rs.close
   set rs=nothing
   founderr=true
   errmsg=errmsg+"<br>"+"<li>您输入的用户名和密码不正确!"
else
   session("adminlogin")=sessionvar
   session("issuper")=rs("admin_id")
   session.timeout=50
   rs.close
   set rs=nothing
end if
elseif request("action")="logout" then
  session("adminlogin")=""
  session("issuper")=""
end if
%>
<HTML><HEAD><TITLE>.</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="inc/djcss" type=text/css rel=StyleSheet>
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
</HEAD>
<body onkeydown=return(!(event.keyCode==78&&event.ctrlKey)) background=inc/dj_bg.gif>
<table width="<%=tablewidth%>" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="205" valign="top"> 
      <%call adminmenu()%>
    </td>
    <td width="1"></td>
    <td width="554" valign="top"> 
      <%if session("adminlogin")<>sessionvar then%>
      <br>
      <br>
      <div align="center">
        <center>
      <table width="96%" border="0" cellspacing="0" cellpadding="4" bgcolor="#F5F5F5" style="border-collapse: collapse" bordercolor="#111111">
        <form name="form1" method="post" action="admin.asp?action=adminlogin">
          <tr> 
            <td align="center" class="diaryhead">
            <font color="#333333">管理员登陆(如果您不是管理员请勿登录)</font></td>
          </tr>
          <tr> 
            <td bgcolor="#F5F5F5" class="chinese" align="center">用户名 
              <input type="text" name="adminname" class="textarea" size="20">
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;密码 
              <input type="password" name="adminpwd" class="textarea" size="20">
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
              <input type="submit" name="Submit" value="登录" class="button">
            </td>
          </tr>
        </form>
      </table>
        </center>
      </div>
      <%else%>
      <table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="6"></td>
        </tr>
      </table>
      <div align="center">
        <center>
      <table width="98%" border="0" cellspacing="0" cellpadding="4">
        <tr> 
          <td">
          <font color="#333333">您已经成功登陆!</font></td>
        </tr>
      </table>
        </center>
      </div>
      <%end if%>
      <br>
    </td>
  </tr>
</table>
<%end sub%>

⌨️ 快捷键说明

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