@ -576,12 +576,12 @@
< ul id = "treeDemo" name = "treeDemo" class = "ztree" style = "height:1035px;overflow-x:auto;" > < / ul >
< ul class = "nav nav-list" >
< li class = "nav-header" >
<?php if ( ! is_mobile_first ()) { ?>
<?php if ( ! is_mobile_first ()) { ?>
< a href = " <?php echo site_url ( 'welcome/create_infomation_urls/' . $information -> is_id ); ?> " target = "_blank" class = "col-sm-5" title = "批量更新静态化页面" >< i class = "text-muted glyphicon glyphicon-retweet" ></ i ></ a >
< a href = " <?php echo site_url ( 'welcome/create_infomation_urls/' . $information -> is_id . '/amp' ); ?> " target = "_blank" class = "col-sm-5" title = "批量更新AMP页面" >< i class = "glyphicon glyphicon-flash" ></ i ></ a >
<?php } else { ?>
<?php } else { ?>
< a href = " <?php echo site_url ( 'welcome/create_infomation_urls/' . $information -> is_id . '/mobile-first' ); ?> " target = "_blank" class = "col-sm-5" title = "批量更新静态页面" >< i class = "glyphicon glyphicon-flash" ></ i ></ a >
<?php } ?>
<?php } ?>
< / li >
< / ul >
< / div >
@ -607,20 +607,20 @@
< / div >
< div class = "col-xs-17 text-right" >
<?php
$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_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'));
?>
}
$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'));
?>
<?php if ( is_series_site ()) {
if (get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') == 'yes') {
$PcAmpChecked = 'checked';
} else {
$PcAmpChecked = '';
} ?>
}?>
< style type = "text/css" >
#PcAmp {
color: #069;
@ -653,23 +653,23 @@
});
< / script >
<?php
} ?>
<?php if ( $information -> amp_status === '1' ) { ?>
}?>
<?php if ( $information -> amp_status === '1' ) { ?>
< label title = "AMP页面编辑" >< a href = " <?php echo site_url ( 'amp/edit/' . $information -> ic_id ); ?> " target = "_blank" >< i class = "glyphicon glyphicon-flash" ></ i ></ a ></ label >
<?php } ?>
<?php if ( $information -> amp_status === '2' ) { ?>
<?php } ?>
<?php if ( $information -> amp_status === '2' ) { ?>
< label title = "AMP页面编辑" >< a href = " <?php echo site_url ( 'amp/edit/' . $information -> ic_id ); ?> " target = "_blank" >< i class = "glyphicon glyphicon-hand-up" ></ i ></ a ></ label >
<?php } ?>
<?php if ( $information -> amp_status === '0' ) { ?>
<?php } ?>
<?php if ( $information -> amp_status === '0' ) { ?>
< label title = "创建AMP页面" >< a href = " <?php echo site_url ( 'amp/edit/' . $information -> ic_id ); ?> " target = "_blank" >< i class = "glyphicon glyphicon-plus" ></ i ></ a ></ label >
<?php } ?>
<?php } ?>
< / div >
< div class = "col-xs-24" >
< input class = "form-control" type = "text" id = "ic_title" style = " <?php
if ($embody == 1) {
if ($embody == 1) {
echo 'border-color:green;';
}
?>" name="ic_title" value="<?php echo $information -> ic_title ; ?> ">
}
?>" name="ic_title" value="<?php echo $information -> ic_title ; ?> ">
< / div >
< div class = "col-xs-24 btn-sm" > < / div >
< / div >
@ -685,19 +685,19 @@
< a href = "javascript:void(0);" onclick = "goto_page();" id = "goto_page_button" name = "goto_page_button" target = "_blank" title = "查看" > < i class = "glyphicon glyphtext-muted glyphicon glyphicon-eye-open text-muted" > < / i > < / a >
<?php if ( $information -> ic_sitecode == 'ch' ) { ?>
<?php if ( $information -> ic_sitecode == 'ch' ) { ?>
< a href = "javascript:void(0);" onclick = "goto_test_page();" id = "goto_test_page_button" name = "goto_test_page_button" target = "_blank" title = "查看测试页面" > < i class = "glyphicon glyphtext-muted glyphicon glyphicon-random text-muted" > < / i > < / a >
<?php } ?>
<?php if ( $information -> ic_sitecode == 'gm' ) { ?>
<?php } ?>
<?php if ( $information -> ic_sitecode == 'gm' ) { ?>
< a href = "javascript:void(0);" onclick = "goto_gmtest_page();" id = "goto_test_page_button" name = "goto_test_page_button" target = "_blank" title = "查看测试页面" > < i class = "glyphicon glyphtext-muted glyphicon glyphicon-random text-muted" > < / i > < / a >
<?php } ?>
<?php if ( $information -> ic_sitecode == 'ah' ) { ?>
<?php } ?>
<?php if ( $information -> ic_sitecode == 'ah' ) { ?>
< a href = "javascript:void(0);" onclick = "goto_ahtest_page();" id = "goto_test_page_button" name = "goto_test_page_button" target = "_blank" title = "查看测试页面" > < i class = "glyphicon glyphtext-muted glyphicon glyphicon-random text-muted" > < / i > < / a >
<?php } ?>
<?php } ?>
< / div >
< input class = "form-control col-xs-24" type = "text" id = "ic_url" name = "ic_url" value = " <?php echo $information -> ic_url ; ?> " >
< / div >
<?php if ( $information -> ic_sitecode == 'ct' || $information -> ic_sitecode == 'chinatravel' ) { ?>
<?php if ( $information -> ic_sitecode == 'ct' || $information -> ic_sitecode == 'chinatravel' ) { ?>
< div class = "col-sm-24 col-xs-24 nopadding" >
< label > CT信息旧URL
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_ct_oldurl', $('#meta_ct_oldurl').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
@ -708,7 +708,7 @@
< / label >
< input type = "text" name = "meta_ct_oldurl" class = "form-control" value = " <?php echo get_meta ( $information -> ic_id , 'meta_ct_oldurl' ); ?> " id = "meta_ct_oldurl" />
< / div >
<?php } ?>
<?php } ?>
< div class = "col-xs-24 edit_tool nopadding" style = "margin-top:5px;" >
< i class = "icon-stop icon-white pull-right" id = "display_count" > < / i >
< / div >
@ -768,15 +768,15 @@
< select name = "meta_website_nav" id = "meta_website_nav" class = "form-control" >
< option value = "" > 不选择< / option >
<?php
if (!empty($setting_website_nav)) {
if (!empty($setting_website_nav)) {
$setting_website_nav_active = trim(get_meta($information->ic_id, 'meta_website_nav'));
foreach ($setting_website_nav as $item) {
$strcasecmp_nav = strcasecmp($setting_website_nav_active, $item->im_value); ?>
$strcasecmp_nav = strcasecmp($setting_website_nav_active, $item->im_value);?>
< option <?php echo $strcasecmp_nav == 0 ? 'selected' : false ; ?> value = " <?php echo $item -> im_value ?> " > <?php echo $item -> im_value ?> </ option >
<?php
}
}
?>
}
}
?>
< / select >
< / div >
@ -818,7 +818,7 @@
< / label >
< input name = "meta_addon_picture_text" id = "meta_addon_picture_text" type = "text" class = "form-control" value = " <?php echo get_meta ( $information -> ic_id , 'meta_addon_picture_text' ); ?> " />
< / div >
< div class = "col-sm- 6 ">
< div class = "col-sm- 4 ">
< label > 页面类型
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_ct_page_type', $('#meta_ct_page_type').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_ct_page_type', $('#meta_ct_page_type').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd" ></ i ></ a >
@ -866,7 +866,7 @@
< / option >
< / select >
< / div >
< div class = "col-sm- 6 ">
< div class = "col-sm- 4 ">
< label > 页面类型值
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_ct_page_value', $('#meta_ct_page_value').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_ct_page_value', $('#meta_ct_page_value').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd" ></ i ></ a >
@ -879,7 +879,7 @@
< label > 页面是否有价格
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_ct_page_price', $('#meta_ct_page_price').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_ct_page_price', $('#meta_ct_page_price').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = '页面上如果有价格,那么需要选择这个选项。并且在页面代码里面设置读取标签。 一日游:<span class="js_getDayTripPrice" data="线路编码"></span> 线路:<span class="js_getTourPrice" data="线路编码"> </span>'> < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< a href = "javascript:void(0);" title = '页面上如果有价格,那么需要选择这个选项。并且在页面代码里面设置读取标签。 
 一日游:<span class="js_getDayTripPrice" data="线路编码"></span> 
 线路:<span class="js_getTourPrice" data="线路编码"> </span>'> < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_ct_page_price" id = "meta_ct_page_price" class = "form-control" >
