< script src = "/js/ace/ace.js" type = "text/javascript" charset = "utf-8" > < / script >
< script type = "text/javascript" >
var content_length = 0;
function open_stext() {
alert('旧模板工具不适配响应式框架,已停用。');
/*
if (!$('span[data-name=source]').hasClass('ke-selected')) {
$('span[data-name=source]').trigger('click');
}
if ($('textarea.ke-edit-textarea').val() == '' & & $('textarea#ic_summary').val() != '') {
$('textarea.ke-edit-textarea').removeClass('sc_textarea');
$('textarea#ic_summary').addClass('sc_textarea').attr('site_code', '<?php echo $this -> config -> item ( 'site_code' ); ?> ').attr('lgc', '<?php echo $this -> config -> item ( 'site_lgc' ); ?> ').attr('img_url', '<?php echo $this -> config -> item ( 'media_image_url' ); ?> ');
} else if ($('textarea.ke-edit-textarea').val() == '' & & $('textarea#ic_summary').val() == '') {
$('textarea.ke-edit-textarea').addClass('sc_textarea').attr('site_code', '<?php echo $this -> config -> item ( 'site_code' ); ?> ').attr('lgc', '<?php echo $this -> config -> item ( 'site_lgc' ); ?> ').attr('img_url', '<?php echo $this -> config -> item ( 'media_image_url' ); ?> ');
$('textarea#ic_summary').removeClass('sc_textarea');
} else {
$('textarea.ke-edit-textarea').addClass('sc_textarea').attr('site_code', '<?php echo $this -> config -> item ( 'site_code' ); ?> ').attr('lgc', '<?php echo $this -> config -> item ( 'site_lgc' ); ?> ').attr('img_url', '<?php echo $this -> config -> item ( 'media_image_url' ); ?> ');
$('textarea#ic_summary').removeClass('sc_textarea');
}
window.open("/sc/sc.htm?v3.1d", "SC", ",scrollbars,scrollbars,height=" + (window.screen.availHeight - 30) + ",width=" + (window.screen.availWidth) + 10);
*/
}
function open_sl() {
if (!$('span[data-name=source]').hasClass('ke-selected')) {
$('span[data-name=source]').trigger('click');
}
$('textarea.ke-edit-textarea').addClass('lmrxedit');
var sl_url = '/lmrxedit/?template=<?php echo ( $information -> ic_template ); ?> ';
window.open(sl_url, "SL", "fullscreen=yes,top=0,left=0,scrollbars,scrollbars,height=" + (window.screen.availHeight - 50) + ",width=" + (window.screen.availWidth) + 10);
}
var setting = {
view: {expandSpeed: "",
dblClickExpand: true,
showLine: true,
showTitle: false,
addHoverDom: addHoverDom,
removeHoverDom: removeHoverDom,
selectedMulti: false,
fontCss: set_font_css
},
data: {
simpleData: {
enable: true
}
},
edit: {
enable: true,
showRenameBtn: false,
showRemoveBtn: false,
drag: {
isCopy: false,
isMove: true,
prev: true,
next: true,
inner: true
}
},
callback: {
onClick: onClickzTree,
beforeDrop: beforeDrop,
onDrop: onDrop
}
};
zNodes =<?PHP echo json_encode ( $informationList ); ?> ;
function onClickzTree(e, treeId, treeNode, clickFlag) {
var urlReQuery = "<?php echo site_url ( 'information/edit/' ); ?> ";
window.location.href = urlReQuery + '/' + treeNode.id;
return true;
}
function addHoverDom(treeId, treeNode) {
var sObj = $("#" + treeNode.tId + "_span");
if ($("#addBtn_" + treeNode.id).length > 0)
return;
var addStr = "< span class = 'button add' id = 'addBtn_" + treeNode.id + "' title = 'u589eu52a0' onfocus = 'this.blur();' > < / span > ";
sObj.append(addStr);
var btn = $("#addBtn_" + treeNode.id);
if (btn)
btn.bind("click", function() {
var urlReQuery = "<?php echo site_url ( 'information/add/' ); ?> ";
$.ajax({
type: "get",
url: urlReQuery + '/' + treeNode.id,
success: function(data, textStatus) {
var dataArray = $.parseJSON(data);//JSON.parse(data);
for (var key in dataArray) {
if (dataArray[key].name == 'ok') {
var infoStructure = dataArray[key].value;
var zTree = $.fn.zTree.getZTreeObj(treeId);
zTree.addNodes(treeNode, {id: (infoStructure.is_id), pId: treeNode.id, name: "New Information"});
} else {
$.modaldialog.error('发生错误, 请联系YCC.' + dataArray[key].value);
}
}
},
error: function() {
alert('发生错误, 请联系YCC');
}
});
return false;
});
}
;
function removeHoverDom(treeId, treeNode) {
$("#addBtn_" + treeNode.id).unbind().remove();
}
;
//节点移动规则
function beforeDrop(treeId, treeNodes, targetNode, moveType) {
var move_type_title;
if (moveType == 'inner') {
move_type_title = ' 之中,成为子节点';
} else if (moveType == 'prev') {
move_type_title = ' 之前';
} else if (moveType == 'next') {
move_type_title = ' 之后';
}
//是否把子节点移到根节点
if (targetNode.getParentNode() == null) {
if (moveType == 'inner') { //只允许放到根节点之内
if (confirm('是否把 ' + treeNodes[0].name + ' 移到 ' + targetNode.name + move_type_title)) {
return true;
}
}
} else {
if (treeNodes[0].getParentNode().tId != targetNode.getParentNode().tId || moveType == 'inner') {
if (confirm('是否把 ' + treeNodes[0].name + ' 移到 ' + targetNode.name + move_type_title)) {
return true;
}
} else {
return true;
}
}
return false;
}
function onDrop(event, treeId, treeNodes, targetNode, moveType) {
var idStr = '';
if (targetNode != null & & treeNodes[0].getParentNode() != null) {
var childNodes = treeNodes[0].getParentNode().children;
for (var i = 0; i < childNodes.length ; i + + ) {
idStr = idStr + childNodes[i].id + ',';
}
//alert(treeNodes[0].getParentNode().name+' - '+idStr);
var urlReQuery = "<?php echo site_url ( 'information/move' ); ?> ";
$.ajax({
type: "post",
url: urlReQuery,
data: {'pid': treeNodes[0].getParentNode().id, 'ids': idStr},
success: function(data, textStatus) {
return true;
},
error: function() {
$.modaldialog.error('发生错误, 请联系YCC');
return false;
}
});
}
}
//删除结构和信息
function deleteInfo(is_id) {
if (confirm('是否删除?')) {
var urlReQuery = "<?php echo site_url ( 'information/delete/' ); ?> ";
$.ajax({
type: "get",
url: urlReQuery + '/' + is_id,
success: function(data, textStatus) {
var dataArray = $.parseJSON(data);//JSON.parse(data);
for (var key in dataArray) {
if (dataArray[key].name == 'ok') {
$.modaldialog.success('删除成功!,程序正在刷新...');
setTimeout(function() {
window.location.href = dataArray[key].value;
}, 500);
return true;
} else if (dataArray[key].name == 'no') {
$.modaldialog.error(dataArray[key].value);
return false;
}
}
},
error: function() {
$.modaldialog.error('发生错误, 请联系YCC');
return false;
}
});
}
}
//设置样式
function set_font_css(treeId, treeNode) {
var nodeColor = '';
if (treeNode.status !== 1) {
nodeColor = 'red';
}
return treeNode.level == 1 ? {'font-weight': 'bold', 'color': nodeColor} : {'color': nodeColor};
}
//加载预览样式
function load_preview_css(){
$("iframe.ke-edit-iframe").contents().find("head").append('<?php echo $this -> config -> item ( "css_source_" . $this -> config -> item ( "site_code" )); ?> < style >. drop1 { height : auto !important ;} . photoRight img { max-width : 100 % ; height : auto !important ;}</ style > ');
$("iframe.ke-edit-iframe").contents().find(".ke-content").css({"max-width":"1024px","margin-left":"auto","margin-right":"auto"});
}
function get_analytics_ajax(formid, contentid, loadtotal) {
var url = $("#" + formid).attr('action') + '/' + loadtotal;
var data = $("#" + formid).serialize();
$("#" + contentid).html('< img src = "/css/images/loading.gif" > ');
$.post(url, data, function(result) {
$("#" + contentid).html(result);
});
}
//选择主图片
function openKCFinder_Root() {
var site_url = '<?php echo $this -> config -> item ( 'site_url' ) ?> ';
var weburl = encodeURI(site_url + $("#ic_url").val());
window.CallBack = openKCFinder_Root_callback;
window.open('/media/popselectpicture.php?site_code=<?php echo $this -> config -> item ( 'site_code' ); ?> & site_lgc=<?php echo $this -> config -> item ( 'site_lgc' ); ?> & WebUrl=' + weburl, 'kcfinder_textbox', 'status=0, toolbar=0, location=0, menubar=0, directories=0,resizable=1, scrollbars=0, width=800, height=600');
}
function openKCFinder_Root_callback(result) {
var site_image_url = '<?php echo $this -> config -> item ( 'media_image_url' ) ?> ';
if (result != null & & result.Pinfo[0]) {
$("#ic_photo").val(result.Pinfo[0].PUrl);
$("#ic_photo_img").attr("src", site_image_url + result.Pinfo[0].PUrl);
$("#ic_photo_width").val(result.Pinfo[0].Width);
$("#ic_photo_height").val(result.Pinfo[0].Height);
$("#use_pictures").val(result.Pinfo[0].ID + ':' + result.Pinfo[0].PUrl + ':' + result.Pinfo[0].wh + ',');
}
}
//删除主图片
function delete_root_image() {
$("#ic_photo").val('');
$("#ic_photo_img").attr("src", '/css/images/uploadPic.jpg');
}
//选择内容图片
function openKCFinder_Content() {
var site_url = '<?php echo $this -> config -> item ( 'site_url' ) ?> ';
var weburl = encodeURI(site_url + $("#ic_url").val());
window.CallBack = openKCFinder_Content_callback;
window.open('/media/popselectpicture.php?site_code=<?php echo $this -> config -> item ( 'site_code' ); ?> & site_lgc=<?php echo $this -> config -> item ( 'site_lgc' ); ?> & WebUrl=' + weburl, 'kcfinder_textbox', 'status=0, toolbar=0, location=0, menubar=0, directories=0,resizable=1, scrollbars=0, width=800, height=600');
}
function openKCFinder_Content_callback(result) {
var site_image_url = '<?php echo $this -> config -> item ( 'media_image_url' ) ?> ';
var use_pictures = $("#use_pictures").val();
if (result != null) {
for (var key in result.Pinfo) {
if ('<?php echo $this -> config -> item ( 'site_code' ) ?> ' == 'cht') {
editor.insertHtml('< div class = "photoBlock300 autowidht" id = "yonglaidingweitupian" > < img src = "' + site_image_url + result.Pinfo[key].PUrl + '" alt = "' + result.Pinfo[key].PName + '" width = "' + result.Pinfo[key].Width + '" height = "' + result.Pinfo[key].Height + '" / > ' + result.Pinfo[key].Sinfo + '< / div > ');
insertoutP();
} else {
editor.insertHtml('< img src = "' + site_image_url + result.Pinfo[key].PUrl + '" alt = "' + result.Pinfo[key].PName + '" width = "' + result.Pinfo[key].Width + '" height = "' + result.Pinfo[key].Height + '" / > ');
}
use_pictures = use_pictures + result.Pinfo[key].ID + ':' + result.Pinfo[key].PUrl + ':' + result.Pinfo[key].wh + ',';
}
$("#use_pictures").val(use_pictures);
}
}
//搜索产品列表
function select_product_list(product_type, product_name) {
$("#product_list_ul").html('waiting...');
$.ajax({
type: "post",
dataType: "json",
url: "<?php echo site_url ( 'information/get_products/' ); ?> ",
data: {'product_type': product_type, 'product_name': product_name},
success: function(data, textStatus) {
for (var key in data) {
if (data[key].name == 'ok') {
$("#product_list_ul").html(data[key].value);
return true;
}
}
},
error: function() {
$.modaldialog.error('发生错误, 请联系YCC');
return false;
}
});
}
//选择绑定的产品
function select_product(product_type, product_id, product_title) {
$("#ic_ht_product_id").val(product_id);
$("#ic_ht_product_type").val(product_type);
$("#ht_product_title").val(product_title);
$('#ht_product_box').hide();
}
//格式化url
function format_url() {
var url = $('#ic_url').val();
$('#ic_url').val(url.toLowerCase().replace(/ /g, '-'));
return true;
}
//添加绑定景点
function add_landscape(area_id, lsi_sn) {
var urlReQuery = "<?php echo site_url ( 'information/add_landscape/' ); ?> ";
$.ajax({
type: "get",
url: urlReQuery + '/' + area_id + '/' + lsi_sn,
success: function(data, textStatus) {
var dataArray = $.parseJSON(data);//JSON.parse(data);
for (var key in dataArray) {
if (dataArray[key].name == 'ok') {
window.location.href = dataArray[key].value;
return true;
} else if (dataArray[key].name == 'no') {
$.modaldialog.error(dataArray[key].value);
return false;
}
}
},
error: function() {
$.modaldialog.error('发生错误, 请联系YCC');
return false;
}
});
}
//跳转到前台页面
function goto_page() {
var site_url = '<?php echo $this -> config -> item ( 'site_url' ) ?> ';
$('#goto_page_button').attr("href", site_url + $('#ic_url').val());
return true;
}
//更新缓存
function get_update_cache_url() {
$('#auto_update_cache_checkbox').val($('#ic_url').val());
return true;
}
function init_recommend_popover(elem,container){
$(elem).popover({
'container':container,
'title':'title',
'content':function(){},
'placement':'bottom',
'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 > '
});
$(elem).on('shown.bs.popover', function () {
var right_offset=document.documentElement["clientWidth"]-$(elem)[0].getBoundingClientRect().right;
if (right_offset< 300 ) {
$(elem).next(".recommend_info_popover").attr('style',"left:"+(-(400-right_offset))+"px !important;display: block;");
};
var ic_id_list=$(elem).val();
if (ic_id_list=='' || $("#recommended_list").html()!='') {
return false;
};
$("#recommended_list").html('< img src = "/css/images/loading.gif" > ');
var url="<?php echo site_url ( '/welcome/search_by_icid/' ); ?> ";
$.post(url,{"ic_id_list":ic_id_list},function(html){
$("#recommended_list").html(html);
});
}).on('hidden.bs.popover',function(){
setTimeout(function(){
$(".recommend_info_popover").remove();
},0);
});
$("body").on("click","#btn_search_article_list",function(){
$("#recommend_list").html('< img src = "/css/images/loading.gif" > ');
var url="<?php echo site_url ( '/welcome/search/1' ); ?> ";
var key=$("#article_key").val();
var ic_id_list=$(elem).val();
$.post(url,{'keywords':key,"ic_id_list":ic_id_list},function(html){
$("#recommend_list").html(html);
});
});
}
//初始化树形菜单
$(document).ready(function() {
setTimeout(function(){
$("#treeDemo").css({"overflow-y":"hidden"});
},100);
$.fn.zTree.init($("#treeDemo"), setting, zNodes);
var zTree = $.fn.zTree.getZTreeObj('treeDemo');
var nodes = zTree.getNodes();
//是否自动展开节点
if (nodes.length > 0) {
zTree.expandNode(nodes[0], true, false, true);
//展开子节点
//for(var key in nodes[0].children){
// zTree.expandNode(nodes[0].children[key], true, false, true);
//}
}
//选择节点
var node = zTree.getNodeByParam("id",<?php echo $information -> is_id ?> );
zTree.selectNode(node);
change_seo_count('ic_seo_title');
change_seo_count('ic_seo_description');
//ajax获取获取google分析数据的日期设置
$("#startdate,#enddate").datepicker({
showButtonPanel: true
});
$("#total-analytics>a").trigger("click");
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");
});
var editor;
KindEditor.ready(function(K) {
editor = K.create('#ic_content', {
width: '100%',
height: '560px',
//fileManagerJson:'/js/kcfinder/browse.php',
//allowFileManager:true,
filterMode: false,
allowImageUpload: false,
items: [
'ace','|','formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'strikethrough', 'lineheight', '|',
'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', '|',
'clearhtml', 'removeformat', '|','plainpaste', 'wordpaste', '|','table', 'hr', 'image', 'pagebreak','link', 'unlink','mediacits','character','fullscreen'
],
afterChange: function() {
K('#display_count').html(getWordCount(editor.text()));
content_length = this.count('text');
$("iframe.ke-edit-iframe").contents().find(".ke-content").css({"padding-right":"25px","padding-top":"12px"});
}
});
});
//新闻日历
$(function() {
$("#meta_news_createdate").datepicker({
showButtonPanel: true
});
})
//节庆开始日期
$(function() {
$("#meta_festival_start").datepicker({
showButtonPanel: true
});
})
//节庆结束日期
$(function() {
$("#meta_festival_end").datepicker({
showButtonPanel: true
});
})
//团购结束时间
$(function() {
$("#meta_groupon_end").datepicker({
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 = "well nopadding" style = "border:none !important;padding-top:0px;" >
< 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" >< i class = "text-muted glyphicon glyphicon-retweet" ></ i ></ a ></ li >
< / ul >
< / div >
< / div >
< div class = "col-sm-19 nopadding" style = "background:#f5f5f5;" >
< form id = "form_information_edit" name = "form_information_edit" method = "post" action = " <?php echo site_url ( 'information/edit_save' ) ?> " >
< div class = "col-sm-20 nopadding" style = "background:#fff;border-right:1px solid #ddd;" >
< a name = "warning" > < / a >
< div class = "col-xs-24" >
< div class = "row" >
< div class = "col-xs-24 btn-sm" > < / div >
< div class = "col-xs-7" >
< label > 信息标题 & ID: <?php echo $information -> ic_id ; ?> </ label >
< / div >
< div class = "col-xs-17" id = "total-analytics" > < a href = "javascript:void(0);" onClick = "get_analytics_ajax('get-analytic-form', 'total-analytics', '1');" > 获取google分析汇总数据< / a > < / 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 ; ?> " >
< / div >
< div class = "col-xs-24 btn-sm" > < / div >
< / div >
< div class = "col-xs-12 nopadding" >
< div class = "form-group" >
< div class = "col-xs-24 nopadding" > 链接标题< / div >
< input class = "form-control" type = "text" id = "ic_url_title" name = "ic_url_title" value = " <?php echo $information -> ic_url_title ; ?> " >
< / div >
< / div >
< 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 >
< / div >
< input class = "form-control" type = "text" id = "ic_url" name = "ic_url" value = " <?php echo $information -> ic_url ; ?> " >
< / div >
< div class = "col-xs-24 edit_tool nopadding" >
< a href = "javascript:void(0);" onclick = "open_stext();" title = "系列站-模板编辑" > < i class = "glyphicon glyphtext-muted glyphicon glyphicon-magnet text-muted pull-right" > < / i > < / a >
< a href = "javascript:void(0);" onclick = "open_sl();" title = "系列站-模板编辑(新版)" > < i class = "glyphicon glyphtext-muted glyphicon glyphicon-pencil text-muted pull-right" > < / i > < / a >
< i class = "icon-stop icon-white pull-right" > < / i >
< i class = "icon-stop icon-white pull-right" id = "display_count" > -< / i >
< / div >
< / div >
< 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" placeholder = "信息简介" style = "border:none;border-bottom:1px solid #bbb;" > <?php echo $information -> ic_summary ; ?> </ textarea >
< div class = "col-xs-24" >
< label > SEO标题< em class = "pull-right muted" id = "ic_seo_title_count" > < / em > < / label >
< input class = "form-control" type = "text" onkeyup = "change_seo_count(this.id);" id = "ic_seo_title" name = "ic_seo_title" value = " <?php echo $information -> ic_seo_title ; ?> " >
< / div >
< div class = "col-xs-24" >
< label > SEO描述< em class = "pull-right muted" id = "ic_seo_description_count" > < / em > < / label >
< textarea class = "form-control" onkeyup = "change_seo_count(this.id);" id = "ic_seo_description" name = "ic_seo_description" > <?php echo $information -> ic_seo_description ; ?> </ textarea >
< / div >
< div class = "col-xs-24" >
< label > SEO关键词< / label >
< input class = "form-control" type = "text" id = "ic_seo_keywords" name = "ic_seo_keywords" value = " <?php echo $information -> ic_seo_keywords ; ?> " >
< / div >
< div class = "col-xs-24 nopadding" >
< div class = "col-sm-12" >
< label > 推荐线路< / label >
< input class = "form-control" type = "text" id = "ic_recommend_tours" name = "ic_recommend_tours" placeholder = "cht-1,cht12,gm-1," value = " <?php echo $information -> ic_recommend_tours ; ?> " >
< / div >
< div class = "col-sm-12" >
< label > 小包价< / label >
< input class = "form-control" type = "text" id = "ic_recommend_packages" name = "ic_recommend_packages" value = " <?php echo $information -> ic_recommend_packages ; ?> " >
< / div >
< / div >
< 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 ; ?> " />
< input type = "hidden" name = "is_id" value = " <?php echo $information -> is_id ; ?> " />
< input type = "hidden" name = "is_parent_id" value = " <?php echo $information -> is_parent_id ; ?> " />
< input type = "hidden" name = "is_path" value = " <?php echo $information -> is_path ; ?> " />
< input type = "hidden" name = "is_level" value = " <?php echo $information -> is_level ; ?> " />
< input type = "hidden" name = "is_sort" value = " <?php echo $information -> is_sort ; ?> " />
< input type = "hidden" name = "is_sitecode" id = "is_sitecode" value = " <?php echo $information -> is_sitecode ; ?> " />
< input type = "hidden" name = "is_datetime" value = " <?php echo $information -> is_datetime ; ?> " />
< input type = "hidden" name = "ic_id" value = " <?php echo $information -> ic_id ; ?> " />
< input type = "hidden" name = "ic_sitecode" value = " <?php echo $information -> ic_sitecode ; ?> " />
< input type = "hidden" name = "ic_ht_area_id" value = " <?php echo $rootInformation -> ic_ht_area_id ; ?> " />
< input type = "hidden" name = "ic_ht_area_type" value = " <?php echo $rootInformation -> ic_ht_area_type ; ?> " />
< input type = "hidden" name = "site_url" id = "site_url" value = " <?php echo $this -> config -> item ( 'site_url' ); ?> " >
< input type = "hidden" name = "use_pictures" id = "use_pictures" value = "" / >
< p > < / p >
< div class = "col-xs-24" >
< label > < a href = "javascript:void(0);" onclick = "$('#customize').toggle();" > 自定义选项< / a > < / label >
< / div >
< div id = "customize" class = "col-xs-24" style = "display:none;" >
<!-- 自定义选项 -->
< div class = "row" >
< div class = "col-sm-5" >
< label > 展示列表图片
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_use_list_picture', $('#meta_use_list_picture').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_use_list_picture', $('#meta_use_list_picture').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "在详细页中是否显示列表图片." > < i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_use_list_picture" id = "meta_use_list_picture" class = "form-control" >
< option value = "yes" > 展示< / option >
< option <?php echo get_meta ( $information -> ic_id , 'meta_use_list_picture' ) === 'no' ? 'selected' : FALSE ; ?> value = "no" > 不展示</ option >
< / select >
< / div >
< div class = "col-sm-5" >
< label > 附加图片地址
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_addon_picture', $('#meta_addon_picture').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_addon_picture', $('#meta_addon_picture').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "为信息绑定更多图片." > < i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_addon_picture" id = "meta_addon_picture" type = "text" class = "form-control" value = " <?php echo get_meta ( $information -> ic_id , 'meta_addon_picture' ); ?> " />
< / div >
< div class = "col-sm-5 meta_recommend_info_box" >
< label > 推荐信息
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_recommend_info', $('#meta_recommend_info').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_recommend_info', $('#meta_recommend_info').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "这是网前的 You Might Like 栏目,填写推荐信息ID, 以,(英文逗号)分隔." > < i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_recommend_info" id = "meta_recommend_info" type = "text" class = "form-control" placeholder = "124343,8784," value = " <?php echo get_meta ( $information -> ic_id , 'meta_recommend_info' ); ?> " />
< / div >
< div class = "col-sm-5 meta_related_info_box" >
< label > 相关文章
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_related_info', $('#meta_related_info').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_related_info', $('#meta_related_info').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "这是网前的 Related article 栏目,填写相关文章推荐信息的ID, 以,(英文逗号)分隔." > < i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_related_info" id = "meta_related_info" type = "text" class = "form-control" placeholder = "124343,8784," value = " <?php echo get_meta ( $information -> ic_id , 'meta_related_info' ); ?> " />
< / div >
< div class = "col-sm-4 meta_bread_info_box" >
< label > 面包屑
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_bread_info', $('#meta_bread_info').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_bread_info', $('#meta_bread_info').val())" >< i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "自定义面包屑导航, 填写文章ID, 以英文逗号分隔." > < i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_bread_info" id = "meta_bread_info" type = "text" class = "form-control" placeholder = "124343,8784," value = " <?php echo get_meta ( $information -> ic_id , 'meta_bread_info' ); ?> " />
< / div >
< / div >
<?php if ( $information -> ic_sitecode == 'cht' ) { ?>
< div class = "row" >
< div class = "col-sm-5" >
< label > QA展示
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_no_qa', $('#meta_no_qa').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_no_qa', $('#meta_no_qa').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "告诉前台是否展示QA." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_no_qa" id = "meta_no_qa" class = "form-control" >
< option value = "yes" > 展示< / option >
< option <?php echo get_meta ( $information -> ic_id , 'meta_no_qa' ) === 'no' ? 'selected' : FALSE ; ?> value = "no" > 不展示</ option >
< / select >
< / div >
< div class = "col-sm-5 <?php if ( $information -> ic_ht_area_type != 'c' ) 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 >
< a href = "javascript:void(0);" title = "只用于景点信息,反馈表中提取的产品评论数量,用于衡量产品受欢迎程度." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_review_count" id = "meta_review_count" type = "text" class = "form-control" value = " <?php echo get_meta ( $information -> ic_id , 'meta_review_count' ); ?> " />
< / div >
< div class = "col-sm-5" >
< label > 热门文章
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_popular', $('#meta_popular').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_popular', $('#meta_popular').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "是否设置为热门文章." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_popular" id = "meta_popular" class = "form-control" >
< option value = "no" > 不推荐< / option >
< option <?php echo get_meta ( $information -> ic_id , 'meta_popular' ) === 'yes' ? 'selected' : FALSE ; ?> value = "yes" > 推荐热门文章</ option >
< / select >
< / div >
< div class = "col-sm-5" >
< label > 在左侧菜单显示
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_show_in_leftmenu', $('#meta_show_in_leftmenu').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_show_in_leftmenu', $('#meta_show_in_leftmenu').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "是否在左侧菜单显示." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_show_in_leftmenu" id = "meta_show_in_leftmenu" class = "form-control" >
< option value = "yes" > 显示< / option >
< option <?php echo get_meta ( $information -> ic_id , 'meta_show_in_leftmenu' ) === 'no' ? 'selected' : FALSE ; ?> value = "no" > 不显示</ option >
< / select >
< / div >
< 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 >
< a href = "javascript:void(0);" title = "可以选择是否显示发布日期和作者,不适合显示日期和作者的页面可以不勾选." > < i class = "text-muted glyphicon glyphtext-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_show_author" id = "meta_show_author" class = "form-control" >
< option value = "yes" > 展示< / option >
< option <?php echo get_meta ( $information -> ic_id , 'meta_show_author' ) === 'no' ? 'selected' : FALSE ; ?> value = "no" > 不展示</ option >
< / select >
< / div >
< / div >
< div class = "row" >
< div class = "col-xs-24" >
< label > 自定义导航
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_navigation', $('#meta_navigation').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_navigation', $('#meta_navigation').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "自定义导航." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< textarea name = "meta_navigation" id = "meta_navigation" class = "form-control" > <?php echo get_meta ( $information -> ic_id , 'meta_navigation' ); ?> </ textarea >
< / div >
< / div >
<?php } ?>
<?php if ( $information -> ic_ht_area_type == 'f' ) { ?>
< label > 信息备注
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_note', $('#meta_note').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_note', $('#meta_note').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "为信息添加备注功能." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_note" id = "meta_note" type = "text" class = "form-control" value = " <?php echo get_meta ( $information -> ic_id , 'meta_note' ); ?> " />
< div class = "row" >
< div class = "col-sm-8" >
< label > 节庆开始日期
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_festival_start', $('#meta_festival_start').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_festival_start', $('#meta_festival_start').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "节庆板块专用,设置开始日期." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_festival_start" id = "meta_festival_start" type = "text" class = "form-control" value = " <?php echo get_meta ( $information -> ic_id , 'meta_festival_start' ); ?> " />
< / div >
< div class = "col-sm-8" >
< label > 节庆结束日期
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_festival_end', $('#meta_festival_end').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_festival_end', $('#meta_festival_end').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "节庆板块专用,设置结束日期." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_festival_end" id = "meta_festival_end" type = "text" class = "form-control" value = " <?php echo get_meta ( $information -> ic_id , 'meta_festival_end' ); ?> " />
< / div >
< div class = "col-sm-8" >
< label > 只读节庆月份
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_festival_only_month', $('#meta_festival_only_month').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_festival_only_month', $('#meta_festival_only_month').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "当前节庆的具体日期不明,只在前台展示月份." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_festival_only_month" id = "meta_festival_only_month" class = "form-control" >
< option value = "no" > 否< / option >
< option <?php echo get_meta ( $information -> ic_id , 'meta_festival_only_month' ) === 'yes' ? 'selected' : FALSE ; ?> value = "yes" > 是</ option >
< / select >
< / div >
< / div >
<?php } ?>
< div class = "row" >
< div class = "col-sm-6" >
< label > 发布时间
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_news_createdate', $('#meta_news_createdate').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_news_createdate', $('#meta_news_createdate').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "信息发布时间." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_news_createdate" id = "meta_news_createdate" type = "text" class = "form-control" value = " <?php echo get_meta ( $information -> ic_id , 'meta_news_createdate' ); ?> " />
< / div >
< div class = "col-sm-6" >
< label > 新闻视频
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_news_video', $('#meta_news_video').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_news_video', $('#meta_news_video').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "新闻绑定的视频地址." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_news_video" id = "meta_news_video" type = "text" class = "form-control" value = " <?php echo get_meta ( $information -> ic_id , 'meta_news_video' ); ?> " />
< / div >
< div class = "col-sm-6" >
< label > 新闻关键词
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_news_keyword', $('#meta_news_keyword').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_news_keyword', $('#meta_news_keyword').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "新闻tags." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_news_keyword" id = "meta_news_keyword" type = "text" class = "form-control" value = " <?php echo get_meta ( $information -> ic_id , 'meta_news_keyword' ); ?> " />
< / div >
< div class = "col-sm-6" >
< label > index选项
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_index_set', $('#meta_index_set').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_index_set', $('#meta_index_set').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "index设置选项" > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_index_set" id = "meta_index_set" class = "form-control" >
< option value = "" > index,follow< / option >
< option <?php echo get_meta ( $information -> ic_id , 'meta_index_set' ) === 'index,nofollow' ? 'selected' : FALSE ; ?> value = "index,nofollow" > index,nofollow</ option >
< option <?php echo get_meta ( $information -> ic_id , 'meta_index_set' ) === 'noindex,follow' ? 'selected' : FALSE ; ?> value = "noindex,follow" > noindex,follow</ option >
< option <?php echo get_meta ( $information -> ic_id , 'meta_index_set' ) === 'noindex,nofollow' ? 'selected' : FALSE ; ?> value = "noindex,nofollow" > noindex,nofollow</ option >
< / select >
< / div >
< / div >
<?php if ( is_series_site ()) { ?>
< div class = "row-fluid" >
< div class = "span4" >
< label > 机票目的地
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_flights_city', $('#meta_flights_city').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_flights_city', $('#meta_flights_city').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "用于配置两地机票的目的地城市名,请输入对应的语种城市." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_flights_city" id = "meta_flights_city" type = "text" class = "span12" value = " <?php echo get_meta ( $information -> ic_id , 'meta_flights_city' ); ?> " />
< / div >
< div class = "span4" >
<?php
$meta_subnavi_arr = array(
'index' => '首页',
'tour' => '线路',
'dest' => '目的地',
'tailormade' => 'tailormade',
'train' => '火车',
'ship' => '游船',
'hotel' => '酒店',
'flight' => '机票',
'info' => '信息',
'deal' => '促销',
'2015' => '2015',
'op' => 'OP',
'best' => '实用信息'
);?>
< 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 >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_subnavi', $('#meta_subnavi').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< 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 = "span12" >
<?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 { ?>
< 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 = "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 >
< / select >
< / div >
<?php if ( $information -> ic_ht_area_type == 't' ) { ?>
< div class = "span4" >
< 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 >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_my_class', $('#meta_my_class').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "系列站专题的自定义样式." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< select name = "meta_my_class" id = "meta_my_class" class = "span12" >
< option value = "" > 默认< / option >
< option <?php echo get_meta ( $information -> ic_id , 'meta_my_class' ) === 'newyear' ? 'selected' : FALSE ; ?> value = "newyear" > 新年</ option >
< option <?php echo get_meta ( $information -> ic_id , 'meta_my_class' ) === 'christmas' ? 'selected' : FALSE ; ?> value = "christmas" > 圣诞</ option >
< / select >
< / div >
< div class = "span4" >
< label > 专题资源文件(css,js,img,etc)
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_z_res', $('#meta_z_res').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_z_res', $('#meta_z_res').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "系列站专题的资源文件(用逗号隔开)." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input type = "text" name = "meta_z_res" value = " <?php echo get_meta ( $information -> ic_id , 'meta_z_res' ); ?> " id = "meta_z_res" />
< / div >
<?php } ?>
< / div >
<?php } ?>
<?php if ( $information -> ic_ht_area_type == 'g' ) { ?>
< div class = "row-fluid" >
< div class = "span3" >
< label > 最大团购数
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_groupon_init', $('#meta_groupon_init').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_groupon_init', $('#meta_groupon_init').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "初始团购数." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_groupon_init" id = "meta_groupon_init" type = "text" class = "span12" value = " <?php echo get_meta ( $information -> ic_id , 'meta_groupon_init' ); ?> " />
< / div >
< div class = "span3" >
< label > 团购已成行数
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_groupon_count', $('#meta_groupon_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_groupon_count', $('#meta_groupon_count').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "团购成行数." > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input name = "meta_groupon_count" id = "meta_groupon_count" type = "text" class = "span12" value = " <?php echo get_meta ( $information -> ic_id , 'meta_groupon_count' ); ?> " />
< / div >
< div class = "span3" >
< label > 线路原价
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_groupon_price', $('#meta_groupon_price').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_groupon_price', $('#meta_groupon_price').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "线路原价" > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input type = "text" name = "meta_groupon_price" class = "span12" value = " <?php echo get_meta ( $information -> ic_id , 'meta_groupon_price' ); ?> " id = "meta_groupon_price" />
< / div >
< div class = "span3" >
< label > 团购结束时间
< a href = "javascript:void(0);" onclick = "meta('delete', ' <?php echo $information -> ic_id ; ?> ', 'meta_groupon_end', $('#meta_groupon_end').val())" >< i class = "text-muted glyphicon glyphicon-remove" ></ i ></ a >
< a href = "javascript:void(0);" onclick = "meta('save', ' <?php echo $information -> ic_id ; ?> ', 'meta_groupon_end', $('#meta_groupon_end').val())" >< i class = "text-muted glyphicon glyphicon-hdd" ></ i ></ a >
< a href = "javascript:void(0);" title = "团购结束时间" > < i class = "text-muted glyphicon glyphicon-question-sign" > < / i > < / a >
< / label >
< input type = "text" name = "meta_groupon_end" class = "span12" value = " <?php echo get_meta ( $information -> ic_id , 'meta_groupon_end' ); ?> " id = "meta_groupon_end" />
< / div >
< / div >
<?php } ?>
<!-- 自定义选项 -->
< / div >
< / div >
< div class = "col-sm-4 well info-right-col" style = "height:1004px;padding:0 12px;border:none;" > <!-- 右侧栏 -->
< 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();" >
< img src = " <?php echo $information -> ic_photo ? $this -> config -> item ( 'media_image_url' ) . $information -> ic_photo : '/css/images/uploadPic.jpg' ; ?> " name = "ic_photo_img" id = "ic_photo_img" class = "img-polaroid col-xs-24 nopadding" height = "115" />
< / a >
< div class = "clearfix" > < / div >
< label > 图片地址< / label >
< input class = "form-control" type = "text" name = "ic_photo" id = "ic_photo" value = " <?php echo $information -> ic_photo ; ?> " />
< div class = "clearfix" > < / div >
< label > 信息类型< / label >
< select name = "ic_type" id = "ic_type" class = "form-control" >
<?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 } ?>
< / select >
< label > 模板< / 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 = '';
?>
< option <?php echo $select_str ; ?> value = " <?php echo $value ; ?> " > <?php echo $key ; ?> </ option >
<?php } ?>
< / select >
< label > 是否作为面包屑显示< / label >
< select name = "ic_show_bread_crumbs" id = "ic_show_bread_crumbs" class = "form-control" >
< option <?php echo $information -> ic_show_bread_crumbs == 0 ? 'selected' : FALSE ; ?> value = "0" > 不显示</ option >
< option <?php echo $information -> ic_show_bread_crumbs == 1 ? 'selected' : FALSE ; ?> value = "1" > 显示</ option >
< / select >
< 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';
}
}
?>
< 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 = '';
?>
< option <?php echo $select_str ; ?> value = " <?php echo $author_item -> a_id ; ?> " > <?php echo $author_item -> a_name ; ?> </ option >
<?php } ?>
< / select >
< label > 是否发布< / label >
< select name = "ic_status" id = "ic_status" class = "form-control" >
< option <?php echo $information -> ic_status == 0 ? 'selected' : FALSE ; ?> value = "0" > 不发布</ option >
< option <?php echo $information -> ic_status == 1 ? 'selected' : FALSE ; ?> value = "1" > 发布</ option >
< / select >
< div class = "clearfix" > < / div >
< label class = "checkbox col-xs-24" style = "font-weight: normal;padding-left: 21px;" >
< input type = "checkbox" name = "ignore_seo_check" id = "ignore_seo_check" / > 忽略SEO检测
< / label >
< div class = "clearfix" > < / div >
< 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 ()) { ?>
< 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 } ?>
< 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();" > 自适应检测< / button >
< span id = "mobile_friendly_status" > < / span >
< / p >
< div class = "btn-group col-xs-24 nopadding pull-right " >
< a href = "javascript:void(0);" class = "btn btn-primary col-xs-19" onclick = "editor.sync();if(information_check()!=false){submitForm('form_information_edit');}" > 保存修改< / a >
< button class = "btn dropdown-toggle btn-primary col-xs-5" data-toggle = "dropdown" >
< span class = "caret" > < / span >
< / button >
< 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 = "deleteInfo(' <?php echo $information -> is_id ; ?> ');" > 删除信息</ a ></ li >
< li class = "divider" > < / li >
< li class = "dropdown-submenu pull-left" >
< a tabindex = "-1" href = "#" > 历史记录< / a >
< ul class = "dropdown-menu" >
<?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 } ?>
< / ul >
< / li >
< / ul >
< / div >
< div class = "clearfix" > < / div >
< p > < / p >
< div class = "error-tips hide" style = "background-color: rgb(242, 222, 222);padding:5px; overflow: hidden;" >
< ol id = "error-tops" style = "padding-left:20px;" > < / ol >
< / div >
< / div > <!-- 右侧栏 -->
< / form >
< / div >
< / div >
< / div >
< div class = "modal fade" id = "myModal" tabindex = "-1" role = "dialog" aria-labelledby = "myModalLabel" >
< div class = "modal-dialog modal-lg" role = "document" style = "width:90%;" >
< div class = "modal-content" style = "min-height:720px;" >
< div class = "modal-header" >
< button type = "button" class = "close" data-dismiss = "modal" aria-label = "Close" > < span aria-hidden = "true" > × < / span > < / button >
< div id = "myModalLabel" style = "line-height:30px;overflow:hidden" >
< h3 class = "col-xs-10 pull-left nopadding" style = "margin:0;" > 页面访问量明细表< / h3 >
< form class = "col-xs-12" style = "margin-bottom:0px;" id = "get-analytic-form" method = "post" action = " <?php echo site_url ( 'keyworlds/get_analytics_by_date' ); ?> " >
< div class = "col-xs-8 nopadding-L" >
< input class = "form-control pull-left input-sm" style = "margin-bottom:0;" size = "16" id = "startdate" name = "startdate" type = "text" value = "开始时间" >
< / div >
< div class = "col-xs-8 nopadding-L" >
< input class = "form-control pull-left input-sm" style = "margin-bottom:0;" size = "16" id = "enddate" name = "enddate" type = "text" placeholder = "结束时间" >
< / div >
< div class = "col-xs-4 nopadding-L" >
< input type = "hidden" name = "pagepath" value = " <?php echo $information -> ic_url ; ?> " >
< button type = "button" class = "btn btn-default btn-sm" onClick = "get_analytics_ajax('get-analytic-form', 'analytics-content', '0');" > 查询< / button >
< / div >
< / form >
< / div >
< / div >
< div class = "modal-body" id = "analytics-content" >
< / div >
< / div >
< / div >
< / div >