
<style type="text/css">
    @media(max-width:468px) {
        input#title {width:100%;}
        .add-category .text-left {margin:0px; padding:0px 5px;}
    }
    span.hotspot {float:right; padding-left:10px;}
    .content-nav-tabs .dropdown-menu>.active>a, .content-nav-tabs .dropdown-menu>.active>a:focus, .content-nav-tabs .dropdown-menu>.active>a:hover {
        background:#3b3b3b;
        color:#fff;
    }
</style>
<div class="main-right-box">
    <div class="box add-category" id="box">
        <form method="post" name="form1" action="<?php if(front::$act=='edit') $id="/id/".$data[$primary_key]; else $id=''; echo modify("/act/".front::$act."/table/".$table.$id);?>"
              onsubmit="return returnform(this);">
            <input type="hidden" name="onlymodify" value=""/>
            <h5>
                <?php echo lang_admin('add_columns');?>
                <!--工具栏-->
                <div class="content-eidt-nav pull-right">
                    <a id="fullscreen-btn" class="btn btn-default" style="display:none;">
                        <i class="icon-frame"></i>
                        <?php echo lang_admin('container_fluid');?>
                    </a>
                    <span class="pull-right">
                    <div class="btn-group">
                        <select id="isnav" name="isnav" class="form-control select isnav">
                            <option value="1" selected=""><?php echo lang_admin('show');?></option>
                            <option value="0"><?php echo lang_admin('no_show');?></option>
                        </select>
                    </div>
                    <div class="btn-group">
                        <select id="isshow" name="isshow" class="form-control select isshow">
                            <option value="1" selected="">
                                <?php echo lang_admin('to_examine');?>
                            </option>
                            <option value="0">
                                <?php echo lang_admin('cancellation_of_audit');?>
                            </option>
                        </select>
                    </div>
                    <input  name="submit" value="1" type="hidden">
                        <button class="btn btn-success" type="submit" onclick="mysave()">
                            <span class="glyphicon glyphicon-floppy-disk"></span> <?php echo lang_admin('preservation');?>
                        </button>
                    <a href="#" onclick="gotourl(this)"   data-dataurl="<?php echo url('table/list/table/category');?>" data-dataurlname="<?php echo lang_admin('column_manage');?>" class="btn btn-default">
                        <i class="icon-action-redo"></i>
                    </a>
 <a id="content-eidt-nav-btn" class="btn btn-default" style="display:none;">
                    <i class="icon-close"></i>
