<!--{include file="<!--{$salepath}-->public/header.tpl"}-->

<body>
	<div class="main-layout" id='main-layout'>
		<!--侧边栏-->
		<div class="main-layout-side">
			<div class="m-logo" style="background: #00b5f9;">
				<a href="sale.php" class="navbar-brand" style='color: #ffffff;font-size: 22px;'>
					<!--{$config.system_name}-->
				</a>
			</div>
			<ul class="layui-nav layui-nav-tree" lay-filter="leftNav">
				<li class="layui-nav-item layui-nav-itemed">
					<a href="javascript:;"><i class="iconfont">&#xe602;</i>采购管理</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:;" data-url="?c=Purchase&a=add" data-id='11' data-text="申请采购单"><span class="l-line"></span>申请采购单</a>
						</dd>
						<!--{if $session.super == 1}-->
						<dd>
							<a href="javascript:;" data-url="?c=Purchase&a=notPurchase" data-id='12' data-text="待审核采购单"><span class="l-line"></span>待审核采购单</a>
						</dd>
						<!--{/if}-->
						<dd>
							<a href="javascript:;" data-url="?c=Purchase&a=storageList" data-id='15' data-text="采购入库单"><span class="l-line"></span>待审核入库单</a>
						</dd>
						<dd>
							<a href="javascript:;" data-url="?c=Purchase&a=endPurchase" data-id='16' data-text="已完成入库单"><span class="l-line"></span>已完成入库单</a>
						</dd>
					</dl>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:;"><i class="iconfont">&#xe600;</i>销售管理</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:;" data-url="?c=Salesorder&a=index" data-id='21' data-text="销售订单"><span class="l-line"></span>销售订单</a>
						</dd>
						<!-- <dd>
							<a href="javascript:;" data-url="danye-list.html" data-id='22' data-text="销售出库单"><span class="l-line"></span>销售出库单</a>
						</dd> -->
					</dl>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:;"><i class="iconfont">&#xe608;</i>库存管理</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:;" data-url="?c=Inventory" data-id='31' data-text="库存盘点"><span class="l-line"></span>库存盘点</a>
						</dd>
						<!-- <dd>
							<a href="javascript:;" data-url="danye-list.html" data-id='32' data-text="库存调拨"><span class="l-line"></span>库存调拨</a>
						</dd> -->
					</dl>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:;"><i class="iconfont">&#xe60d;</i>基础管理</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:;" data-url="?c=Product" data-id='41' data-text="产品管理"><span class="l-line"></span>产品管理</a>
						</dd>
						<dd>
							<a href="javascript:;" data-url="?c=Customer" data-id='42' data-text="客户管理"><span class="l-line"></span>客户管理</a>
						</dd>
						<dd>
							<a href="javascript:;" data-url="?c=Supplier" data-id='43' data-text="供应商管理"><span class="l-line"></span>供应商管理</a>
						</dd>
					</dl>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:;"><i class="iconfont">&#xe60c;</i>报表统计</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:;" data-url="?c=Report&a=rukuindex" data-id='51' data-text="入库统计"><span class="l-line"></span>入库统计</a>
						</dd>
						<dd>
							<a href="javascript:;" data-url="?c=Report&a=chukuindex" data-id='52' data-text="出库统计"><span class="l-line"></span>出库统计</a>
						</dd>
					</dl>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:;"><i class="iconfont">&#xe60b;</i>系统设置</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:;" data-url="?c=System" data-id='61' data-text="系统设置"><span class="l-line"></span>系统设置</a>
						</dd>
					</dl>
				</li>
				<!--{if $session.super == 1}-->
				<li class="layui-nav-item">
				    <a href="javascript:;"><i class="iconfont">&#xe606;</i>账号管理</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="javascript:;" data-url="?c=Admin&a=index" data-id='71' data-text="账号管理"><span class="l-line"></span>账号管理</a>
						</dd>
						<dd>
							<a href="javascript:;" data-url="?c=Admin&a=add" data-id='72' data-text="添加管理员"><span class="l-line"></span>添加管理员</a>
						</dd>
					</dl>
				</li>
				<!--{/if}-->
				  <!-- <li class="layui-nav-item">
				    <a href="javascript:;"><i class="iconfont">&#xe604;</i>推荐位管理</a>
				  </li>
				   <li class="layui-nav-item">
				    <a href="javascript:;"><i class="iconfont">&#xe60c;</i>友情链接</a>
				  </li>
				   <li class="layui-nav-item">
				    <a href="javascript:;"><i class="iconfont">&#xe60a;</i>RBAC</a>
				  </li>
				  <li class="layui-nav-item">
				    <a href="javascript:;" data-url="email.html" data-id='4' data-text="邮件系统"><i class="iconfont">&#xe603;</i>邮件系统</a>
				  </li>
				  <li class="layui-nav-item">
				    <a href="javascript:;"><i class="iconfont">&#xe60d;</i>生成静态</a>
				  </li>
				  <li class="layui-nav-item">
				    <a href="javascript:;"><i class="iconfont">&#xe600;</i>备份管理</a>
				  </li>
				  <li class="layui-nav-item">
				    <a href="javascript:;" data-url="admin-info.html" data-id='5' data-text="个人信息"><i class="iconfont">&#xe606;</i>个人信息</a>
				  </li>
				  <li class="layui-nav-item">
				  	<a href="javascript:;" data-url="system.html" data-id='6' data-text="系统设置"><i class="iconfont">&#xe60b;</i>系统设置</a>
				  </li> -->
			</ul>
		</div>
		<!--右侧内容-->
		<div class="main-layout-container">
			<!--头部-->
			<div class="main-layout-header">
				<div class="menu-btn" id="hideBtn">
					<a href="javascript:;">
						<span class="iconfont">&#xe60e;</span>
					</a>
				</div>
				<ul class="layui-nav" lay-filter="rightNav">
					<!-- <li class="layui-nav-item">
						<a href="javascript:;" data-url="email.html" data-id='4' data-text="邮件系统"><i class="iconfont">&#xe603;</i></a>
					</li>
					<li class="layui-nav-item">
						<a href="javascript:;" data-url="admin-info.html" data-id='5' data-text="个人信息">超级管理员</a>
					</li> -->
					<li class="layui-nav-item">
						<a href="javascript:;" name='layout'>退出</a>
					</li>
				</ul>
			</div>
			<!--主体内容-->
			<div class="main-layout-body">
				<!--tab 切换-->
				<div class="layui-tab layui-tab-brief main-layout-tab" lay-filter="tab" lay-allowClose="true">
					<ul class="layui-tab-title">
						<li class="layui-this welcome">后台主页</li>
					</ul>
					<div class="layui-tab-content">
						<div class="layui-tab-item layui-show" style="background: #f5f5f5;">
							<!--1-->
							<iframe src="sale.php?a=welcome" width="100%" height="100%" name="iframe" scrolling="auto" class="iframe" framborder="0"></iframe>
							<!--1end-->
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--遮罩-->
		<div class="main-mask">

		</div>
	</div>
	<script type="text/javascript">
		var scope = {
			link: 'sale.php?a=welcome'
		}
	</script>
	<script src="<!--{$salepath}-->static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
	<script src="<!--{$salepath}-->static/js/common.js" type="text/javascript" charset="utf-8"></script>
	<script src="<!--{$salepath}-->static/js/main.js" type="text/javascript" charset="utf-8"></script>
	<script src="<!--{$salepath}-->static/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			$("[name=layout]").click(function() {

				$.ajax({
					url: "sale.php?c=Public&a=logout",
					type: "post",
					dataType: "json",
					success: function(data) {
						layer.msg("退出成功");
						setTimeout(function() {
							var url = "sale.php?c=Public&a=login";
							window.location.href = url;
						}, 3000);

						//  window.location.reload();
					},
					error: function(e) {

					}
				});
			});
		});
	</script>
</body>

</html>