|
|
@ -20,7 +20,10 @@ class Information extends CI_Controller {
|
|
|
|
$this->load->model('Infoauthors_model');
|
|
|
|
$this->load->model('Infoauthors_model');
|
|
|
|
$this->load->model('InfoKeywordsanalytics_model', 'analytics_model');
|
|
|
|
$this->load->model('InfoKeywordsanalytics_model', 'analytics_model');
|
|
|
|
$this->load->model('InfoSMS_model');
|
|
|
|
$this->load->model('InfoSMS_model');
|
|
|
|
$this->load->model('InfoTags_model');
|
|
|
|
|
|
|
|
|
|
|
|
if (is_series_site()) {
|
|
|
|
|
|
|
|
$this->load->model('InfoTags_model');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$this->load->library('Accesscheck');
|
|
|
|
$this->load->library('Accesscheck');
|
|
|
|
$this->accesscheck->check_access();
|
|
|
|
$this->accesscheck->check_access();
|
|
|
@ -255,24 +258,28 @@ class Information extends CI_Controller {
|
|
|
|
//所属导航栏目
|
|
|
|
//所属导航栏目
|
|
|
|
$data['setting_website_nav'] = $this->InfoMetas_model->get_list(0, 'setting_website_nav_' . strtolower($this->config->item('site_code')));
|
|
|
|
$data['setting_website_nav'] = $this->InfoMetas_model->get_list(0, 'setting_website_nav_' . strtolower($this->config->item('site_code')));
|
|
|
|
|
|
|
|
|
|
|
|
//信息标签
|
|
|
|
$data['my_tags'] = array();
|
|
|
|
$this->InfoTags_model->ic_id = null;
|
|
|
|
$data['all_tags'] = array();
|
|
|
|
$data['all_tags'] = $this->InfoTags_model->list_tag();
|
|
|
|
if (is_series_site()) {
|
|
|
|
$this->InfoTags_model->ic_id = $data['information']->ic_id;
|
|
|
|
//信息标签
|
|
|
|
$data['my_tags'] = $this->InfoTags_model->list_tag();
|
|
|
|
$this->InfoTags_model->ic_id = null;
|
|
|
|
//差集
|
|
|
|
$data['all_tags'] = $this->InfoTags_model->list_tag();
|
|
|
|
foreach ($data['all_tags'] as &$it)
|
|
|
|
$this->InfoTags_model->ic_id = $data['information']->ic_id;
|
|
|
|
{
|
|
|
|
$data['my_tags'] = $this->InfoTags_model->list_tag();
|
|
|
|
foreach ($data['my_tags'] as $it2)
|
|
|
|
//差集
|
|
|
|
|
|
|
|
foreach ($data['all_tags'] as &$it)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ($it->it_id == $it2->icit_it_id)
|
|
|
|
foreach ($data['my_tags'] as $it2)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$it = null;
|
|
|
|
if ($it->it_id == $it2->icit_it_id)
|
|
|
|
break;
|
|
|
|
{
|
|
|
|
|
|
|
|
$it = null;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$data['all_tags'] = array_filter($data['all_tags']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$data['all_tags'] = array_filter($data['all_tags']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->load->view('bootstrap3/header', $data);
|
|
|
|
$this->load->view('bootstrap3/header', $data);
|
|
|
|
$this->load->view('bootstrap3/information_edit');
|
|
|
|
$this->load->view('bootstrap3/information_edit');
|
|
|
|