<!DOCTYPE html>
<html>
	<head>
        <link rel="stylesheet" type="text/css" href="template/style2015/content/bootstrap/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="template/style2015/content/bootstrap/bootstrap-responsive.min.css"/>
		<link rel="stylesheet" href="template/style2015/content/bootstrap/base.css" />
		<script type="text/javascript" src="template/style2015/content/bootstrap/jquery-2.1.2.min.js"></script>
		<script type="text/javascript" src="template/style2015/content/bootstrap/bootstrap.min.js"></script>
		<script type="text/javascript" src="template/style2015/content/bootstrap/jquery.nicescroll.js"></script>
<style type="text/css">
ul,li{list-style:none;}
.undis{display:none;}

.content{
	min-width: 90%;
	width: 90%;
	margin: 0 auto;
	padding: 5%;
}
.content .items {
	width: 100%;
	margin-bottom: 80px;
}
.items .CRMtitle {
	width: 200px;
	height: 30px;
	line-height:30px;
	background-color:#DADADA;
	position:relative;	
}
.items .CRMtitle span {
	display:inline-block;
    height:30px;
    line-height: 30px;
    font-size: 18px;
    font-family: "microsoft yahei";
}
.items .CRMtitle .hspan{width:10px; margin-right:20px;margin-left:0;}
.items .CRMtitle .titSpan{ position:absolute; top:0px;}
.CRMspan{ background:#33A1C9; }
.JCZXspan{ background:#DE6768;}
.XSspan{ background:#E78063;}
.items ul{ position: relative;}
.items ul .btn{ position: absolute;top: 30%;}
.items ul li .btn-prev{left: 0;}
.items ul li .btn-next{right: 0;}
.items ul li {
	display: inline-block;
	width: 91px;
	position: relative;
	margin:10px 20px; 
}
.items ul li a {
	color: #111;
	font-size: 13px;
}
.items ul li a img{ 
	width:80px;
	height:80px;
}
.items ul li a .txt {
	position: absolute;
	bottom: 10px;
	font-size:14px;
	left: -9%;
	width:110%;
	text-align: center;
}
.bj {
	margin-top: 2%;
	margin-bottom:5%;
	width:900px;
}
 #add-items{
	display:block; 
	width:160px;
	height:38px;
	line-height:36px;
	margin:0 auto;
	color:#447dc0;
	border:1px solid #447dc0;
	font-size:18px;
	background:#f7f7f9;
	text-align:center;
	border-radius:10px;
	-webkit-border-radius:10px;
	-moz-border-radius:10px;
}
#add-items:hover{ background:#336ed0; color:#f7f7f9;}
	.li_btn{margin:0 auto;
	width:170px;
	height:50px;
	text-align: center;
	position: relative;
	border-radius:5px;
	cursor: pointer; margin-bottom:20px;
}
.li_btn a{display:block; 
	width:160px;
	height:50px;
	margin:0 auto;
	color:#fff;
	font-size:20px;
	background:#06F;
	text-align:center;
	line-height:50px;
	background:#447df0;
	border-radius:10px;
	-webkit-border-radius:10px;
	-moz-border-radius:10px;
}
.li_btn a:hover{ background:#336ed0;}
html,body{height:100%;}
#sucai{overflow:auto;height: 100%;}

@media (min-width: 10px) and (max-width: 819px) { 
	.carousel{width: 680px;}
}
@media (min-width: 820px) and (max-width: 1129px) { 
	.carousel{width: 850px;}
}
@media (min-width: 1130px) and (max-width: 1440px) { 
	.carousel{width: 1020px;}
}
@media (min-width: 1441px) and (max-width: 1749px) { 
	.carousel{width: 1190px;}
}
@media (min-width:1750px) { 
	.carousel{width: 1360px;}
}

</style>
<meta name="referrer" content="<?php echo get_date('Y-m-d H:i:s',PHP_TIME);?>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<?php if(getGP('mid','G')){?>
	<body id="sucai" >
  <div id="myCarousel" class="carousel slide" >

  <div class="carousel-inner" style="margin-top:20px;">
		<?php
		global $_CACHE;
		get_cache(DB_JT.'menu');
		?>
    <div class="active item">
	<?php
	foreach ($_CACHE[DB_JT.'menu'] as $row) {
		if($row['fatherid']==getGP('mid','G') && $row[menutype]!='1'){
		if ( file_exists('template/style2015/ico/'.getGP('mid','G').'/'.$row[menuid].'.png') ) {
			$row['icoid']=$row['menuid'];
		}else{
			$row['icoid']='0';
		}
			if($row[keytable]){
				if(is_superadmin() || check_purview($row[keytable])){
	?>
			<div class="li_1" id="<?php echo $row[menuid];?>"><a  onclick="parent._M(<?php echo $row[menuid]?>,'<?php echo $row[menuurl]?>')" ><div class="li_i_s"><img src="template/style2015/ico/<?php echo getGP('mid','G');?>/<?php echo $row['icoid'];?>.png"><p><?php echo $row[menuname]?></p></div></a></div>
		<?php
				}
			}else{
		?>
		<div class="li_1" id="<?php echo $row[menuid];?>"><a onClick="parent._M(<?php echo $row[menuid]?>,'<?php echo $row[menuurl]?>')"><div class="li_i_s"><img src="template/style2015/ico/<?php echo getGP('mid','G');?>/<?php echo $row['icoid'];?>.png"><p><?php echo $row[menuname]?></p></div></a></div>
		<?php
			}
		}
	}?>
    </div>
	
</div>
</div>

</body>
<?php }else{?>
	<body id="sucai" >
  <div id="myCarousel" class="carousel slide" >
	  <ol class="carousel-indicators" style="width: 200px;">
    <li data-target="#myCarousel" data-slide-to="0" style="border-radius:5px 0 0 5px">应用</li>
    <li data-target="#myCarousel" data-slide-to="1"  class="active" style="border-radius:0 5px 5px 0">导航</li>
  </ol>
  
  <!-- Carousel items -->

  <div class="carousel-inner" style="margin-top:20px;">
    <div class=" item" >
		<?php
		global $_CACHE;
		get_cache(DB_JT.'menu');
		?>
	
		<?php
		foreach ($_CACHE[DB_JT.'menu'] as $row) {
			if($row['fatherid']=='0' && $row[menutype]!='1'){
				if($row[keytable]){
					if(is_superadmin() || check_purview($row[keytable])){
		?>
		<div class="items item1 click_father">
			<div class="CRMtitle">
				<span class="CRMspan hspan" style="background:#'+tcolor+'"></span>
				<span class="titSpan"><?php echo $row[menuname]?></span>
			</div>
			<ul class="bj">
			<?php
	foreach ($_CACHE[DB_JT.'menu'] as $rows) {
		if($rows['fatherid']==$row[menuid] && $rows[menutype]!='1'){
			if ( file_exists('template/style2015/ico/'.$row[menuid].'/'.$rows[menuid].'.png') ) {
				$row['icoid']=$rows['menuid'];
			}else{
				$row['icoid']='0';
			}
			if($rows[keytable]){
				if(is_superadmin() || check_purview($rows[keytable])){
	?>
			<li><div class="li_1" id="<?php echo $rows[menuid];?>"><a onClick="parent._M(<?php echo $rows[menuid]?>,'<?php echo $rows[menuurl]?>')"><div class="li_i_s"><img src="template/style2015/ico/<?php echo $row[menuid];?>/<?php echo $row['icoid'];?>.png"><p><?php echo $rows[menuname]?></p></div></a></div></li>
		<?php
				}
			}else{
		?><li>
		<div class="li_1" id="<?php echo $rows[menuid];?>"><a onClick="parent._M(<?php echo $rows[menuid]?>,'<?php echo $rows[menuurl]?>')"><div class="li_i_s"><img src="template/style2015/ico/<?php echo $row[menuid];?>/<?php echo $row['icoid'];?>.png"><p><?php echo $rows[menuname]?></p></div></a></div></li>
		<?php
			}
		}
	}?>
						
			</ul>
		</div>
		
	<?php
				}
			}else{
		?>
				<div class="items item1 click_father">
			<div class="CRMtitle">
				<span class="CRMspan hspan" style="background:#'+tcolor+'"></span>
				<span class="titSpan"><?php echo $row[menuname]?></span>
			</div>
			<ul class="bj">
			<?php
	foreach ($_CACHE[DB_JT.'menu'] as $rows) {
		if($rows['fatherid']==$row[menuid] && $rows[menutype]!='1'){
			if ( file_exists('template/style2015/ico/'.$row[menuid].'/'.$rows[menuid].'.png') ) {
				$row['icoid']=$rows['menuid'];
			}else{
				$row['icoid']='0';
			}
			if($rows[keytable]){
				if(is_superadmin() || check_purview($rows[keytable])){
	?>
			<li><div class="li_1" id="<?php echo $rows[menuid];?>"><a onClick="parent._M(<?php echo $rows[menuid]?>,'<?php echo $rows[menuurl]?>')"><div class="li_i_s"><img src="template/style2015/ico/<?php echo $row[menuid];?>/<?php echo $row['icoid'];?>.png"><p><?php echo $rows[menuname]?></p></div></a></div></li>
		<?php
				}
			}else{
		?><li>
		<div class="li_1" id="<?php echo $rows[menuid];?>"><a onClick="parent._M(<?php echo $rows[menuid]?>,'<?php echo $rows[menuurl]?>')"><div class="li_i_s"><img src="template/style2015/ico/<?php echo $row[menuid];?>/<?php echo $row['icoid'];?>.png"><p><?php echo $rows[menuname]?></p></div></a></div></li>
		<?php
			}
		}
	}?>
						
			</ul>
		</div>
		
	<?php
			}
		}
	}?>
	
    </div>
	
    <div class="active item">
	<?php
	foreach ($_CACHE[DB_JT.'menu'] as $row) {
		if($row['fatherid']=='0' && $row[menutype]!='1'){
			if($row[keytable]){
				if(is_superadmin() || check_purview($row[keytable])){
	?>
			<div class="li_1" id="<?php echo $row[menuid];?>"><a onClick="parent._M(<?php echo $row[menuid]?>,'<?php echo $row[menuurl]?>')"><div class="li_i_s"><img src="template/style2015/ico/<?php echo $row[menuid];?>/0.png"><p><?php echo $row[menuname]?></p></div></a></div>
		<?php
				}
			}else{
		?>
		<div class="li_1" id="<?php echo $row[menuid];?>"><a onClick="parent._M(<?php echo $row[menuid]?>,'<?php echo $row[menuurl]?>')"><div class="li_i_s"><img src="template/style2015/ico/<?php echo $row[menuid];?>/0.png"><p><?php echo $row[menuname]?></p></div></a></div>
		<?php
			}
		}
	}?>
    </div>
	
</div>
</div>
	<script type="text/javascript">
		$(function(){
			$('.carousel').carousel({  interval: false})
		})
	</script>
</body>
<?php }?>
</html>
