@ -1,4 +1,4 @@
<?php // 代码各服务器已经同步 2016.06.01 ycc test-delpoy ?>
<?php // 代码各服务器已经同步 2016.06.01 ycc test-delpoy ?>
< script type = "text/javascript" src = "/wysiwyg/ckeditor.js" > < / script >
< script type = "text/javascript" >
var content_length = 0;
@ -36,7 +36,7 @@
}
};
zNodes =<? PHP echo json_encode ( $informationList ); ?> ;
zNodes =<? php echo json_encode ( $informationList ); ?> ;
function onClickzTree(e, treeId, treeNode, clickFlag) {
var urlReQuery = "<?php echo site_url ( 'information/edit/' ); ?> ";
@ -458,7 +458,7 @@
//fileManagerJson:'/js/kcfinder/browse.php',
//allowFileManager:true,
afterCreate: function() {
editor.readonly(<?php echo ( get_meta ( $information -> ic_id , 'AMP_BODY_PC_STATUS' ) === 'yes' ? 'true' : 'false' ); ?> );
editor.readonly(<?php echo ( get_meta ( $information -> ic_id , 'AMP_BODY_PC_STATUS' ) === 'yes' ? 'true' : 'false' ); ?> );
},
filterMode: false,
allowImageUpload: false,
@ -482,14 +482,42 @@
editor = CKEDITOR.replace("ic_content", {
width: '100%',
height: '560px',
readOnly: <?php echo ( get_meta ( $information -> ic_id , 'AMP_BODY_PC_STATUS' ) === 'yes' ? 'true' : 'false' ); ?> ,
readOnly: <?php echo ( get_meta ( $information -> ic_id , 'AMP_BODY_PC_STATUS' ) === 'yes' ? 'true' : 'false' ); ?> ,
filebrowserBrowseUrl:'/wysiwyg/ckfinder/ckfinder.php?sitecode=<?php echo $this -> config -> item ( 'site_code' ); ?> ',
filebrowserUploadUrl: '/wysiwyg/ckfinder/core/connector/php/connector.php?command=QuickUpload& type=image',
contentsCss:'<?php echo $this -> config -> item ( "css_source_" . $this -> config -> item ( "site_code" )); ?> '
});
//如果是cht站点, 默认显示手机预览框
switch_preview_tree();
};
function switch_preview_tree(){
if($("#preview_box").is(":hidden")){
update_preview();
$("#preview_box").show();
$("#tree_box").hide();
}else{
$("#preview_box").hide();
$("#tree_box").show();
}
}
function update_preview() {
//考虑做成异步操作,降低页面卡顿
var iframe = document.createElement('iframe');
iframe.setAttribute('frameBorder', '0');
iframe.setAttribute('id', 'previewIframe');
iframe.setAttribute('height', '100%');
iframe.setAttribute('width', '100%');
iframe.setAttribute('name', 'AMP Playground Output');
$('#preview_box').html('');
$('#preview_box').append(iframe);
var html_code=$('#mobile_first_template').text().replace('<!-- @CUSTOM - CONENT@ --> ',editor.getData());
var doc = iframe.contentDocument || iframe.document;
doc.open();
doc.write(html_code);
doc.close();
}
//新闻日历
$(function () {
@ -518,21 +546,22 @@
showButtonPanel: true
});
})
< / script >
< div class = "container-fluid" >
< div class = "row" >
< div class = "col-sm-5 nopadding hidden-xs" style = "box-shadow: 4px 0px 5px #e0e0e0; margin-right: 7px;margin-left: -7px; ">
< div class = "col-sm-5 nopadding hidden-xs" style = "box-shadow: 4px 0px 5px #e0e0e0; ">
< div class = "well nopadding" style = "border:none !important;padding-top:0px;" >
< div class = "preview_box" id = "preview_box" style = "height: 800px;display: none;" > < / div >
< div id = "tree_box" >
< ul id = "treeDemo" name = "treeDemo" class = "ztree" style = "height:1035px;overflow-x:auto;" > < / ul >
< ul class = "nav nav-list" >
< li class = "nav-header" >
< 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 >
< / li >
< / ul >
< / div >
< / div >
< / div >
@ -547,35 +576,34 @@
< div class = "col-xs-24" >
< div class = "row" >
< div class = "col-xs-24 btn-sm" > < / div >
< div class = "col-xs-7" >
< div class = "col-xs-7" > < a href = "javascript:void(0);" onclick = "switch_preview_tree()" > < i class = "glyphicon glyphicon-indent-right" > < / i > < / a >
< label >
信息标题 & IC_ID: <?php echo $information -> ic_id ; ?>
< / label >
< / 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_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'));
<?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_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'));
?>
<?php if ( is_series_site ()) {
if (get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') == 'yes') {
$PcAmpChecked = 'checked';
} else {
$PcAmpChecked = '';
}
?>
<?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 ; cursor : pointer ; } # PcAmp input { position : relative ; top : 2 px ; } < / style >
< label id = "PcAmp" >
< input type = "checkbox" <?php echo ( $PcAmpChecked ); ?> >
< input type = "checkbox" <?php echo ( $PcAmpChecked ); ?> >
PC端页面也使用构建工具发布
< / label > |
< label title = "AMP页面编辑" >
< a href = " <?php echo ( $amp_build_url ); ?> " target = "_blank" > HTML构建工具 </ a >
< a href = " <?php echo ( $amp_build_url ); ?> " target = "_blank" > HTML构建工具 </ a >
< / label > |
< script type = "text/javascript" >
$('#PcAmp input').on('change', function(){
@ -590,7 +618,8 @@ $amp_build_url = "/amp_app/?icid=" . $information->ic_id . "&is_path=" . $inform
}
});
< / script >
<?php } ?>
<?php
}?>
<?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 } ?>
@ -602,10 +631,10 @@ $amp_build_url = "/amp_app/?icid=" . $information->ic_id . "&is_path=" . $inform
<?php } ?>
< / div >
< div class = "col-xs-24" >
< input class = "form-control" type = "text" id = "ic_title" style = " <?php
if ($embody == 1) {
echo 'border-color:green;';
}
< input class = "form-control" type = "text" id = "ic_title" style = " <?php
if ($embody == 1) {
echo 'border-color:green;';
}
?>" name="ic_title" value="<?php echo $information -> ic_title ; ?> " >
< / div >
< div class = "col-xs-24 btn-sm" > < / div >
@ -619,7 +648,9 @@ if ($embody == 1) {
< div class = "col-xs-12 nopadding-R" >
< div class = "col-xs-24 nopadding" > 链接地址
< a href = "javascript:void(0);" onclick = "format_url()" title = "格式化URL" > < i class = "glyphicon glyphtext-muted glyphicon glyphicon-flag text-muted" > < / i > < / a >
< 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 >
< 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 == 'cht' ) { ?>
< 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 } ?>
@ -628,7 +659,8 @@ if ($embody == 1) {
<?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 } ?>
< a href = "javascript:void(0);" style = "float: right;" onclick = "update_preview()" title = "刷新预览" > < i class = "glyphicon glyphicon-refresh text-muted" > < / i > < / a >
< / div >
< input class = "form-control col-xs-24" type = "text" id = "ic_url" name = "ic_url" value = " <?php echo $information -> ic_url ; ?> " >
< / div >
@ -677,16 +709,15 @@ if ($embody == 1) {
< select name = "meta_website_nav" id = "meta_website_nav" class = "form-control" >
< option value = "" > 不选择< / option >
<?php
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);
?>
<?php
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); ?>
< option <?php echo $strcasecmp_nav == 0 ? 'selected' : false ; ?> value = " <?php echo $item -> im_value ?> " > <?php echo $item -> im_value ?> </ option >
<?php
}
}
<?php
}
}
?>
< / select >
@ -735,7 +766,7 @@ if (!empty($setting_website_nav)) {
< 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 } ?>
< / div >
@ -802,7 +833,7 @@ if (!empty($setting_website_nav)) {
< / div >
<?php if ( $information -> ic_sitecode == 'cht' || $information -> ic_sitecode == "ct" ) {
<?php if ( $information -> ic_sitecode == 'cht' || $information -> ic_sitecode == "ct" ) {
?>
< div class = "row" >
@ -818,11 +849,10 @@ if (!empty($setting_website_nav)) {
< / select >
< / div >
< div class = "col-sm-5 <?php
if ($information->ic_ht_area_type != 'c' & & $information->ic_sitecode!="ct") {
echo 'hidden';
}
?>">
< div class = "col-sm-5 <?php
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 >
@ -855,13 +885,12 @@ if ($information->ic_ht_area_type != 'c' && $information->ic_sitecode!="ct") {
< / select >
< / div >
< div class = " <?php
if ($information->ic_ht_area_type == 'c') {
echo 'col-sm-4';
} else {
echo 'col-sm-9';
}
?>">
< div class = " <?php
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 >
@ -875,17 +904,17 @@ if ($information->ic_ht_area_type == 'c') {
< / div >
<?php
// 有子节点时
$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 "<!-- children_cnt $children_cnt --> ";
if ($children_cnt > 0) {
<?php
// 有子节点时
$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 "<!-- children_cnt $children_cnt --> ";
if ($children_cnt > 0) {
?>
< div class = "row" >
< div class = "col-sm-5" >
@ -902,7 +931,8 @@ if ($information->ic_ht_area_type == 'c') {
< div class = "col-sm-19" >
< / div >
< / div >
<?php } ?>
<?php
} ?>
< div class = "row" >
< div class = "col-xs-24" >
< label > 自定义导航
@ -917,7 +947,8 @@ if ($information->ic_ht_area_type == 'c') {
< / div >
<?php } ?>
<?php
}?>
< label > og:title
@ -1033,25 +1064,25 @@ if ($information->ic_ht_area_type == 'c') {
< input name = "meta_flights_city" id = "meta_flights_city" type = "text" class = "form-control" value = " <?php echo get_meta ( $information -> ic_id , 'meta_flights_city' ); ?> " />
< / div >
< div class = "col-sm-8" >
<?php
$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',
);
<?php
$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',
);
?>
< 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 >
@ -1064,22 +1095,22 @@ $meta_subnavi_arr = array(
<?php } else { ?>
< option selected = "selected" value = "info" > <?php echo $meta_subnavi_arr [ 'info' ]; ?> </ option >
<?php } ?>
< option value = "index" > <?php echo ( $meta_subnavi_arr [ 'index' ]); ?> </ option >
< option value = "tour" > <?php echo ( $meta_subnavi_arr [ '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 >
< option value = "ship" > <?php echo ( $meta_subnavi_arr [ 'ship' ]); ?> </ option >
< option value = "hotel" > <?php echo ( $meta_subnavi_arr [ 'hotel' ]); ?> </ option >
< option value = "flight" > <?php echo ( $meta_subnavi_arr [ 'flight' ]); ?> </ option >
< option value = "info" > <?php echo ( $meta_subnavi_arr [ 'info' ]); ?> </ option >
< option value = "deal" > <?php echo ( $meta_subnavi_arr [ 'deal' ]); ?> </ option >
< option value = "tour2017" > <?php echo ( $meta_subnavi_arr [ 'tour2017' ]); ?> </ option >
< option value = "2015" > <?php echo ( $meta_subnavi_arr [ '2015' ]); ?> </ option >
< option value = "op" > <?php echo ( $meta_subnavi_arr [ 'op' ]); ?> </ option >
< option value = "best" > <?php echo ( $meta_subnavi_arr [ 'best' ]); ?> </ option >
< option value = "culture" > <?php echo ( $meta_subnavi_arr [ 'culture' ]); ?> </ option >
< option value = "top10" > <?php echo ( $meta_subnavi_arr [ 'top10' ]); ?> </ option >
< option value = "index" > <?php echo ( $meta_subnavi_arr [ 'index' ]); ?> </ option >
< option value = "tour" > <?php echo ( $meta_subnavi_arr [ '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 >
< option value = "ship" > <?php echo ( $meta_subnavi_arr [ 'ship' ]); ?> </ option >
< option value = "hotel" > <?php echo ( $meta_subnavi_arr [ 'hotel' ]); ?> </ option >
< option value = "flight" > <?php echo ( $meta_subnavi_arr [ 'flight' ]); ?> </ option >
< option value = "info" > <?php echo ( $meta_subnavi_arr [ 'info' ]); ?> </ option >
< option value = "deal" > <?php echo ( $meta_subnavi_arr [ 'deal' ]); ?> </ option >
< option value = "tour2017" > <?php echo ( $meta_subnavi_arr [ 'tour2017' ]); ?> </ option >
< option value = "2015" > <?php echo ( $meta_subnavi_arr [ '2015' ]); ?> </ option >
< option value = "op" > <?php echo ( $meta_subnavi_arr [ 'op' ]); ?> </ option >
< option value = "best" > <?php echo ( $meta_subnavi_arr [ 'best' ]); ?> </ option >
< option value = "culture" > <?php echo ( $meta_subnavi_arr [ 'culture' ]); ?> </ option >
< option value = "top10" > <?php echo ( $meta_subnavi_arr [ 'top10' ]); ?> </ option >
< / select >
< / div >
< div class = "col-sm-8" >
@ -1220,7 +1251,7 @@ $meta_subnavi_arr = array(
< / 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" ) { ?>
< div class = "col-sm-6" >
@ -1428,12 +1459,12 @@ $meta_subnavi_arr = array(
< 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 = '';
?>
<?php
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 } ?>
<?php
}?>
< / select >
<?php if ( $rootInformation -> ic_ht_area_type == 'pd' ) { ?>
< div id = "bind_product_code" >
@ -1447,12 +1478,12 @@ foreach ($infoTypeList as $key => $value) {
<?php } ?>
< 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 = '';
?>
<?php
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 } ?>
<?php
}?>
< / select >
< label > 是否作为面包屑显示< / label >
@ -1464,30 +1495,30 @@ foreach ($templateList as $key => $value) {
< 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) {
//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';
}
}
?>
<?php
$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';
}
} ?>
< option <?php echo $select_str ; ?> value = " <?php echo $editor_item -> OPI_Code ; ?> " > <?php echo $editor_item -> OPI_Name ; ?> </ option >
<?php } ?>
<?php
}?>
< option value = "" > -< / option >
<?php
foreach ($author_list as $author_item) {
($author_item->a_id == $information->ic_author) ? $select_str = 'selected' : $select_str = '';
?>
<?php
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 } ?>
<?php
}?>
< / select >
< label > 是否发布< / label >
@ -1515,7 +1546,11 @@ foreach ($author_list as $author_item) {
<?php if ( in_array ( $this -> config -> item ( 'site_code' ), array ( 'cht' , 'ah' , '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' ) { echo '<i class="glyphicon glyphicon-hand-up" title="手动管理,不会自动更新"></i>' ;} ?>
< 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' ) {
echo '< i class = "glyphicon glyphicon-hand-up" title = "手动管理,不会自动更新" > < / i > ';
}?>
< / label >
<?php } ?>
@ -1530,7 +1565,7 @@ foreach ($author_list as $author_item) {
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');
window.open('<?php echo ( $amp_build_url ); ?> ', '_blank');
}
}
<?php } ?>
@ -1585,6 +1620,9 @@ foreach ($author_list as $author_item) {
< / div >
< / div >
< textarea id = "mobile_first_template" style = "display: none;" > <?php if ( ! empty ( $mobile_first_template )){ echo $mobile_first_template ;} ?> </ textarea >
<!-- Trippest bokun窗口 -->
< div class = "modal fade" id = "NoPermissionModal" >
< div class = "modal-dialog modal-lg" >
@ -1611,6 +1649,4 @@ foreach ($author_list as $author_item) {
})
});
< / script >
<!-- Trippest bokun窗口 -->
<!-- Trippest bokun窗口 -->