</a>
                </span>
                </div>
            </h5>
            <div id="content-eidt-nav"></div>
            <div class="line"></div>
            <div class="blank30"></div>
            <script>
                $(document).ready(function(){
                    $("button").click(function(){
                        $("p").toggle();
                    });
                });
            </script>
            <!--添加方式-->
            <div class="row">
                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('mode');?></div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    <label class="checkbox-inline">
                        <input name="addtype" value="single"  type="radio" checked="checked" onclick="stob(this.value)" /> </label>
                    <?php echo lang_admin('single_strip');?>&nbsp;
                    <label class="checkbox-inline">
                        <input name="addtype" value="batch" type="radio" onclick="stob(this.value)"  >
                    </label>
                    <?php echo lang_admin('batch');?>
                </div>
            </div>
            <div class="clearfix blank20"></div>
            <!--所属栏目-->
            <?php if(isset($shopping) && $shopping){ ?>
            <div id="single" style="display:block;">
                <div class="row">
                    <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('subordinate_columns');?></div>
                    <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                        <select id="catidshopping" name="catidshopping" class="form-control select catidshopping">
                            <option value="0" selected="">{lang_admin('please_choose')}...</option>
                        </select>
                        <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('if_its_a_first_level_column_you_dont_need_to_choose_it');?>"></span>
                    </div>
                </div>
                <?php }else{ ?>
                <div id="single" style="display:block;">
                    <div class="row">
                        <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('subordinate_columns');?></div>
                        <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                            <select id="parentid" name="parentid" class="form-control select parentid">
                                <option value="0" selected="">{lang_admin('please_choose')}...</option>
                            </select>
                            <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('if_its_a_first_level_column_you_dont_need_to_choose_it');?>"></span>
                        </div>
                    </div>
                    <?php } ?>
                    <div class="clearfix blank20"></div>
                    <!--栏目名-->
                    <div class="row">
                        <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><span class="icon-note"></span>&nbsp;<?php echo lang_admin('name');?></div>
                        <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                            <input type="text" class="form-control" name="catname" id="catname" />
                            <p name="messagecatname" style="color: red"></p>
                            <span class="tips icon-info" data-toggle="tooltip"  data-html="ture" data-placement="right" title="<?php echo lang_admin('please_fill_in_the_column_name');?>"></span>
                        </div>
                    </div>
                    <div class="clearfix blank10"></div>
                    <div class="row">
                        <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">
                        </div>
                        <div class="col-xs-12 col-sm-7 col-md-7 col-lg-10 text-left">
                            <ul class="nav nav-tabs content-nav-tabs" role="tablist">
                                <!--信息-->
                                <li role="presentation"><a href="#tag1" aria-controls="#tag1" role="tab" data-toggle="tab"><?php echo lang_admin('information');?></a></li>
                                <!--图片-->
                                <li role="presentation"><a href="#tag3" aria-controls="#tag4" role="tab" data-toggle="tab"><?php echo lang_admin('picture');?></a></li>
                                <!--高级-->
                                <li role="presentation" class="dropdown">
                                    <a href="#" id="myTabDrop1" class="dropdown-toggle" data-toggle="dropdown" aria-controls="myTabDrop1-contents" aria-expanded="false">
                                        <?php echo lang_admin('senior');?>
                                        <span class="caret"></span></a>
                                    <ul class="dropdown-menu" aria-labelledby="myTabDrop1" id="myTabDrop1-contents">
                                        <!--seo-->
                                        <li role="presentation"><a href="#tag2" aria-controls="#tag2" role="tab" data-toggle="tab">SEO</a></li>
                                        <!--权限-->
                                        <li role="presentation"><a href="#tag4" aria-controls="#tag4" role="tab" data-toggle="tab"><?php echo lang_admin('jurisdiction');?></a></li>
                                        <!--自定义-->
                                        <li role="presentation"><a href="#tag5" aria-controls="#tag5" role="tab" data-toggle="tab"><?php echo lang_admin('custom');?></a></li>
                                        <!--字段-->
                                        <li role="presentation"><a href="#tag6" aria-controls="#tag6" role="tab" data-toggle="tab"><?php echo lang_admin('field');?></a></li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="clearfix blank20"></div>
                    <div class="tab-content">
                        <!-- 信息 -->
                        <div role="tabpanel" class="tab-pane" id="tag1">
                            <!-- 封面内容 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('news_coverage');?></div>
                                <div class="col-xs-12 col-sm-8 col-md-9 col-lg-10 text-left">
                                    <?php echo form::getform('categorycontent',$form,$field,$data);?>
                                    <p><i class="icon-info"></i> <?php echo lang_admin('if_you_use_the_settings_section_cover_please_select_the_list_page_html_template_for_this_section_at_the_template');?></p>
                                    <div style="max-width: 575px;margin-top: 0px;">
                                        <div class="fieldset flash" id="fsUploadProgress">
                                            <span class="legend"></span>
                                        </div>
                                        <div id="divStatus"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <style type="text/css">
                                #categorycontent {min-height:500px;}
                                @media(max-width:468px) {
                                    #categorycontent {min-height:300px;}
                                    #categorycontent #edui1 {width:100%;}
                                }
                            </style>
                        </div>
                        <!-- SEO -->
                        <div role="tabpanel" class="tab-pane" id="tag2">
                            <!-- 网页标题 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('page_title');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('meta_title',$form,$field,$data,'class="form-control"');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('it_can_fill_in_keywords_different_from_content_names_which_is_beneficial_to_search_optimization');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 网页关键词 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">
                                    <span class="icon-note"></span>&nbsp;<?php echo lang_admin('key_word');?>
                                </div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('keyword',$form,$field,$data,'class="form-control"');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('the_keywords_information_in_meta_information_can_be_filled_in_the_keywords_related_to_the_content_separated_by_commas_in_english_which_is_conducive_to_search_optimization');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 网页描述 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><span class="icon-note"></span>&nbsp;<?php echo lang_admin('web_description');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('description',$form,$field,$data,'');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('description_information_in_meta_information_can_fill_in_content_related_profiles_which_is_conducive_to_search_optimization');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- html -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">HTML</div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('ishtml',$form,$field,$data);?>
                                    <p class="tips-p"><?php echo lang_admin('when_html_is_generated_by_separate_settings_columns_in_dynamic_and_static_settings_must_be_selected_as_specified_and_columns_in_dynamic_and_static_generation_need_to_generate_html');?></p>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('select_whether_the_column_is_static_such_as_setting_the_browse_and_download_permissions_must_be_dynamic_the_default_is_to_inherit_the_static_and_dynamic_settings_of_the_website');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <div class="alert alert-warning alert-danger" role="alert">
                                        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
                                        <span class="glyphicon glyphicon-warning-sign"></span>	<strong>URL</strong>	[<?php echo lang_admin('if_you_are_not_familiar_with_the_operation_please_do_not_modify_the_following_options');?>]
                                    </div>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 当前url规则 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('list_url');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <!-- <input name="htmlrule1" type="text" class="form-control" value="<?php echo $data['htmlrule'];?>"/>
                                     <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('if_you_are_not_familiar_with_the_operation_please_do_not_modify_the_following_options');?>"></span>
                                     <div class="clearfix blank20"></div>-->
                                    <?php echo form::getform('htmlrule',$form,$field,$data,'');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('if_you_are_not_familiar_with_the_operation_please_do_not_modify_the_following_options');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 子列表url规则 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('sublist_url');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <!-- <input name="listhtmlrule1" type="text" class="form-control" value="<?php echo $data['listhtmlrule'];?>"/>
                                     <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('choose_whether_the_content_is_static_such_as_setting_the_browse_and_download_permissions_must_be_dynamic_the_default_is_static_and_dynamic_settings_for_inheritance_columns');?>"></span>
                                     <div class="clearfix blank20"></div>-->
                                    <?php echo form::getform('listhtmlrule',$form,$field,$data,'');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('choose_whether_the_content_is_static_such_as_setting_the_browse_and_download_permissions_must_be_dynamic_the_default_is_static_and_dynamic_settings_for_inheritance_columns');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 内容url规则 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('content_url');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('showhtmlrule',$form,$field,$data,'class=""');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('if_you_are_not_familiar_with_the_operation_please_do_not_modify_the_following_options');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 自定义url -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('custom_url');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-9 col-lg-5 text-left">
                                    <?php echo form::getform('set_htmlrule',$form,$field,$data);?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('if_you_are_not_familiar_with_the_operation_please_do_not_modify_the_following_options');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                        </div>
                        <!-- 图片 -->
                        <div role="tabpanel" class="tab-pane" id="tag3">
                            <!-- 栏目图片 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('column_pictures');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('image',$form,$field,$data);?>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 栏目banner -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('column_banner');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('banner',$form,$field,$data);?>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                        </div>
                        <!-- 权限 -->
                        <div role="tabpanel" class="tab-pane" id="tag4">
                            <?php if(session::get('ver') == 'corp'){ ?>
                                <!-- 阅读收费 -->
                                <div class="row">
                                    <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('read_menoy');?></div>
                                    <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                        <?php echo form::getform('readmenoy',$form,$field,$data);?>
                                        <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('read_menoy');?>"></span>
                                    </div>
                                </div>
                                <div class="clearfix blank20"></div>
                                <!-- 下载收费 -->
                                <div class="row">
                                    <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('domw_menoy');?></div>
                                    <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                        <?php echo form::getform('domwmenoy',$form,$field,$data);?>
                                        <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('domw_menoy');?>"></span>
                                    </div>
                                </div>
                                <div class="clearfix blank20"></div>
                                <script type="text/javascript">
                                    //阅读收费和下载收费校验
                                    $("#readmenoy").change(function(){
                                        if(parseInt($(this).val())>0){
                                            $("#domwmenoy").val('0');
                                            $("#domwmenoy").attr("disabled","disabled");
                                        }else{
                                            $("#readmenoy").val('0');
                                            $("#domwmenoy").removeAttr("disabled");
                                        }
                                    });
                                </script>
                            <?php }  ?>
                            <!-- 浏览下载权限 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('jurisdiction');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <div class="table-responsive">
                                        <table class="table table-hover">
                                            <thead>
                                            <tr class="th">
                                                <th><?php echo lang_admin('user_group');?></th>
                                                <th class="text-center"><?php echo lang_admin('browse');?></th>
                                                <th class="text-center"><?php echo lang_admin('download');?></th>
                                            </tr>
                                            <thead>
                                            <tbody>
                                            <?php if(is_array(usergroup::getInstance()->group))
                                                foreach(usergroup::getInstance()->group as $group) { ?>
                                                    <?php if($group['groupid']=='888') continue; ?>
                                                    <tr>
                                                        <td><?php echo $group['name'];?></td>
                                                        <td class="text-center"><?php echo form::checkbox("_ranks[".$group['groupid']."][view]",-1, @$data['_ranks'][$group['groupid']]['view']);?></td>
                                                        <td class="text-center"><?php echo form::checkbox("_ranks[".$group['groupid']."][down]",-1, @$data['_ranks'][$group['groupid']]['down']);?></td>
                                                    </tr>
                                                <?php } ?>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="blank30"></div>
                                    <div class="alert alert-warning alert-dismissible" role="alert">
                                        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                        <span class="glyphicon glyphicon-warning-sign"></span>	 <?php echo lang_admin('check_to_prohibit_browsing_or_downloading_for_this_user_group');?>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- 自定义 -->
                        <div role="tabpanel" class="tab-pane" id="tag5">
                            <!--副标题-->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('subtitle');?></div>
                                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left"><input type="text" class="form-control" name="subtitle" id="subtitle" />
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('column_custom_subtitle');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!--栏目目录-->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('catalog_name');?></div>
                                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left"><input type="text" class="form-control" onkeyup="value=value.replace(/[^0-9a-zA-Z-]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" name="htmldir" id="htmldir" />
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('catalogues_must_be_english_names_if_left_blank_the_pinyin_names_will_be_used_automatically_do_not_mix_symbols');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 绑定语言 -->
                            <div class="row" style="display: none;">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('language_package_binding');?></div>
                                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-10 text-left">
                                    <?php echo form::getform('langid',$form,$field,$data,'class="form-control"');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title=""></span>
                                </div>
                            </div>
                            <!-- 排序 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('sort');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('listorder',$form,$field,$data,'class="form-control"');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('column_sorting');?>" onmouseout="tooltip.hide();">
</span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 手机导航是否显示 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('mobile_navigation');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('ismobilenav',$form,$field,$data);?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('is_it_displayed_in_navigation');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 内容排序 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('content_sorting');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('contentrank',$form,$field,$data);?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('column_subordinate_content_ranking');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 栏目模板 -->
                            <?php if(isset($shopping) && $shopping){ ?>
                                <div class="row">
                                    <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('commodity_template');?></div>
                                    <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                        <?php $data['templateshopping']=isset($data['template'])?$data['template']:"";?>
                                        <?php echo form::getform('templateshopping',$form,$field,$data);?>
                                        <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('the_template_style_used_in_the_current_column');?>" onmouseout="tooltip.hide();"></span>
                                    </div>
                                </div>
                            <?php }else{ ?>
                                <div class="row">
                                    <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('column_template');?></div>
                                    <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                        <?php echo form::getform('template',$form,$field,$data);?>
                                        <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('the_template_style_used_in_the_current_column');?>" onmouseout="tooltip.hide();"></span>
                                    </div>
                                </div>
                            <?php }?>
                            <div class="clearfix blank20"></div>
                            <!-- 子列表模板 -->
                            <?php if(isset($shopping) && $shopping){
                                $data['listshoppingtemplate']=isset($data['listtemplate'])?$data['listtemplate']:"";
                                $data['showshoppingtemplate']=isset($data['showtemplate'])?$data['showtemplate']:"";?>
                                <div class="row">
                                    <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('sublist');?></div>
                                    <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                        <?php echo form::getform('listshoppingtemplate',$form,$field,$data);?>
                                        <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('subordinate_columns_of_the_column_apply_template_style');?>" onmouseout="tooltip.hide();"></span>
                                    </div>
                                </div>
                                <div class="clearfix blank20"></div>
                                <!-- 内容模板 -->
                                <div class="row">
                                    <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('commodity_content');?></div>
                                    <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                        <?php echo form::getform('showshoppingtemplate',$form,$field,$data);?>
                                        <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('column_subordinate_content_page_template_style');?>" onmouseout="tooltip.hide();"></span>
                                    </div>
                                </div>
                                <div class="clearfix blank20"></div>
                            <?php }else{ ?>
                                <div class="row">
                                    <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('sublist');?></div>
                                    <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                        <?php echo form::getform('listtemplate',$form,$field,$data);?>
                                        <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('subordinate_columns_of_the_column_apply_template_style');?>" onmouseout="tooltip.hide();"></span>
                                    </div>
                                </div>
                                <div class="clearfix blank20"></div>
                                <div class="row">
                                    <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('content');?></div>
                                    <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                        <?php echo form::getform('showtemplate',$form,$field,$data);?>
                                        <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('column_subordinate_content_page_template_style');?>" onmouseout="tooltip.hide();"></span>
                                    </div>
                                </div>
                                <div class="clearfix blank20"></div>
                            <?php }?>
                            <!-- 手机模板 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('wap_template');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('templatewap',$form,$field,$data);?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('after_enabling_the_independent_mobile_version_template_the_current_column_template_style');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 手机子列表模板 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('wap_sublistwap');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('listtemplatewap',$form,$field,$data);?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('after_enabling_the_independent_mobile_version_template_the_subordinate_subcolumn_template_style');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 手机内容模板 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('wap_content');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('showtemplatewap',$form,$field,$data);?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('after_enabling_the_independent_mobile_version_template_the_template_style_of_the_subordinate_content_page');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 是否新窗口 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('new_window_opens');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('isblank',$form,$field,$data);?>  <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('is_it_open_in_the_new_window');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 链接属性 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('no_collection');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('nofollow',$form,$field,$data);?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('whether_link_properties_are_enabled');?>"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 绑定表单 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('does_the_content_page_bind_the_form');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('showform',$form,$field,$data);?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('does_the_content_page_bind_the_form');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 是否筛选 -->
                            <?php if(session::get('ver') == 'corp'){ ?>
                                <div class="row">
                                    <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('screening_or_not');?></div>
                                    <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                        <?php echo form::getform('isscreening',$form,$field,$data);?>
                                        <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('whether_to_join_the_screening');?>"></span>
                                    </div>
                                </div>
                                <div class="clearfix blank20"></div>
                            <?php } ?>
                            <!-- 分页 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('paging');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <td><?php echo form::getform('ispages',$form,$field,$data);?>
                                        <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('select_whether_the_column_is_paginated');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 分页值 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('paging_value');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('attr3',$form,$field,$data,'class="input_c"');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('leave_blank_to_display_according_to_the_number_of_global_settings');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 防伪码前缀 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('anti_counterfeiting_code_prefix');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('ecoding',$form,$field,$data,'class="form-control"');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('set_anti_counterfeiting_code_prefix');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 列表是否包含子栏目内容 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('subcontent');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('includecatarchives',$form,$field,$data);?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('select_whether_the_column_list_contains_the_contents_of_the_subordinate_columns');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 跳转链接 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('jump');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('linkto',$form,$field,$data,'class="form-control"');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('after_filling_in_the_external_link_address__the_access_column_will_jump_to_the_completed_address');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <!-- 是否作为首页 -->
                            <div class="row">
                                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php echo lang_admin('home_page');?></div>
                                <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                    <?php echo form::getform('isindex',$form,$field,$data,'class="form-control"');?>
                                    <span class="tips icon-info" data-toggle="tooltip" data-html="ture" data-placement="right" title="<?php echo lang_admin('after_filling_in_the_external_link_address__the_access_column_will_jump_to_the_completed_address');?>" onmouseout="tooltip.hide();"></span>
                                </div>
                            </div>
                            <div class="clearfix blank20"></div>
                            <?php if(isset($shopping) && $shopping){ ?>
                                <input type="hidden" name="isshopping" id="isshopping" value="1" />
                            <?php }else{ ?>
                                <input type="hidden" name="isshopping" id="isshopping" value="0" />
                            <?php } ?>
                            <script type="text/javascript">

                                function mysave() {
                                    if (<?php echo $shopping;?>) {
                                        $('#parentid').val($('#catidshopping').val());
                                    }
                                }
                            </script>
                        </div>
                        <!-- 字段 -->
                        <div role="tabpanel" class="tab-pane" id="tag6">
                            <?php if(is_array($field))
                                foreach($field as $f) { ?>
                                    <?php
                                    $name=$f['name'];
                                    if (!preg_match('/^my_/', $name) || preg_match('/^my_field/', $name)) {
                                        unset($field[$name]);
                                        continue;
                                    }
                                    $category = category::getInstance();
                                    $adminlang=lang::getisadmin();
                                    setting::$var['category'][$name]['catid_'.$adminlang]=setting::$var['category'][$name]['catid_'.$adminlang]==""?0:setting::$var['category'][$name]['catid_'.$adminlang];
                                    $sonids = $category->sons(setting::$var['category'][$name]['catid_'.$adminlang]);
                                    $data['parentid']=isset($data['parentid'])?$data['parentid']:"";
                                    if(setting::$var['category'][$name]['catid_'.$adminlang] != $data['parentid'] && !in_array($data['parentid'],$sonids)
                                        && (setting::$var['category'][$name]['catid_'.$adminlang]) ){
                                        unset($field[$name]);
                                        continue;
                                    }
                                    if (!isset($data[$name]))
                                        $data[$name]='';
                                    ?>
                                    <?php if( ((setting::$var['category'][$name]['isshoping'] == '0')|| (setting::$var['category'][$name]['isshoping'] == '')) ){?>
                                        <div class="row">
                                            <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><?php
                                                $newcname='cname_'.lang::getisadmin();
                                                echo setting::$var['category'][$name][$newcname];
                                                $newselect='select_'.lang::getisadmin();
                                                $form[$name]['select']=setting::$var['category'][$name][$newselect];
                                                ?></div>
                                            <div class="col-xs-12 col-sm-7 col-md-7 col-lg-5 text-left">
                                                <?php echo form::getform($name,$form, $field, $data); ?>
                                                <?php echo"<style>div#$name.edui-default {width:100%;min-height:500px;}@media(max-width:468px) {div#$name.edui-default {width:100%;min-height:300px;}}</style>";?>
                                            </div>
                                        </div>
                                        <div class="clearfix blank20"></div>
                                    <?php }?>
                                <?php } ?>
                        </div>
                    </div>
                </div>
                <div id="batch" style="display:none;">
                    <div class="row">
                        <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right"><span class="icon-note"></span>&nbsp;<?php echo lang_admin('name');?></div>
                        <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left batch-add">
                            <textarea name="batch_add" placeholder="<?php echo lang_admin('for_example_type_1_type_2');?>" maxlength="255" class="form-control textarea"></textarea>
                        </div>
                    </div>
                    <div class="clearfix blank20"></div>
                </div>
                <div class="blank30"></div>
        </form>
        <script type="text/javascript">
            $(function(){
                //校验名称是否重复
             /*   $("#catname").mouseleave(function(){
                    var catname=$('#catname').val();
                    $.post("<?php echo url('table/checkctname/table/category',true);?>",{"catname":catname},function (data) {
                        if (data>0){
                            var html="<?php echo lang_admin('name');?><?php echo lang_admin('repetition');?>";
                            $('[name=messagecatname]').html(html);
                        }else{
                            $('[name=messagecatname]').html("");
                        }
                    });
                });*/
                $("input[name='ispages']").change(function(){
                    if($(this).val() == '0'){
                        //console.log($(this).val());
                        $('#template').val('archive/list_page.html');
                        $('#htmlrule').val('<?php echo chr(123).'$dir'.chr(125);?>.html');
                        $('#listhtmlrule').val('<?php echo chr(123).'$dir'.chr(125);?>.html');
                    }
                });
            });
        </script>
        <div class="blank30"></div>
    </div>
</div>

<!-- 当前页面的js -->
<script type="text/javascript" src="<?php echo $base_url.'/template_admin/'.front::$view->_style;?>/table/category/add.js"></script>

<script type="text/javascript">
    function get_field(catid) {
        $.ajax({
            url: '<?php echo url('table/getfield/table/category/thiscatid/'.(isset($data['catid'])?$data['catid']:""),true);?>&catid='+catid,
            type: 'GET',
            dataType: 'text',
            timeout: 10000,
            error: function(){
                //alert('Error loading XML document');
            },
            success: function(data){
                var codedata=JSON.parse(data);
                $("#tag6").html(codedata[0]);
            }
        });
    }
    <!--单条批量切换-->
    function stob(type){
        if(type == 'single'){
            $("#batch").css('display','none');
            $("#single").css('display','block');
            return;
        }
        if(type == 'batch'){
            $("#single").css('display','none');
            $("#batch").css('display','block');
            return;
        }
    }
    $(function() {
        $("#parentid").change(function () {
            get_field($("#parentid").val());
        });
        $("#catidshopping").change(function () {
            get_field($("#catidshopping").val());
        });
    });

    $(document).ready(function(){
        $(window).scroll(function() {
            var top = $("#index_connent").offset().top; //获取指定位置
            var scrollTop = $(window).scrollTop();  //获取当前滑动位置
            if(scrollTop > top){                 //滑动到该位置时执行代码
                $(".content-eidt-nav").addClass("sabit");
                $(".sabit #fullscreen-btn").css("display","inline-block");
                $(".sabit #content-eidt-nav-btn").css("display","inline-block");
            }else{
                $(".content-eidt-nav").removeClass("sabit");
                $("#fullscreen-btn").css("display","none");
                $(".fixed #fullscreen-btn").css("display","inline-block");
                $("#content-eidt-nav-btn").css("display","none");
            }
        });
    });
    $(document).ready(function(){
        $("#content-eidt-nav-btn").click(function(){
            $(".content-eidt-nav").removeClass("sabit");
        });
    });
</script>
<script>
    var fullscreen = false;
    let btn = document.getElementById('fullscreen-btn');
    let fullarea = document.getElementById('box');
    btn.addEventListener('click',function(){
        if (fullscreen) {
            // 退出全屏
            $(".content-eidt-nav").removeClass("fixed");
            $(".content-eidt-nav").css({
                "background-color":"#ffffff"
            });
            $(".content-eidt-nav.sabit").css({
                "padding-right":"15px",
            });
            $(".fixed #fullscreen-btn").css("display","none");
            if (document.exitFullscreen) {
                document.exitFullscreen();
            } else if (document.webkitCancelFullScreen) {
                document.webkitCancelFullScreen();
            } else if (document.mozCancelFullScreen) {
                document.mozCancelFullScreen();
            } else if (document.msExitFullscreen) {
                document.msExitFullscreen();
            }
        } else {
            // 进入全屏
            $("#box").css({
                "overflow":"hidden",
                "overflow-y":"auto"
            });
            $(".content-eidt-nav").addClass("fixed");
            $(".fixed #fullscreen-btn").css("display","inline-block");
            if (fullarea.requestFullscreen) {
                fullarea.requestFullscreen();
            } else if (fullarea.webkitRequestFullScreen) {
                fullarea.webkitRequestFullScreen();
            } else if (fullarea.mozRequestFullScreen) {
                fullarea.mozRequestFullScreen();
            } else if (fullarea.msRequestFullscreen) {
                // IE11
                fullarea.msRequestFullscreen();
            }
        }
        fullscreen = !fullscreen;
    });
</script>
<!-- 上传 -->
<script type="text/javascript" src="<?php echo $base_url;?>/common/js/ajaxfileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="<?php echo $base_url;?>/common/js/ajaxfileupload/ThumbAjaxFileUpload.js"></script>
<script type="text/javascript" src="<?php echo $base_url;?>/common/js/upimg/dialog.js"></script>
<link href="<?php echo $skin_admin_path;?>/css/dialog.css" rel="stylesheet" type="text/css" />
<!-- 上传框 -->
<script src="<?php echo $base_url;?>/common/plugins/fileinput/js/fileinput.min.js" type="text/javascript"></script>
<script src="<?php echo $base_url;?>/common/plugins/fileinput/js/locales/zh.js" type="text/javascript"></script>
<link href="<?php echo $base_url;?>/common/plugins/fileinput/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css">

<!-- 百度编辑器 -->
<script type="text/javascript" charset="utf-8" src="<?php echo $base_url;?>/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo $base_url;?>/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="<?php echo $base_url;?>/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo $base_url;?>/ueditor/addCustomizeButton.js"></script>
