+
+
+
+
- //跳转到前台页面
- function goto_page() {
- var site_url = 'config->item('site_url') ?>';
- $('#goto_page_button').attr("href", site_url + $('#ic_url').val());
- 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;
- }
- //德语站点跳转测试页面
- function goto_gmtest_page() {
- var site_url = 'http://gm.test/gm.php/information/detail/?static_html_url=';
- $('#goto_test_page_button').attr("href", site_url + $('#ic_url').val());
- return true;
- }
- function goto_test_page_pgr() {
- var site_url = 'http://192.155.250.125:8011/guide.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 = '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());
- return true;
- }
+
- function init_recommend_popover(elem, container) {
- $(elem).popover({
- 'container': container,
- 'title': 'title',
- 'content': function () {
- },
- 'placement': 'bottom',
- 'trigger': 'click',
- 'template': '
'
- });
- $(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('

');
- var url = "";
- $.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);
- });
+ ic_sitecode == 'cht') {
+ ?>
+
+
+
+
+
+
- $("body").on("click", "#btn_search_article_list", function () {
- $("#recommend_list").html('

');
- var url = "";
- 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 () {
- $("#history_log_toggle").hover(function () {
- $(".history_log").css({"display": "block"});
- }, function () {
- });
- $(".history_log").hover(function () {
- },
- function () {
- $(".history_log").css({"display": "none"});
- });
-
- 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",is_id ?>);
- zTree.selectNode(node);
+
+
+
+
- change_seo_count('ic_seo_title');
- change_seo_count('ic_seo_description');
+
- 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");
+
+
- });
+ $vin) {
+ if (in_array($information->is_id, explode(",", $vin->is_path)) && $vin->status == 1 && $vin->id != $information->is_id
+ ) {
+ $children_cnt ++;
+ }
+ }
+ echo "";
+ if ($children_cnt > 0) {
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
- 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', 'template', 'link', 'unlink', 'mediacits', 'character', 'undo', 'source', '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
- });
- })
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+