Commit dcb06f0b by 冷斌

add

parent 0b1958ae
...@@ -567,16 +567,25 @@ class IndexadminController extends AdminbaseController { ...@@ -567,16 +567,25 @@ class IndexadminController extends AdminbaseController {
return $list; return $list;
} }
public function getLabel()
{
$data = [];
$labels = $this->getImpressionLabel();
foreach ($labels as $label) {
$data[$label['id']] = $label['name'];
}
return $data;
}
function edit(){ function edit(){
$id=intval($_GET['id']); $id=intval($_GET['id']);
var_dump($this->getImpressionLabel());
die;
if($id){ if($id){
$userinfo=M("users")->find($id); $userinfo=M("users")->find($id);
$this->assign('userinfo', $userinfo); $this->assign('userinfo', $userinfo);
}else{ }else{
$this->error('数据传入失败!'); $this->error('数据传入失败!');
} }
$this->assign('labels', $this->getLabel());
$this->display(":edit"); $this->display(":edit");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment