<script src="/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    var content_length = 0;
    function open_stext() {
        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); ?>&site_code=<?php echo $this->config->item('site_code'); ?>&site_lgc=<?php echo $this->config->item('site_lgc'); ?>';
        window.open(sl_url, "SL", "fullscreen=yes,top=0,left=0,scrollbars,scrollbars,height=" + (window.screen.availHeight - 50) + ",width=" + (window.screen.availWidth) + 10);
        /*
        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() {
        var sl_url = '/lmrxedit/模板工具SOP.xlsx';
        window.open(sl_url);
    }

    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};
    }

    //初始化树形菜单
    $(document).ready(function() {
        $.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");
    });

    var editor;
    KindEditor.ready(function(K) {
        editor = K.create('#ic_content', {
            width: '100%',
            height: '480px',
            //fileManagerJson:'/js/kcfinder/browse.php',
            //allowFileManager:true,
            filterMode: false,
            allowImageUpload: false,
            items: [
                'ace', '|', 'undo', 'redo', '|', 'preview', 'cut', 'copy', 'paste', 'plainpaste', 'wordpaste', '|',
                'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', '|',
                'clearhtml', 'quickformat', 'removeformat', 'selectall', '/', 'fullscreen', '|',
                'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
                'italic', 'underline', 'strikethrough', 'lineheight', '|', 'table', 'hr', 'emoticons', 'image', 'map', 'pagebreak',
                'link', 'unlink', '|', 'about', '|', 'source'
            ],
            afterChange: function() {
                K('#display_count').html(getWordCount(editor.text()));
                content_length = this.count('text');
            }
        });
    });

    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"> <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>');
                } 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 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() {
        $("#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="row-fluid">
    <div class="span3">
        <div class="well" >
            <ul id="treeDemo" name="treeDemo" class="ztree span12" style="height:938px;overflow-y:scroll;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="icon-retweet"></i></a></li>
            </ul>

        </div>
    </div>

    <div class="span9">

        <form id="form_information_edit" name="form_information_edit" method="post" action="<?php echo site_url('information/edit_save') ?>">

            <div class="span9">

                <a name="warning"></a>

                <div class="row-fluid" style="padding-top:10px;">
                    <div class="span3">
                        <label>信息标题 & ID: <?php echo $information->ic_id; ?></label>
                    </div>
                    <div class="span9" id="total-analytics"><a href="javascript:void(0);" onClick="get_analytics_ajax('get-analytic-form', 'total-analytics', '1');">获取google分析汇总数据</a></div>
                </div>
                <input class="span12" type="text" id="ic_title" style="<?php if ($embody == 1) echo 'border-color:green;'; ?>" name="ic_title" value="<?php echo $information->ic_title; ?>" >


                <div class="row-fluid">
                    <div class="span4">
                        <label>链接标题</label>
                        <input class="span12" type="text" id="ic_url_title" name="ic_url_title" value="<?php echo $information->ic_url_title; ?>" >
                    </div>

                    <div class="span8">
                        <label>链接地址
                            <a href="javascript:void(0);" onclick="format_url()" title="格式化URL"><i class=" icon-flag"></i></a>
                            <a href="javascript:void(0);" onclick="goto_page();" id="goto_page_button" name="goto_page_button" target="_blank" title="查看" ><i class="icon-eye-open"></i></a>
                        </label>
                        <input class="span12" type="text" id="ic_url" name="ic_url"  value="<?php echo $information->ic_url; ?>" >
                    </div>
                </div>

                <a href="javascript:void(0);" onclick="openKCFinder_Content();" title="插入内容图片"><i class="icon-picture pull-right"></i></a>
                <a href="javascript:void(0);" onclick="open_stext();" title="模板编辑"><i class="icon-magnet pull-right"></i></a>
                <a href="javascript:void(0);" onclick="open_sl();" title="文档"><i class="icon-book pull-right"></i></a>

                <i class="icon-stop icon-white pull-right"></i>
                <i class="icon-stop icon-white" id="display_count">-</i>
                <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="span12" placeholder="信息简介"><?php echo $information->ic_summary; ?></textarea>                            

                <label>SEO标题<em class="pull-right muted" id="ic_seo_title_count"></em></label>
                <input class="span12" type="text" onkeyup="change_seo_count(this.id);" id="ic_seo_title" name="ic_seo_title" value="<?php echo $information->ic_seo_title; ?>" >


                <label>SEO描述<em class="pull-right muted" id="ic_seo_description_count"></em></label>
                <textarea class="span12" onkeyup="change_seo_count(this.id);" id="ic_seo_description" name="ic_seo_description" ><?php echo $information->ic_seo_description; ?></textarea>

                <label>SEO关键词</label>
                <input class="span12" type="text" id="ic_seo_keywords" name="ic_seo_keywords" value="<?php echo $information->ic_seo_keywords; ?>" >


                <div class="row-fluid">
                    <div class="span6">
                        <label>推荐线路</label>
                        <input class="span12" 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="span6">
                        <label>小包价</label>
                        <input class="span12" 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>

                <label><a href="javascript:void(0);" data-toggle="collapse" data-target="#customize">自定义选项</a>　</label>

                <div id="customize" class="collapse"> 

                    <!-- 自定义选项 -->

                    <div class="row-fluid">




                        <div class="span3">
                            <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="icon-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="icon-hdd"></i></a>
                                <a href="javascript:void(0);" title="在详细页中是否显示列表图片."><i class="icon-question-sign"></i></a>
                            </label>
                            <select name="meta_use_list_picture" id="meta_use_list_picture" class="span12" >
                                <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="span3">
                            <label>附加图片地址
                                <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_addon_picture', $('#meta_addon_picture').val())"><i class="icon-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="icon-hdd"></i></a>
                                <a href="javascript:void(0);" title="为信息绑定更多图片."><i class="icon-question-sign"></i></a>
                            </label>
                            <input name="meta_addon_picture" id="meta_addon_picture" type="text"  class="span12"  value="<?php echo get_meta($information->ic_id, 'meta_addon_picture'); ?>" />
                        </div>

                        <div class="span3">
                            <label>推荐信息
                                <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_recommend_info', $('#meta_recommend_info').val())"><i class="icon-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="icon-hdd"></i></a>
                                <a href="javascript:void(0);" title="添加推荐信息ID，以,(逗号)分隔."><i class="icon-question-sign"></i></a>
                            </label>
                            <input name="meta_recommend_info" id="meta_recommend_info" type="text"  class="span12" placeholder="124343,8784," value="<?php echo get_meta($information->ic_id, 'meta_recommend_info'); ?>" />
                        </div>


                        <div class="span3">
                            <label>是否显示作者
                                <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_show_author', $('#meta_show_author').val())"><i class="icon-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="icon-hdd"></i></a>
                                <a href="javascript:void(0);" title="可以选择是否显示发布日期和作者，不适合显示日期和作者的页面可以不勾选."><i class="icon-question-sign"></i></a>
                            </label>
                            <select name="meta_show_author" id="meta_show_author" class="span12" >
                                <option value="yes" >展示</option>
                                <option <?php echo get_meta($information->ic_id, 'meta_show_author') === 'no' ? 'selected' : FALSE; ?> value="no" >不展示</option>	   
                            </select>
                        </div>   


                    </div>

                    <?php if ($information->ic_sitecode == 'cht') { ?>

    <?php if ($information->ic_ht_area_type == 'c') { ?>
                            <div class="row-fluid">
                                <div class="span6">
                                    <label>Tripadvisor推荐
                                        <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_info_recommend_ta', $('#meta_info_recommend_ta').val())"><i class="icon-remove"></i></a>
                                        <a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_info_recommend_ta', $('#meta_info_recommend_ta').val())"><i class="icon-hdd"></i></a>
                                        <a href="javascript:void(0);" title="用于定义此信息是否在Tripadvisor|LonelyPlanet有过推荐，输入框中填写推荐的次序数字，不知道次序则填写字母 R."><i class="icon-question-sign"></i></a>
                                    </label>
                                    <input name="meta_info_recommend_ta" id="meta_info_recommend_ta" type="text"  class="span12"  value="<?php echo get_meta($information->ic_id, 'meta_info_recommend_ta'); ?>" />
                                </div>

                                <div class="span6">
                                    <label>LonelyPlanet推荐
                                        <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_info_recommend_lp', $('#meta_info_recommend_lp').val())"><i class="icon-remove"></i></a>
                                        <a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_info_recommend_lp', $('#meta_info_recommend_lp').val())"><i class="icon-hdd"></i></a>
                                        <a href="javascript:void(0);" title="用于定义此信息是否在Tripadvisor|LonelyPlanet有过推荐，输入框中填写推荐的次序数字，不知道次序则填写字母 R."><i class="icon-question-sign"></i></a>
                                    </label>
                                    <input name="meta_info_recommend_lp" id="meta_info_recommend_lp" type="text"  class="span12"  value="<?php echo get_meta($information->ic_id, 'meta_info_recommend_lp'); ?>" />
                                </div>
                            </div>

                            <label>景点评论数
                                <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_review_count', $('#meta_review_count').val())"><i class="icon-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="icon-hdd"></i></a>
                                <a href="javascript:void(0);" title="只用于景点信息，反馈表中提取的产品评论数量，用于衡量产品受欢迎程度."><i class="icon-question-sign"></i></a>
                            </label>
                            <input name="meta_review_count" id="meta_review_count" type="text"  class="span3"  value="<?php echo get_meta($information->ic_id, 'meta_review_count'); ?>" />

    <?php } ?>

                        <div class="row-fluid">
                            <div class="span3">
                                <label>QA展示
                                    <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_no_qa', $('#meta_no_qa').val())"><i class="icon-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="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="告诉前台是否展示QA."><i class="icon-question-sign"></i></a>
                                </label>
                                <select name="meta_no_qa" id="meta_no_qa" class="span12" >
                                    <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="span3">
                                <label>Discover more
                                    <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_discover_more', $('#meta_discover_more').val())"><i class="icon-remove"></i></a>
                                    <a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_discover_more', $('#meta_discover_more').val())"><i class="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="告诉前台是否展示discover more."><i class="icon-question-sign"></i></a>
                                </label>
                                <select name="meta_discover_more" id="meta_discover_more" class="span12" >
                                    <option value="no" >不展示</option>
                                    <option <?php echo get_meta($information->ic_id, 'meta_discover_more') === 'yes' ? 'selected' : FALSE; ?> value="yes" >展示</option>
                                </select>
                            </div>


                            <div class="span3">
                                <label>热门文章
                                    <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_popular', $('#meta_popular').val())"><i class="icon-remove"></i></a>
                                    <a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_popular', $('#meta_popular').val())"><i class="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="是否设置为热门文章."><i class="icon-question-sign"></i></a>
                                </label>
                                <select name="meta_popular" id="meta_popular" class="span12" >
                                    <option value="no" >不推荐</option>
                                    <option <?php echo get_meta($information->ic_id, 'meta_popular') === 'yes' ? 'selected' : FALSE; ?> value="yes" >推荐热门文章</option>
                                </select>
                            </div>

                            <div class="span3">
                                <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="icon-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="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="是否在左侧菜单显示."><i class="icon-question-sign"></i></a>
                                </label>
                                <select name="meta_show_in_leftmenu" id="meta_show_in_leftmenu" class="span12" >
                                    <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>

                        <div class="row-fluid">
                            <div class="span12">
                                <label>自定义导航
                                    <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_navigation', $('#meta_navigation').val())"><i class="icon-remove"></i></a>
                                    <a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_navigation', $('#meta_navigation').val())"><i class="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="自定义导航."><i class="icon-question-sign"></i></a>
                                </label>
                                <textarea name="meta_navigation" id="meta_navigation" class="span12" ><?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="icon-remove"></i></a>
                            <a href="javascript:void(0);"  onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_note', $('#meta_note').val())"><i class="icon-hdd"></i></a>
                            <a href="javascript:void(0);"  title="为信息添加备注功能."><i class="icon-question-sign"></i></a>
                        </label>
                        <input name="meta_note" id="meta_note" type="text"  class="span12"  value="<?php echo get_meta($information->ic_id, 'meta_note'); ?>" />

                        <div class="row-fluid">
                            <div class="span4">
                                <label>节庆开始日期
                                    <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_festival_start', $('#meta_festival_start').val())"><i class="icon-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="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="节庆板块专用，设置开始日期."><i class="icon-question-sign"></i></a>
                                </label>
                                <input name="meta_festival_start" id="meta_festival_start" type="text"  class="span12"  value="<?php echo get_meta($information->ic_id, 'meta_festival_start'); ?>" />
                            </div>

                            <div class="span4">
                                <label>节庆结束日期
                                    <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_festival_end', $('#meta_festival_end').val())"><i class="icon-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="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="节庆板块专用，设置结束日期."><i class="icon-question-sign"></i></a>
                                </label>
                                <input name="meta_festival_end" id="meta_festival_end" type="text"  class="span12"  value="<?php echo get_meta($information->ic_id, 'meta_festival_end'); ?>" />
                            </div>

                            <div class="span4">
                                <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="icon-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="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="当前节庆的具体日期不明，只在前台展示月份."><i class="icon-question-sign"></i></a>
                                </label>
                                <select name="meta_festival_only_month" id="meta_festival_only_month" class="span12" >
                                    <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-fluid">
                        <div class="span3">
                            <label>发布时间
                                <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_news_createdate', $('#meta_news_createdate').val())"><i class="icon-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="icon-hdd"></i></a>
                                <a href="javascript:void(0);" title="信息发布时间."><i class="icon-question-sign"></i></a>
                            </label>
                            <input name="meta_news_createdate" id="meta_news_createdate" type="text"  class="span12"  value="<?php echo get_meta($information->ic_id, 'meta_news_createdate'); ?>" />

                        </div>

                        <div class="span3">
                            <label>新闻视频
                                <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_news_video', $('#meta_news_video').val())"><i class="icon-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="icon-hdd"></i></a>
                                <a href="javascript:void(0);" title="新闻绑定的视频地址."><i class="icon-question-sign"></i></a>
                            </label>
                            <input name="meta_news_video" id="meta_news_video" type="text"  class="span12"  value="<?php echo get_meta($information->ic_id, 'meta_news_video'); ?>" />
                        </div>

                        <div class="span3">
                            <label>新闻关键词
                                <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_news_keyword', $('#meta_news_keyword').val())"><i class="icon-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="icon-hdd"></i></a>
                                <a href="javascript:void(0);" title="新闻tags."><i class="icon-question-sign"></i></a>
                            </label>
                            <input name="meta_news_keyword" id="meta_news_keyword" type="text"  class="span12"  value="<?php echo get_meta($information->ic_id, 'meta_news_keyword'); ?>" />

                        </div>


                        <div class="span3">
                            <label>index选项
                                <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_index_set', $('#meta_index_set').val())"><i class="icon-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="icon-hdd"></i></a>
                                <a href="javascript:void(0);" title="index设置选项"><i class="icon-question-sign"></i></a>
                            </label>
                            <select name="meta_index_set" id="meta_index_set" class="span12" >
                                <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="icon-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="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="用于配置两地机票的目的地城市名，请输入对应的语种城市."><i class="icon-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="icon-remove"></i></a>
                                    <a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_subnavi', $('#meta_subnavi').val())"><i class="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="用于配置此信息对应的一级导航"><i class="icon-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>
                            <div class="span4"> 
                                <label>面包屑显示信息首页
                                    <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_bread_showinfo', $('#meta_bread_showinfo').val())"><i class="icon-remove"></i></a>
                                    <a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_bread_showinfo', $('#meta_bread_showinfo').val())"><i class="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="用于配置专题顶部大图."><i class="icon-question-sign"></i></a>
                                </label>
                                <select name="meta_bread_showinfo" id="meta_bread_showinfo" class="span12" >
                                    <?php if (get_meta($information->ic_id, 'meta_bread_showinfo') == 'yes') { ?>
                                    <option selected="selected" value="yes">yes</option>
                                    <option value="no">no</option>
                                    <?php } else { ?>
                                    <option value="yes">yes</option>
                                    <option selected="selected" value="no">no</option>
                                    <?php } ?>
                                </select>
                            </div>
                            <div class="span4"> 
                                <label>专题顶部大图
                                    <a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_top_img', $('#meta_top_img').val())"><i class="icon-remove"></i></a>
                                    <a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_top_img', $('#meta_top_img').val())"><i class="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="用于配置专题顶部大图."><i class="icon-question-sign"></i></a>
                                </label>
                                <input name="meta_top_img" id="meta_top_img" type="text"  class="span12"  value="<?php echo get_meta($information->ic_id, 'meta_top_img'); ?>" />
                            </div>
                            <?php if ($information->ic_ht_area_type == 'err') { ?>
                                <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="icon-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="icon-hdd"></i></a>
                                        <a href="javascript:void(0);" title="系列站专题的自定义样式."><i class="icon-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="icon-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="icon-hdd"></i></a>
                                        <a href="javascript:void(0);" title="系列站专题的资源文件(用逗号隔开)."><i class="icon-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="icon-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="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="初始团购数."><i class="icon-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="icon-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="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="团购成行数."><i class="icon-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="icon-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="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="线路原价"><i class="icon-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="icon-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="icon-hdd"></i></a>
                                    <a href="javascript:void(0);" title="团购结束时间"><i class="icon-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="span3 well" style="height:1004px;"> <!-- 右侧栏 -->



                <label>标题图片<a href="javascript:void(0);" onclick="delete_root_image();" title="删除图片"><i class="icon-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 span12" /></a>

                <div class="clearfix"></div>

                <label>图片地址</label>
                <input class="span12" 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="span12">
                    <?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>模板<a href="/lmrxedit/模板使用SOP文档.xls" target="_blank" title="文档"><i class="icon-book"></i></a></label>		
                <select name="ic_template" id="ic_template" class="span12">
                    <?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="span12">
                    <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="span12">
                    <option value="" >-</option>	
                    <?php
                    $userinfo=$this->session->userdata('session_admin');
                    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';
                        }elseif (mb_strtolower($userinfo['OPI_Code'])==mb_strtolower($editor_item->OPI_Code)) {
                            $select_str = 'selected';
                        }else{
                            $select_str = '';
                        }
                        ?>
                        <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="span12">
                    <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 inline span12">
                    <input type="checkbox" name="ignore_seo_check" id="ignore_seo_check" />忽略SEO检测
                </label>

                <div class="clearfix"></div>	
                <label class="checkbox inline span12">
                    <input type="checkbox" name="ignore_url_check" id="ignore_url_check" />忽略URL重复
                </label>

                <div class="clearfix"></div>
                <?php if (is_series_site()) { ?>
                    <label class="span12">自动更新静态页面</label>
<?php } else { ?>
                    <label class="checkbox inline span12">
                        <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="span12">
                    <button type="button" id="btn-mobile-friendly" class="btn btn-small" onclick="$('#btn-mobile-friendly').button('loading');$('#mobile_friendly_status').html('');mobile_friendly();">自适应检测</button>
                    <span id="mobile_friendly_status"></span>
                </p>

                <div class="btn-group pull-right <?php if ($is_writeable == 0) echo 'hide'; ?>">
                    <a href="javascript:void(0);" class="btn btn-info"  onclick="editor.sync();
                            submitForm('form_information_edit');
                            information_check();">保存修改</a>
                    <button class="btn dropdown-toggle btn-info " 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 well hide" style="background-color: rgb(242, 222, 222);padding:5px; overflow-y: scroll;height:260px;">
                    <ol id="error-tops"></ol>
                </div>




            </div> <!-- 右侧栏 -->


        </form>



    </div>


</div>
