|
下边的代码设计的不好,登录、详细信息都做到一个页面里面。如何分隔开来
<!--#include file="../inc/config.asp"-->
<!--#include file="mdb.asp"-->
<!--#include file="../inc/md5.asp"-->
<%
dim adminname
dim adminpwd
'搜索引擎小版块
if request.QueryString("action")="search" then
dim word,engine
word = request.Form("word")
engine = request.Form("search")
Select case engine
case "3721"
response.Redirect("http://cns.3721.com/cns.dll?name="&word)
response.End()
case "google"
response.Redirect("http://www.google.com/search?q="&word&"&hl=zh-CN&lr=lang_zh-CN&ie=gb2312")
response.End()
case "baidu"
response.Redirect("http://www.baidu.com/baidu?word="&word)
response.End()
case "sina"
response.Redirect("http://search.sina.com.cn/cgi-bin/search/search.cgi?ss=sina&_searchkey="&word)
response.End()
end select
end If
'验证码登录判断
if request("action")="adminlogin" then
s=Trim(Request.Form("s"))
s2=Request.Form("s2")
If s2<>s Then
Response.Write("<script language=javascript>alert('请输入正确的认证码!');this.location.href='admin.asp';</script>")
Response.End
end If
'判断用户所使用的操作系统
thesoft=Request.ServerVariables("HTTP_USER_AGENT")
if instr(thesoft,"Windows NT 5.0") then
vOS="Win 2000"
elseif instr(thesoft,"Windows NT 5.1") then
vOs="Win XP"
elseif instr(thesoft,"Windows NT") then
vOs="Win NT"
elseif instr(thesoft,"Windows 9") then
vOs="Win 9x"
elseif instr(thesoft,"unix") or instr(thesoft,"linux") or instr(thesoft,"SunOS") or instr(thesoft,"BSD") then
vOs="类Unix"
elseif instr(thesoft,"Mac") then
vOs="Mac"
else
vOs="Other"
end if
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
if mid(server_v1,8,len(server_v2))<>server_v2 then
Response.Write("<script language=javascript>alert('你提交的路径有误,禁止从站点外部提交数据请不要乱该参数!');this.location.href='admin.asp';</script>")
response.end
end If
'用户名替换函数
Function ReplaceBadWord(g_word)
g_word=Replace(g_word,"'","")
g_word=Replace(g_word," ","")
g_word=Replace(g_word,"&","")
g_word=Replace(g_word,"(","")
g_word=Replace(g_word,"\","")
g_word=Replace(g_word,"/","")
g_word=Replace(g_word,"..","")
g_word=Replace(g_word,"^","")
g_word=Replace(g_word,"#","")
g_word=Replace(g_word,"%","")
g_word=Replace(g_word,"|","")
g_word=Replace(g_word,";","")
g_word=Trim(Replace(g_word,")",""))
ReplaceBadWord=g_word
End Function
'获取用户输入的用户名和密码
adminname=ReplaceBadWord(Request.form("adminname"))
adminpwd=md5(ReplaceBadWord(Request.form("adminpwd")))
'判断用户名和密码是否为空,如果为空则提示用户重新输入
if adminname="" and adminpwd="" then
Response.Write("<script language=javascript>alert('请输入用户名或密码!');this.location.href='admin.asp';</script>")
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
Response.Write("<script language=javascript>alert('您输入的用户名和密码不正确!!');this.location.href='admin.asp';</script>")
set rs1=Server.Createobject("adodb.recordset")
sql1="Select * from Log"
rs1.open sql1,conn,3,3
rs1.addnew
rs1("Username")=Request.Form("adminname")
rs1("LoginIP")=request.ServerVariables("Remote_Addr")
rs1("OS")=vOS
rs1("ErrorPas")=Request.Form("adminpwd")
rs1("Result")="Error"
rs1.update
rs1.close
'此处不是太懂
elseif rs("lock")=1 then
response.Write"<script language=javascript>alert(' 错误:帐号 "&rs("admin_name")&" 已被锁定,你不能登陆!请联系站长。');this.location.href='admin.asp';</script>"
Else
'将正确的用户名写入cookies
response.cookies("hxStudioUserName")=rs("admin_Name")
'从登录开始进入会话周期
session("adminlogin")=sessionvar
'管理员id会话周期
session("issuper")=rs("admin_id")
'超过5分钟后自动注销
session.timeout=500
'记录管理员用户名,权限,管理对象
Session("hxStudioAdminName")=rs("admin_Name")
'登录之后记录到日志表中
set rs1=Server.Createobject("adodb.recordset")
sql1="Select * from Log"
rs1.open sql1,conn,3,3
rs1.addnew
rs1("Username")=Request.Form("adminname")
rs1("LoginIP")=request.ServerVariables("Remote_Addr")
rs1("OS")=vOS
rs1.update
rs1.close
rs.close
set rs=nothing
end If
'注销操作
elseif request("action")="logout" then
Session("hxStudioAdminName") =""
session("adminlogin")=""
session("issuper")=""
Response.write "<script>window.document.location.href='./admin.asp';</script>"
end if
if session("adminlogin")=sessionvar then
frame=request("frame")
if frame="" then
%>
<html>
<head>
<title>∷ 管理中心 ∷</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<frameset rows='*' id='Frame' cols='185,*' framespacing='0' frameborder='no' border='0'><frame src='?frame=menu' scrolling='auto' id='menu' name='menu' noresize marginwidth='5' marginheight='5'><frame src='?frame=main' name='main' id='main' scrolling='auto' noresize marginwidth='0' marginheight='0'></frameset>
<noframes>
<body>
<p>本页使用了框架结构,但是您的浏览器不支持它。请将您的浏览器升级为IE5.0或更高的版本!</p>
</body>
</noframes>
</html>
<%elseif frame="menu" then%>
<html>
<head>
<title>管理菜单</title>
<style type=text/css>
body { background:#799AE1; font:Verdana 12px;
SCROLLBAR-FACE-COLOR: #799AE1; SCROLLBAR-HIGHLIGHT-COLOR: #799AE1;
SCROLLBAR-SHADOW-COLOR: #799AE1; SCROLLBAR-DARKSHADOW-COLOR: #799AE1;
SCROLLBAR-3DLIGHT-COLOR: #799AE1; SCROLLBAR-ARROW-COLOR: #FFFFFF;
SCROLLBAR-TRACK-COLOR: #AABFEC;
}
table { border:0px; }
td { font:normal 12px 宋体;}
img { vertical-align:bottom; border:0px; }
a { font:normal 12px 宋体; color:#000000; text-decoration:none; }
a:hover { color:#428EFF;text-decoration:underline; }
.sec_menu { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#D6DFF7; }
.menu_title { }
.menu_title span { position:relative; top:0px; left:8px; color:#000000; font-weight:bold; }
.menu_title2 { }
.menu_title2 span { position:relative; top:0px; left:8px; color:#999999; font-weight:bold; }
</style>
<SCRIPT language="javascript1.2">
function showmenu_item(sid)
{
which = eval("menu_item" + sid);
if (which.style.display == "none")
{
var i = 1
while(i<10){
eval("menu_item"+ i +".style.display=\"none\";");
eval("menuTitle"+ i +".background=\"../images/title_bg_show.gif\";");
i++;
}
eval("menu_item" + sid + ".style.display=\"\";");
eval("menuTitle"+ sid + ".background=\"../images/title_bg_hide.gif\";")
}else{
eval("menu_item" + sid + ".style.display=\"none\";");
eval("menuTitle"+ sid + ".background=\"../images/title_bg_show.gif\";")
}
}
</SCRIPT>
<table width="158" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="158" height="38" background="../images/title.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="151" height="16"></td>
</tr>
<tr>
<td><div align="center"><font color="#FFFFFF"><strong>控制面版</strong></font></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background=../images/title_bg_quit.gif bgcolor="#7898E0"><span> <a href="?frame=main" target="main"><strong>管理首页</strong></a>
| <a href="?action=logout" target="_top"><strong>退出</strong></a></span></td>
</tr>
<tr>
<td><div class=sec_menu style="width:158"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle">帐号:<strong><%=Session("hxStudioAdminName")%></strong></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle">等级:<strong><font color="#FF0000">
超级管理员</font></strong></a></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="main.asp" target="main"><strong>查看权限□修改密码</strong></a></td>
</tr>
</table></div>
</td>
</tr>
</table>
<br>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle1 onclick="showmenu_item(1)"><span>基本设置</span>
</td>
</tr>
<tr>
<td style="display:none;" id='menu_item1'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<!--
<tr>
<td height="20"><img src="images/bullet.gif" alt width="15" height="20" border="0" align="absmiddle"><a href="admin_config.asp" target=main>网站设置</a></td>
</tr>
-->
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="images/title_bg_show.gif" id=menuTitle2 onclick="showmenu_item(2)"><span>技术资讯</span>
</td>
</tr>
<tr>
<td style="display:none" id='menu_item2'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" alt width="15" height="20" border="0" align="absmiddle"><a href="admin_tec.asp" target="main">资讯列表</a> | <a href="admin_tec.asp?action=newnews#newnews" target="main">新添资讯</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle3 onclick="showmenu_item(3)"><span>企业管理</span>
</td>
</tr>
<tr>
<td style="display:none" id='menu_item3'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" alt width="15" height="20" border="0" align="absmiddle"><a href="admin_barinfor.asp" target="main">企业信息</a> | <a href="admin_barlist.asp" target="main">企业管理</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle4 onclick="showmenu_item(4)"><span>硬件管理</span>
</td>
</tr>
<tr>
<td style="display:none" id='menu_item4'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" alt width="15" height="20" border="0" align="absmiddle"><a href="admin_hdware.asp" target="main">硬件列表</a> | <a href="admin_hdware.asp?action=newnews#newnews" target="main">新添硬件</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle5 onclick="showmenu_item(5)"><span>行业政策</span>
</td>
</tr>
<tr>
<td style="display:none" id='menu_item5'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="admin_busi.asp" target="main">行业列表</a> | <a href="admin_busi.asp?action=newnews#newnews" target="main">添加分类</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle6 onclick="showmenu_item(6)"><span>经营方略</span>
</td>
</tr>
<tr>
<td style="display:none" id='menu_item6'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="images/bullet.gif" width="15" height="20" align="absmiddle"><a href="admin_meth.asp" target="main">经营列表</a> | <a href="admin_meth.asp?action=newnews#newnews" target="main">分类添加</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle7 onclick="showmenu_item(7)"><span>人物访谈</span></td>
</tr>
<tr>
<td style="display:none" id='menu_item7'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="admin_person.asp" target="main">访谈列表</a> | <a href="admin_person.asp?action=newnews#newnews" target="main">添加分类</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle8 onclick="showmenu_item(8)"><span>综合管理</span></td>
</tr>
<tr>
<td style="display:none" id='menu_item8'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="admin_netgame.asp" target="main">网游动态</a> | <a href="admin_netgame.asp?action=newnews" target="main">添加网游</a></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="admin_home.asp" target="main">协会之家</a> | <a href="admin_home.asp?action=newnews" target="main">添加协会</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle9 onclick="showmenu_item(9)"><span>用户管理</span></td>
</tr>
<tr>
<td style="display:none" id='menu_item9'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="user_list.asp" target="main">管理员权限设置</a></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="admin_reg.asp" target="main">添加管理员</a></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="logManage.asp" target="main">登陆日志管理</a></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="userlist.asp" target="main">管理普通会员</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle10 onclick="showmenu_item(10)"><span>净网先锋</span></td>
</tr>
<tr>
<td style="display:none" id='menu_item10'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="admin_jwxf.asp" target="main">列表</a> | <a href="admin_jwxf.asp?action=newnews#newnews" target="main">添加分类</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle11 onclick="showmenu_item(11)"><span>任子行</span></td>
</tr>
<tr>
<td style="display:none" id='menu_item11'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="admin_rzx.asp" target="main">列表</a> | <a href="admin_rzx.asp?action=newnews#newnews" target="main">添加分类</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle12 onclick="showmenu_item(12)"><span>万象幻境</span></td>
</tr>
<tr>
<td style="display:none" id='menu_item12'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="admin_wxhj.asp" target="main">列表</a> | <a href="admin_wxhj.asp?action=newnews#newnews" target="main">添加分类</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle6 onclick="showmenu_item(6)"><span>法律法规</span>
</td>
</tr>
<tr>
<td style="display:none" id='menu_item13'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="admin_falv.asp" target="main">法律法规</a> | <a href="admin_falv.asp?action=newnews#newnews" target="main">分类添加</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=158>
<tr>
<td height=25 class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; background="../images/title_bg_show.gif" id=menuTitle6 onclick="showmenu_item(6)"><span>乡镇建设</span>
</td>
</tr>
<tr>
<td style="display:none" id='menu_item14'><div class=sec_menu style="width:158">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle"><a href="admin_stvh.asp" target="main">乡镇建设</a> | <a href="admin_stvh.asp?action=newnews#newnews" target="main">分类添加</a></td>
</tr>
</table>
</div>
<div style="width:158">
<table cellpadding=0 cellspacing=0 align=center width=135>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table>
<br>
<table width="158" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="158" height="25" background="../images/admin_left_9.gif"><strong class="menu_title"> 版权信息</strong></td>
</tr>
<tr valign="top">
<td bgcolor="#D0D8F0"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="148" height="28" class="sec_menu">
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle">程序设计:</td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle">主页:<a href="http://www.xh.cn/" target="_blank">www.xh.cn</a></td>
</tr>
<tr>
<td height="20"><img src="../images/bullet.gif" width="15" height="20" align="absmiddle">当前版本:1.0000vlp</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<%elseif frame="main" then%>
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="inc/admin.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<script>if(top==self)top.location="admin.asp" </script>
</head><body>
<table width="98%" align="center" border="1" cellspacing="0" cellpadding="4" class=lanyubk style="border-collapse: collapse">
<tr>
<td class=lanyuss align="center" colspan="2">
程序制作: </td>
</tr>
<tr>
<td class="lanyuds"> 欢迎光临网站管理系统控制面板</td>
</tr>
<tr>
<td class="lanyuds"> 网络技术有限公司</td>
</tr>
<tr>
<td class="lanyuds"> 业务联系电话:</td>
</tr>
<tr>
<td class="lanyuds"> 公司地址:</td>
</tr>
<tr>
<td class="lanyuds"> <%=webname%></td>
</tr>
<tr>
<td class="lanyuds"> 本网站由网络科技有限公司维护</td>
</tr>
</table>
<BR>
<table width="98%" align="center" border="1" cellspacing="0" cellpadding="4" class=lanyubk style="border-collapse: collapse">
<tr>
<td class=lanyuss align="center" colspan="2">
快捷操作</td>
</tr>
<tr>
<td width="50%" class="lanyuds"> </td>
</tr>
<tr>
<td class="lanyuds"> 首页统计出错?请按这里 <input type="submit" name="Submit" value="更新统计信息" onclick="window.location.href='#'"> </td>
</tr>
</table>
<br>
<table width="98%" align="center" border="1" cellspacing="0" cellpadding="4" class=lanyubk style="border-collapse: collapse">
<tr>
<td class=lanyuss align="center" colspan="2">
实用搜索</td>
</tr> <form action="admin.asp?action=search" method="post" target="_blank">
<tr>
<td class="lanyuds"> 搜索关键字</td>
<td class="lanyuds"><input name="word" type="text" id="word" class="lostfocus" gf="0" onmouseover='this.className="getfocus"' onmouseout='if (this.gf=="0") this.className="lostfocus"' onblur='this.className="lostfocus";this.gf="0"' onfocus='this.className="getfocus";this.gf="1"'></td>
</tr>
<tr>
<td width="24%" class="lanyuds"> 常用搜索引擎</td>
<td width="76%" class="lanyuds"><input name="search" type="radio" value="google" checked>
Google
<input type="radio" name="search" value="3721">
3721<br>
<input type="radio" name="search" value="baidu">
百度 <input type="radio" name="search" value="sina">
新浪搜索</td>
</tr>
<tr>
<td colspan="2" class="lanyuqs"><div align="center">
<input type="submit" name="Submit" value="搜索">
</div></td>
</tr>
</form>
</table>
<br>
</body>
</html>
<%end if%>
<%else
dim s
randomize timer
s=Int((89999)*Rnd +10000)%>
<HTML><HEAD><TITLE>管理中心</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="../style/admin.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<script language=javascript>
function xxg()
{
if (document.form1.adminname.value==""){
alert("请输入用户名?")
document.form1.adminname.focus();
return false
}
if (document.form1.adminpwd.value==""){
alert("请输入密码?");
document.form1.adminpwd.focus();
return false
}
if (document.form1.VerifyCode.value==""){
alert("请输入验证码?");
document.form1.CheckCode.focus();
return false
}
return true
}
function reset_form()
{
document.form1.adminname.value="";
document.form1.adminpwd.value="";
document.form1.CheckCode.value="";
document.form1.adminname.focus;
}
</script>
</HEAD>
<body onkeydown=return(!(event.keyCode==78&&event.ctrlKey))><br><br><br>
<table width="280" align="center" border="1" cellspacing="0" cellpadding="4" class=lanyubk style="border-collapse: collapse">
<form name="form1" method="post" action="admin.asp?action=adminlogin" onsubmit="return xxg()">
<tr>
<td class=lanyuss align="center" colspan="2">管理登陆</td>
</tr>
<tr class=lanyuds>
<td class=lanyuds width="80">用 户:</td><td class=lanyuds width="200"><input type="text" name="adminname" class="textarea" size="20" autocomplete="off"></td>
<tr>
<td class=lanyuds>密 码:</td><td class=lanyuds><input type="password" name="adminpwd" class="textarea" size="20"></td>
</tr>
</tr>
<tr>
<td class=lanyuds>认证码:</td>
<td class=lanyuds><input name="s" type="text" size="14" autocomplete="off">
<b><%=s%></b><input maxlength=20 name="s2" size=12 type=hidden value="<%=s%>"></td>
</tr>
<tr>
<td class=lanyuqs colspan="2" align="center"><input type="submit" name="Submit" value="登录" class="button"></td>
</tr>
</table>
</body></html> |
|