diff --git a/application/config/config.php b/application/config/config.php
index 49be3863..82fb443e 100644
--- a/application/config/config.php
+++ b/application/config/config.php
@@ -868,6 +868,39 @@ $config['InfoType_citizen'] = array(
'产品' => 'product'
);
+//ct站点用到了
+$config['InfoType_ct'] = array(
+ '不设置' => 'none',
+ '首页' => 'root',
+ '简介' => 'c_overview',
+ '关于' => 'c_about',
+ '食物' => 'c_food',
+ '食物详细' => 'c_food_detail',
+ '餐饮' => 'c_restaurant',
+ '餐饮详细' => 'c_restaurant_detail',
+ '历史' => 'c_history',
+ 'Facts信息' => 'c_facts',
+ '旅游' => 'c_travel',
+ '交通' => 'c_transport',
+ '交通详细' => 'c_transport_detail',
+ '地图' => 'c_map',
+ '地图详细' => 'c_map_detail',
+ '天气' => 'c_weather',
+ '天气详细' => 'c_weather_detail',
+ '购物' => 'c_shopping',
+ '夜生活' => 'c_nightlife',
+ '旅游建议' => 'c_tips',
+ '景点概述' => 'c_attraction',
+ '景点详细' => 'c_attraction_detail',
+ '推荐做的' => 'c_toptodo',
+ '城市article' => 'c_article',
+ '产品' => 'c_product',
+ '产品详细' => 'c_product_detail',
+ '游记' => 'story',
+ '一地线路详细' => 'c_single_circuit',
+ '一日游线路详细' => 'c_day_tour'
+);
+
//可选模板
$config['templates'] = array(
'通用内容模板' => 'guide_info_detail',
diff --git a/application/controllers/information.php b/application/controllers/information.php
index 3561c5d4..d3d18193 100644
--- a/application/controllers/information.php
+++ b/application/controllers/information.php
@@ -187,45 +187,50 @@ class Information extends CI_Controller {
}
- //信息区域类型
- switch ($data['rootInformation']->ic_ht_area_type) {
- case 'c': //城市
- $data['infoTypeList'] = $this->config->item('InfoType_city');
- $data['unlink_landscape_list'] = $this->Information_model->get_unlink_landscape_list($data['rootInformation']->ic_ht_area_id);
- break;
- case 'p'://省份
- $data['infoTypeList'] = $this->config->item('InfoType_province');
- break;
- case 'n'://国家
- $data['infoTypeList'] = $this->config->item('InfoType_country');
- break;
- case 't'://特殊区域
- $data['infoTypeList'] = $this->config->item('InfoType_special');
- break;
- case 'e'://大洲
- $data['infoTypeList'] = array();
- break;
- case 'z'://公民游
- $data['infoTypeList'] = $this->config->item('InfoType_citizen');
- break;
- case 'v'://视频
- $data['infoTypeList'] = $this->config->item('InfoType_video');
- break;
- case 'f'://节庆
- $data['infoTypeList'] = $this->config->item('InfoType_festival');
- break;
- case 'pd'://产品管理
- $data['infoTypeList'] = $this->config->item('InfoType_product');
- //LMR 2016-7-14
- if (in_array($this->config->item('site_code'), array('vac', 'vc', 'jp', 'ru', 'it'))) {
- $this->config->set_item('templates', $this->config->item('templates_product_i'));
- } else {
- $this->config->set_item('templates', $this->config->item('templates_product'));
- }
- break;
- default:
- $data['infoTypeList'] = array('不设置' => 'none');
- break;
+
+ if ($Structure->is_sitecode=='ct'){
+ $data['infoTypeList'] = $this->config->item('InfoType_ct');
+ }else {
+
+ switch ($data['rootInformation']->ic_ht_area_type) {
+ case 'c': //城市
+ $data['infoTypeList'] = $this->config->item('InfoType_city');
+ $data['unlink_landscape_list'] = $this->Information_model->get_unlink_landscape_list($data['rootInformation']->ic_ht_area_id);
+ break;
+ case 'p'://省份
+ $data['infoTypeList'] = $this->config->item('InfoType_province');
+ break;
+ case 'n'://国家
+ $data['infoTypeList'] = $this->config->item('InfoType_country');
+ break;
+ case 't'://特殊区域
+ $data['infoTypeList'] = $this->config->item('InfoType_special');
+ break;
+ case 'e'://大洲
+ $data['infoTypeList'] = array();
+ break;
+ case 'z'://公民游
+ $data['infoTypeList'] = $this->config->item('InfoType_citizen');
+ break;
+ case 'v'://视频
+ $data['infoTypeList'] = $this->config->item('InfoType_video');
+ break;
+ case 'f'://节庆
+ $data['infoTypeList'] = $this->config->item('InfoType_festival');
+ break;
+ case 'pd'://产品管理
+ $data['infoTypeList'] = $this->config->item('InfoType_product');
+ //LMR 2016-7-14
+ if (in_array($this->config->item('site_code'), array('vac', 'vc', 'jp', 'ru', 'it'))) {
+ $this->config->set_item('templates', $this->config->item('templates_product_i'));
+ } else {
+ $this->config->set_item('templates', $this->config->item('templates_product'));
+ }
+ break;
+ default:
+ $data['infoTypeList'] = array('不设置' => 'none');
+ break;
+ }
}
diff --git a/application/models/information_model.php b/application/models/information_model.php
index ea073275..b1b78052 100644
--- a/application/models/information_model.php
+++ b/application/models/information_model.php
@@ -164,6 +164,8 @@ class Information_model extends CI_Model {
. " ic.ic_ht_area_type, \n"
. " ic.ic_ht_product_id, \n"
. " ic.ic_ht_product_type, \n"
+ . " ic.SRMS_SIC_Code, \n"
+ . " ic.SRMS_SIIT_Code, \n"
. " ic.ic_author \n";
} else {
$sql.=" $filed ";
diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php
index f09d02c9..9ecbe4b4 100644
--- a/application/views/bootstrap3/information_edit.php
+++ b/application/views/bootstrap3/information_edit.php
@@ -452,7 +452,7 @@
//fileManagerJson:'/js/kcfinder/browse.php',
//allowFileManager:true,
afterCreate: function() {
- editor.readonly(ic_id, 'AMP_BODY_PC_STATUS') === 'yes' ? 'true' : 'false'); ?>);
+ editor.readonly(ic_id, 'AMP_BODY_PC_STATUS') === 'yes' ? 'true' : 'false'); ?>);
},
filterMode: false,
allowImageUpload: false,
@@ -532,28 +532,28 @@
session->userdata('session_admin');
- $show_photo_meta = get_meta($information->ic_id, 'meta_use_list_picture');
- $amp_photo = '';
- if ($information->ic_photo && $show_photo_meta !== 'no') {
- $amp_photo = $this->config->item('site_image_url') . $information->ic_photo;
- }
- $amp_build_url = "/amp_app/?icid=" . $information->ic_id . "&is_path=" . $information->is_path . "&usr=" . urlencode($amp_user['OPI_Name']) . "&url=" . urlencode($information->ic_url) . "&photo=" . urlencode($amp_photo) . "&site=" . urlencode($this->config->item('site_url')) . "&imgurl=" . urlencode($this->config->item('site_image_url'));
- ?>
+$amp_user = $this->session->userdata('session_admin');
+$show_photo_meta = get_meta($information->ic_id, 'meta_use_list_picture');
+$amp_photo = '';
+if ($information->ic_photo && $show_photo_meta !== 'no') {
+ $amp_photo = $this->config->item('site_image_url') . $information->ic_photo;
+}
+$amp_build_url = "/amp_app/?icid=" . $information->ic_id . "&is_path=" . $information->is_path . "&usr=" . urlencode($amp_user['OPI_Name']) . "&url=" . urlencode($information->ic_url) . "&photo=" . urlencode($amp_photo) . "&site=" . urlencode($this->config->item('site_url')) . "&imgurl=" . urlencode($this->config->item('site_image_url'));
+?>
ic_id, 'AMP_BODY_PC_STATUS') == 'yes') {
- $PcAmpChecked = 'checked';
- } else {
- $PcAmpChecked = '';
- }
- ?>
+ if (get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') == 'yes') {
+ $PcAmpChecked = 'checked';
+ } else {
+ $PcAmpChecked = '';
+ }
+ ?>
|
|
-
- amp_status === '1') { ?>
+
+ amp_status === '1') {?>
-
- amp_status === '2') { ?>
+
+ amp_status === '2') {?>
-
- amp_status === '0') { ?>
+
+ amp_status === '0') {?>
-
+
+if ($embody == 1) {
+ echo 'border-color:green;';
+}
+?>" name="ic_title" value="ic_title; ?>" >
@@ -598,12 +598,12 @@
链接地址
- ic_sitecode == 'cht') { ?>
+ ic_sitecode == 'cht') {?>
-
- ic_sitecode == 'gm') { ?>
+
+ ic_sitecode == 'gm') {?>
-
+
@@ -643,16 +643,16 @@
@@ -711,7 +711,7 @@
-
+
@@ -765,7 +765,7 @@
ic_sitecode == 'cht') {
- ?>
+ ?>
@@ -776,15 +776,15 @@
@@ -813,17 +813,17 @@
$vin) {
- if (in_array($information->is_id, explode(",", $vin->is_path)) && $vin->status == 1 && $vin->id != $information->is_id
- ) {
- $children_cnt ++;
- }
- }
- echo "";
- if ($children_cnt > 0) {
- ?>
+// 有子节点时
+ $children_cnt = 0;
+ foreach ($informationList as $kin => $vin) {
+ if (in_array($information->is_id, explode(",", $vin->is_path)) && $vin->status == 1 && $vin->id != $information->is_id
+ ) {
+ $children_cnt++;
+ }
+ }
+ echo "";
+ if ($children_cnt > 0) {
+ ?>
-
+
-
+
@@ -974,9 +974,9 @@
@@ -984,7 +984,7 @@
-
+
'首页',
- 'tour' => '线路',
- 'dest' => '目的地',
- 'tailormade' => 'tailormade',
- 'train' => '火车',
- 'ship' => '游船',
- 'hotel' => '酒店',
- 'flight' => '机票',
- 'info' => '信息',
- 'deal' => '促销',
- '2015' => '2015',
- 'tour2017' => '2017',
- 'op' => 'OP',
- 'best' => '实用信息',
- 'culture' => '文化',
- 'top10' => 'TOP10',
- );
- ?>
+$meta_subnavi_arr = array(
+ 'index' => '首页',
+ 'tour' => '线路',
+ 'dest' => '目的地',
+ 'tailormade' => 'tailormade',
+ 'train' => '火车',
+ 'ship' => '游船',
+ 'hotel' => '酒店',
+ 'flight' => '机票',
+ 'info' => '信息',
+ 'deal' => '促销',
+ '2015' => '2015',
+ 'tour2017' => '2017',
+ 'op' => 'OP',
+ 'best' => '实用信息',
+ 'culture' => '文化',
+ 'top10' => 'TOP10',
+);
+ ?>
@@ -1068,7 +1068,7 @@
- ic_ht_area_type == 'err') { ?>
+ ic_ht_area_type == 'err') {?>
-
-
+
+
@@ -1090,11 +1090,11 @@
-
+
-
+
-ic_ht_area_type == 'g') { ?>
+ic_ht_area_type == 'g') {?>
@@ -1135,7 +1135,7 @@
-
+
-
+
@@ -1176,11 +1176,104 @@
-
+
+
+ ic_sitecode == "ct" && $information->SRMS_SIC_Code == "Attraction") {?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ic_sitecode == "ct") { ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1205,13 +1298,13 @@
$value) {
- $value == $information->ic_type ? $select_str = 'selected' : $select_str = '';
- ?>
+foreach ($infoTypeList as $key => $value) {
+ $value == $information->ic_type ? $select_str = 'selected' : $select_str = '';
+ ?>
-
+
-ic_ht_area_type == 'pd') { ?>
+ic_ht_area_type == 'pd') {?>
-
+
$value) {
- $value == $information->ic_template ? $select_str = 'selected' : $select_str = '';
- ?>
+foreach ($templateList as $key => $value) {
+ $value == $information->ic_template ? $select_str = 'selected' : $select_str = '';
+ ?>
-
+
-
-
+
+
session->userdata('session_admin');
- $hasselected = false;
- foreach ($editor_list as $editor_item) {
- //mb_strtolower($editor_item->OPI_Code) == mb_strtolower($information->ic_author) ? $select_str = 'selected' : $select_str = '';
- if (mb_strtolower($editor_item->OPI_Code) == mb_strtolower($information->ic_author)) {
- $select_str = 'selected';
- $hasselected = true;
- } else {
- $select_str = '';
- if (!$hasselected && !empty($information->ic_content) && $information->ic_url_title != 'New Information' && $editor_item->OPI_Code == 'PKL') {
- $select_str = 'selected';
- }
- }
- ?>
+$userinfo = $this->session->userdata('session_admin');
+$hasselected = false;
+foreach ($editor_list as $editor_item) {
+ //mb_strtolower($editor_item->OPI_Code) == mb_strtolower($information->ic_author) ? $select_str = 'selected' : $select_str = '';
+ if (mb_strtolower($editor_item->OPI_Code) == mb_strtolower($information->ic_author)) {
+ $select_str = 'selected';
+ $hasselected = true;
+ } else {
+ $select_str = '';
+ if (!$hasselected && !empty($information->ic_content) && $information->ic_url_title != 'New Information' && $editor_item->OPI_Code == 'PKL') {
+ $select_str = 'selected';
+ }
+ }
+ ?>
-
+
a_id == $information->ic_author) ? $select_str = 'selected' : $select_str = '';
- ?>
+foreach ($author_list as $author_item) {
+ ($author_item->a_id == $information->ic_author) ? $select_str = 'selected' : $select_str = '';
+ ?>
-
+
-
-
+
+
@@ -1283,17 +1376,17 @@
忽略URL重复
- config->item('site_code'),array('cht','gm'))) { ?>
+ config->item('site_code'), array('cht', 'gm'))) {?>
-
+
- config->item('site_code'),array('cht','ah','gm'))) { ?>
+ config->item('site_code'), array('cht', 'ah', 'gm'))) {?>
-
+
@@ -1306,20 +1399,20 @@
}
;
//保存增加AMP判断 - lmr
- ic_id, 'AMP_JSON') && get_meta($information->ic_id, 'AMP_STATUS') && get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') !== 'yes') { ?>
+ ic_id, 'AMP_JSON') && get_meta($information->ic_id, 'AMP_STATUS') && get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') !== 'yes') {?>
if (!$('#PcAmp input').is(':checked')) {
var amp_confirm = window.confirm('\n检测到页面存在AMP版本,是否需要打开AMP编辑界面?\n\r注意:如果修改了PC端版本,那么同时也需要修改AMP版本。\n');
if (amp_confirm) {
- window.open('', '_blank');
+ window.open('', '_blank');
}
}
-
- ic_id, 'AMP_JSON') && get_meta($information->ic_id, 'AMP_STATUS') && get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') === 'yes') { ?>
+
+ ic_id, 'AMP_JSON') && get_meta($information->ic_id, 'AMP_STATUS') && get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') === 'yes') {?>
if (editor && editor.text() == '') {
editor.html('From HTML-Generator');
editor.sync();
}
-
+
if (information_check() != false) {
submitForm('form_information_edit');
}">保存修改
@@ -1337,9 +1430,9 @@