{include file='public/meta'}
<body>
<header class="navbar-wrapper">
	<div class="navbar navbar-fixed-top">
		<div class="container-fluid cl"> <a class="logo navbar-logo f-l mr-10 hidden-xs" href="/"><?php echo $site['site_name'];?></a> <a class="logo navbar-logo-m f-l mr-10 visible-xs" href="javascript:;"></a> 
			<span class="logo navbar-slogan f-l mr-10 hidden-xs"><?php echo $version;?></span> 
			<a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
			<nav class="nav navbar-nav" style='margin-left: 200px'>
				<ul class="cl" id='top_menu' >
					<?php 
					$first_top=0;
					foreach ($menuTops as $key => $value) {
						if(0==$key) $first_top = $value['id'];
					?>
						<li class="dropDown dropDown_hover <?php if($value['id']==$top_id) echo 'open';?>" data-id="<?php echo $value['id'];?>"><a href="javascript:;" class="dropDown_A" ><?php echo $value['title'];?> </a></li>
					<?php }?>
			</ul>
		</nav>
		<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
			<ul class="cl">
				<li class="dropDown dropDown_hover">
					<a href="#" class="dropDown_A"><?php echo $uname;?> <i class="Hui-iconfont">&#xe6d5;</i></a>
					<ul class="dropDown-menu menu radius box-shadow">
						<li><a href="<?php echo url('admin/index/clearcache');?>">清除缓存</a></li>
						<li><a href="<?php echo url('admin/common/logout');?>">退出</a></li>
					</ul>
				</li>
				<li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
					<ul class="dropDown-menu menu radius box-shadow" >
						<li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
						<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
						<li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
						<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
						<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
						<li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
					</ul>
				</li>
			</ul>
		</nav>
	</div>
</div>
</header>

<aside class="Hui-aside">
	<div class="menu_dropdown bk_2"  >
		<?php
		$default_nav = url('admin/index/welcome');
		foreach ($menuLefts as $key => $value) {
		 ?>
		<dl pid="<?php echo $value['pid'];?>">
			<dt>
				<?php if($value['children']){ // 有孩子?>
					<i class="Hui-iconfont">&nbsp;</i> <?php echo $value['title'];?>
					<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
					<dd>
						<ul>
						<?php foreach ($value['children'] as $_key => $_value) {
							if(0==$key && $top_id!=$first_top) $default_nav= url($_value['url']);
							?>
						<li><a data-href="<?php echo url($_value['url']);?>" data-title="<?php echo $_value['title'];?>" href="javascript:;"><?php echo $_value['title'];?></a></li>
						<?php }?>
						</ul>
					</dd>
				<?php }else{
					if(0==$key && $top_id!=$first_top) $default_nav= url($value['url']);
				?>
				<i class="Hui-iconfont">&nbsp;</i> 
				<a data-href="<?php echo url($value['url']);?>" data-title="<?php echo $value['title'];?>" href="javascript:;"><?php echo $value['title'];?></a>
				<?php }?>
			</dt>
		</dl>
		<?php }?>
	</div>
</aside>

<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
<section class="Hui-article-box">
	<div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
		<div class="Hui-tabNav-wp">
			<ul id="min_title_list" class="acrossTab cl">
				<li class="active">
					<span title="后台首页" id='default_nav' data-href="<?php echo url('admin/index/welcome');?>">后台首页</span>
					<em></em></li>
		</ul>
	</div>
		<div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a><a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a></div>
</div>
	<div id="iframe_box" class="Hui-article">
		<div class="show_iframe">
			<div style="display:none" class="loading"></div>
			<!--工作区-->
			<iframe scrolling="yes" frameborder="0" src="<?php echo $default_nav;?>"></iframe>
	</div>
</div>
</section>

<div class="contextMenu" id="Huiadminmenu">
	<ul>
		<li id="closethis">关闭当前 </li>
		<li id="closeall">关闭全部 </li>
</ul>
</div>
<!--_footer 作为公共模版分离出去-->
{include file='public/footer'}
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__LIB__/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
<script type="text/javascript">
$(function(){
   $('#top_menu li').on('click',function(){
   	  var top_id = $(this).attr('data-id');
   	  location.href="<?php echo url('admin/index/index');?>?top_id="+top_id;
   })
});

</script> 


</body>
</html>