<!DOCTYPE html><html><head><title><?php echo sysconfig('CMS_WEBNAME'); ?>后台管理</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/bootstrap.min.css"><link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/admin.css">
<script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/jquery.min.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/respond.min.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/ad.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/bootstrap.min.js"></script></head><body>

<div class="blog-masthead clearfix"><nav class="blog-nav">
<a class="blog-nav-item active" href="{:url($module_name.'/index/index')}"><strong>微先锋企业小程序系统</strong></a>
<a class="blog-nav-item" href="<?php echo sysconfig('CMS_BASEHOST'); ?>" target="_blank"><span class="glyphicon glyphicon-home"></span> 网站首页</a>
<a class="blog-nav-item" href="{:url($module_name.'/index/upcache')}"><span class="glyphicon glyphicon-refresh"></span> 更新缓存</a>
<a class="blog-nav-item" id="navexit" href="{:url($module_name.'/login/loginout')}"><span class="glyphicon glyphicon-off"></span> 注销</a>
<a class="blog-nav-item pull-right" href="javascript:;"><small>您好：<span class="glyphicon glyphicon-user"></span> <?php if(isset($admin_user_info)){echo $admin_user_info['username'].' ['.$admin_user_info['rolename'].']';} ?></small></a>
</nav></div>
<div class="container-fluid">
<div class="row">
<!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">
<div class="menu">
<ul class="leftmenu">
<?php if($menus){ foreach($menus as $k=>$first){if(!isset($first['child']) && $first['deep']==0){}else{ ?>
<!-- 一级菜单 -->
<li><a href="<?php if(isset($first['child'])){echo 'javascript:;';}else{echo url($first['module'].'/'.$first['controller'].'/'.$first['action']);} ?>" class="<?php if(isset($first['child'])){echo 'inactive ';} if($k==0){echo 'active ';} ?>"><?php if($first['icon']){echo '<small class="'.$first['icon'].'"></small>';} ?> <?php echo $first['name']; ?></a>
	<!-- 二级菜单 -->
	<?php if(isset($first['child'])){ ?>
	<ul style="display: none">
	<?php foreach($first['child'] as $second){ ?>
		<li><a target="appiframe" href="<?php if(isset($second['child'])){echo 'javascript:;';}else{echo url($second['module'].'/'.$second['controller'].'/'.$second['action']);} ?>" class="<?php if(isset($second['child'])){echo 'inactive ';} ?>"><small class="glyphicon glyphicon-hand-right"></small> <?php echo $second['name']; ?></a>
			<!-- 三级菜单 -->
			<?php if(isset($second['child'])){ ?>
			<ul><?php foreach($second['child'] as $third){ ?>
				<li><a target="appiframe" href="<?php echo url($third['module'].'/'.$third['controller'].'/'.$third['action']); ?>"><small class="glyphicon glyphicon-menu-right"></small> <?php echo $third['name']; ?></a></li><?php } ?>
			</ul><?php } ?>
		</li>
	<?php } ?>
	</ul><?php } ?>
</li>
<?php }}} ?>

<li><a href="http://www.vxianfeng.com" target=_blank class="inactive"><small class="glyphicon glyphicon-home"></small> 
	官方网站</a>
</li>


</ul>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$('.inactive').click(function(){
		var className=$(this).parents('li').parents().attr('class');
		
		if($(this).siblings('ul').css('display')=='none')
		{
			if(className=="leftmenu")
			{
				$(this).parents('li').siblings('li').children('ul').parent('li').children('a').removeClass('active');
				$(this).parents('li').siblings('li').children('ul').slideUp(100);
				$(this).parents('li').children('ul').children('li').children('ul').parent('li').children('a').removeClass('active');
				$(this).parents('li').children('ul').children('li').children('ul').slideUp(100);
			}
			
			$(this).addClass('active');
			$(this).siblings('ul').slideDown(100);
		}
		else
		{
			$(this).removeClass('active');
			$(this).siblings('ul').slideUp(100);
		}
	});
	
	$('.active').trigger("click");
});
</script>
</div><!-- 左边结束 -->

<!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
<script type="text/javascript">  
	var viewH = document.documentElement.clientHeight;
	var mainbox = document.getElementById("mainbox");  
	mainbox.style.height = (viewH - 75)+"px";  
</script>
<iframe src="<?php echo url('admin/index/welcome'); ?>" frameborder="0" scrolling="yes" width="100%" height="100%" allowtransparency="true" id="appiframe" name="appiframe"></iframe>
</div></div><!-- 右边结束 --></div></div>
<script type="text/javascript"> 
$(document).ready(function(){
	$.ajax({  
        type : "get",  
        async:true,  
		 timeout:3000,  
        url : "http://www.vxianfeng.com/plus/site.php?site=<?php echo $thebasedata;?>",  
        dataType : "jsonp",
        jsonp: "jsonpCallback", 
        success : function(data){  
            
        },  
        error:function(){  
            
        }
    });   
});
</script>
</body></html>