<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase2.php');?>
<style type="text/css">
    html{background-color: #ffffff; color: #666;}
    .layui-form-radio{margin-top: 4px;}
</style>
<form style="background: #ffffff;" method="get" style="margin-top: 10px;background: #ffffff;" class="layui-form">
    <div class="layui-inline">
        <label class="layui-form-label">开始时间</label>
        <div class="layui-input-block w100">
            <select name="start">
            <option  value=""></option>
                <?php foreach($select as $key => $value){ ?>
                    <option  value="<?= $value['month']?>" <?php if($params['start'] == $value['month']){echo "selected";} ?>><?php echo $value['month'];?></option>
                <?php } ?>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label">结束时间</label>
        <div class="layui-input-block w100">
            <select name="end">
                <option  value=""></option>
                <?php foreach($select as $key => $value){ ?>
                    <option  value="<?= $value['month']?>" <?php if($params['end'] == $value['month']){echo "selected";} ?>><?php echo $value['month'];?></option>
                <?php } ?>
            </select>
        </div>
    </div>
    <div class="layui-inline">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input type="radio" name="sort" <?php if(empty($params['sort'])){echo "checked";}?> value="" title="汇总">
            <input type="radio" name="sort" <?php if($params['sort']=='pc'){echo "checked";}?> value="pc" title="乘用车">
            <input type="radio" name="sort" <?php if($params['sort']=='cv'){echo "checked";}?> value="cv" title="商用车">
        </div>
    </div>
    <div class="layui-inline">
        <button class="layui-btn act-btn" lay-submit="" lay-filter="search-submit">
            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
        </button>
    </div>
</form>
<div class="marauto" style="background: #ffffff;margin-top:5px;">
    <?php foreach($list as $j=> $item): ?> 
       <table style="margin-left:5px;width: 30%; float: left;" class="layui-table">
      
       <thead>
        <tr>
            <th width="40px">排名</th>
            <th width="80px">品牌</th>
            <th width="40px">浏览量(pv)</th>
            <th width="40px">乘用车</th>
            <th width="40px">商用车</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach($item as $k=> $v): ?>
            <tr>
                <td><?php echo $j*100+$k+1;?></td>
                <td><?php echo $v['bm_brand'];?></td>
                <td><?php echo $v['bm_counts'];?></td>
                <td><?php echo $v['pc']?:'';?></td>
                <td><?php echo $v['cv']?:'';?></td>
            </tr>
        <?php endforeach; ?>
        </tbody>
       
    </table> 
    <?php endforeach; ?>

    
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>

<script type="text/javascript">
    
  layui.use(['table', 'form','laydate'], function(){
    var table = layui.table,form = layui.form,laydate = layui.laydate;
    laydate.render({
      elem: '#yl_pay_time'
      ,range: '~'
    });
    form.render();
});
</script>
