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

📄 gw.asp

📁 音乐类型的好网站
💻 ASP
字号:
<!--#include file="../inc/config.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="inc/error.asp"-->
<!--#include file="inc/FORMAT.asp"-->
<title>管理登录</title>
<%
dim founderr,errmsg
founderr=false
errmsg=""
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
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
if session("adminlogin")<>sessionvar then%>
<HTML><HEAD><TITLE>管理中心</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<link href="../admin/inc/css.css" rel="stylesheet" type="text/css">
</HEAD>
<body onkeydown=return(!(event.keyCode==78&&event.ctrlKey))><br><br><br> 
<br><br><br><br><br>
<form name="form1" method="post" action="gw.asp?action=adminlogin">
<table width="280" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#666666">
<tr bgcolor="#990000"> 
    <td height="30"  colspan="2" align="center">
      :::管理登陆:::</td>
  </tr>
  <tr bgcolor="#990000"> 
    <td width="80" height="30">用 户: 
    </td>
    <td width="200" height="30" bgcolor="#990000"><input type="text" name="adminname" class="textarea" size="20"></td>
  <tr bgcolor="#990000"> 
    <td height="30">密 码:</td>
    <td width="200" height="30" bgcolor="#990000"><input type="password" name="adminpwd" class="textarea" size="20"></td>
  </tr>
   <tr bgcolor="#990000">
    <td height="30"  colspan="2" align="center"><input type="submit" name="Submit" value="登录" class="button"></td>
  </tr>
</table>
      <%else%>
<html>
<head>
<title>:::管理中心:::</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<frameset id="frame" cols="140,*" frameborder="NO" border="0" framespacing="0" rows="*"> 
  <frame name="menu" target="main" scrolling="yes" noresize src="menu.asp" marginwidth="0" marginheight="0">
<frameset rows="35,*"  framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<frame src="top.asp" name="top" target="main" scrolling="NO" NORESIZE frameborder="0" marginwidth="10" marginheight="0" border="no">
<frame name="main" src="body.asp" scrolling="AUTO" NORESIZE frameborder="0" marginwidth="10" marginheight="10" border="no">
</frameset>
</frameset>
 <noframes>
 <body>
  <p>本页使用了框架结构,但是您的浏览器不支持它。请将您的浏览器升级为IE5.0或更高的版本!</p>
  <p><a href="#">进入</a></p>
 </body>
 </noframes>
</html>
<%end if%>

⌨️ 快捷键说明

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