作者 sgj

后台修改用户编辑信息

... ... @@ -120,6 +120,11 @@ class HospitalModel extends Model
}
public function getAllOffice(){
$office=db('office')->select();
return $office;
}
... ...
... ... @@ -152,7 +152,9 @@ class AdminIndexController extends AdminBaseController
$Hospital=new HospitalModel();
$hospitals=$Hospital->getHospital()->toArray();
$platform=$Hospital->getPlatment()->toArray();
$office=$Hospital->getAllOffice()->toArray();
$this->assign('user',$user);
$this->assign('office',$office);
$this->assign('jobs',$jobs);
$this->assign('hospitals',$hospitals);
$this->assign('platforms',$platform);
... ...