query("select owner_name from sp_owner_company where owner_id='".$company_code."'"); if ($res[0]['status']==0){ $res[0]['status']='未启用'; }elseif ($res[0]['status']==1){ $res[0]['status']='启用'; } $a=1; }else{ $a=0; } $this->assign('a',$a); $this->assign('company_name',$company_name[0]['owner_name']); $this->assign('company_code',$company_code); $this->assign('res',$res[0]); $this->display('Index/risk_guarantee_details'); } }