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

用户管理

@@ -152,9 +152,6 @@ class AdminIndexController extends AdminBaseController @@ -152,9 +152,6 @@ class AdminIndexController extends AdminBaseController
152 $Hospital=new HospitalModel(); 152 $Hospital=new HospitalModel();
153 $hospitals=$Hospital->getHospital()->toArray(); 153 $hospitals=$Hospital->getHospital()->toArray();
154 $platform=$Hospital->getPlatment()->toArray(); 154 $platform=$Hospital->getPlatment()->toArray();
155 - dump($user);  
156 - dump($hospitals);  
157 - dump($platform);  
158 $this->assign('user',$user); 155 $this->assign('user',$user);
159 $this->assign('jobs',$jobs); 156 $this->assign('jobs',$jobs);
160 $this->assign('hospitals',$hospitals); 157 $this->assign('hospitals',$hospitals);
@@ -169,10 +166,10 @@ class AdminIndexController extends AdminBaseController @@ -169,10 +166,10 @@ class AdminIndexController extends AdminBaseController
169 */ 166 */
170 public function userInfoPost(){ 167 public function userInfoPost(){
171 $map['id']=input('id'); 168 $map['id']=input('id');
172 - dump($map); 169 +
173 $data=input(); 170 $data=input();
174 unset($data['id']); 171 unset($data['id']);
175 - dump($data); 172 + // dump($data);
176 $result=\db('user')->where($map)->update($data); 173 $result=\db('user')->where($map)->update($data);
177 if ($result==1){ 174 if ($result==1){
178 $this->success('编辑成功!'); 175 $this->success('编辑成功!');
@@ -127,7 +127,7 @@ @@ -127,7 +127,7 @@
127 </div> 127 </div>
128 128
129 <div class="form-group"> 129 <div class="form-group">
130 - <label class="col-sm-2 control-label">状态</label> 130 + <label class="col-sm-2 control-label">用户类型</label>
131 <div class="col-md-6 col-sm-10"> 131 <div class="col-md-6 col-sm-10">
132 <label class="radio-inline"> 132 <label class="radio-inline">
133 <input type="radio" name="user_type" value="1" <if condition="$user.user_type==2">checked</if> >普通用户</label> 133 <input type="radio" name="user_type" value="1" <if condition="$user.user_type==2">checked</if> >普通用户</label>