隐藏标签按钮 v3

hotfix/远程访问多媒体中心
lmr@hainatravel.com 8 years ago
parent 3eb6eee3dc
commit 092c83a402

@ -20,7 +20,10 @@ class Information extends CI_Controller {
$this->load->model('Infoauthors_model');
$this->load->model('InfoKeywordsanalytics_model', 'analytics_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->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')));
//信息标签
$this->InfoTags_model->ic_id = null;
$data['all_tags'] = $this->InfoTags_model->list_tag();
$this->InfoTags_model->ic_id = $data['information']->ic_id;
$data['my_tags'] = $this->InfoTags_model->list_tag();
//差集
foreach ($data['all_tags'] as &$it)
{
foreach ($data['my_tags'] as $it2)
$data['my_tags'] = array();
$data['all_tags'] = array();
if (is_series_site()) {
//信息标签
$this->InfoTags_model->ic_id = null;
$data['all_tags'] = $this->InfoTags_model->list_tag();
$this->InfoTags_model->ic_id = $data['information']->ic_id;
$data['my_tags'] = $this->InfoTags_model->list_tag();
//差集
foreach ($data['all_tags'] as &$it)
{
if ($it->it_id == $it2->icit_it_id)
foreach ($data['my_tags'] as $it2)
{
$it = null;
break;
if ($it->it_id == $it2->icit_it_id)
{
$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/information_edit');

Loading…
Cancel
Save