<!--#include file="../inc/cms_admin.asp" -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta content=always name=referrer>
<link href="<%=sitepath%>css/bootstrap.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/font-awesome.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/animate.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/style.min.css" rel="stylesheet">
<link href="<%=sitepath&adminpath%>css/adminstyle.css" rel="stylesheet">
<!--[if lte IE 9]>
<script src="<%=sitepath%>js/respond.min.js"></script>
<script src="<%=sitepath%>js/html5.js"></script>
<![endif]-->
<title><%=zset.siteTitle%>-后台管理</title>
<script src="<%=sitepath%>js/jquery.min.js"></script>
<script src="<%=sitepath%>plugins/layer/layer.min.js"></script>
</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<div id="wrapper"> 
  <!--左侧导航开始-->
  <nav class="navbar-default navbar-static-side" role="navigation">
    <div class="nav-close"><i class="fa fa-times-circle"></i> </div>
    <div class="sidebar-collapse">
      <ul class="nav" id="side-menu">
        <li class="nav-header">
          <div class="dropdown profile-element"> <span><a href="<%=sitepath&adminpath%>"><img alt="image" src="images/logo.png" /></a></span>
          </div>
          <div class="logo-element"><img src='<%=sitepath%>images/logox.png'></div>
        </li>
        <%	
		menuList(0)
		function menuList(sortid)
		dim rs,menulink,sorturl,spliturl,sid,cid,Location
		sql="select SID,s_name,S_Level,S_type,(select count(0) from [dbpre]Sort where S_PID=a.SID) as c from [dbpre]sort as a where S_OnOff=1  and S_PID="&sortid&" order by S_Order asc,SID asc"	
		set rs=dbsqlr1(sql)
		do while not rs.eof
		select case rs("S_Type")
			case "about" : menulink="cms_content/about/about_edit.asp?SID="&rs("SID") 
			case "brand" : menulink="cms_content/brand/brand_list.asp"
			case "gbook" : menulink="cms_content/gbook/gbook_List.asp"
			case "links" : menulink="" 
			case else 	 : menulink="cms_content/Content/Content_List.asp?Stype="&rs("S_Type")&"&SID="&rs("SID")
		end select
		echo "<li class='leftdown menuList"&sortid&"'> <a class='J_menuItem' href='"&menulink&"'  data-index='"&rs("SID")&"' id='left"&rs("SID")&"'> <i class='fa fa-"&rs("S_type")&"'></i> <span class='nav-label'>"&rs("S_name")&"</span> </a>"
		 if rs("c")>0 then  
       		echo" <em>+</em><ul class='nav nav-"&rs("S_Level")&"-level collapse'>"&vbcrlf
			echo menuList(rs("SID"))&vbcrlf
			echo "</ul>"&vbcrlf
		 end if
		  echo "</li>"&vbcrlf
		 rs.movenext
		loop
		closers rs
		end function 	
		%>
      </ul>
    </div>
  </nav>
  <!--左侧导航结束--> 
  <!--右侧部分开始-->
  <div id="page-wrapper" class="gray-bg dashbard-1">
    <div class="row border-bottom" id="navbar">
      <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
        <ul class="nav navbar-nav">
          <a class="navbar-minimalize minimalize-styl-2" href="#"><i class="fa"></i></a>
          <%
		 dim rs,sql,adminmenu	
		 adminmenu=getsession("adminmenu")
		if isnul(adminmenu) then
			layererr "登录已经失效请重新登录","login.asp"
		elseif adminmenu="all" then
			adminmenu=""		
		else
			adminmenu="and MID in ("&adminmenu&")"
		end if		
		sql ="select MID,M_Name from [dbpre]Menu where M_OnOff=1 and M_Level=1 "&adminmenu&" order by M_Order asc"
		 set rs=dbsqlr1(sql)
		 do while not rs.eof 
		 %>
          <li class="dropdown"> <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown"> <%=rs("M_Name")%> <i class="fa fa-inr"></i></a>
            <ul role="menu" class="dropdown-menu">
              <%
			dim rs1
			 set rs1=dbsqlr1("select MID,M_Name,M_Link,M_Key from [dbpre]Menu where M_OnOff=1 and M_Level=2 and PID="&rs("MID")&" "&adminmenu&"  order by M_Order asc")
            	 do while not rs1.eof 
			 		echo "<li id='"&rs1("M_Key")&"'><a href="&rs1("M_Link")&"  class='J_menuItem'>"&rs1("M_Name")&"</a> </li>"
		 			rs1.movenext
		 		loop
		 		closers rs1%>
            </ul>
          </li>
          <% 
		  rs.movenext
		  loop
		  closers rs
		  %>
        </ul>
        <ul class="nav navbar-top-links navbar-right">
        <li>
         <%if gbookonoff=1 then
		dim gbooknum : gbooknum=dbcount("[dbpre]gbook","G_OnOff=0")
		 if gbooknum then
		 %>        
         <a class="dropdown-toggle count-info" data-toggle="dropdown"  title="有<%=gbooknum%>条留言需要审核" onClick="goparent('gbook')" aria-expanded="false"> <i class="fa fa-bell"></i> <span class="label label-primary"><%=gbooknum%></span></a>
         <%end if
		 end if%>
          </li>
	
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="<%=sitepath%>images/face/<%=iif(getcookie("adminface")="","noface.png",getcookie("adminface"))%>" class="img-circle" alt="Avatar"> <span><%=getcookie("adminname")%><%=getsession("adminGroup")%></span> <i class="icon-submenu lnr lnr-chevron-down"></i></a>
							<ul class="dropdown-menu">
								<li><a onClick="opennew('cms_content/user/setface.asp?action=saveface&UID=<%=getsession("adminid")%>&face=<%=getcookie("adminface")%>')"><i class="lnr lnr-user"></i> <span>修改头像</span></a></li>
								<li><a onClick="layer.open({type:2,title:'修改管理员密码',shade:0.8,scrollbar:false,area:['440px','290px'],content:'cms_content/user/setpass.asp'});"><i class="lnr lnr-envelope"></i> <span>修改密码</span></a></li>
								<li><a onClick="opennew('cms_content/user/admin_edit.asp?UID=<%=getsession("adminid")%>')"><i class="lnr lnr-cog"></i> <span>个人资料</span></a></li>
			  <!--<li class="divider"></li>-->

							</ul>
					  </li>

          </li>
        </ul>
      </nav>
    </div>
	
    <section id="main-content">
        <div class="main-nav"><div class="pull-right crumbsbutton"><a href="right.asp" class="J_menuItem" target="_blank"><i class="fa fa-backward1">后台首页</i></a><a href="login.asp?act=loginesc"><i class="fa fa-backward3">后台锁屏</i></a><a class="right-sidebar-toggle" aria-expanded="false"><i class="fa fa-backward2">后台样式</i></a><a href="<%=sitepath%>" target="_blank"><i class="fa fa-backward4">返回首页</i></a><a href="login.asp?act=loginout"><i class="fa fa-backward5">安全退出</i></a></div><i class="fa fa-backward"><%=zset.siteTitle%>-后台管理</i></div>
    </section>
	
    <div class="row J_mainContent" id="content-main">
      <iframe class="J_iframe" name="iframe0"  id="main" width="100%" height="100%" style="min-height:700px;" src="right.asp" frameborder="0" data-id="right.asp" seamless></iframe>
    </div>
  </div>
  <!--右侧部分结束--> 
  <!--右侧边栏开始-->
  <div id="right-sidebar">
    <div class="sidebar-container">
      <ul class="nav nav-tabs navs-3">
        <li class="active"> <a data-toggle="tab" href="#tab-1"> <i class="fa fa-gear"></i> 主题 </a> </li>
        <li class="" style="display:none"><a data-toggle="tab" href="#tab-2"> 通知 </a> </li>
        <li><a data-toggle="tab" href="#tab-3"> 版本 </a> </li>
      </ul>
      <div class="tab-content">
        <div id="tab-1" class="tab-pane active">
          <div class="sidebar-title">
            <h3> <i class="fa fa-comments-o"></i> 主题设置</h3>
            <small><i class="fa fa-tim"></i> 你可以从这里选择和预览主题的布局和样式，这些设置会被保存在本地，下次打开的时候会直接应用这些设置。</small> </div>
          <div class="skin-setttings">
            <div class="title">主题设置</div>
            <div class="setings-item"> <span>收起左侧菜单</span>
              <div class="switch">
                <div class="onoffswitch">
                  <input type="checkbox" name="collapsemenu" class="onoffswitch-checkbox" id="collapsemenu">
                  <label class="onoffswitch-label" for="collapsemenu"> <span class="onoffswitch-inner"></span> <span class="onoffswitch-switch"></span> </label>
                </div>
              </div>
            </div>
            <div class="setings-item"> <span>固定顶部</span>
              <div class="switch">
                <div class="onoffswitch">
                  <input type="checkbox" name="fixednavbar" class="onoffswitch-checkbox" id="fixednavbar">
                  <label class="onoffswitch-label" for="fixednavbar"> <span class="onoffswitch-inner"></span> <span class="onoffswitch-switch"></span> </label>
                </div>
              </div>
            </div>
            <div class="setings-item"> <span> 固定宽度 </span>
              <div class="switch">
                <div class="onoffswitch">
                  <input type="checkbox" name="boxedlayout" class="onoffswitch-checkbox" id="boxedlayout">
                  <label class="onoffswitch-label" for="boxedlayout"> <span class="onoffswitch-inner"></span> <span class="onoffswitch-switch"></span> </label>
                </div>
              </div>
            </div>
            <div class="title">皮肤选择</div>
           <div class="setings-item default-skin nb"> <span class="skin-name "> <a href="#" class="s-skin-0"> 默认皮肤 </a> </span> </div>
            <!--<div class="setings-item blue-skin nb"> <span class="skin-name "> <a href="#" class="s-skin-1"> 粉色主题 </a> </span> </div>
            <div class="setings-item yellow-skin nb"> <span class="skin-name "> <a href="#" class="s-skin-3"> 梪色主题 </a> </span> </div>-->
          </div>
        </div>
        <div id="tab-2" class="tab-pane">
          <div class="sidebar-title">
            <h3> <i class="fa fa-comments-o"></i> 最新通知</h3>
            <small><i class="fa fa-tim"></i> 您当前有10条未读信息</small> </div>
          <div> </div>
        </div>
        <div id="tab-3" class="tab-pane">
          <div class="sidebar-title">
            <h3> <i class="fa fa-cube"></i> 官方版本</h3>
            <div class="panel panel-default">
              <div class="panel-heading">
                <h5 class="panel-title"> <a data-toggle="collapse" data-parent="#version" href="#v1">当前天气</a><code class="pull-right"><%=date()%></code> </h5>
              </div>
              <div id="v1" class="panel-collapse collapse in">
                <div class="panel-body">
  <%if istianqi=1 then 
  	echo"<div style='position: absolute;right: 10px;top: 20px;'>  <a onclick=openonoff('cms_Content/system/system_Fun.asp?act=setconfig&configname=istianqi&configval=0') title='关闭天气展示，可加快后台打开速度'> <i class='fa fa-times'></i> </a> </div><iframe src='http://i.tianqi.com/index.php?c=code&id=7' frameborder=0 scrolling=no width='220' height='110'  style='margin-left:0px;margin-top: 28px;'></iframe>"
  elseif istianqi=2 then 
  	echo"<iframe src='http://i.tianqi.com/index.php?c=code&id=7' frameborder=0 scrolling=no width='220' height='110'  style='margin-left:0px;margin-top: 28px;'></iframe>"
 else
 	echo "<div style='position: absolute;right: 10px;top: 20px;'>  <a onclick=openonoff('cms_Content/system/system_Fun.asp?act=setconfig&configname=istianqi&configval=1') title='开启天气展示'> <i class='fa fa-soundcloud'></i> </a> </div>"
 end if
  %>
				</div>
              </div>
            </div>
          </div>
          <ul class="sidebar-list">
            <li>
              <div class="small m-t-xs">版本：<strong style="color:#f96868;"><%=cms_version%></strong></div>
              <div class="small m-t-xs">网址：<a href="<%=cms_verurl%>" target="_blank"><%=cms_verurl%></a></div>
              <div class="small text-muted m-t-xs">时间：<%=cms_vertime%></div>
            </li>
          </ul>
        </div>
        <button class="right-sidebar-toggle btn btn-block btn-danger" aria-expanded="false"> <i class="fa fa-times"></i>　收起 </button>
      </div>
    </div>
  </div>
</div>
<script src="<%=sitepath%>js/bootstrap.min.js"></script> 
<script src="<%=sitepath%>plugins/metisMenu/jquery.metisMenu.js"></script> 
<script src="<%=sitepath%>plugins/slimscroll/jquery.slimscroll.min.js"></script> 
<script src="<%=sitepath%>js/hplus.min.js"></script> 
<script type="text/javascript" src="<%=sitepath%>js/contabs.min.js"></script> 
<script src="<%=sitepath%>plugins/pace/pace.min.js"></script> 
<script src="<%=sitepath&adminPath%>js/adminjs.js"></script>
</body>
</html>
