<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase2.php');?>
<style type="text/css">
    html{background-color: #ffffff; color: #666;}
</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="<?php echo $value['month'];?>" <?php if($params['end'] == $value['month']){echo "selected";} ?>><?php echo $value['month'];?></option>
                <?php } ?>
            </select>
        </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>
    <!-- <button class="layui-btn" id="demoReload" data-type="reload">搜索</button> -->
</form>
<div class="marauto" style="background: #ffffff;margin-top:5px;">
    <table style="margin-left:5px;width: 19%; float: left;" class="layui-table">
        <thead>
        <tr>
            <th width="40px">名次</th>
            <th width="80px">零件名称</th>
            <th width="40px">数量</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach ($list as $k => $item){ ?>
            <tr>
                <td><?php echo $k+1;?></td>
                <td><?php echo $item['bp_part'];?></td>
                <td><?php echo $item['bp_counts'];?></td>
            </tr>
        <?php } ?>
        </tbody>
    </table>
</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: '~'
    });
});
</script>