< option value = "no" <?php echo get_meta ( $information -> ic_id , 'meta_ct_page_price' ) === 'no' ? 'selected' : false ; ?> >
@ -891,6 +891,22 @@
< / select >
< / div >
< div class = "col-sm-4" >
< label > 加火车票搜索框
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_ct_page_trainform', $('#meta_ct_page_trainform').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_ct_page_trainform', $('#meta_ct_page_trainform').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = '页面是否添加火车搜索框
 ( 会添加在页面的H1标签及面包屑后面, 内容没有H1标签此选择无效' > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_ct_page_trainform" id = "meta_ct_page_trainform" class = "form-control" >
< option value = "no" <?php echo get_meta ( $information -> ic_id , 'meta_ct_page_trainform' ) === 'no' ? 'selected' : false ; ?> >
否
< / option >
< option value = "yes" <?php echo get_meta ( $information -> ic_id , 'meta_ct_page_trainform' ) === 'yes' ? 'selected' : false ; ?> >
是
< / option >
< / select >
< / div >
< / div >
< div >
@ -919,7 +935,7 @@
< / script >
< / div >
< / div >
<?php } ?>
<?php } ?>
< input type = "hidden" name = "ic_photo_width" id = "ic_photo_width" value = " <?php echo $information -> ic_photo_width ; ?> " />
< input type = "hidden" name = "ic_photo_height" id = "ic_photo_height" value = " <?php echo $information -> ic_photo_height ; ?> " />
@ -940,9 +956,9 @@
< p > < / p >
< div class = "col-xs-24" >
< label > < a href = "javascript:void(0);" onclick = "$('#customize').toggle();" > 自定义选项< / a > < / label >
<?php if ( $information -> ic_sitecode == "trippest" ) { ?>
<?php if ( $information -> ic_sitecode == "trippest" ) { ?>
< label > < a class = "btn default" data-toggle = "modal" id = "aBokunData" > 管理TPBokun数据 < / a > < / label >
<?php } ?>
<?php } ?>
< / div >
< div id = "customize" class = "col-xs-24" style = "display:none;" >
@ -1019,9 +1035,9 @@
< / div >
< div class = "col-sm-5 <?php
if ($information->ic_ht_area_type != 'c' & & $information->ic_sitecode != "ct") {
if ($information->ic_ht_area_type != 'c' & & $information->ic_sitecode != "ct") {
echo 'hidden';
} ?>">
}?>">
< label > 景点评论数
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_review_count', $('#meta_review_count').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_review_count', $('#meta_review_count').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
@ -1057,11 +1073,11 @@
< / div >
< div class = " <?php
if ($information->ic_ht_area_type == 'c') {
if ($information->ic_ht_area_type == 'c') {
echo 'col-sm-4';
} else {
echo 'col-sm-9';
} ?>">
}?>">
< label > 显示作者
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_show_author', $('#meta_show_author').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_show_author', $('#meta_show_author').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd" ></ i ></ a >
@ -1077,7 +1093,7 @@
< / div >
<?php
// 有子节点时
// 有子节点时
$children_cnt = 0;
foreach ($informationList as $kin => $vin) {
if (
@ -1107,7 +1123,7 @@
< / div >
< / div >
<?php
} ?>
}?>
< div class = "row" >
< div class = "col-xs-24" >
< label > 自定义导航
@ -1123,7 +1139,7 @@
< / div >
<?php
} ?>
}?>
< label > og:title
@ -1237,7 +1253,7 @@
< / div >
<?php if ( is_series_site ()) { ?>
<?php if ( is_series_site ()) { ?>
< div class = "row" >
< div class = "col-sm-8" >
< label > 机票目的地
@ -1249,9 +1265,10 @@
< / div >
< div class = "col-sm-8" >
<?php
$meta_subnavi_arr = array(
$meta_subnavi_arr = array(
'index' => '首页',
'tour' => '线路',
'tour' => '中国线路',
'asia_tour' => '亚洲线路',
'dest' => '目的地',
'tailormade' => 'tailormade',
'train' => '火车',
@ -1268,7 +1285,7 @@
'top10' => 'TOP10',
'lifestyle' => '生活方式',
'aboutus' => '关于我们',
);
);
?>
< label > 匹配到一级导航
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_subnavi', $('#meta_subnavi').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
@ -1276,13 +1293,14 @@
< a href = "javascript:void(0);" title = "用于配置此信息对应的一级导航" > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_subnavi" id = "meta_subnavi" class = "form-control" >
<?php if ( $meta_subnavi = get_meta ( $information -> ic_id , 'meta_subnavi' )) { ?>
<?php if ( $meta_subnavi = get_meta ( $information -> ic_id , 'meta_subnavi' )) { ?>
< option selected = "selected" value = " <?php echo $meta_subnavi ; ?> " > <?php echo $meta_subnavi_arr [ $meta_subnavi ]; ?> </ option >
<?php } else { ?>
<?php } else { ?>
< option selected = "selected" value = "info" > <?php echo $meta_subnavi_arr [ 'info' ]; ?> </ option >
<?php } ?>
<?php } ?>
< option value = "index" > <?php echo ( $meta_subnavi_arr [ 'index' ]); ?> </ option >
< option value = "tour" > <?php echo ( $meta_subnavi_arr [ 'tour' ]); ?> </ option >
< option value = "asia_tour" > <?php echo ( $meta_subnavi_arr [ 'asia_tour' ]); ?> </ option >
< option value = "dest" > <?php echo ( $meta_subnavi_arr [ 'dest' ]); ?> </ option >
< option value = "tailormade" > <?php echo ( $meta_subnavi_arr [ 'tailormade' ]); ?> </ option >
< option value = "train" > <?php echo ( $meta_subnavi_arr [ 'train' ]); ?> </ option >
@ -1308,13 +1326,13 @@
< a href = "javascript:void(0);" title = "用于配置是否在面包屑中显示Guide首页." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_bread_showinfo" id = "meta_bread_showinfo" class = "form-control" >
<?php if ( get_meta ( $information -> ic_id , 'meta_bread_showinfo' ) == 'noshow' ) { ?>
<?php if ( get_meta ( $information -> ic_id , 'meta_bread_showinfo' ) == 'noshow' ) { ?>
< option selected = "selected" value = "noshow" > 不显示< / option >
< option value = "show" > 显示< / option >
<?php } else { ?>
<?php } else { ?>
< option value = "noshow" > 不显示< / option >
< option selected = "selected" value = "show" > 显示< / option >
<?php } ?>
<?php } ?>
< / select >
< / div >
< div class = "col-sm-8" >
@ -1332,16 +1350,16 @@
< a href = "javascript:void(0);" title = "是否显示作者和更新日期?" > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_show_author" id = "meta_show_author" class = "form-control" >
<?php if ( get_meta ( $information -> ic_id , 'meta_show_author' ) == 'show' ) { ?>
<?php if ( get_meta ( $information -> ic_id , 'meta_show_author' ) == 'show' ) { ?>
< option selected = "selected" value = "show" > 显示< / option >
< option value = "hide" > 隐藏< / option >
<?php } else { ?>
<?php } else { ?>
< option value = "show" > 显示< / option >
< option selected = "selected" value = "hide" > 隐藏< / option >
<?php } ?>
<?php } ?>
< / select >
< / div >
<?php if ( $information -> ic_ht_area_type == 'err' ) { ?>
<?php if ( $information -> ic_ht_area_type == 'err' ) { ?>
< div class = "col-sm-8" >
< label > 自定义样式
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_my_class', $('#meta_my_class').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
@ -1365,11 +1383,11 @@
< / label >
< input class = "form-control" type = "text" name = "meta_z_res" value = " <?php echo get_meta ( $information -> ic_id , 'meta_z_res' ); ?> " id = "meta_z_res" />
< / div >
<?php } ?>
<?php } ?>
< / div >
<?php } ?>
<?php } ?>
<?php if ( $information -> ic_ht_area_type == 'g' ) { ?>
<?php if ( $information -> ic_ht_area_type == 'g' ) { ?>
< div class = "row" >
@ -1410,7 +1428,7 @@
< / div >
< / div >
<?php } ?>
<?php } ?>
< div class = "row" >
< div class = "col-sm-5" >
< label > 展示打赏功能
@ -1461,9 +1479,9 @@
< / div >
<?php if ( $information -> ic_sitecode == "ct" ) { ?>
<?php if ( $information -> ic_sitecode == "ct" ) { ?>
< div class = "row" >
<?php if ( $information -> SRMS_SIC_Code == "Attraction" || $information -> ic_type == "c_attraction_detail" ) { ?>
<?php if ( $information -> SRMS_SIC_Code == "Attraction" || $information -> ic_type == "c_attraction_detail" ) { ?>
< div class = "col-sm-6" >
< label > 景点类别
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_attraction_type', $('#meta_attraction_type').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-remove" ></ i ></ a >
@ -1589,7 +1607,7 @@
< / option >
< / select >
< / div >
<?php } ?>
<?php } ?>
< div class = "col-sm-6" >
< label > 排序
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_attraction_Order', $('#meta_attraction_Order').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-remove" ></ i ></ a >
@ -1663,7 +1681,7 @@
< / div >
<?php } ?>
<?php } ?>
<!-- 目的地产品选项 -->
< div class = "row" >
@ -1812,12 +1830,12 @@
< label > 标题图片< a href = "javascript:void(0);" onclick = "delete_root_image();" title = "删除图片" > < i class = "text-muted glyphicon glyphicon-remove" > < / i > < / a > < / label >
< a href = "javascript:void(0);" onclick = "openKCFinder_Root();" >
<?php
if (stripos($information->ic_photo, '//') === false) {
if (stripos($information->ic_photo, '//') === false) {
$list_picture = $information->ic_photo ? $this->config->item('media_image_url') . $information->ic_photo : '/css/images/uploadPic.jpg';
} else {
} else {
$list_picture = $information->ic_photo;
}
?>
}
?>
< img src = " <?php echo $list_picture ; ?> " name = "ic_photo_img" id = "ic_photo_img" class = "img-polaroid col-xs-24 nopadding" height = "115" />
< / a >
@ -1836,7 +1854,7 @@
< / div >
< / div >
<?php if ( is_mobile_first ()) { ?>
<?php if ( is_mobile_first ()) { ?>
< script >
function show_ad_mate(mate_name, value) {
if ($('#' + mate_name).prop("checked")) {
@ -1869,27 +1887,27 @@
< / label >
< / div >
< / div >
<?php } ?>
<?php } ?>
<?php if ( ! is_mobile_first ()) { ?>
<?php if ( ! is_mobile_first ()) { ?>
< label > 信息类型< / label >
< select name = "ic_type" id = "ic_type" class = "form-control" onselect = "" >
<?php
foreach ($infoTypeList as $key => $value) {
$value == $information->ic_type ? $select_str = 'selected' : $select_str = ''; ?>
foreach ($infoTypeList as $key => $value) {
$value == $information->ic_type ? $select_str = 'selected' : $select_str = '';?>
< option <?php echo $select_str ; ?> value = " <?php echo $value ; ?> " > <?php echo $key ; ?> </ option >
<?php
} ?>
}?>
< / select >
< label style = "width:48px;" > 模板< / label >
< select name = "ic_template" id = "ic_template" class = "form-control" >
<?php
foreach ($templateList as $key => $value) {
$value == $information->ic_template ? $select_str = 'selected' : $select_str = ''; ?>
foreach ($templateList as $key => $value) {
$value == $information->ic_template ? $select_str = 'selected' : $select_str = '';?>
< option <?php echo $select_str ; ?> value = " <?php echo $value ; ?> " > <?php echo $key ; ?> </ option >
<?php
} ?>
}?>
< / select >
< label > 是否作为面包屑显示< / label >
@ -1899,15 +1917,15 @@
< option <?php echo $information -> ic_show_bread_crumbs == 1 ? 'selected' : false ; ?> value = "1" > 显示
< / option >
< / select >
<?php } ?>
<?php } ?>
< label > 作者< / label >
< select name = "ic_author" id = "ic_author" class = "form-control" >
< option value = "" > -< / option >
<?php
$userinfo = $this->session->userdata('session_admin');
$hasselected = false;
foreach ($editor_list as $editor_item) {
$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';
@ -1917,17 +1935,17 @@
if (!$hasselected & & !empty($information->ic_content) & & $information->ic_url_title != 'New Information' & & $editor_item->OPI_Code == 'PKL') {
$select_str = 'selected';
}
} ?>
}?>
< option <?php echo $select_str ; ?> value = " <?php echo $editor_item -> OPI_Code ; ?> " > <?php echo $editor_item -> OPI_Name ; ?> </ option >
<?php
} ?>
}?>
< option value = "" > -< / option >
<?php
foreach ($author_list as $author_item) {
($author_item->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 = '';?>
< option <?php echo $select_str ; ?> value = " <?php echo $author_item -> a_id ; ?> " > <?php echo $author_item -> a_name ; ?> </ option >
<?php
} ?>
}?>
< / select >
< label > 是否发布< / label >
@ -1947,27 +1965,27 @@
< input type = "checkbox" name = "ignore_url_check" id = "ignore_url_check" / > 忽略URL重复
< / label >
< div class = "clearfix" > < / div >
<?php if ( in_array ( $this -> config -> item ( 'site_code' ), array ( 'ch' , 'cht' , 'gm' , 'ah' , 'gh' , 'ct' , 'chinatravel' ))) { ?>
<?php if ( in_array ( $this -> config -> item ( 'site_code' ), array ( 'ch' , 'cht' , 'gm' , 'ah' , 'gh' , 'ct' , 'chinatravel' ))) { ?>
< label class = "checkbox col-xs-24" style = "font-weight: normal;margin-top:0;padding-left: 21px;" >
< input type = "checkbox" name = "auto_update_cache_checkbox" id = "auto_update_cache_checkbox" onclick = "get_update_cache_url();" value = " <?php echo $information -> ic_url ; ?> " /> 静态更新
< / label >
<?php if ( ! empty ( $has_html_file )) { ?>
<?php if ( ! empty ( $has_html_file )) { ?>
< label class = "checkbox col-xs-24" style = "font-weight: normal;margin-top:0;padding-left: 21px;" >
< a href = " <?php echo site_url ( 'information/html_file_helper/delete?ic_url=' ) . $information -> ic_url ; ?> " target = "_blank" > 静态文件已生成,点击删除</ a >
< / label >
<?php } ?>
<?php } ?>
<?php } ?>
<?php } ?>
<?php if ( in_array ( $this -> config -> item ( 'site_code' ), array ( 'cht' , 'gm' ))) { ?>
<?php if ( in_array ( $this -> config -> item ( 'site_code' ), array ( 'cht' , 'gm' ))) { ?>
< label class = "checkbox col-xs-24" style = "font-weight: normal;margin-top:0;padding-left: 21px;" >
< input type = "checkbox" name = "auto_update_amp" id = "auto_update_amp" <?php if ( $information -> amp_status === '2' ) {
echo 'disabled';
} ?> value="true" />AMP更新 <?php if ( $information -> amp_status === '2' ) {
}?> value="true" />AMP更新 <?php if ( $information -> amp_status === '2' ) {
echo '< i class = "glyphicon glyphicon-hand-up" title = "手动管理,不会自动更新" > < / i > ';
} ?>
}?>
< / label >
<?php } ?>
<?php } ?>
< div class = "clearfix" > < / div >
@ -1976,20 +1994,20 @@
< a href = "javascript:void(0);" class = "btn btn-primary col-xs-19" onclick = " editor . updateElement ( ) ;
//保存增加AMP判断 - lmr
<?php if ( get_meta ( $information -> ic_id , 'AMP_JSON' ) && get_meta ( $information -> ic_id , 'AMP_STATUS' ) && get_meta ( $information -> ic_id , 'AMP_BODY_PC_STATUS' ) !== 'yes' ) { ?>
<?php if ( get_meta ( $information -> 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('<?php echo ( $amp_build_url ); ?> ', '_blank');
}
}
<?php } ?>
<?php if ( get_meta ( $information -> ic_id , 'AMP_JSON' ) && get_meta ( $information -> ic_id , 'AMP_STATUS' ) && get_meta ( $information -> ic_id , 'AMP_BODY_PC_STATUS' ) === 'yes' ) { ?>
<?php } ?>
<?php if ( get_meta ( $information -> ic_id , 'AMP_JSON' ) && get_meta ( $information -> ic_id , 'AMP_STATUS' ) && get_meta ( $information -> ic_id , 'AMP_BODY_PC_STATUS' ) === 'yes' ) { ?>
// if (editor.element.getText() == '') {
// editor.setData('From HTML-Generator');
// editor.updateElement();
// }
<?php } ?>
<?php } ?>
if (information_check() != false) {
submitForm('form_information_edit');
}">保存修改< / a >
@ -2007,12 +2025,12 @@
< li class = "dropdown-submenu pull-left" >
< a id = "history_log_toggle" tabindex = "-1" href = "javascript:void(0);" > 历史记录< / a >
< ul class = "dropdown-menu history_log" style = "right: 157px;left: inherit;top: 83px;" >
<?php foreach ( $content_backup_list as $item ) { ?>
<?php foreach ( $content_backup_list as $item ) { ?>
< li >
< a href = " <?php echo site_url ( 'information/backup_content/' . $item -> log_id ); ?> " target = "_blank" > <?php echo $item -> log_datetime ?>
, <?php echo $item -> log_ht_username ?> </ a >
< / li >
<?php } ?>
<?php } ?>
< / ul >
< / li >
< / ul >
@ -2037,7 +2055,7 @@
< / div >
< textarea id = "mobile_first_template" style = "display: none;" > <?php if ( ! empty ( $mobile_first_template )) {
echo htmlentities($mobile_first_template);
} ?>< / textarea >
}?>< / textarea >
<!-- Trippest bokun窗口 -->
< div class = "modal fade" id = "NoPermissionModal" >