<script type="text/javascript">
    $(function(){
        $(".usergroup-table input[type='checkbox']").on('click',function (e) {
            var exp = $(this).attr('id');
            var status = $(this).prop('checked');
            if (typeof(exp) !== "undefined"){
                $("."+exp).prop('checked',status).prop('disabled',!status);
            }
            if(exp == 'allcheckbox'){
                $(".usergroup-table input[type='checkbox']").prop('checked',status);
                $("dd input[type='checkbox']").prop('checked',status).prop('disabled',!status);
            }
        });
    });
</script>
<style type="text/css">
    .main-right-box { min-height:auto; }
    .user-rights-list .text-right {line-height: 34px;}
    .user-rights-list dt {clear:both;font-weight:normal; margin-bottom:10px;background: #f5f5f5;
        border-radius: 3px;height: 34px;padding-left:10px;
        line-height: 34px;}
    .user-rights-list dd {margin-bottom:10px;padding:0px 10px;}
</style>
<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);"     >
    <div class="main-right-box">
        <h5>{lang_admin('editing_user_groups')}<a href="#" onclick="gotourl(this)" data-dataurl="<?php echo url('table/list/table/usergroup');?>" class="btn btn-secondary pull-right" >{lang_admin('return')}</a></h5>
        <div class="blank20"></div>

        <div class="box" id="box">
            <!--工具栏-->
            <div class="content-eidt-nav pull-right">
                <a id="fullscreen-btn" class="btn btn-default">
                    <i class="icon-frame"></i>
                    {lang_admin('container_fluid')}
                </a>

                <span class="pull-right">


                    <input  name="submit" value="1" type="hidden">
                        <button class="btn btn-success" type="submit">
                            <span class="glyphicon glyphicon-floppy-disk"></span> <?php echo lang_admin('preservation');?>
                        </button>



                    <a href="#" onclick="gotohome()" data-dataurlname="<?php echo lang_admin('home');?>" class="btn btn-default">
                        <i class="glyphicon glyphicon-trash"></i>
                    </a>

                     <a id="content-eidt-nav-btn" class="btn btn-default" style="display:none;">
                    <i class="icon-close"></i>
					</a>
                </span>
            </div>
            <div id="content-eidt-nav"></div>

            <div class="row">
                <div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">{lang_admin('user_group')}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    {form::getform('groupid',$form,$field,$data)}
                </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">{lang_admin('mold')}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    {form::getform('isadministrator',$form,$field,$data)}
                </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">{lang_admin('integral_requirements')}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    {form::getform('integrationclaim',$form,$field,$data)}
                </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">{lang_admin('name')}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    {form::getform('name',$form,$field,$data)}
                </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">{lang_admin('commodity_discounts')}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    {form::getform('discount',$form,$field,$data)}
                </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">{lang_admin('is_it_an_integer')}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
                    {form::getform('isint',$form,$field,$data)}
                </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">{lang_admin('front_office_authority')}</div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-rigt">
                    <input type="checkbox" {getfchk($data['fpwlist'],'add_archive')} name="fpwlist[]" value="add_archive" />	{lang_admin('adding_articles')}
                </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">
                    {lang_admin('lang_background_jurisdiction')}
                </div>
                <div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-rigt usergroup-table">
                    <input name="all" type="checkbox" id="allcheckbox" value="1" /> {lang_admin('all_election')}
                </div>
            </div>
        </div>
        <div class="clearfix blank20"></div>
    </div>
    <div class="clearfix blank20"></div>
    <!--权限列表-->
    <div class="user-rights-list">
        <!--问答-->
        <div class="main-right-box usergroup-table">
            <h5>
                <input name="powerlist[question]" type="checkbox" id="question"  value="1" {getchecked($data['powerlist'],'question')}>
                <strong>{lang_admin('question')}</strong></h5>
            <div class="box" id="box">
                <dl>

                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="question question-list" type="checkbox" name="powerlist[question-list]" {getchecked($data['powerlist'],'question-list')} value="1" />
                        {lang_admin('所有问题')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="question question-state" type="checkbox" name="powerlist[question-state]" {getchecked($data['powerlist'],'question-state')} value="1" />
                        {lang_admin('待审核问题')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="question question-reply" type="checkbox" name="powerlist[question-reply]" {getchecked($data['powerlist'],'question-reply')} value="1" />
                        {lang_admin('待审核评论')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="question question-reply" type="checkbox" name="powerlist[cash]" {getchecked($data['powerlist'],'cash')} value="1" />
                        {lang_admin('cash')}</dd>


                </dl>
            </div>
            <div class="clearfix blank5"></div>
        </div>
        <div class="clearfix blank20"></div>


        <!--专题-->
        <div class="main-right-box usergroup-table">
            <h5>
                <input name="powerlist[type]" type="checkbox" id="type"  value="1" {getchecked($data['powerlist'],'type')}>
                <strong>{lang_admin('专题')}</strong></h5>
        </div>
        <div class="clearfix blank20"></div>

        <!--tag-->
        <div class="main-right-box usergroup-table">
            <h5>
                <input name="powerlist[tag]" type="checkbox" id="tag"  value="1" {getchecked($data['powerlist'],'tag')}>
                <strong>{lang_admin('tag')}</strong></h5>
        </div>
        <div class="clearfix blank20"></div>


        <!--导航-->
        <div class="main-right-box usergroup-table">
            <h5>
                <input name="powerlist[nav]" type="checkbox" id="nav"  value="1" {getchecked($data['powerlist'],'nav')}>
                <strong>{lang_admin('导航')}</strong></h5>
            <div class="box" id="box">
                <dl>

                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="nav nav-head" type="checkbox" name="powerlist[nav-head]" {getchecked($data['powerlist'],'nav-head')} value="1" />
                        {lang_admin('页顶管理')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="nav nav-foot" type="checkbox" name="powerlist[nav-foot]" {getchecked($data['powerlist'],'nav-foot')} value="1" />
                        {lang_admin('页底管理')}</dd>
                </dl>
            </div>
            <div class="clearfix blank5"></div>
        </div>
        <div class="clearfix blank20"></div>



        <!--扩展-->
        <div class="main-right-box usergroup-table">
            <h5>
                <input name="powerlist[system_extend]" type="checkbox" id="extend"  value="1" {getchecked($data['powerlist'],'system_extend')} />
                <strong>{lang_admin('extend')}</strong>
            </h5>
            <div class="box" id="box">
                <dl>
                    <!--公告-->
                    <dt><input class="extend" type="checkbox" name="powerlist[announc]" {getchecked($data['powerlist'],'announc')} value="1" id="announc">
                        {lang_admin('announcement_manage')}</dt>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend announc_list" type="checkbox" name="powerlist[announc_list]" {getchecked($data['powerlist'],'announc_list')} value="1" />
                        {lang_admin('bulletin_list')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend announc_add" type="checkbox" name="powerlist[announc_add]" {getchecked($data['powerlist'],'announc_add')} value="1" />
                        {lang_admin('adding_announcements')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend announc_edit" type="checkbox" name="powerlist[announc_edit]" {getchecked($data['powerlist'],'announc_edit')} value="1" />
                        {lang_admin('amendment_notice')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend announc" type="checkbox" name="powerlist[announc_del]" {getchecked($data['powerlist'],'announc_del')} value="1" />
                        {lang_admin('delete_bulletins')}</dd>
                    <!--邮件管理-->
                    <dt><input class="extend" type="checkbox" name="powerlist[seo_mail]" {getchecked($data['powerlist'],'seo_mail')} value="1" id="seo_mail">
                        {lang_admin('mail_manage')}</dt>


                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend seo_mail" type="checkbox" name="powerlist[seo_mail_send]" {getchecked($data['powerlist'],'seo_mail_send')} value="1" />
                        {lang_admin('send_mail')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend seo_mail" type="checkbox" name="powerlist[seo_mail_usersend]" {getchecked($data['powerlist'],'seo_mail_usersend')} value="1" />
                        {lang_admin('membership_mail_mass_distribution')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend seo_mail" type="checkbox" name="powerlist[seo_mail_subscription]" {getchecked($data['powerlist'],'seo_mail_subscription')} value="1" />
                        {lang_admin('subscription_mail_mass_distribution')}</dd>

                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend" type="checkbox" name="powerlist[seo_thirdparty]" {getchecked($data['powerlist'],'seo_thirdparty')} value="1">
                        {lang_admin('third_party_code')}</dd>

                    <!--支付-->
                    <dt><input class="extend" type="checkbox" name="powerlist[order_pay]" {getchecked($data['powerlist'],'order_pay')} value="1" id="order_pay">
                        {lang_admin('payment_configuration')}</dt>


                    <!--蜘蛛列表-->
                    <dt><input class="extend" type="checkbox" name="powerlist[seo_status]" {getchecked($data['powerlist'],'seo_status')} value="1" id="seo_status">
                        {lang_admin('spider_manage')}</dt>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend seo_status" type="checkbox" name="powerlist[seo_status_list]" {getchecked($data['powerlist'],'seo_status_list')} value="1" />
                        {lang_admin('spider_list')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend seo_status" type="checkbox" name="powerlist[seo_status_del]" {getchecked($data['powerlist'],'seo_status_del')} value="1" />
                        {lang_admin('delete')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend seo_status" type="checkbox" name="powerlist[seo_status_clear]" {getchecked($data['powerlist'],'seo_status_clear')} value="1" />
                        {lang_admin('empty')}</dd>

                    <!--友情链接-->
                    <dt><input class="extend" type="checkbox" name="powerlist[seo_friendlink]" {getchecked($data['powerlist'],'seo_friendlink')} value="1" id="seo_friendlink">
                        {lang_admin('friendship_link_manage')}</dt>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend seo_friendlink" type="checkbox" name="powerlist[seo_friendlink_list]" {getchecked($data['powerlist'],'seo_friendlink_list')} value="1" />
                        {lang_admin('link_list')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend seo_friendlink" type="checkbox" name="powerlist[seo_friendlink_add]" {getchecked($data['powerlist'],'seo_friendlink_add')} value="1" />
                        {lang_admin('add_links')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend seo_friendlink" type="checkbox" name="powerlist[seo_friendlink_edit]" {getchecked($data['powerlist'],'seo_friendlink_edit')} value="1" />
                        {lang_admin('modify_links')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend seo_friendlink" type="checkbox" name="powerlist[seo_friendlink_del]" {getchecked($data['powerlist'],'seo_friendlink_del')} value="1" />
                        {lang_admin('delete_links')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="extend seo_friendlink" type="checkbox" name="powerlist[seo_friendlink_setting]" {getchecked($data['powerlist'],'seo_friendlink_setting')} value="1" />
                        {lang_admin('friendship_link_configuration')}</dd>






                </dl>
            </div>
            <div class="clearfix blank5"></div>
        </div>
        <div class="clearfix blank20"></div>


        <!--用户-->
        <div class="main-right-box usergroup-table">
            <h5>
                <input name="powerlist[user]" type="checkbox" id="user"  value="1" {getchecked($data['powerlist'],'user')}>
                <strong>{lang_admin('user_manage')}</strong></h5>
            <div class="box" id="box">
                <dl>
                    <!--用户管理-->
                    <dt><input class="user" type="checkbox" name="powerlist[user_manage]" {getchecked($data['powerlist'],'user_manage')} value="1" id="user_manage">
                        {lang_admin('user_manage')}</dt>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_manage" type="checkbox" name="powerlist[user_list]" {getchecked($data['powerlist'],'user_list')} value="1" />
                        {lang_admin('registered_user_list')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_manage" type="checkbox" name="powerlist[user_add]" {getchecked($data['powerlist'],'user_add')} value="1" />
                        {lang_admin('add_user_fields')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_manage" type="checkbox" name="powerlist[user_edit]" {getchecked($data['powerlist'],'user_edit')} value="1" />
                        {lang_admin('modify_users')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_manage" type="checkbox" name="powerlist[user_del]" {getchecked($data['powerlist'],'user_del')} value="1" />
                        {lang_admin('delete_user')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_manage" type="checkbox" name="powerlist[user_ologin]" {getchecked($data['powerlist'],'user_ologin')} value="1" />
                        {lang_admin('login_configuration')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_manage" type="checkbox" name="powerlist[user_invite]" {getchecked($data['powerlist'],'user_invite')} value="1" />
                        {lang_admin('invitation_code')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_integration" type="checkbox" name="powerlist[user_integration]" {getchecked($data['powerlist'],'user_integration')} value="1" />
                        {lang_admin('modified_integral')}</dd>
                    <!--用户组管理-->
                    <dt><input class="user" type="checkbox" name="powerlist[user_group]" {getchecked($data['powerlist'],'user_group')} value="1" id="user_group">
                        {lang_admin('user_group_manage')}</dt>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_group" type="checkbox" name="powerlist[usergroup_list]" {getchecked($data['powerlist'],'usergroup_list')} value="1" />
                        {lang_admin('user_group_list')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_group" type="checkbox" name="powerlist[usergroup_add]" {getchecked($data['powerlist'],'usergroup_add')} value="1" />
                        {lang_admin('adding_user_groups')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_group" type="checkbox" name="powerlist[usergroup_edit]" {getchecked($data['powerlist'],'usergroup_edit')} value="1" />
                        {lang_admin('modify_user_groups')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_group" type="checkbox" name="powerlist[usergroup_del]" {getchecked($data['powerlist'],'usergroup_del')} value="1" />
                        {lang_admin('delete_user_groups')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_group" type="checkbox" name="powerlist[seo_consumption]" {getchecked($data['powerlist'],'seo_consumption')} value="1" />
                        {lang_admin('recharge_record_list')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="user user_group" type="checkbox" name="powerlist[seo_express]" {getchecked($data['powerlist'],'seo_express')} value="1" />
                        {lang_admin('logistics_list')}</dd>
                </dl>
            </div>
            <div class="clearfix blank5"></div>
        </div>
        <div class="clearfix blank20"></div>

        <!--模板-->
        <div class="main-right-box usergroup-table">
            <h5>
                <input name="powerlist[template]" type="checkbox" id="templates"  value="1" {getchecked($data['powerlist'],'template')}>
                <strong>{lang_admin('template_manage')}</strong></h5>
            <div class="box" id="box">
                <dl>
                    <!--模板管理-->
                    <dt><input class="templates" type="checkbox" name="powerlist[template_manage]" {getchecked($data['powerlist'],'template_manage')} value="1" id="template_manage">
                        {lang_admin('template_manage')}</dt>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="templates template_manage" type="checkbox" name="powerlist[system_template]" {getchecked($data['powerlist'],'system_template')} value="1" />
                        {lang_admin('template_selection')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="templates template_manage" type="checkbox" name="powerlist[template_edit]" {getchecked($data['powerlist'],'template_edit')} value="1" />
                        {lang_admin('template_source_code')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="templates template_manage" type="checkbox" name="powerlist[template_downlist]" {getchecked($data['powerlist'],'template_downlist')} value="1" />
                        {lang_admin('template_online')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="templates template_manage" type="checkbox" name="powerlist[system_slide]" {getchecked($data['powerlist'],'system_slide')} value="1" />
                        {lang_admin('slide_projector')}</dd>

                </dl>
            </div>
            <div class="clearfix blank5"></div>
        </div>
        <div class="clearfix blank20"></div>


        <!--安全-->
        <div class="main-right-box usergroup-table">
            <h5>
                <input name="powerlist[security]" type="checkbox" id="func"  value="1" {getchecked($data['powerlist'],'security')}>

                <strong>{lang_admin('安全')}</strong></h5>
            <div class="box" id="box">
                <dl>
                    <dt><input class="safety_protection" type="checkbox" name="powerlist[system_filechecksite]" {getchecked($data['powerlist'],'system_filechecksite')} value="1" id="system_filechecksite">
                        {lang_admin('安全防护')}</dt>


                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="safety_protection func_filecheck" type="checkbox" name="powerlist[func_filecheck]" {getchecked($data['powerlist'],'func_filecheck')} value="1" />
                        {lang_admin('document_proofreading')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="safety_protection func_scan" type="checkbox" name="powerlist[func_scan]" {getchecked($data['powerlist'],'func_scan')} value="1" />
                        {lang_admin('trojan_horse_killing')}</dd>

                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="safety_protection func_returnform" type="checkbox" name="powerlist[func_returnform]" {getchecked($data['powerlist'],'func_returnform')} value="1" />
                        {lang_admin('系统文件校对')}</dd>


                    <!--数据管理-->
                    <dt><input class="func" type="checkbox" name="powerlist[func_data]" {getchecked($data['powerlist'],'func_data')} value="1" id="func_data">
                        {lang_admin('manage_data')}</dt>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="func func_data" type="checkbox" name="powerlist[func_data_baker]" {getchecked($data['powerlist'],'func_data_baker')} value="1" />
                        {lang_admin('backup_database')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="func func_data" type="checkbox" name="powerlist[func_data_restore]" {getchecked($data['powerlist'],'func_data_restore')} value="1" />
                        {lang_admin('restore_database')}</dd>

                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="func func_data" type="checkbox" name="powerlist[func_data_adminlogs]" {getchecked($data['powerlist'],'func_data_adminlogs')} value="1" />
                        {lang_admin('log_manage')}</dd>

                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_upload]"  {getchecked($data['powerlist'],'system_upload')} value="1" />
                        {lang_admin('system_upload')}</dd>

                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="func_update" type="checkbox" name="powerlist[func_update]" {getchecked($data['powerlist'],'func_update')} value="1" />
                        {lang_admin('online_upgrade')}</dd>

                </dl>
            </div>
            <div class="clearfix blank5"></div>
        </div>
        <div class="clearfix blank20"></div>

        <!--设置-->
        <div class="main-right-box usergroup-table">
            <h5> <input name="powerlist[config]" type="checkbox" id="config"  value="1" {getchecked($data['powerlist'],'config')} />
                <strong>{lang_admin('set_up')}</strong></h5>
            <div class="box" id="box">
                <dl>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_site]"  {getchecked($data['powerlist'],'system_site')} value="1" />
                        {lang_admin('website')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_extend]"  {getchecked($data['powerlist'],'system_extend')} value="1" />
                        {lang_admin('extend')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" data-animated="false" data-size="mini" type="checkbox" name="powerlist[system_image]"  {getchecked($data['powerlist'],'system_image')} value="1" />{lang_admin('watermarking_settings')}
                    </dd>


                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_security]"  {getchecked($data['powerlist'],'system_security')} value="1" />
                        {lang_admin('character_filtering')}</dd>


                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_website" type="checkbox" name="powerlist[language]"  {getchecked($data['powerlist'],'language')} value="1" />
                        {lang_admin('language_editor')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_website" type="checkbox" name="powerlist[system_sms]"  {getchecked($data['powerlist'],'system_sms')} value="1" />
                        {lang_admin('short_message')}</dd>


                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_information]"  {getchecked($data['powerlist'],'system_information')} value="1" />
                        {lang_admin('contact_information')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_websitesite]"  {getchecked($data['powerlist'],'system_websitesite')} value="1" />
                        {lang_admin('custom')}</dd>

                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_customer]"  {getchecked($data['powerlist'],'system_customer')} value="1" />
                        {lang_admin('customer_service_list')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_verification]"  {getchecked($data['powerlist'],'system_verification')} value="1" />
                        {lang_admin('verification_code')}</dd>

                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_membersite]"  {getchecked($data['powerlist'],'system_membersite')} value="1" />
                        {lang_admin('membership_manage')}</dd>


                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_backupsite]"  {getchecked($data['powerlist'],'system_backupsite')} value="1" />
                        {lang_admin('backup_manage')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_spidersite]"  {getchecked($data['powerlist'],'system_spidersite')} value="1" />
                        {lang_admin('spider_statistics')}</dd>
                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="config config_sitesystem" type="checkbox" name="powerlist[system_langsite]"  {getchecked($data['powerlist'],'system_langsite')} value="1" />
                        {lang_admin('language_manage')}</dd>

                    <dd class="col-xs-6 col-sm-4 col-md-3 col-lg-2"><input class="cache_update" type="checkbox" name="powerlist[cache_update]" {getchecked($data['powerlist'],'cache_update')} value="1" />
                        {lang_admin('cache_update')}
                    </dd>




                </dl>
            </div>
            <div class="clearfix blank5"></div>
        </div>
        <div class="clearfix blank20"></div>
    </div>
    <div class="blank30"></div>
    <div class="blank30"></div>
    <div class="blank30"></div>
</form>
</div>

<script type="text/javascript">
    <!--
    $(document).ready(function(){
        $(window).scroll(function() {
            var top = $("#content-eidt-nav").offset().top; //获取指定位置
            var scrollTop = $(window).scrollTop();  //获取当前滑动位置
            if(scrollTop > top){                 //滑动到该位置时执行代码

                $(".content-eidt-nav").addClass("sabit");
                $(".content-eidt-nav").css({
                    "border-bottom":"1px solid #ccc"
                });
                $(".sabit #fullscreen-btn").css("display","inline-block");
                $(".sabit #content-eidt-nav-btn").css("display","inline-block");

            }else{

                $(".content-eidt-nav").removeClass("sabit");
                $(".content-eidt-nav").css({
                    "border-bottom":"none"
                });
                $("#fullscreen-btn").css("display","none");
                $(".important #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 type="text/javascript">
    <!--
    var fullscreen = false;
    let btn = document.getElementById('fullscreen-btn');
    let fullarea = document.getElementById('box')
    btn.addEventListener('click',function(){
        if (fullscreen) {
            // 退出全屏
            $(".content-eidt-nav").removeClass("important");
            $(".content-eidt-nav").css({
                "background-color":"#ffffff"
            });
            $(".content-eidt-nav.sabit").css({
                "padding-right":"15px",
            });
            $(".important #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 {
            // 进入全屏

            $(".content-eidt-nav").addClass("important");
            $(".important").css({
                "padding-right":"30px",
                "background-color":"#f5f5f5"
            });
            $(".important #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>