作者 sgj
1 个管道 的构建 通过 耗费 2 秒

用户管理

... ... @@ -152,9 +152,6 @@ class AdminIndexController extends AdminBaseController
$Hospital=new HospitalModel();
$hospitals=$Hospital->getHospital()->toArray();
$platform=$Hospital->getPlatment()->toArray();
dump($user);
dump($hospitals);
dump($platform);
$this->assign('user',$user);
$this->assign('jobs',$jobs);
$this->assign('hospitals',$hospitals);
... ... @@ -169,10 +166,10 @@ class AdminIndexController extends AdminBaseController
*/
public function userInfoPost(){
$map['id']=input('id');
dump($map);
$data=input();
unset($data['id']);
dump($data);
// dump($data);
$result=\db('user')->where($map)->update($data);
if ($result==1){
$this->success('编辑成功!');
... ...
... ... @@ -127,7 +127,7 @@
</div>
<div class="form-group">
<label class="col-sm-2 control-label">状态</label>
<label class="col-sm-2 control-label">用户类型</label>
<div class="col-md-6 col-sm-10">
<label class="radio-inline">
<input type="radio" name="user_type" value="1" <if condition="$user.user_type==2">checked</if> >普通用户</label>
... ...