控制层
public function read($date)
{
$value="1023,1024,1101,1026,1027";
$vo='';
$today['keshi'] = db('dept')->where('no',$vo)->column('name');
$today['xianyou'] = db('dar_ip')->where('date',$date)->where('deptNo',$vo)->value('insidePer');
$this->assign('today', $today);
return $this->fetch();
}视图层 <table id="list-table" class="table table-bordered table-striped">
<thead>
<tr>
<th>科室</th>
<th>现有人数</th>
</tr>
</thead>
<tbody>
{foreach name="today" item="vo"}
<tr role="row" align="center">
<td>{$today.keshi}</td>
<td>{$today.xianyou}</td>
</tr>
{/foreach}
</tbody>
</table> 最佳答案