<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase2.php');?>
<style>
 
    .layui-table {
        width: auto;
        
    }
</style>

<div class="layui-card">
	<div class="layui-card-body">
		<form class="layui-form">
			<div class="layui-inline" style="width: 215px;">
				<label class="layui-form-label">时间选择</label>
				<div class="layui-input-block">
					<input type="text" autocomplete="off" name="atime" id="betime" class="layui-input" value="<?php echo $Params['atime'];?>" placeholder=" ~ ">
				</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>
		<table class="layui-table pad10" style="width: 400px;">
			<thead class="Filter Sortable">
				<tr>
					<th class="Sort" style="text-align: center;"><span>业务员</span></th>
					<th class="Sort" style="text-align: center;"><span>电话</span></th>
					<th class="Sort" style="text-align: center;"><span>微信</span></th>
					<th class="Sort" style="text-align: center;"><span>QQ</span></th>
					<th class="Sort" style="text-align: center;"><span>实地拜访</span></th>
					<th class="Sort" style="text-align: center;"><span>客户维护</span></th>
					<th class="Sort" style="text-align: center;"><span>其他</span></th>
				</tr>
			</thead>
			<toboy>
			<?php foreach ($listArr as $key => $val){ ?>
				<tr>
					<td><?php echo  $val['name'];?></td>
					<td><?php echo 	$val['call']?$val['call']:'';?></td>
					<td><?php echo  $val['weixin']?$val['weixin']:'';?></td>
					<td><?php echo  $val['qq']?$val['qq']:'';?></td>
					<td><?php echo  $val['baifang']?$val['baifang']:'';?></td>
					<td><?php echo  $val['weihu']?$val['weihu']:'';?></td>
					<td><?php echo  $val['other']?$val['other']:'';?></td>
				</tr>
			<?php } ?>
			</toboy>
		</table>
	</div>
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>
<script>
    layui.use(['table', 'laydate'], function(){
        var laydate = layui.laydate;
        laydate.render({
            elem: '#betime'
            ,range: '~'
        });
    });
</script>