<!DOCTYPE >
<html>
<head>
	<title>deituiCMS</title>
	<link href="/static/admin/css/iframe.css?v34" rel="stylesheet" />
	<link href="//at.alicdn.com/t/font_902011_gf4ip479r5r.css" rel="stylesheet" />
</head>
<body>
	<div class="topBox">
		<div class="topa">
			<div class="top-item js-toggleSide" title="左侧">
				<i class="iconfont icon-goLeft"></i>
			</div>
			<div class="top-item js-back" title="后退">
				<i class="iconfont icon-back"></i>
			</div>
			
			<div onClick="goHome(this)" class="top-item-btn" title="后台主页">
				<i class="iconfont icon-home"></i> 主后台
			</div>
			<div class="top-item" id="nickname">
				<?php echo $this->_var['shop']['shopname']; ?>
			</div> 
			
			<div style="float: right;">
				<div class="top-item js-refresh" title="刷新">
					<i class="iconfont icon-refresh"></i>
				</div>
				<div   id="noticeMp3" class="top-item iconfont icon-notificationfill icon-notificationforbidfill "></div> 
				<a href="/module.php?m=olprint_shop&shopid=<?php echo $this->_var['shop']['shopid']; ?>" target="_blank" class="top-item" title="前台首页">
					<i class="iconfont icon-global"></i>
				</a>
				
				<div onclick="logout()" class="top-item" title="注销">
					<i class="iconfont icon-logout"></i>
				</div>
				<div  class="top-item" title="更多">
					<i class="iconfont icon-moreandroid"></i>
				</div>
			</div>
		</div>
		
	</div>
	
	<div class="leftBox">
		<div class="sitename">云打印</div>
		<div class="menu-bar" id="menuBar"></div>
		<!--基础后台管理-->
		 <div id="baseMenu">
			 
			<div class="menu menu-active">
				<div class="menu-title">订单管理</div>
				<div class="menu-box">
					<div gourl="/moduleshop.php?m=olprint_order&type=new"  class="menu-item">新订单</div>
					<div gourl="/moduleshop.php?m=olprint_order&type=spei"  class="menu-item">待分配</div>
					<div gourl="/moduleshop.php?m=olprint_order&type=unsend"  class="menu-item">待发货</div>
					<div gourl="/moduleshop.php?m=olprint_order&type=unreceive"  class="menu-item">待收货</div>
					<div gourl="/moduleshop.php?m=olprint_order&type=unpay"  class="menu-item">待付款</div>
					<div gourl="/moduleshop.php?m=olprint_order&type=unraty"  class="menu-item">待评价</div>
					<div gourl="/moduleshop.php?m=olprint_order&type=all"  class="menu-item">全部订单</div>
					<div gourl="/moduleshop.php?m=olprint_stat"  class="menu-item">订单统计</div>
					 
				</div>
			</div>
			 
			 
			<div class="menu ">
				<div class="menu-title">运营中心</div>
				<div class="menu-box">
					<div gourl="/moduleshop.php?m=olprint_guest" class="menu-item">客服消息</div>
					 
					 
					<div gourl="/moduleshop.php?m=olprint_stat" class="menu-item">收入统计</div>
			 
					<div gourl="/moduleshop.php?m=olprint_bankcard" class="menu-item">银行卡列表</div>
					<div gourl="/moduleshop.php?m=olprint_bankcard&a=add" class="menu-item">添加银行卡</div>
					<div gourl="/moduleshop.php?m=olprint_tixian" class="menu-item">资金提现</div>
					<div gourl="/moduleshop.php?m=olprint_shop_money" class="menu-item">账户日志</div>
					
				</div>
			</div>
			<div class="menu">
				<div class="menu-title">商家管理</div>
				<div class="menu-box">
					 
					<div gourl="/moduleshop.php?m=olprint_shop" class="menu-item">商家信息</div>
			 
					<div gourl="/moduleshop.php?m=olprint_shop_safephone" class="menu-item">安全手机</div>
					<div gourl="/moduleshop.php?m=olprint_shop_paypwd" class="menu-item">支付密码</div>
					<div gourl="/moduleshop.php?m=olprint_admin&a=password" class="menu-item">登录密码</div> 
				</div>
			</div>
			 
			 
		</div>
		<!--插件后台管理-->
		<div id="pluginMenu">
			
		</div>
	</div>
	<div class="rightBox">
		<iframe id="mainFrame" class="mainFrame" name="mainFrame" src="/moduleshop.php?m=olprint&tpl=main"></iframe>
	</div>
	
	<script src="/plugin/jquery/jquery-2.1.3.min.js"></script>
	<script>
		if(localStorage.getItem("noticeMp3")==1){
			$("#noticeMp3").removeClass("icon-notificationforbidfill");
		}else{
			$("#noticeMp3").addClass("icon-notificationforbidfill");
		}
		$(document).on("click","#noticeMp3",function(){
			var a=localStorage.getItem("noticeMp3");
			if(a==1){
				$(this).addClass("icon-notificationforbidfill");
				localStorage.setItem("noticeMp3",0);
			}else{
				localStorage.setItem("noticeMp3",1);
				$(this).removeClass("icon-notificationforbidfill");
			}
		})	
	</script>
	 <script>
		 function goPluginMenu(url){
			$.get(url,function(res){
				$("#baseMenu").hide();
				$("#pluginMenu").html(res).show();
			}) 
			
		 }
		 function logout(){
			 $.get("/moduleshop.php?m=olprint_login&a=logout",function(){
				 window.location="/moduleshop.php?m=olprint"
			 })
		 }
		 function goHome(obj){
			window.location.reload();
		 }
		 
		 $(function(){
			 $(document).on("click",".js-toggleSide",function(){
				 $("body").toggleClass("miniSide");
			 })
			 
			 $(document).on("click",".js-goPlugin",function(){
				 var url=$(this).attr("url");
				 $(".top-item-btn").removeClass("active");
				 $(this).addClass("active");
				 $.get(url,function(res){
				 	$("#baseMenu").hide();
				 	$("#pluginMenu").html(res).show();
				 })
			 })
			 
			 $(document).on("click",".menu",function(){
				 $(this).addClass("menu-active").siblings().removeClass("menu-active");
				 var top=$(this).find(".menu-title").offset().top;
				 $("#menuBar").animate({top:top},100);
			 })
			 $(document).on("mouseenter",".menu",function(){
				 var top=$(this).find(".menu-title").offset().top;
				 $("#menuBar").animate({top:top},100);
			 })
			 $(document).on("click","[gourl]",function(){
				 var url=$(this).attr("gourl");
				 $("#mainFrame").attr("src",url);
				 $("[gourl]").removeClass("menu-item-active");
				 $(this).addClass("menu-item-active");
			 })
			 $(document).on("click",".js-refresh",function(){
				 mainFrame.window.location.reload();
			 })
			 $(document).on("click",".js-back",function(){
				 mainFrame.window.history.back();
			 })
		 })
	 </script>
</body>

</html>