添加一个增加根结点的操作

ct-mobile-first
赵鹏 4 years ago
parent 2076897af8
commit 12489447a7

@ -27,7 +27,7 @@ class Welcome extends CI_Controller {
$data['groupList']=$this->Information_model->group_list(); $data['groupList']=$this->Information_model->group_list();
if($this->config->item('site_code')=='ch' || $this->config->item('site_code')=='ah' ){ if($this->config->item('site_code')=='ch' || $this->config->item('site_code')=='ah' || $this->config->item("site_code")=="chinatravel" ){
$this->load->view('bootstrap3/header', $data); $this->load->view('bootstrap3/header', $data);
$this->load->view('bootstrap3/welcome'); $this->load->view('bootstrap3/welcome');
@ -416,4 +416,18 @@ class Welcome extends CI_Controller {
$this->load->view('bootstrap3/recommendlist', $data); $this->load->view('bootstrap3/recommendlist', $data);
} }
/**
* @description: 用于生成一个特殊的根结点is_level和is_sort都为0CT移动优先项目用
* @param {type}
* @return:
* @Date Changed:
*/
public function AddRootNote(){
$this->InfoContents_model->Add('', 'NewRootNote', 'root', 'NewRootNote', '', '', '', '', '', 0, 0, '', '', 0, 0, '', '', '', '', 0,
'','');
$this->InfoStructures_model->AddRootNote($this->InfoContents_model->insert_id);
$is_id = $this->InfoStructures_model->insert_id;
redirect(site_url('information/edit/' . $is_id));
}
} }

Loading…
Cancel
Save