<!--#include file="fy.Function.asp"-->
<!doctype html>
<html>
<head>
<meta charset="gb2312">
<title>fycms管理系统</title>
<link rel="stylesheet" type="text/css" href="css/frame.css">
</head>

<body>
<div class="header" id="header">
	<h1>
    	<a href="#"  title="单击隐藏/显示左边栏"><i><!--这个空标签有用--></i><img src="images/logo.png" alt="关闭左边管理菜单"></a>
    </h1>
    <!--公告区域-->
    <div class="gg">
    	<ul>
    		<li id="typepack">正获取官方更新通告，请稍候……</li>
        </ul>
    </div>
    <ul class="nav" id="nav">
		<li><a class="one" href="right.asp" data-menu="left.asp" target="ifrcontent">管理首页</a></li>
		<li><a class="one" href="fy_Mode/fy.Manage.asp?Action=ListisAccept" data-menu="List.asp" target="ifrcontent">内容管理</a></li>
		 <% If  fycms.ChkAdmin() Then '超级管理员检测%>
        <li><a class="one" href="Mode/fy.mx.asp" data-menu="left.asp?ID=3" target="ifrcontent">模型管理</a></li>
        <li><a class="one" href="user/index.asp" data-menu="left.asp?ID=5" target="ifrcontent">用户管理</a></li>
        <li><a class="one" href="include/fy.Plus.asp" data-menu="left.asp?ID=4" target="ifrcontent">插件管理</a></li>
        <li><a class="one" href="include/TempLate/index.asp" data-menu="left.asp" target="ifrcontent">模版管理</a></li>
 <% End If %>
         <li><a class="one" href="include/fy.Make.asp" data-menu="left.asp" target="ifrcontent">生成更新</a></li>
		 <% If  fycms.ChkAdmin() Then '超级管理员检测%>
		<li><a class="one" href="fy.Sys.asp" data-menu="left.asp" target="ifrcontent">系统设置</a></li>
		 <% End If %>
		<li><a class="one" href="Sys_fy/makelabel/index.asp" data-menu="left.asp" target="ifrcontent">标签生成</a></li>

        <li class="dmbox">
        	<a class="one" href="#">快捷菜单<i>▼</i></a> 
        	<div class="dmenuwrap">
                <ul class="dmenu" id="dmenu">
				<%Dim diymenu:Set diymenu = fycms.actexe("select * from DiyMenu_fy")
			  If  Not diymenu.eof Then 
			  Do While Not  diymenu.eof %>
                    <li><a href="<%=diymenu("MenuUrl")%>" data-menu="left.asp" target="<%=diymenu("OpenWay")%>"><%=diymenu("MenuName")%></a></li>
			   <% diymenu.movenext
				 Loop
				 End if%>
                    <li><a  data-menu="left.asp" href="include/plus/fy.DiyMenu.ASP" target="ifrcontent">快捷操作管理</a></li>
               
				</ul>
            </div>
        </li>
    </ul>
    <ul class="tool" id="tool">
	 	<li>欢迎您:<%= Request.Cookies(fycmsN)("AdminName") %>
          您的身份是
          <%IF Request.Cookies(fycmsN)("SuperTF")  = "1" Then echo "<font color=red>超级管理员</font>" Else echo "普通管理员" %></li>
		<li><a href="Login.asp?Action=LoginOut" >退出</a></li> ┊
     	<li><a href="<%=fycms.fycms_Sys(3)%>" target="_blank">网站首页</a></li>┊
    	<li><a href="include/MakeIndex.asp" target="ifrcontent">生成首页</a></li>┊
        <li><a href="include/ApplicationRemoveAll.asp" target="ifrcontent">更新缓存</a></li>┊
        <li><a href="include/fy.Map.asp" target="ifrcontent">生成地图</a></li>┊
        
        <li><a href="http://bq.fycms.com" target="_blank">标签帮助</a></li>┊
        <li><a href="http://www.fycms.com" target="_blank">FYCMS</a></li>
        <li><a href="http://bbs.fycms.com" target="_blank">FYCMS论坛</a></li>
    </ul>
    <div class="clear"></div>
</div>
    <div class="sidebar">
        <div class="menuwrap">
            <iframe id="ifrmenu" name="ifrmenu" frameborder="0" src="left.asp" scrolling="no"></iframe>
        </div>
    </div>
    <div class="container">
        <div class="contentwrap">
            <iframe id="ifrcontent" name="ifrcontent" src="right.asp" frameborder="0"></iframe>
        </div>
    </div>
    
<script type="text/javascript" src="../fy_inc/js/jquery.js"></script>
<script>
$(function(){
	var $ifrmenu = $("#ifrmenu"),$navLi = $("#nav > li"),$toolLi = $("#tool > li");
	$navLi.click(function(){
		$.changeifr($(this));
	});
	$.changeifr = function(dom) {
		$this = $(dom);
		$this.addClass("cur").siblings("li").removeClass("cur");
		var $menuurl = $this.find("a").attr("data-menu");
		if($menuurl){$ifrmenu.attr("src",$menuurl);	}
	};
	
	$toolLi.click(function(){
		$.changeifr($(this));
	});
	/*下拉菜单 梅川内酷*/
	$dmfun = function(dmdom){
		$(dmdom).mouseenter(function(){
			var $this = $(this),$firsta_h = $this.children("a").outerHeight();
			$this.addClass("dmcur").children("div").css({
				"padding-top":$firsta_h
			});	
		}).mouseleave(function(){
			$(this).removeClass("dmcur");	
		});	
	};
	$dmfun("#nav li.dmbox");
	
	var $logo = $("#header h1 > a"),$body = $("body");
	$logo.click(function(){
		if(!$body.hasClass("win100")){
			$body.addClass("win100");
		}else{
			$body.removeClass("win100");
		}
		return false;	
	});
	//IE67动态设置高度
	var $browser = new browserFun(),
		winH = $(window).height(),
		h = 85;
	if ($browser.msie && $browser.ver < 8){
		setHeight("body > div.sidebar",winH,h);
		setHeight("body > div.container",winH,h);
		$(window).resize(function(){
		  var winH = $(window).height();
		  setHeight("body > div.sidebar",winH,h);
		  setHeight("body > div.container",winH,h);
		});
	}
	function setHeight(obg,H,h){
		$(obg).css({'height':H-h});
	}
	
});

//懒人建站 制造
function browserFun(){         	
	var browserName=navigator.userAgent.toLowerCase();
	this.ver = (browserName.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0, '0'])[1];  
	this.msie = /msie/i.test(browserName) && !/opera/.test(browserName);
	this.firefox = /firefox/i.test(browserName);
	this.chrome = /chrome/i.test(browserName) && /webkit/i.test(browserName) && /mozilla/i.test(browserName);
	this.opera = /opera/i.test(browserName);
	this.safari = /webkit/i.test(browserName) &&!(/chrome/i.test(browserName) && /webkit/i.test(browserName) && /mozilla/i.test(browserName));
}
</script>

<div id="ShowPack" style="display:none">
<script charset='gb2312' src="http://www.fycms.com/sys/PackJs.asp?lan=asp&url=<%=Request.Servervariables("Server_Name")%>&ver=<%=fycms.Version%>&char=<%=Response.Charset%>"></script>
</div>
<script language="JavaScript" type="text/javascript">
document.getElementById("typepack").innerHTML=document.getElementById("ShowPack").innerHTML;
</script>	

</body>
</html>
