<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase2.php');?>
<div class="layui-card">
	<div class="layui-card-body">
		<div style="padding:0 10px 10px 0;">
			<form class="layui-form">
			  <div class="layui-inline">
				<label class="layui-form-label">时间区间</label>
				<div class="layui-input-inline">
					<input type="text" name="betime" id="betime" class="layui-input" value="<?php echo $Params['betime'];?>" placeholder=" ~ ">
				</div>
				<div class="layui-input-inline">
					<?php foreach($fastTime as $k=>$v){?>
					<a href="javascript:;" data-betime="<?php echo $v;?>" style="margin-left:10px;" class="a_blue"><?php echo $k;?></a>
				<?php }?>
				</div>
			  </div>
			  <div class="layui-inline">
				<button class="layui-btn act-btn" type="submit">
				  <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
				</button>
			  </div>
			</form>
		</div>
		<table class="layui-table YpTable">
		 <thead class="Sortable">
				<tr>
					<th class="Sort"><span>品牌目录</span></th>
					<th class="Sort" sort="float"><span>配件数</span></th>
					<th class="Sort" sort="float"><span>访客数</span></th>
					<th class="Sort" sort="float"><span>浏览量</span></th>
					<th class="Sort" sort="float"><span>查询列表</span></th>
					<th class="Sort" sort="float"><span>配件浏览</span></th>
				</tr>
			</thead>
		  <tbody>
			<?php foreach($tjArr as $k => $v ){ ?>
			<tr>
				<td><a class="a_blue" target="ListFrame" href="<?php echo mvc::$cfg['ADMIN_URI'];?>shop/superTjDes?shop_id=<?php echo $v['sub_shop_id'];?>"><?php echo $v['ssu_name'];?></a></td>
				<td><?php echo $shopArr[$v['sub_shop_id']]['count'];?></td>
				<td><?php echo $v['sub_client'];?></td>
				<td><?php echo $v['sub_pv'];?></td>
				<td><?php echo $v['sub_itemlist'];?></td>
				<td><?php echo $v['sub_item'];?></td>
			</tr>
			<?php }?>
		  </tbody>
		</table>	
	</div>
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>
<script>
layui.use(['table', 'laydate'], function(){
  var table = layui.table,laydate = layui.laydate;
	laydate.render({
      elem: '#betime'
      ,range: '~'
    });
	$('[data-betime]').click(function(){
		$('[name="betime"]').val($(this).data('betime'));
		$("form").submit();
	});
});
</script>