|
|
@ -65,12 +65,12 @@
|
|
|
|
sObj.append(addStr);
|
|
|
|
sObj.append(addStr);
|
|
|
|
var btn = $("#addBtn_" + treeNode.id);
|
|
|
|
var btn = $("#addBtn_" + treeNode.id);
|
|
|
|
if (btn)
|
|
|
|
if (btn)
|
|
|
|
btn.bind("click", function() {
|
|
|
|
btn.bind("click", function () {
|
|
|
|
var urlReQuery = "<?php echo site_url('information/add/'); ?>";
|
|
|
|
var urlReQuery = "<?php echo site_url('information/add/'); ?>";
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
type: "get",
|
|
|
|
type: "get",
|
|
|
|
url: urlReQuery + '/' + treeNode.id,
|
|
|
|
url: urlReQuery + '/' + treeNode.id,
|
|
|
|
success: function(data, textStatus) {
|
|
|
|
success: function (data, textStatus) {
|
|
|
|
var dataArray = $.parseJSON(data);//JSON.parse(data);
|
|
|
|
var dataArray = $.parseJSON(data);//JSON.parse(data);
|
|
|
|
for (var key in dataArray) {
|
|
|
|
for (var key in dataArray) {
|
|
|
|
if (dataArray[key].name == 'ok') {
|
|
|
|
if (dataArray[key].name == 'ok') {
|
|
|
@ -82,7 +82,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error: function() {
|
|
|
|
error: function () {
|
|
|
|
alert('发生错误,请联系YCC');
|
|
|
|
alert('发生错误,请联系YCC');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -138,10 +138,10 @@
|
|
|
|
type: "post",
|
|
|
|
type: "post",
|
|
|
|
url: urlReQuery,
|
|
|
|
url: urlReQuery,
|
|
|
|
data: {'pid': treeNodes[0].getParentNode().id, 'ids': idStr},
|
|
|
|
data: {'pid': treeNodes[0].getParentNode().id, 'ids': idStr},
|
|
|
|
success: function(data, textStatus) {
|
|
|
|
success: function (data, textStatus) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error: function() {
|
|
|
|
error: function () {
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -160,11 +160,11 @@
|
|
|
|
type: "post",
|
|
|
|
type: "post",
|
|
|
|
url: urlReQuery,
|
|
|
|
url: urlReQuery,
|
|
|
|
data: {'is_id': is_id, 'is_parent_id': is_parent_id},
|
|
|
|
data: {'is_id': is_id, 'is_parent_id': is_parent_id},
|
|
|
|
success: function(data, textStatus) {
|
|
|
|
success: function (data, textStatus) {
|
|
|
|
window.location.href = "<?php echo site_url('information/edit'); ?>/" + is_id;
|
|
|
|
window.location.href = "<?php echo site_url('information/edit'); ?>/" + is_id;
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error: function() {
|
|
|
|
error: function () {
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -180,12 +180,12 @@
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
type: "get",
|
|
|
|
type: "get",
|
|
|
|
url: urlReQuery + '/' + is_id,
|
|
|
|
url: urlReQuery + '/' + is_id,
|
|
|
|
success: function(data, textStatus) {
|
|
|
|
success: function (data, textStatus) {
|
|
|
|
var dataArray = $.parseJSON(data);//JSON.parse(data);
|
|
|
|
var dataArray = $.parseJSON(data);//JSON.parse(data);
|
|
|
|
for (var key in dataArray) {
|
|
|
|
for (var key in dataArray) {
|
|
|
|
if (dataArray[key].name == 'ok') {
|
|
|
|
if (dataArray[key].name == 'ok') {
|
|
|
|
$.modaldialog.success('删除成功!,程序正在刷新...');
|
|
|
|
$.modaldialog.success('删除成功!,程序正在刷新...');
|
|
|
|
setTimeout(function() {
|
|
|
|
setTimeout(function () {
|
|
|
|
window.location.href = dataArray[key].value;
|
|
|
|
window.location.href = dataArray[key].value;
|
|
|
|
}, 500);
|
|
|
|
}, 500);
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
@ -195,7 +195,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error: function() {
|
|
|
|
error: function () {
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -278,7 +278,7 @@
|
|
|
|
dataType: "json",
|
|
|
|
dataType: "json",
|
|
|
|
url: "<?php echo site_url('information/get_products/'); ?>",
|
|
|
|
url: "<?php echo site_url('information/get_products/'); ?>",
|
|
|
|
data: {'product_type': product_type, 'product_name': product_name},
|
|
|
|
data: {'product_type': product_type, 'product_name': product_name},
|
|
|
|
success: function(data, textStatus) {
|
|
|
|
success: function (data, textStatus) {
|
|
|
|
for (var key in data) {
|
|
|
|
for (var key in data) {
|
|
|
|
if (data[key].name == 'ok') {
|
|
|
|
if (data[key].name == 'ok') {
|
|
|
|
$("#product_list_ul").html(data[key].value);
|
|
|
|
$("#product_list_ul").html(data[key].value);
|
|
|
@ -286,7 +286,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error: function() {
|
|
|
|
error: function () {
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -315,7 +315,7 @@
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
type: "get",
|
|
|
|
type: "get",
|
|
|
|
url: urlReQuery + '/' + area_id + '/' + lsi_sn,
|
|
|
|
url: urlReQuery + '/' + area_id + '/' + lsi_sn,
|
|
|
|
success: function(data, textStatus) {
|
|
|
|
success: function (data, textStatus) {
|
|
|
|
var dataArray = $.parseJSON(data);//JSON.parse(data);
|
|
|
|
var dataArray = $.parseJSON(data);//JSON.parse(data);
|
|
|
|
for (var key in dataArray) {
|
|
|
|
for (var key in dataArray) {
|
|
|
|
if (dataArray[key].name == 'ok') {
|
|
|
|
if (dataArray[key].name == 'ok') {
|
|
|
@ -327,7 +327,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
error: function() {
|
|
|
|
error: function () {
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -365,13 +365,13 @@
|
|
|
|
$(elem).popover({
|
|
|
|
$(elem).popover({
|
|
|
|
'container': container,
|
|
|
|
'container': container,
|
|
|
|
'title': 'title',
|
|
|
|
'title': 'title',
|
|
|
|
'content': function() {
|
|
|
|
'content': function () {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'placement': 'bottom',
|
|
|
|
'placement': 'bottom',
|
|
|
|
'trigger': 'click',
|
|
|
|
'trigger': 'click',
|
|
|
|
'template': '<div class="popover recommend_info_popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title hidden"></h3><div class="popover-content" style="width:500px;"></div><div class="col-xs-24" style="background:#eee;padding: 8px 10px;margin-top: -19px;border-bottom:1px solid #ddd;"><div class="col-xs-22" style="padding-left:0;"><div class="input-group"><input type="text" class="form-control" id="article_key" name="article_key" placeholder="文章URL、标题或关键词"><span class="input-group-btn"><button class="btn btn-default" id="btn_search_article_list" type="button">搜索</button></span></div></div><div class="col-xs-2" style="border-left:1px solid #bbb;height:32px;line-height:38px;font-size:18px;"><a href="javascript:void(0);" onclick="$(\'#meta_recommend_info\').popover(\'hide\');$(\'#meta_related_info\').popover(\'hide\');$(\'#meta_bread_info\').popover(\'hide\');" class="glyphicon glyphicon-remove text-danger"></a></div></div><div class="col-xs-24" id="recommended_list"></div><div class="col-xs-24" id="recommend_list" style="padding-left:0;"></div></div>'
|
|
|
|
'template': '<div class="popover recommend_info_popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title hidden"></h3><div class="popover-content" style="width:500px;"></div><div class="col-xs-24" style="background:#eee;padding: 8px 10px;margin-top: -19px;border-bottom:1px solid #ddd;"><div class="col-xs-22" style="padding-left:0;"><div class="input-group"><input type="text" class="form-control" id="article_key" name="article_key" placeholder="文章URL、标题或关键词"><span class="input-group-btn"><button class="btn btn-default" id="btn_search_article_list" type="button">搜索</button></span></div></div><div class="col-xs-2" style="border-left:1px solid #bbb;height:32px;line-height:38px;font-size:18px;"><a href="javascript:void(0);" onclick="$(\'#meta_recommend_info\').popover(\'hide\');$(\'#meta_related_info\').popover(\'hide\');$(\'#meta_bread_info\').popover(\'hide\');" class="glyphicon glyphicon-remove text-danger"></a></div></div><div class="col-xs-24" id="recommended_list"></div><div class="col-xs-24" id="recommend_list" style="padding-left:0;"></div></div>'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$(elem).on('shown.bs.popover', function() {
|
|
|
|
$(elem).on('shown.bs.popover', function () {
|
|
|
|
var right_offset = document.documentElement["clientWidth"] - $(elem)[0].getBoundingClientRect().right;
|
|
|
|
var right_offset = document.documentElement["clientWidth"] - $(elem)[0].getBoundingClientRect().right;
|
|
|
|
if (right_offset < 300) {
|
|
|
|
if (right_offset < 300) {
|
|
|
|
$(elem).next(".recommend_info_popover").attr('style', "left:" + (-(400 - right_offset)) + "px !important;display: block;");
|
|
|
|
$(elem).next(".recommend_info_popover").attr('style', "left:" + (-(400 - right_offset)) + "px !important;display: block;");
|
|
|
@ -384,39 +384,39 @@
|
|
|
|
;
|
|
|
|
;
|
|
|
|
$("#recommended_list").html('<img src="/css/images/loading.gif" >');
|
|
|
|
$("#recommended_list").html('<img src="/css/images/loading.gif" >');
|
|
|
|
var url = "<?php echo site_url('/welcome/search_by_icid/'); ?>";
|
|
|
|
var url = "<?php echo site_url('/welcome/search_by_icid/'); ?>";
|
|
|
|
$.post(url, {"ic_id_list": ic_id_list}, function(html) {
|
|
|
|
$.post(url, {"ic_id_list": ic_id_list}, function (html) {
|
|
|
|
$("#recommended_list").html(html);
|
|
|
|
$("#recommended_list").html(html);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}).on('hidden.bs.popover', function() {
|
|
|
|
}).on('hidden.bs.popover', function () {
|
|
|
|
setTimeout(function() {
|
|
|
|
setTimeout(function () {
|
|
|
|
$(".recommend_info_popover").remove();
|
|
|
|
$(".recommend_info_popover").remove();
|
|
|
|
}, 0);
|
|
|
|
}, 0);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$("body").on("click", "#btn_search_article_list", function() {
|
|
|
|
$("body").on("click", "#btn_search_article_list", function () {
|
|
|
|
$("#recommend_list").html('<img src="/css/images/loading.gif" >');
|
|
|
|
$("#recommend_list").html('<img src="/css/images/loading.gif" >');
|
|
|
|
var url = "<?php echo site_url('/welcome/search/1'); ?>";
|
|
|
|
var url = "<?php echo site_url('/welcome/search/1'); ?>";
|
|
|
|
var key = $("#article_key").val();
|
|
|
|
var key = $("#article_key").val();
|
|
|
|
var ic_id_list = $(elem).val();
|
|
|
|
var ic_id_list = $(elem).val();
|
|
|
|
$.post(url, {'keywords': key, "ic_id_list": ic_id_list}, function(html) {
|
|
|
|
$.post(url, {'keywords': key, "ic_id_list": ic_id_list}, function (html) {
|
|
|
|
$("#recommend_list").html(html);
|
|
|
|
$("#recommend_list").html(html);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//初始化树形菜单
|
|
|
|
//初始化树形菜单
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function () {
|
|
|
|
$("#history_log_toggle").hover(function() {
|
|
|
|
$("#history_log_toggle").hover(function () {
|
|
|
|
$(".history_log").css({"display": "block"});
|
|
|
|
$(".history_log").css({"display": "block"});
|
|
|
|
}, function() {
|
|
|
|
}, function () {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$(".history_log").hover(function() {
|
|
|
|
$(".history_log").hover(function () {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function() {
|
|
|
|
function () {
|
|
|
|
$(".history_log").css({"display": "none"});
|
|
|
|
$(".history_log").css({"display": "none"});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(function() {
|
|
|
|
setTimeout(function () {
|
|
|
|
$("#treeDemo").css({"overflow-y": "hidden"});
|
|
|
|
$("#treeDemo").css({"overflow-y": "hidden"});
|
|
|
|
}, 100);
|
|
|
|
}, 100);
|
|
|
|
$.fn.zTree.init($("#treeDemo"), setting, zNodes);
|
|
|
|
$.fn.zTree.init($("#treeDemo"), setting, zNodes);
|
|
|
@ -448,13 +448,13 @@
|
|
|
|
init_recommend_popover("#meta_bread_info", ".meta_bread_info_box");
|
|
|
|
init_recommend_popover("#meta_bread_info", ".meta_bread_info_box");
|
|
|
|
|
|
|
|
|
|
|
|
//自动读取google网页性能评分
|
|
|
|
//自动读取google网页性能评分
|
|
|
|
setTimeout(function() {
|
|
|
|
setTimeout(function () {
|
|
|
|
mobile_friendly(), 1000
|
|
|
|
mobile_friendly(), 1000
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var editor;
|
|
|
|
var editor;
|
|
|
|
KindEditor.ready(function(K) {
|
|
|
|
KindEditor.ready(function (K) {
|
|
|
|
editor = K.create('#ic_content', {
|
|
|
|
editor = K.create('#ic_content', {
|
|
|
|
width: '100%',
|
|
|
|
width: '100%',
|
|
|
|
height: '560px',
|
|
|
|
height: '560px',
|
|
|
@ -468,7 +468,7 @@
|
|
|
|
'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', '|',
|
|
|
|
'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', '|',
|
|
|
|
'clearhtml', 'removeformat', '|', 'plainpaste', 'wordpaste', '|', 'table', 'hr', 'image', 'template', 'link', 'unlink', 'mediacits', 'character', 'undo', 'source', 'fullscreen'
|
|
|
|
'clearhtml', 'removeformat', '|', 'plainpaste', 'wordpaste', '|', 'table', 'hr', 'image', 'template', 'link', 'unlink', 'mediacits', 'character', 'undo', 'source', 'fullscreen'
|
|
|
|
],
|
|
|
|
],
|
|
|
|
afterChange: function() {
|
|
|
|
afterChange: function () {
|
|
|
|
K('#display_count').html(getWordCount(editor.text()));
|
|
|
|
K('#display_count').html(getWordCount(editor.text()));
|
|
|
|
content_length = this.count('text');
|
|
|
|
content_length = this.count('text');
|
|
|
|
$("iframe.ke-edit-iframe").contents().find(".ke-content").css({"padding-right": "25px", "padding-top": "12px"});
|
|
|
|
$("iframe.ke-edit-iframe").contents().find(".ke-content").css({"padding-right": "25px", "padding-top": "12px"});
|
|
|
@ -479,28 +479,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//新闻日历
|
|
|
|
//新闻日历
|
|
|
|
$(function() {
|
|
|
|
$(function () {
|
|
|
|
$("#meta_news_createdate").datepicker({
|
|
|
|
$("#meta_news_createdate").datepicker({
|
|
|
|
showButtonPanel: true
|
|
|
|
showButtonPanel: true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
//节庆开始日期
|
|
|
|
//节庆开始日期
|
|
|
|
$(function() {
|
|
|
|
$(function () {
|
|
|
|
$("#meta_festival_start").datepicker({
|
|
|
|
$("#meta_festival_start").datepicker({
|
|
|
|
showButtonPanel: true
|
|
|
|
showButtonPanel: true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
//节庆结束日期
|
|
|
|
//节庆结束日期
|
|
|
|
$(function() {
|
|
|
|
$(function () {
|
|
|
|
$("#meta_festival_end").datepicker({
|
|
|
|
$("#meta_festival_end").datepicker({
|
|
|
|
showButtonPanel: true
|
|
|
|
showButtonPanel: true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
//团购结束时间
|
|
|
|
//团购结束时间
|
|
|
|
$(function() {
|
|
|
|
$(function () {
|
|
|
|
$("#meta_groupon_end").datepicker({
|
|
|
|
$("#meta_groupon_end").datepicker({
|
|
|
|
showButtonPanel: true
|
|
|
|
showButtonPanel: true
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -541,6 +541,13 @@
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-17 text-right">
|
|
|
|
|
|
|
|
<?php if(get_meta($information->ic_id, '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 }else{ ?>
|
|
|
|
|
|
|
|
<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 } ?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-24">
|
|
|
|
<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; ?>" >
|
|
|
|
<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>
|
|
|
@ -715,7 +722,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<?php if ($information->ic_sitecode == 'cht') { ?>
|
|
|
|
<?php if ($information->ic_sitecode == 'cht') { ?>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<div class="col-sm-5">
|
|
|
@ -798,7 +805,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<label>信息备注
|
|
|
|
<label>信息备注
|
|
|
@ -891,7 +898,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php if (is_series_site()) { ?>
|
|
|
|
<?php if (is_series_site()) { ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<label>机票目的地
|
|
|
|
<label>机票目的地
|
|
|
@ -1001,7 +1008,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
<?php if ($information->ic_ht_area_type == 'g') { ?>
|
|
|
|
<?php if ($information->ic_ht_area_type == 'g') { ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1042,7 +1049,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<label>展示打赏功能
|
|
|
|
<label>展示打赏功能
|
|
|
@ -1118,7 +1125,7 @@
|
|
|
|
<option <?php echo $select_str; ?> value="<?php echo $value; ?>" ><?php echo $key; ?></option>
|
|
|
|
<option <?php echo $select_str; ?> value="<?php echo $value; ?>" ><?php echo $key; ?></option>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<?php if ($rootInformation->ic_ht_area_type == 'pd') { ?>
|
|
|
|
<?php if ($rootInformation->ic_ht_area_type == 'pd') { ?>
|
|
|
|
<div id="bind_product_code">
|
|
|
|
<div id="bind_product_code">
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group">
|
|
|
@ -1135,7 +1142,7 @@
|
|
|
|
$value == $information->ic_template ? $select_str = 'selected' : $select_str = '';
|
|
|
|
$value == $information->ic_template ? $select_str = 'selected' : $select_str = '';
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
<option <?php echo $select_str; ?> value="<?php echo $value; ?>" ><?php echo $key; ?></option>
|
|
|
|
<option <?php echo $select_str; ?> value="<?php echo $value; ?>" ><?php echo $key; ?></option>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<label>是否作为面包屑显示</label>
|
|
|
|
<label>是否作为面包屑显示</label>
|
|
|
@ -1190,13 +1197,13 @@
|
|
|
|
<input type="checkbox" name="ignore_url_check" id="ignore_url_check" />忽略URL重复
|
|
|
|
<input type="checkbox" name="ignore_url_check" id="ignore_url_check" />忽略URL重复
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<?php if (is_series_site() || ($this->config->item('site_code') == 'ah') || ($this->config->item('site_code') == 'gm') ) { ?>
|
|
|
|
<?php if (is_series_site() || ($this->config->item('site_code') == 'ah') || ($this->config->item('site_code') == 'gm')) { ?>
|
|
|
|
<label class="col-xs-24">本站会自动更新静态页面</label>
|
|
|
|
<label class="col-xs-24">本站会自动更新静态页面</label>
|
|
|
|
<?php } else { ?>
|
|
|
|
<?php } else { ?>
|
|
|
|
<label class="checkbox col-xs-24" style="font-weight: normal;margin-top:0;padding-left: 21px;">
|
|
|
|
<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; ?>" />静态更新
|
|
|
|
<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>
|
|
|
|
</label>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<p class="col-xs-24 nopadding">
|
|
|
|
<p class="col-xs-24 nopadding">
|
|
|
@ -1234,7 +1241,7 @@
|
|
|
|
<ul class="dropdown-menu history_log" style="right: 157px;left: inherit;top: 83px;">
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
@ -1277,16 +1284,16 @@
|
|
|
|
<div class="checkbox">
|
|
|
|
<div class="checkbox">
|
|
|
|
<?php foreach ($my_tags as $tag) { ?>
|
|
|
|
<?php foreach ($my_tags as $tag) { ?>
|
|
|
|
<label class="tagLabel myTag">
|
|
|
|
<label class="tagLabel myTag">
|
|
|
|
<input type="checkbox" value="<?php echo($tag->it_title)?>" data-it-id="<?php echo($tag->it_id)?>" checked>
|
|
|
|
<input type="checkbox" value="<?php echo($tag->it_title) ?>" data-it-id="<?php echo($tag->it_id) ?>" checked>
|
|
|
|
<span><?php echo($tag->it_title)?></span>
|
|
|
|
<span><?php echo($tag->it_title) ?></span>
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="checkbox">
|
|
|
|
<div class="checkbox">
|
|
|
|
<?php foreach ($all_tags as $tag) { ?>
|
|
|
|
<?php foreach ($all_tags as $tag) { ?>
|
|
|
|
<label class="tagLabel">
|
|
|
|
<label class="tagLabel">
|
|
|
|
<input type="checkbox" value="<?php echo($tag->it_title)?>" data-it-id="<?php echo($tag->it_id)?>">
|
|
|
|
<input type="checkbox" value="<?php echo($tag->it_title) ?>" data-it-id="<?php echo($tag->it_id) ?>">
|
|
|
|
<span><?php echo($tag->it_title)?></span>
|
|
|
|
<span><?php echo($tag->it_title) ?></span>
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
<label class="tagLabel newLabel">
|
|
|
|
<label class="tagLabel newLabel">
|
|
|
@ -1303,33 +1310,33 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
|
//标签更新
|
|
|
|
//标签更新
|
|
|
|
$('[data-it-id]').on('change', function() {
|
|
|
|
$('[data-it-id]').on('change', function () {
|
|
|
|
if ($(this).is(':checked')) {
|
|
|
|
if ($(this).is(':checked')) {
|
|
|
|
$.post('/info.php/info_tags/add_tag_to_content/', {
|
|
|
|
$.post('/info.php/info_tags/add_tag_to_content/', {
|
|
|
|
'it_id' : $(this).attr('data-it-id'),
|
|
|
|
'it_id': $(this).attr('data-it-id'),
|
|
|
|
'ic_id' : <?php echo $information->ic_id; ?>,
|
|
|
|
'ic_id': <?php echo $information->ic_id; ?>,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$(this).parent().addClass('myTag');
|
|
|
|
$(this).parent().addClass('myTag');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$.post('/info.php/info_tags/remove_tag_to_content/', {
|
|
|
|
$.post('/info.php/info_tags/remove_tag_to_content/', {
|
|
|
|
'it_id' : $(this).attr('data-it-id'),
|
|
|
|
'it_id': $(this).attr('data-it-id'),
|
|
|
|
'ic_id' : <?php echo $information->ic_id; ?>,
|
|
|
|
'ic_id': <?php echo $information->ic_id; ?>,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$(this).parent().removeClass('myTag');
|
|
|
|
$(this).parent().removeClass('myTag');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
//新标签
|
|
|
|
//新标签
|
|
|
|
$('.newTagA').on('click', function() {
|
|
|
|
$('.newTagA').on('click', function () {
|
|
|
|
$(this).hide();
|
|
|
|
$(this).hide();
|
|
|
|
$('.newTagI').show();
|
|
|
|
$('.newTagI').show();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('.newTagI').on('blur', function() {
|
|
|
|
$('.newTagI').on('blur', function () {
|
|
|
|
$(this).hide();
|
|
|
|
$(this).hide();
|
|
|
|
if ($(this).val()) {
|
|
|
|
if ($(this).val()) {
|
|
|
|
var yes = confirm("确认添加新标签:" + $(this).val())
|
|
|
|
var yes = confirm("确认添加新标签:" + $(this).val())
|
|
|
|
//添加标签
|
|
|
|
//添加标签
|
|
|
|
if (yes) {
|
|
|
|
if (yes) {
|
|
|
|
$.post('/info.php/info_tags/add_tag/', {'title':$(this).val(),'memo':'test'}, function(json) {
|
|
|
|
$.post('/info.php/info_tags/add_tag/', {'title': $(this).val(), 'memo': 'test'}, function (json) {
|
|
|
|
if (json.statu != '-1') {
|
|
|
|
if (json.statu != '-1') {
|
|
|
|
$clone = $('.tagLabel').eq(0).clone(true);
|
|
|
|
$clone = $('.tagLabel').eq(0).clone(true);
|
|
|
|
$clone.removeClass('myTag');
|
|
|
|
$clone.removeClass('myTag');
|
|
|
@ -1352,7 +1359,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
//添加新模板
|
|
|
|
//添加新模板
|
|
|
|
$('#newTemp').on('click', function() {
|
|
|
|
$('#newTemp').on('click', function () {
|
|
|
|
alert('ok');
|
|
|
|
alert('ok');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|