<!-- #include file="include/AMH_onlogin.asp" -->
<!-- #include file="include/amh_menu.asp" -->
<%select case lcase(action)
case "menu"
	call amh_menu()
  call AMH_end()
case "main"
	call AMH_main()
  call AMH_end()
case else
	call AMH_frame()
  call AMH_end()
end select

function allpath(byval opath)
	allpath = Cls.Web_Dir & opath
	allpath = server.mappath(allpath)
end function

sub AMH_main()
response.redirect "AMH_Main.asp"
end sub

function AMH_object_install(obj,objver)
	on error resume next
	dim obj_AsaiMH,tmp1
	err=0
	set obj_AsaiMH=server.createobject(obj)
	if -2147221005=err then
		err.clear
		AMH_object_install="<font class=red><b>×</b></font>&nbsp;<font class=Gys>不支持</font>"
	else
		tmp1=""
		if objver=1 then
			tmp1=obj_Cls.version
			if Cls.is_null(tmp1)="" then tmp1=obj_Cls.about
			tmp1=replace(tmp1,"version","")
			tmp1=trim(tmp1)
			tmp1="&nbsp;<font class=tims><font class=blue>"&tmp1&"</font></font>"
		end if
		AMH_object_install="<b>√</b>&nbsp;<font class=Gys>支持</font>"&tmp1
	end if
	set obj_AsaiMH=nothing
	if -2147221005=err then err.clear
