|
|
|
@ -149,30 +149,6 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//移动到任意节点下
|
|
|
|
|
function move_by_is_id(is_id) {
|
|
|
|
|
is_parent_id = prompt("请输入移动到的节点ID:", "");
|
|
|
|
|
if (is_parent_id != null) {
|
|
|
|
|
if (confirm('请确认是否要移动到:' + is_parent_id)) {
|
|
|
|
|
var urlReQuery = "<?php echo site_url('information/move_by_is_id'); ?>";
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "post",
|
|
|
|
|
url: urlReQuery,
|
|
|
|
|
data: {'is_id': is_id, 'is_parent_id': is_parent_id},
|
|
|
|
|
success: function(data, textStatus) {
|
|
|
|
|
window.location.href = "<?php echo site_url('information/edit'); ?>/" + is_id;
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
error: function() {
|
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//删除结构和信息
|
|
|
|
|
function deleteInfo(is_id) {
|
|
|
|
|
if (confirm('是否删除?')) {
|
|
|
|
@ -341,20 +317,6 @@
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//跳转到测试页面
|
|
|
|
|
function goto_test_page() {
|
|
|
|
|
var site_url = 'http://192.155.224.195:8080/guide-use.php/travelguide/guide/?static_html_url=';
|
|
|
|
|
$('#goto_test_page_button').attr("href", site_url + $('#ic_url').val());
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//跳转到HTML验证页面
|
|
|
|
|
function goto_validator() {
|
|
|
|
|
var site_url = '<?php echo $this->config->item('site_url') ?>';
|
|
|
|
|
$('#goto_validator_button').attr("href", 'https://validator.w3.org/nu/?doc=' + site_url + $('#ic_url').val());
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//更新缓存
|
|
|
|
|
function get_update_cache_url() {
|
|
|
|
|
$('#auto_update_cache_checkbox').val($('#ic_url').val());
|
|
|
|
@ -446,11 +408,6 @@
|
|
|
|
|
init_recommend_popover("#meta_recommend_info", ".meta_recommend_info_box");
|
|
|
|
|
init_recommend_popover("#meta_related_info", ".meta_related_info_box");
|
|
|
|
|
init_recommend_popover("#meta_bread_info", ".meta_bread_info_box");
|
|
|
|
|
|
|
|
|
|
//自动读取google网页性能评分
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
mobile_friendly(), 1000
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var editor;
|
|
|
|
@ -532,7 +489,7 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-xs-24 btn-sm"></div>
|
|
|
|
|
<div class="col-xs-7">
|
|
|
|
|
<label>信息标题</label>
|
|
|
|
|
<label>信息标题 & ID: <?php echo $information->ic_id; ?></label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-24">
|
|
|
|
|
<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; ?>" >
|
|
|
|
@ -549,9 +506,6 @@
|
|
|
|
|
<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>
|
|
|
|
|
<?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 } ?>
|
|
|
|
|
</div>
|
|
|
|
|
<input class="form-control col-xs-24" type="text" id="ic_url" name="ic_url" value="<?php echo $information->ic_url; ?>" >
|
|
|
|
|
</div>
|
|
|
|
@ -564,7 +518,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<textarea id="ic_content" name="ic_content" ><?php echo str_replace('textarea', '#textarea#', $information->ic_content); ?></textarea>
|
|
|
|
|
<textarea id="ic_content" name="ic_content" ><?php echo str_replace($this->config->item('site_image_url'), $this->config->item('media_image_url'), $information->ic_content); ?></textarea>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<textarea name="ic_summary" id="ic_summary" class="col-xs-24" rows="5" placeholder="信息简介" style="border:none;border-bottom:1px solid #bbb;"><?php echo $information->ic_summary; ?></textarea>
|
|
|
|
@ -708,7 +662,7 @@
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php if ($information->ic_sitecode == 'cht') { ?>
|
|
|
|
|
<?php if ($information->ic_sitecode == 'cht') { ?>
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-5">
|
|
|
|
@ -791,7 +745,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<label>信息备注
|
|
|
|
@ -884,7 +838,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php if (is_series_site()) { ?>
|
|
|
|
|
<?php if (is_series_site()) { ?>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<label>机票目的地
|
|
|
|
@ -908,9 +862,11 @@
|
|
|
|
|
'info' => '信息',
|
|
|
|
|
'deal' => '促销',
|
|
|
|
|
'2015' => '2015',
|
|
|
|
|
'tour2017' => '2017',
|
|
|
|
|
'op' => 'OP',
|
|
|
|
|
'best' => '实用信息',
|
|
|
|
|
'culture' => '文化'
|
|
|
|
|
'culture' => '文化',
|
|
|
|
|
'top10' => 'TOP10'
|
|
|
|
|
);
|
|
|
|
|
?>
|
|
|
|
|
<label>匹配到一级导航
|
|
|
|
@ -934,10 +890,12 @@
|
|
|
|
|
<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">
|
|
|
|
@ -990,7 +948,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
<?php if ($information->ic_ht_area_type == 'g') { ?>
|
|
|
|
|
<?php if ($information->ic_ht_area_type == 'g') { ?>
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1031,7 +989,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-5">
|
|
|
|
|
<label>展示打赏功能
|
|
|
|
@ -1064,18 +1022,6 @@
|
|
|
|
|
<input type="text" name="meta_facts_city" class="form-control" value="<?php echo get_meta($information->ic_id, 'meta_facts_city'); ?>" id="meta_facts_city"/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-4">
|
|
|
|
|
<label>隐藏社媒按钮
|
|
|
|
|
<a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_media_button', $('#meta_media_button').val())"><i class="text-muted glyphicon glyphicon-remove"></i></a>
|
|
|
|
|
<a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_media_button', $('#meta_media_button').val())"><i class="text-muted glyphicon glyphicon-hdd"></i></a>
|
|
|
|
|
<a href="javascript:void(0);" title="城市facets"><i class="text-muted glyphicon glyphicon-question-sign"></i></a>
|
|
|
|
|
</label>
|
|
|
|
|
<select name="meta_media_button" id="meta_media_button" class="form-control" >
|
|
|
|
|
<option value="no">不隐藏</option>
|
|
|
|
|
<option value="yes" <?php echo get_meta($information->ic_id, 'meta_media_button') === 'yes' ? 'selected' : FALSE; ?>>隐藏</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 自定义选项 -->
|
|
|
|
|
</div>
|
|
|
|
@ -1107,7 +1053,7 @@
|
|
|
|
|
<option <?php echo $select_str; ?> value="<?php echo $value; ?>" ><?php echo $key; ?></option>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</select>
|
|
|
|
|
<?php if ($rootInformation->ic_ht_area_type == 'pd') { ?>
|
|
|
|
|
<?php if ($rootInformation->ic_ht_area_type == 'pd') { ?>
|
|
|
|
|
<div id="bind_product_code">
|
|
|
|
|
<br/>
|
|
|
|
|
<div class="input-group">
|
|
|
|
@ -1124,7 +1070,7 @@
|
|
|
|
|
$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>
|
|
|
|
@ -1159,7 +1105,7 @@
|
|
|
|
|
($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>
|
|
|
|
@ -1178,22 +1124,22 @@
|
|
|
|
|
<label class="checkbox col-xs-24" style="font-weight: normal;margin-top:0;padding-left: 21px;">
|
|
|
|
|
<input type="checkbox" name="ignore_url_check" id="ignore_url_check" />忽略URL重复
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
<?php if (is_series_site() || ($this->config->item('site_code') == 'ah')) { ?>
|
|
|
|
|
<label class="col-xs-24">本站会自动更新静态页面</label>
|
|
|
|
|
<?php } else { ?>
|
|
|
|
|
<?php if (is_series_site()) { ?>
|
|
|
|
|
<label class="col-xs-24">国际站会自动更新静态页面</label>
|
|
|
|
|
<?php } else { ?>
|
|
|
|
|
<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 } ?>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
<p class="col-xs-24 nopadding">
|
|
|
|
|
<button type="button" id="btn-mobile-friendly" class="btn btn-sm" onclick="$('#btn-mobile-friendly').button('loading');
|
|
|
|
|
$('#mobile_friendly_status').html('');
|
|
|
|
|
mobile_friendly(true);">网页性能检测: </button>
|
|
|
|
|
mobile_friendly();">自适应检测</button>
|
|
|
|
|
<span id="mobile_friendly_status"></span>
|
|
|
|
|
<!-- <a href="javascript:void();" class="btn btn-sm" id="goto_validator_button" target="_blank" onclick="goto_validator();" >HTML规范验证</a> -->
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div class="btn-group col-xs-24 nopadding pull-right <?php if ($is_writeable == 0) echo 'hide'; ?>">
|
|
|
|
@ -1213,7 +1159,7 @@
|
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
|
<li><a href="<?php echo site_url('author/create_task/' . $information->is_id) ?>" target="_blank">发布任务</a></li>
|
|
|
|
|
<li class="divider"></li>
|
|
|
|
|
<li><a href="javascript:void(0);" onclick="move_by_is_id('<?php echo $information->is_id; ?>');">搬迁信息</a></li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li><a href="javascript:void(0);" onclick="deleteInfo('<?php echo $information->is_id; ?>');">删除信息</a></li>
|
|
|
|
|
<li class="divider"></li>
|
|
|
|
@ -1223,7 +1169,7 @@
|
|
|
|
|
<ul class="dropdown-menu history_log" style="right: 157px;left: inherit;top: 83px;">
|
|
|
|
|
<?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>
|
|
|
|
|