Commit e7ec7db9 by html5-李恒逸

渠道楼盘问题

parent 16b13259
......@@ -135,8 +135,11 @@ class Channeladmin extends CI_Controller
//修改当前渠道的上级
$parentId=$this->input->post();
$edit_channel=$this->channel->get(array('id'=>$channelId));
$user = $this->manager->get(array('id'=>$edit_channel['manager_id']));
$this->data['data']=$user;
if(!empty($parentId)){
if($parentId['parent_id']=='' && $parentId['manager_pwd']=='' && $parentId['ag_pwd']==''){
if($parentId['parent_id']=='' && $parentId['manager_pwd']=='' && $parentId['ag_pwd']==''&& $parentId['region_id']=='' &&$parentId['building_id']==''){
alert_redirect(site_url('admin/channeladmin/index'),'您未作出修改');
return;
}
......@@ -149,13 +152,13 @@ class Channeladmin extends CI_Controller
$parentId['region_id'] = implode(',',$this->input->post('region_id'));//地区
$data1=array();
$data1['region_id']=$parentId['region_id'];
$this->channel->update(array('id'=>$parentId['channel_id']),$data1);
$this->manager->update(array('id'=>$edit_channel['manager_id']),$data1);
}
if ($this->input->post('building_id')) {
$parentId['building_id'] = implode(',',$this->input->post('building_id'));//项目
$data1=array();
$data1['building_id']=$parentId['building_id'];
$this->channel->update(array('id'=>$parentId['channel_id']),$data1);
$this->manager->update(array('id'=>$edit_channel['manager_id']),$data1);
}
if($parentId['manager_pwd']!='' && $parentId['ag_pwd']!=''){
......
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