<?php
# Name: PHP版程氏音乐CMS管理系统 v3.0
# Author: 程氏<web@chshcms.com> [QQ:848769359]
# Homepage:http://www.chshcms.cn/
include_once("../lib/cs_conn.php");
include_once("../lib/cs_common.php");
include "loginstate.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<meta charset=utf-8 />
		<title>csdjcms management</title>
		<link href="res/css/admin_layout.css" rel="stylesheet" />
                <link href="../public/css/webox.css" rel="stylesheet" /> 
		<style>
			.fullScreen .content th{display:none;width:0;}
			.fullScreen .head,.fullScreen .tab{height:0;display:none;}
			.fullScreen #default{*left:0;*top:-90px;}
			.fullScreen div.options{top:0;}
		</style>
		<script>
                     //全屏/非全屏
		     var isiPad = navigator.userAgent.match(/iPad|iPhone|iPod/i);  //苹果浏览器
		     var isAndroid = navigator.userAgent.match(/Android/i);  //安卓浏览器
		     var TheWorld = navigator.userAgent.indexOf("TheWorld")>0;  //世界之窗浏览器
		     var Firefox = navigator.userAgent.indexOf("Firefox")>0;  //火狐浏览器
		     var Chrome = navigator.userAgent.indexOf("Chrome")>0;  //谷歌浏览器
		     function quanpin(_id) {
                        if(_id==1){
			      document.getElementById('B_top').style.display='none';
			      document.getElementById('B_menunav').style.display='none';
                           if(!isiPad && !isAndroid && !TheWorld && !Firefox && !Chrome){
			      document.getElementById('B_TH').style.display='';
                           }
                              document.getElementById("qp").innerHTML='<a href="javascript:;" onclick="quanpin(2);" class="full_screen" title="非全屏">全屏</a>';
                        }else{
			      document.getElementById('B_top').style.display='';
			      document.getElementById('B_menunav').style.display='';
                           if(!isiPad && !isAndroid && !TheWorld && !Firefox && !Chrome){
			      document.getElementById('B_TH').style.display='none';
                           }
                              document.getElementById("qp").innerHTML='<a href="javascript:;" onclick="quanpin(1);" class="full_screen" title="全屏">全屏</a>';
                        }
                     }
                     //导航转换
		     function menu(n) {
                        for(var i=1;i<=10;i++){
                              var curC=document.getElementById('left'+i);
                              var curB=document.getElementById('menu'+i);
                              if(n==i){
                                 curC.style.display="block";
                                 curB.className="current";
                              }else{
                                 curC.style.display="none";
                                 curB.className="";
                              }
                        } 
                     }
		</script>
		<script language="javascript" src="res/js/jquery.js"></script>
		<script src="../public/js/webox.js"></script>
	</head>
	<body>
		<div class="wrap">
			<table width="100%" height="100%" style="table-layout:fixed;">
				<tr class="head" id="B_top">
					<th><a href="index.php" class="logo">管理中心</a></th>
					<td>
					<div class="nav">
						<!-- 菜单异步获取，采用json格式，由js处理菜单展示结构 -->
						<ul>
							<li id="menu1" class="current"><a href="./config/main.php" target="main" onclick="menu(1);">常用</a></li>
							<li id="menu2"><a href="./config/config_admin.php" target="main" onclick="menu(2);">管理员</a></li>
							<li id="menu3"><a href="./config/config_conn.php" target="main" onclick="menu(3);">全局</a></li>
							<li id="menu4"><a href="./dance/dance.php" target="main" onclick="menu(4);">音乐</a></li>
							<li id="menu5"><a href="./news/news.php" target="main" onclick="menu(5);">文章</a></li>
							<li id="menu6"><a href="./user/user.php" target="main" onclick="menu(6);">会员</a></li>
							<li id="menu7"><a href="./tools/bulk.php" target="main" onclick="menu(7);">工具</a></li>
							<li id="menu8"><a href="./user/pl.php" target="main" onclick="menu(8);">评论</a></li>
							<li id="menu9"><a href="./skins/skins.php" target="main" onclick="menu(9);">模版</a></li>
							<li id="menu10"><a href="./html/html.php" target="main" onclick="menu(10);">生成</a></li>
						</ul>
					</div>
					<div class="login_info">
						<a href="../" class="home" target="_blank">前台首页</a><a href="./config/main.php" class="home" target="main">后台首页</a><a href="./config/cache.php" class="home" target="main">更新缓存</a><span class="mr10">管理员：<?php echo $_COOKIE['CS_AdminUserName']?> </span><a href="login.php?a=logout" class="mr10">[注销]</a>
					</div></td>
				</tr>

				<tr class="content">
					<th style="overflow:hidden;" id="B_menunav">
							<div class="menubar">
								<dl id="left1">
									<dt class="disabled"><a href="./tools/custon.php" target="main">常用菜单</a></dt>
                                                                        <?php include "tools/quickmenu.php" ?>
								</dl>
								<dl id="left2" style="display:none">
									<dt class="disabled"><a href="./config/config_admin.php" target="main">管理员管理</a></dt>
									<dt class="disabled"><a href="./config/config_admin.php?ac=add" target="main">填加管理员</a></dt>
								</dl>
								<dl id="left3" style="display:none">
									<dt class="disabled"><a href="./config/config_conn.php" target="main">系统配置</a></dt>
									<dt class="disabled"><a href="./config/config_user.php" target="main">会员配置</a></dt>
									<dt class="disabled"><a href="./config/config_qq.php" target="main">QQ登入配置</a></dt>
									<dt class="disabled"><a href="./tools/link.php" target="main">友情链接管理</a></dt>
									<dt class="disabled"><a href="./tools/tags.php" target="main">Tags标签管理</a></dt>
									<dt class="disabled"><a href="./tools/ads.php" target="main">网站广告管理</a></dt>
								</dl>
								<dl id="left4" style="display:none">
									<dt class="disabled"><a href="./dance/dance.php" target="main">音乐列表</a></dt>
									<dt class="disabled"><a href="./dance/dance.php?ac=edit" target="main">添加音乐</a></dt>
									<dt class="disabled"><a href="./dance/dance.php?op=sh" target="main">审核音乐</a></dt>
									<dt class="disabled"><a href="./dance/class.php" target="main">音乐分类</a></dt>
									<dt class="disabled"><a href="./dance/topic.php" target="main">音乐专集</a></dt>
									<dt class="disabled"><a href="./dance/pathip.php" target="main">音乐服务器</a></dt>
									<dt class="disabled"><a href=./collect/csdj.php target=main>官方资源库</a></dt>
									<dt class="disabled"><a href="./collect/dance_list.php" target="main">采集规则管理</a></dt>
									<dt class="disabled"><a href="./collect/dance_list.php?ac=edit" target="main">添加采集规则</a></dt>
									<dt class="disabled"><a href="./dance/dance.php?op=sh" target="main">采集数据管理</a></dt>
								</dl>
								<dl id="left5" style="display:none">
									<dt class="disabled"><a href="./news/news.php" target="main">文章列表</a></dt>
									<dt class="disabled"><a href="./news/news.php?ac=edit" target="main">添加文章</a></dt>
									<dt class="disabled"><a href="./news/news.php?op=sh" target="main">审核文章</a></dt>
									<dt class="disabled"><a href="./news/class.php" target="main">文章分类</a></dt>
									<dt class="disabled"><a href="./news/topic.php" target="main">文章专题</a></dt>
									<dt class="disabled"><a href="./collect/news_list.php" target="main">采集规则管理</a></dt>
									<dt class="disabled"><a href="./collect/news_list.php?ac=edit" target="main">添加采集规则</a></dt>
									<dt class="disabled"><a href="./news/news.php?op=sh" target="main">采集数据管理</a></dt>
								</dl>
								<dl id="left6" style="display:none">
									<dt class="disabled"><a href="./user/user.php" target="main">会员列表</a></dt>
									<dt class="disabled"><a href="./user/user_xiaoxi.php" target="main">发送消息</a></dt>
									<dt class="disabled"><a href="javascript:Popsboxif('发送邮件',460,470,'./user/user_mail.php');">发送邮件</a></dt>
									<dt class="disabled"><a href="./user/pic.php" target="main">相册管理</a></dt>
									<dt class="disabled"><a href="./user/blog.php" target="main">微薄管理</a></dt>
									<dt class="disabled"><a href="./user/down.php" target="main">下载明细</a></dt>
									<dt class="disabled"><a href="./user/pay.php" target="main">充值定单</a></dt>
								</dl>
								<dl id="left7" style="display:none">
									<dt class="disabled"><a href="./tools/bulk.php" target="main">数据批量操作</a></dt>
									<dt class="disabled"><a href="./tools/bulk.php?ac=sql" target="main">Sql语句执行</a></dt>
									<dt class="disabled"><a href="./tools/bulk.php?ac=hits" target="main">批量随机人气</a></dt>
									<dt class="disabled"><a href="./tools/dbbase.php" target="main">数据备份还原</a></dt>
									<dt class="disabled"><a href="./tools/images.php" target="main">无效图片删除</a></dt>
									<dt class="disabled"><a href="./tools/downpic.php" target="main">保存远程图片</a></dt>
								</dl>
								<dl id="left8" style="display:none">
									<dt class="disabled"><a href="./user/pl.php" target="main">网友评论</a></dt>
									<dt class="disabled"><a href="./user/error.php" target="main">歌曲报错</a></dt>
									<dt class="disabled"><a href="./user/gbook.php" target="main">网友留言</a></dt>
								</dl>
								<dl id="left9" style="display:none">
									<dt class="disabled"><a href="./skins/skins.php" target="main">模板管理</a></dt>
									<dt class="disabled"><a href="./skins/skins_zdy.php" target="main">自定义模版标签</a></dt>
								</dl>
								<dl id="left10" style="display:none">
									<dt class="disabled"><a href="./html/html.php" target="main">生成选项</a></dt>
									<dt class="disabled"><a href="./html/html_index.php" target="main">生成首页</a></dt>
									<dt class="disabled"><a href="./html/html_dance.php?ac=list" target="main">生成歌曲</a></dt>
									<dt class="disabled"><a href="./html/html_news.php?ac=list" target="main">生成文章</a></dt>
									<dt class="disabled"><a href="./html/html_topic.php?ac=list" target="main">生成专集</a></dt>
									<dt class="disabled"><a href="./html/html_index.php?ac=rss" target="main">生成RSS订阅</a></dt>
								</dl>
							</div>
					</th>
                                        <th id="B_TH" style="display:none;"></th>
					<td id="B_frame">
						<div class="options">
							<a href="javascript:;" onclick="parent.main.location.reload();" class="refresh" id="J_refresh" title="刷新">刷新</a>
							<span id="qp"><a href="javascript:;" onclick="quanpin(1);" class="full_screen" title="全屏">全屏</a></span>
						</div>
						<iframe name="main" id="main" src="./config/main.php" style="height: 100%; width: 100%;" frameborder="0" scrolling="auto"></iframe>
					</td>
				</tr>
			</table>
		</div>
	</body>
</html>