end function
sub amh_menu()
Call AMH_Title(0)%>
<script language=javascript src='Images/Tree/Tree.JS'></script>
<meta http-equiv="refresh" content="120">
<style>
/* 分类树型列表CSS */
.dtree { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; color: #666; white-space: nowrap; }
.dtree img { border: 0px; vertical-align: middle; }
.dtree a { color: #333; text-decoration: none; }
.dtree a.node, .dtree a.nodeSel { white-space: nowrap; padding: 1px 2px 1px 2px; }
.dtree a.node:hover, .dtree a.nodeSel:hover { color: #333; text-decoration: underline; }
.dtree a.nodeSel { background-color: #ffffff; }
.dtree .clip { overflow: hidden; }
/* 分类树型列表CSS结束 */
body {
  margin-left: 5px;
  margin-top: 5px;
  background-color: #f6f6f3;
}
</style>
</head>
<body topmargin=0 leftmargin=0 style='overflow-x:hidden;word-break:break-all;'>
<script Language=javascript>
Tree = new dTree('Tree');
Tree.add(0,-1,'<%=Cls.Web_Name%>');
<%
Call Menu_Type()
If ChkAdmins Then
%>
  Tree.add(10000,0,'网站管理',null,'','','Images/Tree/setting.gif','Images/Tree/setting.gif');
  Tree.add(150,10000,'网站设置','AMH_Config.asp','','AMF','Images/Tree/globe.gif','Images/Tree/globe.gif');
  Tree.add(151,10000,'频道管理','AMH_Channel.asp','','AMF','Images/Tree/folders.gif','Images/Tree/folders.gif');
  Tree.add(152,10000,'管理菜单','amh_menu.asp','','AMF','Images/Tree/catch.gif');
  Tree.add(153,10000,'模板管理','AMH_Template.asp','','AMF','Images/Tree/template.gif','Images/Tree/template.gif');
  Tree.add(154,10000,'IP锁管理','AMH_IpStop.asp','','AMF','Images/Tree/ip.gif','Images/Tree/ip.gif');
  Tree.add(155,10000,'执行SQL','AMH_Sql.asp','','AMF','Images/Tree/sentItems.gif','Images/Tree/sentItems.gif');
  Tree.add(156,10000,'管理日志','AMH_Event.asp','','AMF','Images/Tree/event.gif','Images/Tree/event.gif');
  Tree.add(157,10000,'上传日志','AMH_Upload.asp','','AMF','Images/Tree/calendar.gif','Images/Tree/calendar.gif');
  Tree.add(158,10000,'防 注 入','AMH_Infusion.asp','','AMF','Images/Tree/question.gif','Images/Tree/junk.gif');
  Tree.add(159,10000,'用 户 组','AMH_UserGroup.asp','','AMF','Images/Tree/Users.gif');
  Tree.add(160,10000,'编 辑 器','AMH_Editor.asp','','AMF','Images/Tree/calendar.gif','Images/Tree/calendar.gif');
  Tree.add(161,10000,'数据维护','AMH_DataBackup.asp','','AMF','Images/Tree/data.GIF');
  Tree.add(162,10000,'上传管理','AMH_UploadFiles.asp?FileType=UpLoad','','AMF','Images/Tree/tasks.gif');
  Tree.add(163,10000,'整站打包','AMH_PackTool.asp','','AMF','Images/Tree/catch.gif');
//  Tree.add(164,10000,'背景音乐','','','AMF','Images/Tree/cd.gif');  
  
<%end if%>

// Tree.add(10001,0,'其它相关',null,'','','Images/Tree/root.gif','Images/Tree/root.gif');

Tree.add(20000,0,'其它相关',null,'','','Images/Tree/root.gif','Images/Tree/root.gif');

Tree.add(200,20000,'网站概况','AMH_Main.asp','','AMF','Images/Tree/outbox.gif');
Tree.add(201,20000,'在线帮助','Http://77ya.Com','_blank','AMF','Images/Tree/help.gif');
Tree.add(202,20000,'访问首页','../','','_blank','Images/Tree/root.gif');
document.write(Tree);
</script>
<%end sub

sub AMH_frame()%>
<html>
<head>
<title><%=Cls.web_name%> - 管理后台</title>
<meta http-equiv=Content-Type content=text/html; charset=gb2312>
<link type=text/css href="Images/admin.Css" rel=stylesheet>
<script language=javascript src="Images/Admin.js"></script>
<link rel="shortcut icon" href="Images/favicon.ico">
<script language=javascript>
if (top.location!=self.location)
{
  top.location="./AMH_index.asp"
}

var objmenu,objleft;

function AMH_reload_main(){ parent.AMF.window.location.href=parent.AMF.window.location; }

function AMH_scroll_menu(strt,strnum)
{
  var tmpbase=5;
  if (strt=="up") tmpbase=-tmpbase;
  _scroll_once(tmpbase,strnum,0);
}

function _scroll_once(strnum,strk,strn)
{
  if (strn>=strk) return;
  parent.ALF.window.scrollBy(0,strnum);
  setTimeout("_scroll_once("+strnum+","+strk+","+(strn+1)+")",15);
}

function AMH_switch_menus()
{
  var tmpstyle='none';
  var tmpimg='images/change2.gif';

  if (objleft.style.display=="none")
  {
    tmpstyle='';
    tmpimg='images/change1.gif';
  }
  objleft.style.display=tmpstyle;
  document.images.img_switch.src=tmpimg;
}

function AMH_logout()
{
  var cf=window.confirm("您确定要退出管理后台吗？");
  if (cf)
  { return true; }
  else
  { return false; }
}

function obj_load()
{
  objmenu=get_id("ALF");
  objleft=get_id("div_left");
}
</script>
</head>
<body leftmargin=0 topmargin=0 marginheight="0" marginwidth="0" scroll=no style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px;" onload="javascript:obj_load();">
<table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%">
<tr><td align=center height=50>
 <table border=0 cellspacing=0 cellpadding=0 width='100%' height=50>
 <tr class=td1>
  <td width=8></td>
  <td width=390 style="color:#FFF;font-size:23px;font-weight:bold;"><%=Cls.Web_Name%>·后台管理</td>
  <td width="*" align=right>
    <table border=0 width="100%">
    <tr class=td1 align=center>

	  <td width="*" class=td1 align=left><%Response.Write img_admin("user","")%>&nbsp;欢迎 <%Response.Write Login_UserName%> 进入管理后台</td>
	  <td width=350>	
    <table border=0 width="100%">
    <tr class=td1 align=right>
    <td><%response.write img_admin("refresh","")%>&nbsp;<a href='javascript:;' onClick="javascript:AMH_reload_main()" class=h_t>刷新本页</a></td>
    <td><%response.write img_admin("refresh","")%>&nbsp;<a href='AMH_Index.asp' onClick="javascript:parent.AMF.re_load()" class=h_t>刷新整页</a></td>
    <td><%Response.Write img_admin("cache","")%>&nbsp;<a href='AMH_loadcache.asp' target="AMF" class=h_t>更新缓存</a></td>
	<td><%Response.Write img_admin("sys","")%>&nbsp;<a href='AMH_login.asp?action=logout' onClick="return AMH_logout()" target="_top" class=h_t>退出管理</a></td>
    </tr>
    </table>
    </td>
    <td width=8></td>
    </tr>
    </table>
  </td>
 </tr>
 </table>
  <table border=0 cellspacing=0 cellpadding=0 width='100%'>
  <tr><td class=td2 height=5></td></tr>
  </table>
</td></tr>
<tr><td height="*">
  <table border=0 cellspacing=0 cellpadding=0 width="100%" height="100%">
  <tr>
  <td id=div_left style="display:true;" width=141>
  <iframe id=ALF name=ALF scrolling=auto frameborder=0 src="?action=menu" width="100%" height="100%" style="visibility:inherit;"></iframe>
  </td>
  <td width=10>
    <table border=0 cellpadding=0 cellspacing=0 width=10 height="100%">
    <tr align=center><td class=td3 height=20 onClick="javascript:AMH_scroll_menu('up',60);" style="background-repeat:repeat-y;cursor:hand;"><img border=0 src="images/up_2.gif"></td></tr>
    <tr align=center><td class=td3 height="*"><img border=0 id=img_switch name=img_switch src="images/change1.gif" width="10" onClick="javascript:AMH_switch_menus();" style="background-repeat:repeat-y;cursor:hand;"></a></td></tr>
    <tr align=center><td class=td3 height=20 onClick="javascript:AMH_scroll_menu('down',60);" style="background-repeat:repeat-y;cursor:hand;"><img border=0 src="images/down_2.gif"></td></tr>
    </table>
  </td>
  <td width="*">
  <iframe id=AMF name=AMF frameborder=0 src="?action=main" width="100%" height="100%"></iframe>
  </td>
  </tr>
  </table>
</td></tr>
<tr><td height=35 align=center>
  <table border=0 cellspacing=0 cellpadding=0 width='100%'>
  <tr><td class=td2 height=5></td></tr>
  </table>
  <table border=0 cellspacing=0 cellpadding=0 width='100%' height=25>
    <tr align=center class=tr2>
    <td width=20></td>
    <td width=60><a href="javascript:;" onClick="javascript:parent.ALF.Tree.openAll();" class=h_t>全部展开</a></td>
    <td width=60><a href="javascript:;" onClick="javascript:parent.ALF.Tree.closeAll();" class=h_t>全部关闭</a></td>
    <td width=60></td>
    <td width="*">
      <table border=0 width='100%'><tr class=tr2>
      <td class=tr2 valign=middle align=right>阿赛大型门户网站系统</td>
      
      	  <td width=200 class=tr2><%Response.Write img_admin("tim","")%>&nbsp;<%=FormatDateTime(Cls.today_time,1)&"&nbsp;&nbsp;"&WeekDayName(WeekDay(Cls.today_time))%></td>
      </tr></table>
    </td>
    </tr>
  </table>
</td></tr>
</table>
<%end sub

sub AMH_end()%>
</body>
</html>
<%Call Web_Clear(0)
end sub
'=======================================================
' 欢迎使用《阿赛大型门户网站系统》，简称“AsaiMH”
' 技术支持、商业版咨询、官方唯一指定联系QQ“4941172”
' 官方网站：http://77ya.com      程序负责人：阿赛
'=======================================================
%>