作者 潘浩文
1 个管道 的构建 通过 耗费 2 秒

XIAOPAN

... ... @@ -35,6 +35,8 @@ class AdminStatisticsController extends AdminBaseController{
if (!empty($param['hospital'])){
$where="hospital='".$param['hospital']."' AND";
$where1['hospital']=$param['hospital'];
$note=Db::name('equipment')->where(['hospital'=>$param['hospital'],'is_delete'=>0])->group('note')->select();
$this->assign('note_category',$note);
}
if (!empty($param['note'])){
$where2['note']=$param['note'];
... ... @@ -130,7 +132,7 @@ class AdminStatisticsController extends AdminBaseController{
$this->assign('interval',json_encode($interval));
$this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : '');
// $this->assign('note', isset($param['note']) ? $param['note'] : '');
$this->assign('note', isset($param['note']) ? $param['note'] : '');
return $this->fetch();
}
... ...
... ... @@ -43,6 +43,11 @@
科室
<select class="form-control" id="note" name="note" style="width: 140px;">
<option value=''>全部</option>
<notempty name="note_category">
<foreach name="note_category" item="vo">
<option value='{$vo.note}' <eq name="note" vlaue="{$vo.note}"></eq>>{$vo.note}</option>
</foreach>
</notempty>
</select>
<input type="submit" class="btn btn-primary" value="搜索"/>
</form>
... ...