<?php /*a:1:{s:61:"D:\phpstudy\WWW\12xz\app\admin\view/default\config\index.html";i:1785743213;}*/ ?>
<?php echo ModuleInclude('public/header'); ?>

<!-- right content start  -->
<div class="content-right">
	<div class="content">
        <!-- form start -->
        <form class="am-form form-validation am-form-popup-sticky" action="<?php echo MyUrl('admin/config/save', ['view_type'=>$view_type]); ?>" method="POST" request-type="ajax-view" request-value="<?php echo MyUrl('admin/config/index'); ?>" data-config-reload-base="<?php echo MyUrl('admin/config/index'); ?>">
            <?php echo ModuleInclude('public/nav_switch_btn', [
                'nav_data' => [
                    [
                        'name' => MyLang('base_config_title'),
                        'key'  => 'base-config',
                    ],
                    [
                        'name' => MyLang('config.admin_login_title'),
                        'key'  => 'admin-login',
                    ],
                    [
                        'name' => MyLang('goods_title'),
                        'key'  => 'goods',
                    ],
                    [
                        'name' => MyLang('map_title'),
                        'key'  => 'map',
                    ],
                    [
                        'name' => MyLang('extend_title'),
                        'key'  => 'extend',
                    ],
                    [
                        'name' => MyLang('verify_config_title'),
                        'key'  => 'verify-config',
                    ],
                    [
                        'name' => MyLang('attachment_config_title'),
                        'key'  => 'attachment-config',
                    ],
                    [
                        'name' => MyLang('safety_title'),
                        'key'  => 'safety',
                    ],
                    [
                        'name' => MyLang('cache_config_title'),
                        'key'  => 'cache-config',
                    ],
                    [
                        'name' => MyLang('config.cookie_config_title'),
                        'key'  => 'cookie-config',
                    ],
                    [
                        'name' => MyLang('session_config_title'),
                        'key'  => 'session-config',
                    ]
                ],
                'index' => $config_nav_tab_index,
            ]); ?>
            <div class="nav-content">
                <!-- 基础配置 -->
                <div class="item <?php if($config_tab_key == 'base-config'): ?>am-active<?php endif; ?>" data-key="base-config">
                    <div class="am-form-group">
                        <label class="am-block"><?php echo htmlentities((string) $data['admin_logo']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['admin_logo']['describe']); ?></span></label>
                        <div class="am-form-file-upload-container plug-file-upload-view-width-auto">
                            <ul class="plug-file-upload-view admin_logo-images-view" data-form-name="admin_logo" data-max-number="1" data-dialog-type="images" data-is-eye="1">
                                <li class="plug-file-upload-submit" data-view-tag="ul.admin_logo-images-view">
                                    <?php if(empty($data['admin_logo']['value'])): ?>
                                        <i class="iconfont icon-add"></i>
                                    <?php else: ?>
                                        <input type="text" name="admin_logo" value="<?php echo htmlentities((string) $data['admin_logo']['value']); ?>" />
                                        <img src="<?php echo AttachmentPathViewHandle($data['admin_logo']['value']); ?>" />
                                        <i class="iconfont icon-close"></i>
                                        <i class="iconfont icon-eye"></i>
                                    <?php endif; ?>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['admin_excel_charset']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['admin_excel_charset']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_excel_charset_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['id']); ?>" name="<?php echo htmlentities((string) $data['admin_excel_charset']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['admin_excel_charset']['error_tips']); ?>" required <?php if(isset($data['admin_excel_charset']['value']) and $data['admin_excel_charset']['value'] == $v['id']): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_excel_export_type']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_excel_export_type']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_excel_export_type_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['id']); ?>" name="<?php echo htmlentities((string) $data['common_excel_export_type']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_excel_export_type']['error_tips']); ?>" required <?php if(isset($data['common_excel_export_type']['value']) and $data['common_excel_export_type']['value'] == $v['id']): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_page_size']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_page_size']['describe']); ?></span></label>
                        <input type="number" name="<?php echo htmlentities((string) $data['common_page_size']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_page_size']['name']); ?>" pattern="<?php echo MyConst('common_regex_page_number'); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_page_size']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_page_size']['value']); ?>"<?php endif; ?> required />
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_extraction_fee']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_extraction_fee']['describe']); ?></span></label>
                        <input type="number" name="<?php echo htmlentities((string) $data['common_extraction_fee']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_extraction_fee']['name']); ?>" pattern="<?php echo MyConst('common_regex_page_number'); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_extraction_fee']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_extraction_fee']['value']); ?>"<?php endif; ?> required />
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['admin_notice']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['admin_notice']['describe']); ?></span></label>
                        <textarea rows="4" name="<?php echo htmlentities((string) $data['admin_notice']['only_tag']); ?>" class="am-radius" placeholder="<?php echo htmlentities((string) $data['admin_notice']['name']); ?>" data-validation-message="<?php echo htmlentities((string) $data['admin_notice']['error_tips']); ?>"><?php if(!empty($data)): ?><?php echo htmlentities((string) $data['admin_notice']['value']); ?><?php endif; ?></textarea>
                    </div>
                </div>

                <!-- 后台登录 -->
                <div class="item <?php if($config_tab_key == 'admin-login'): ?>am-active<?php endif; ?>" data-key="admin-login">
                    <div class="am-form-group">
                        <label class="am-block"><?php echo htmlentities((string) $data['admin_login_logo']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['admin_login_logo']['describe']); ?></span></label>
                        <div class="am-form-file-upload-container plug-file-upload-view-width-auto">
                            <ul class="plug-file-upload-view admin_login_logo-images-view" data-form-name="admin_login_logo" data-max-number="1" data-dialog-type="images" data-is-eye="1">
                                <li class="plug-file-upload-submit" data-view-tag="ul.admin_login_logo-images-view">
                                    <?php if(empty($data['admin_login_logo']['value'])): ?>
                                        <i class="iconfont icon-add"></i>
                                    <?php else: ?>
                                        <input type="text" name="admin_login_logo" value="<?php echo htmlentities((string) $data['admin_login_logo']['value']); ?>" />
                                        <img src="<?php echo AttachmentPathViewHandle($data['admin_login_logo']['value']); ?>" />
                                        <i class="iconfont icon-close"></i>
                                        <i class="iconfont icon-eye"></i>
                                    <?php endif; ?>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label class="am-block"><?php echo htmlentities((string) $data['admin_login_ad_images']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['admin_login_ad_images']['describe']); ?></span></label>
                        <div class="am-form-file-upload-container plug-file-upload-view-width-auto">
                            <ul class="plug-file-upload-view admin_login_ad_images-images-view" data-form-name="admin_login_ad_images" data-max-number="1" data-dialog-type="images" data-is-eye="1">
                                <li class="plug-file-upload-submit" data-view-tag="ul.admin_login_ad_images-images-view">
                                    <?php if(empty($data['admin_login_ad_images']['value'])): ?>
                                        <i class="iconfont icon-add"></i>
                                    <?php else: ?>
                                        <input type="text" name="admin_login_ad_images" value="<?php echo htmlentities((string) $data['admin_login_ad_images']['value']); ?>" />
                                        <img src="<?php echo AttachmentPathViewHandle($data['admin_login_ad_images']['value']); ?>" />
                                        <i class="iconfont icon-close"></i>
                                        <i class="iconfont icon-eye"></i>
                                    <?php endif; ?>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['admin_login_info_bg_images_rand']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['admin_login_info_bg_images_rand']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_is_text_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['id']); ?>" name="<?php echo htmlentities((string) $data['admin_login_info_bg_images_rand']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['admin_login_info_bg_images_rand']['error_tips']); ?>" required <?php if(isset($data['admin_login_info_bg_images_rand']['value']) and $data['admin_login_info_bg_images_rand']['value'] == $v['id']): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                        <?php if(is_array(MyLang('config.admin_login_info_bg_images_list_tips'))): ?>
                            <div class="am-tips-card">
                                <p><?php echo implode('</p><p>', MyLang('config.admin_login_info_bg_images_list_tips')); ?></p>
                            </div>
                        <?php endif; ?>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['admin_login_type']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['admin_login_type']['describe']); ?></span></label>
                        <div class="am-checkbox-group">
                            <?php foreach($common_login_type_list as $v): ?>
                                <label class="am-checkbox-inline">
                                    <input type="checkbox" name="<?php echo htmlentities((string) $data['admin_login_type']['only_tag']); ?>" value="<?php echo htmlentities((string) $v['value']); ?>" <?php if(isset($data['admin_login_type']['value']) and in_array($v['value'], $data['admin_login_type']['value'])): ?>checked<?php endif; ?> data-validation-message="<?php echo htmlentities((string) $data['admin_login_type']['error_tips']); ?>" data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['admin_login_img_verify_state']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['admin_login_img_verify_state']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_close_open_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['value']); ?>" name="<?php echo htmlentities((string) $data['admin_login_img_verify_state']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['admin_login_img_verify_state']['error_tips']); ?>" required <?php if(isset($data['admin_login_img_verify_state']['value']) and $data['admin_login_img_verify_state']['value'] == $v['value']): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                </div>

                <!-- 商品 -->
                <div class="item <?php if($config_tab_key == 'goods'): ?>am-active<?php endif; ?>" data-key="goods">
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_spec_add_max_number']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_spec_add_max_number']['describe']); ?></span></label>
                        <input type="number" name="<?php echo htmlentities((string) $data['common_spec_add_max_number']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_spec_add_max_number']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_spec_add_max_number']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_spec_add_max_number']['value']); ?>"<?php endif; ?> />
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_is_goods_single_category_mode']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_is_goods_single_category_mode']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_is_text_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['id']); ?>" name="<?php echo htmlentities((string) $data['common_is_goods_single_category_mode']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_is_goods_single_category_mode']['error_tips']); ?>" required <?php if(isset($data['common_is_goods_single_category_mode']['value']) and $data['common_is_goods_single_category_mode']['value'] == $v['id']): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_is_goods_parameters_custom_mode']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_is_goods_parameters_custom_mode']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_is_text_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['id']); ?>" name="<?php echo htmlentities((string) $data['common_is_goods_parameters_custom_mode']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_is_goods_parameters_custom_mode']['error_tips']); ?>" required <?php if(isset($data['common_is_goods_parameters_custom_mode']['value']) and $data['common_is_goods_parameters_custom_mode']['value'] == $v['id']): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_goods_base_fields_required_data']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_goods_base_fields_required_data']['describe']); ?></span></label>
                        <div class="form-data-base-fields-list">
                            <?php if(!empty($common_goods_base_fields_list) and is_array($common_goods_base_fields_list)): foreach($common_goods_base_fields_list as $k=>$v): ?>
                                    <div class="am-flex am-flex-row am-flex-items-center am-gap-1 am-margin-top-sm">
                                        <span class="am-text-right"><?php echo htmlentities((string) $v); ?></span>
                                        <select name="<?php echo htmlentities((string) $data['common_goods_base_fields_required_data']['only_tag']); ?>[<?php echo htmlentities((string) $k); ?>]" class="am-radius chosen-select" data-placeholder="<?php echo MyLang('optional_tips'); ?>" multiple>
                                            <?php if(!empty($goods_category_list)): foreach($goods_category_list as $v): ?>
                                                    <option value="<?php echo htmlentities((string) $v['id']); ?>" <?php if(!empty($data['common_goods_base_fields_required_data']['value']) and !empty($data['common_goods_base_fields_required_data']['value'][$k]) and in_array($v['id'], $data['common_goods_base_fields_required_data']['value'][$k])): ?>selected<?php endif; ?>><?php echo htmlentities((string) $v['name']); ?></option>
                                                    <?php if(!empty($v['items'])): foreach($v['items'] as $vs): ?>
                                                            <option style="padding-left: 20px;" value="<?php echo htmlentities((string) $vs['id']); ?>" <?php if(!empty($data['common_goods_base_fields_required_data']['value']) and !empty($data['common_goods_base_fields_required_data']['value'][$k]) and in_array($vs['id'], $data['common_goods_base_fields_required_data']['value'][$k])): ?>selected<?php endif; ?>><?php if(empty($vs['items'])): ?>├<?php else: ?>└<?php endif; ?>² <?php echo htmlentities((string) $vs['name']); ?></option>
                                                            <?php if(!empty($vs['items'])): foreach($vs['items'] as $kss=>$vss): ?>
                                                                    <option style="padding-left: 40px;" value="<?php echo htmlentities((string) $vss['id']); ?>" <?php if(!empty($data['common_goods_base_fields_required_data']['value']) and !empty($data['common_goods_base_fields_required_data']['value'][$k]) and in_array($vss['id'], $data['common_goods_base_fields_required_data']['value'][$k])): ?>selected<?php endif; ?>><?php if($kss == count($vs['items'])-1): ?>└<?php else: ?>├<?php endif; ?>³ <?php echo htmlentities((string) $vss['name']); ?></option>
                                                                <?php endforeach; ?>
                                                            <?php endif; ?>
                                                        <?php endforeach; ?>
                                                    <?php endif; ?>
                                                <?php endforeach; ?>
                                            <?php endif; ?>
                                        </select>
                                    </div>
                                <?php endforeach; ?>
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_goods_admin_nav_custom_data']['name']); ?></label>
                        <div class="form-data-base-fields-list">
                            <?php if(!empty($goods_admin_nav_list) and is_array($goods_admin_nav_list)): foreach($goods_admin_nav_list as $k=>$v): ?>
                                    <div class="am-flex am-flex-row am-gap-1 am-margin-top-sm">
                                        <span class="am-text-right am-padding-top-xs"><?php echo htmlentities((string) $v['name']); ?></span>
                                        <div class="am-wh-auto">
                                            <input type="text" name="<?php echo htmlentities((string) $data['common_goods_admin_nav_custom_data']['only_tag']); ?>[<?php echo htmlentities((string) $k); ?>][name]" placeholder="<?php echo MyLang('name_title'); ?>" class="am-radius" value="<?php if(!empty($data['common_goods_admin_nav_custom_data']['value']) and !empty($data['common_goods_admin_nav_custom_data']['value'][$k]) and !empty($data['common_goods_admin_nav_custom_data']['value'][$k]['name'])): ?><?php echo htmlentities((string) $data['common_goods_admin_nav_custom_data']['value'][$k]['name']); ?><?php endif; ?>" />
                                            <textarea rows="2" name="<?php echo htmlentities((string) $data['common_goods_admin_nav_custom_data']['only_tag']); ?>[<?php echo htmlentities((string) $k); ?>][tips]" class="am-radius am-margin-top-xs" placeholder="<?php echo MyLang('tips_title'); ?>"><?php if(!empty($data['common_goods_admin_nav_custom_data']['value']) and !empty($data['common_goods_admin_nav_custom_data']['value'][$k]) and !empty($data['common_goods_admin_nav_custom_data']['value'][$k]['tips'])): ?><?php echo htmlentities((string) $data['common_goods_admin_nav_custom_data']['value'][$k]['tips']); ?><?php endif; ?></textarea>
                                        </div>
                                    </div>
                                <?php endforeach; ?>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>

                <!-- 地图 -->
                <div class="item <?php if($config_tab_key == 'map'): ?>am-active<?php endif; ?>" data-key="map">
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_map_type']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_map_type']['describe']); ?></span><a href="javascript:;" class="am-icon-question-circle am-margin-left-xs" data-am-popover="{content: '<?php echo MyLang('config.map_type_tips'); ?>', trigger: 'hover focus', theme: 'sm'}"></a></label>
                        <div class="am-radio-group">
                            <?php foreach($common_map_type_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['id']); ?>" name="<?php echo htmlentities((string) $data['common_map_type']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_map_type']['error_tips']); ?>" required <?php if(isset($data['common_map_type']['value']) and $data['common_map_type']['value'] == $v['id']): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_baidu_map_ak']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_baidu_map_ak']['describe']); ?></span></label>
                        <input type="text" name="<?php echo htmlentities((string) $data['common_baidu_map_ak']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_baidu_map_ak']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_baidu_map_ak']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_baidu_map_ak']['value']); ?>"<?php endif; ?> />
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_baidu_map_ak_server']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_baidu_map_ak_server']['describe']); ?></span></label>
                        <input type="text" name="<?php echo htmlentities((string) $data['common_baidu_map_ak_server']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_baidu_map_ak_server']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_baidu_map_ak_server']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_baidu_map_ak_server']['value']); ?>"<?php endif; ?> />
                        <div class="am-tips-card">
                            <?php echo MyLang('config.apply_map_baidu_name'); if(!empty($site_store_links) and !empty($site_store_links['baidu_map_course'])): ?><a href="<?php echo htmlentities((string) $site_store_links['baidu_map_course']); ?>" target="_blank" rel="noopener noreferrer" class="am-margin-left-sm"><?php echo MyLang('view_config_course_name'); ?> <i class="am-icon-external-link"></i></a><?php endif; ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_amap_map_ak']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_amap_map_ak']['describe']); ?></span></label>
                        <input type="text" name="<?php echo htmlentities((string) $data['common_amap_map_ak']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_amap_map_ak']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_amap_map_ak']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_amap_map_ak']['value']); ?>"<?php endif; ?> />
                        <input type="text" name="<?php echo htmlentities((string) $data['common_amap_map_safety_ak']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_amap_map_safety_ak']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_amap_map_safety_ak']['error_tips']); ?>" class="am-radius am-margin-top-xs" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_amap_map_safety_ak']['value']); ?>"<?php endif; ?> />
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_amap_map_ak_server']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_amap_map_ak_server']['describe']); ?></span></label>
                        <input type="text" name="<?php echo htmlentities((string) $data['common_amap_map_ak_server']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_amap_map_ak_server']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_amap_map_ak_server']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_amap_map_ak_server']['value']); ?>"<?php endif; ?> />
                        <div class="am-tips-card">
                            <?php echo MyLang('config.apply_map_amap_name'); if(!empty($site_store_links) and !empty($site_store_links['amap_map_course'])): ?><a href="<?php echo htmlentities((string) $site_store_links['amap_map_course']); ?>" target="_blank" rel="noopener noreferrer" class="am-margin-left-sm"><?php echo MyLang('view_config_course_name'); ?> <i class="am-icon-external-link"></i></a><?php endif; ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_tencent_map_ak']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_tencent_map_ak']['describe']); ?></span></label>
                        <input type="text" name="<?php echo htmlentities((string) $data['common_tencent_map_ak']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_tencent_map_ak']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_tencent_map_ak']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_tencent_map_ak']['value']); ?>"<?php endif; ?> />
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_tencent_map_ak_server']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_tencent_map_ak_server']['describe']); ?></span></label>
                        <input type="text" name="<?php echo htmlentities((string) $data['common_tencent_map_ak_server']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_tencent_map_ak_server']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_tencent_map_ak_server']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_tencent_map_ak_server']['value']); ?>"<?php endif; ?> />
                        <div class="am-tips-card">
                            <?php echo MyLang('config.apply_map_tencent_name'); if(!empty($site_store_links) and !empty($site_store_links['tencent_map_course'])): ?><a href="<?php echo htmlentities((string) $site_store_links['tencent_map_course']); ?>" target="_blank" rel="noopener noreferrer" class="am-margin-left-sm"><?php echo MyLang('view_config_course_name'); ?> <i class="am-icon-external-link"></i></a><?php endif; ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_tianditu_map_ak']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_tianditu_map_ak']['describe']); ?></span></label>
                        <input type="text" name="<?php echo htmlentities((string) $data['common_tianditu_map_ak']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_tianditu_map_ak']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_tianditu_map_ak']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_tianditu_map_ak']['value']); ?>"<?php endif; ?> />
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_tianditu_map_ak_server']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_tianditu_map_ak_server']['describe']); ?></span></label>
                        <input type="text" name="<?php echo htmlentities((string) $data['common_tianditu_map_ak_server']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_tianditu_map_ak_server']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_tianditu_map_ak_server']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_tianditu_map_ak_server']['value']); ?>"<?php endif; ?> />
                        <div class="am-tips-card">
                            <?php echo MyLang('config.apply_map_tianditu_name'); if(!empty($site_store_links) and !empty($site_store_links['tianditu_map_course'])): ?><a href="<?php echo htmlentities((string) $site_store_links['tianditu_map_course']); ?>" target="_blank" rel="noopener noreferrer" class="am-margin-left-sm"><?php echo MyLang('view_config_course_name'); ?> <i class="am-icon-external-link"></i></a><?php endif; ?>
                        </div>
                    </div>
                </div>

                <!-- 扩展 -->
                <div class="item <?php if($config_tab_key == 'extend'): ?>am-active<?php endif; ?>" data-key="extend">
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_is_https_connect_store']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_is_https_connect_store']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_is_text_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['id']); ?>" name="<?php echo htmlentities((string) $data['common_is_https_connect_store']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_is_https_connect_store']['error_tips']); ?>" required <?php if(isset($data['common_is_https_connect_store']['value']) and $data['common_is_https_connect_store']['value'] == $v['id']): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                </div>

                <!-- 验证码 -->
                <div class="item <?php if($config_tab_key == 'verify-config'): ?>am-active<?php endif; ?>" data-key="verify-config">
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_verify_expire_time']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_verify_expire_time']['describe']); ?></span></label>
                        <div class="am-input-group am-input-group-sm">
                            <input type="number" min="0" step="1" name="<?php echo htmlentities((string) $data['common_verify_expire_time']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_verify_expire_time']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_verify_expire_time']['error_tips']); ?>" class="am-radius am-form-field" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_verify_expire_time']['value']); ?>"<?php endif; ?> />
                            <span class="am-input-group-label am-radius"><?php echo MyLang('second_title'); ?></span>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_verify_interval_time']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_verify_interval_time']['describe']); ?></span></label>
                        <div class="am-input-group am-input-group-sm">
                            <input type="number" min="0" step="1" name="<?php echo htmlentities((string) $data['common_verify_interval_time']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_verify_interval_time']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_verify_interval_time']['error_tips']); ?>" class="am-radius am-form-field" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_verify_interval_time']['value']); ?>"<?php endif; ?> />
                            <span class="am-input-group-label am-radius"><?php echo MyLang('second_title'); ?></span>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label class="am-block"><?php echo htmlentities((string) $data['common_img_verify_state']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_img_verify_state']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_close_open_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['value']); ?>" name="<?php echo htmlentities((string) $data['common_img_verify_state']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_img_verify_state']['error_tips']); ?>" required <?php if(isset($data['common_img_verify_state']['value']) and $data['common_img_verify_state']['value'] == $v['value']): ?>checked<?php endif; ?> data-am-ucheck><?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label class="am-block"><?php echo htmlentities((string) $data['common_images_verify_rand_type']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_images_verify_rand_type']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_site_images_verify_rand_type_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" name="<?php echo htmlentities((string) $data['common_images_verify_rand_type']['only_tag']); ?>" value="<?php echo htmlentities((string) $v['value']); ?>" <?php if(isset($data['common_images_verify_rand_type']['value']) and $v['value'] == $data['common_images_verify_rand_type']['value']): ?>checked<?php endif; ?> data-validation-message="<?php echo htmlentities((string) $data['common_images_verify_rand_type']['error_tips']); ?>" data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label class="am-block"><?php echo htmlentities((string) $data['common_images_verify_rules']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_images_verify_rules']['describe']); ?></span></label>
                        <div class="am-checkbox-group">
                            <?php foreach($common_site_images_verify_rules_list as $v): ?>
                                <label class="am-checkbox-inline">
                                    <input type="checkbox" name="<?php echo htmlentities((string) $data['common_images_verify_rules']['only_tag']); ?>" value="<?php echo htmlentities((string) $v['value']); ?>" <?php if(isset($data['common_images_verify_rules']['value']) and in_array($v['value'], $data['common_images_verify_rules']['value'])): ?>checked<?php endif; ?> data-validation-message="<?php echo htmlentities((string) $data['common_images_verify_rules']['error_tips']); ?>" data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                </div>

                <!-- 附件配置 -->
                <div class="item <?php if($config_tab_key == 'attachment-config'): ?>am-active<?php endif; ?>" data-key="attachment-config">
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['home_max_limit_image']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['home_max_limit_image']['describe']); ?></span></label>
                        <input type="number" min="0" name="<?php echo htmlentities((string) $data['home_max_limit_image']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['home_max_limit_image']['name']); ?>" data-validation-message="<?php echo htmlentities((string) $data['home_max_limit_image']['error_tips']); ?>" class="am-radius am-form-field" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['home_max_limit_image']['value']); ?>"<?php endif; ?> />
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['home_max_limit_file']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['home_max_limit_file']['describe']); ?></span></label>
                        <input type="number" min="0" name="<?php echo htmlentities((string) $data['home_max_limit_file']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['home_max_limit_file']['name']); ?>" data-validation-message="<?php echo htmlentities((string) $data['home_max_limit_file']['error_tips']); ?>" class="am-radius am-form-field" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['home_max_limit_file']['value']); ?>"<?php endif; ?> />
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['home_max_limit_video']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['home_max_limit_video']['describe']); ?></span></label>
                        <input type="number" min="0" name="<?php echo htmlentities((string) $data['home_max_limit_video']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['home_max_limit_video']['name']); ?>" data-validation-message="<?php echo htmlentities((string) $data['home_max_limit_video']['error_tips']); ?>" class="am-radius am-form-field" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['home_max_limit_video']['value']); ?>"<?php endif; ?> />
                    </div>
                </div>

                <!-- 安全 -->
                <div class="item <?php if($config_tab_key == 'safety'): ?>am-active<?php endif; ?>" data-key="safety">
                    <div class="am-form-group">
                        <label class="am-block"><?php echo htmlentities((string) $data['common_is_sensitive_data_masking']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_is_sensitive_data_masking']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_is_text_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['id']); ?>" name="<?php echo htmlentities((string) $data['common_is_sensitive_data_masking']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_is_sensitive_data_masking']['error_tips']); ?>" required <?php if(isset($data['common_is_sensitive_data_masking']['value']) and $data['common_is_sensitive_data_masking']['value'] == $v['id']): ?>checked<?php endif; ?> data-am-ucheck><?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_data_encryption_secret']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_data_encryption_secret']['describe']); ?></span></label>
                        <input type="text" name="<?php echo htmlentities((string) $data['common_data_encryption_secret']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_data_encryption_secret']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_data_encryption_secret']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_data_encryption_secret']['value']); ?>"<?php endif; ?> />
                    </div>

                    <div class="am-form-group">
                        <label class="am-block"><?php echo htmlentities((string) $data['common_token_created_rules']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_token_created_rules']['describe']); ?></span></label>
                        <div class="am-checkbox-group">
                            <?php foreach($common_token_created_rules_list as $v): ?>
                                <label class="am-checkbox-inline">
                                    <input type="checkbox" name="<?php echo htmlentities((string) $data['common_token_created_rules']['only_tag']); ?>" value="<?php echo htmlentities((string) $v['value']); ?>" <?php if(isset($data['common_token_created_rules']['value']) and is_array($data['common_token_created_rules']['value']) and in_array($v['value'], $data['common_token_created_rules']['value'])): ?>checked<?php endif; ?> data-validation-message="<?php echo htmlentities((string) $data['common_token_created_rules']['error_tips']); ?>" data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                </div>

                <!-- 缓存（Session / 数据 / Redis 自上而下展示） -->
                <div class="item <?php if($config_tab_key == 'cache-config'): ?>am-active<?php endif; ?>" data-key="cache-config">
                    <?php if(is_array(MyLang('site.site_cache_tips_list'))): ?>
                        <div class="am-operate-stretch-tips am-margin-bottom-lg">
                            <div class="title">
                                <i class="iconfont icon-tips"></i>
                                <strong title="<?php echo MyLang('operate_list_tips_msg'); ?>"><?php echo MyLang('operate_list_tips_button_text'); ?></strong>
                                <i class="iconfont icon-retract-diagonal contract" title="<?php echo MyLang('operate_list_tips_retract_text'); ?>"></i>
                            </div>
                            <p><?php echo implode('</p><p>', MyLang('site.site_cache_tips_list')); ?></p>
                        </div>
                    <?php endif; ?>

                    <div class="am-panel am-panel-default am-radius">
                        <div class="am-panel-hd">
                            <h3 class="am-panel-title"><?php echo MyLang('site.base_item_session_cache_title'); ?></h3>
                        </div>
                        <div class="am-panel-bd am-padding-bottom-0">
                            <div class="am-form-group">
                                <label><?php echo htmlentities((string) $data['common_session_is_use_cache']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_session_is_use_cache']['describe']); ?></span></label>
                                <div class="am-radio-group">
                                    <?php foreach($common_is_text_list as $v): ?>
                                        <label class="am-radio-inline">
                                            <input type="radio" value="<?php echo htmlentities((string) $v['id']); ?>" name="<?php echo htmlentities((string) $data['common_session_is_use_cache']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_session_is_use_cache']['error_tips']); ?>" required <?php if(isset($data['common_session_is_use_cache']['value']) and $data['common_session_is_use_cache']['value'] == $v['id']): ?>checked<?php endif; ?> data-am-ucheck><?php echo htmlentities((string) $v['name']); ?>
                                        </label>
                                    <?php endforeach; ?>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label><?php echo htmlentities((string) $data['common_cache_session_redis_prefix']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_cache_session_redis_prefix']['describe']); ?></span></label>
                                <input type="text" name="<?php echo htmlentities((string) $data['common_cache_session_redis_prefix']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_cache_session_redis_prefix']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cache_session_redis_prefix']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_cache_session_redis_prefix']['value']); ?>"<?php endif; ?> />
                            </div>
                        </div>
                    </div>

                    <div class="am-panel am-panel-default am-radius">
                        <div class="am-panel-hd">
                            <h3 class="am-panel-title"><?php echo MyLang('site.base_item_data_cache_title'); ?></h3>
                        </div>
                        <div class="am-panel-bd am-padding-bottom-0">
                            <div class="am-form-group">
                                <label><?php echo htmlentities((string) $data['common_data_is_use_cache']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_data_is_use_cache']['describe']); ?></span></label>
                                <div class="am-radio-group">
                                    <?php foreach($common_is_text_list as $v): ?>
                                        <label class="am-radio-inline">
                                            <input type="radio" value="<?php echo htmlentities((string) $v['id']); ?>" name="<?php echo htmlentities((string) $data['common_data_is_use_cache']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_data_is_use_cache']['error_tips']); ?>" required <?php if(isset($data['common_data_is_use_cache']['value']) and $data['common_data_is_use_cache']['value'] == $v['id']): ?>checked<?php endif; ?> data-am-ucheck><?php echo htmlentities((string) $v['name']); ?>
                                        </label>
                                    <?php endforeach; ?>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label><?php echo htmlentities((string) $data['common_cache_data_redis_prefix']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_cache_data_redis_prefix']['describe']); ?></span></label>
                                <input type="text" name="<?php echo htmlentities((string) $data['common_cache_data_redis_prefix']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_cache_data_redis_prefix']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cache_data_redis_prefix']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_cache_data_redis_prefix']['value']); ?>"<?php endif; ?> />
                            </div>
                        </div>
                    </div>

                    <div class="am-panel am-panel-default am-radius">
                        <div class="am-panel-hd">
                            <h3 class="am-panel-title"><?php echo MyLang('site.base_item_redis_cache_title'); ?></h3>
                        </div>
                        <div class="am-panel-bd am-padding-bottom-0">
                            <div class="am-form-group">
                                <label><?php echo htmlentities((string) $data['common_data_is_use_redis_cache']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_data_is_use_redis_cache']['describe']); ?></span></label>
                                <div class="am-radio-group">
                                    <?php foreach($common_is_text_list as $v): ?>
                                        <label class="am-radio-inline">
                                            <input type="radio" value="<?php echo htmlentities((string) $v['id']); ?>" name="<?php echo htmlentities((string) $data['common_data_is_use_redis_cache']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_data_is_use_redis_cache']['error_tips']); ?>" required <?php if(isset($data['common_data_is_use_redis_cache']['value']) and $data['common_data_is_use_redis_cache']['value'] == $v['id']): ?>checked<?php endif; ?> data-am-ucheck><?php echo htmlentities((string) $v['name']); ?>
                                        </label>
                                    <?php endforeach; ?>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label><?php echo htmlentities((string) $data['common_cache_data_redis_host']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_cache_data_redis_host']['describe']); ?></span></label>
                                <input type="text" name="<?php echo htmlentities((string) $data['common_cache_data_redis_host']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_cache_data_redis_host']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cache_data_redis_host']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_cache_data_redis_host']['value']); ?>"<?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label><?php echo htmlentities((string) $data['common_cache_data_redis_port']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_cache_data_redis_port']['describe']); ?></span></label>
                                <input type="text" name="<?php echo htmlentities((string) $data['common_cache_data_redis_port']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_cache_data_redis_port']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cache_data_redis_port']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_cache_data_redis_port']['value']); ?>"<?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label><?php echo htmlentities((string) $data['common_cache_data_redis_password']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_cache_data_redis_password']['describe']); ?></span></label>
                                <input type="text" name="<?php echo htmlentities((string) $data['common_cache_data_redis_password']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_cache_data_redis_password']['describe']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cache_data_redis_password']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_cache_data_redis_password']['value']); ?>"<?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label><?php echo htmlentities((string) $data['common_cache_data_redis_expire']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_cache_data_redis_expire']['describe']); ?></span></label>
                                <div class="am-input-group am-input-group-sm">
                                    <input type="number" min="0" name="<?php echo htmlentities((string) $data['common_cache_data_redis_expire']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_cache_data_redis_expire']['name']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cache_data_redis_expire']['error_tips']); ?>" class="am-radius am-form-field" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_cache_data_redis_expire']['value']); ?>"<?php endif; ?> />
                                    <span class="am-input-group-label am-radius"><?php echo MyLang('second_title'); ?></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Cookie配置 -->
                <div class="item <?php if($config_tab_key == 'cookie-config'): ?>am-active<?php endif; ?>" data-key="cookie-config">
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_cookie_domain']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_cookie_domain']['describe']); ?></span></label>
                        <input type="text" name="<?php echo htmlentities((string) $data['common_cookie_domain']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_cookie_domain']['name']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cookie_domain']['error_tips']); ?>" class="am-radius" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_cookie_domain']['value']); ?>"<?php endif; ?> />
                        <?php if(is_array(MyLang('config.cookie_domain_list_tips'))): ?>
                            <div class="am-tips-card">
                                <p><?php echo implode('</p><p>', MyLang('config.cookie_domain_list_tips')); ?></p>
                            </div>
                        <?php endif; ?>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_cookie_expire']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_cookie_expire']['describe']); ?></span></label>
                        <div class="am-input-group am-input-group-sm">
                            <input type="number" min="0" step="1" name="<?php echo htmlentities((string) $data['common_cookie_expire']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_cookie_expire']['name']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cookie_expire']['error_tips']); ?>" class="am-radius am-form-field" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_cookie_expire']['value']); ?>"<?php endif; ?> />
                            <span class="am-input-group-label am-radius"><?php echo MyLang('second_title'); ?></span>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_cookie_secure']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_cookie_secure']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_close_open_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['value']); ?>" name="<?php echo htmlentities((string) $data['common_cookie_secure']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cookie_secure']['error_tips']); ?>" required <?php if((isset($data['common_cookie_secure']['value']) and $data['common_cookie_secure']['value'] == $v['value']) or (!isset($data['common_cookie_secure']['value']) and $v['value'] == 0)): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_cookie_httponly']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_cookie_httponly']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <?php foreach($common_close_open_list as $v): ?>
                                <label class="am-radio-inline">
                                    <input type="radio" value="<?php echo htmlentities((string) $v['value']); ?>" name="<?php echo htmlentities((string) $data['common_cookie_httponly']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cookie_httponly']['error_tips']); ?>" required <?php if((isset($data['common_cookie_httponly']['value']) and $data['common_cookie_httponly']['value'] == $v['value']) or (!isset($data['common_cookie_httponly']['value']) and $v['value'] == 0)): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo htmlentities((string) $v['name']); ?>
                                </label>
                            <?php endforeach; ?>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_cookie_samesite']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_cookie_samesite']['describe']); ?></span></label>
                        <div class="am-radio-group">
                            <label class="am-radio-inline">
                                <input type="radio" value="" name="<?php echo htmlentities((string) $data['common_cookie_samesite']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cookie_samesite']['error_tips']); ?>" required <?php if(!isset($data['common_cookie_samesite']['value']) or $data['common_cookie_samesite']['value'] == ''): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo MyLang('config.cookie_samesite_option_empty'); ?>
                            </label>
                            <label class="am-radio-inline">
                                <input type="radio" value="strict" name="<?php echo htmlentities((string) $data['common_cookie_samesite']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cookie_samesite']['error_tips']); ?>" required <?php if(isset($data['common_cookie_samesite']['value']) and $data['common_cookie_samesite']['value'] == 'strict'): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo MyLang('config.cookie_samesite_option_strict'); ?>
                            </label>
                            <label class="am-radio-inline">
                                <input type="radio" value="lax" name="<?php echo htmlentities((string) $data['common_cookie_samesite']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_cookie_samesite']['error_tips']); ?>" required <?php if(isset($data['common_cookie_samesite']['value']) and $data['common_cookie_samesite']['value'] == 'lax'): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo MyLang('config.cookie_samesite_option_lax'); ?>
                            </label>
                        </div>
                    </div>
                </div>

                <!-- Session配置 -->
                <div class="item <?php if($config_tab_key == 'session-config'): ?>am-active<?php endif; ?>" data-key="session-config">
                    <div class="am-form-group">
                        <label><?php echo htmlentities((string) $data['common_session_expire']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_session_expire']['describe']); ?></span></label>
                        <div class="am-input-group am-input-group-sm">
                            <input type="number" min="0" step="1" name="<?php echo htmlentities((string) $data['common_session_expire']['only_tag']); ?>" placeholder="<?php echo htmlentities((string) $data['common_session_expire']['name']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_session_expire']['error_tips']); ?>" class="am-radius am-form-field" <?php if(!empty($data)): ?>value="<?php echo htmlentities((string) $data['common_session_expire']['value']); ?>"<?php endif; ?> />
                            <span class="am-input-group-label am-radius"><?php echo MyLang('second_title'); ?></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="am-form-popup-submit">
                <button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example" data-am-loading="{spinner: 'circle-o-notch', loadingText:'<?php echo MyLang('save_title'); ?>'}">
                    <i class="am-icon-save"></i>
                    <span><?php echo MyLang('save_title'); ?></span>
                </button>
            </div>
        </form>
        <!-- form end -->
	</div>
</div>
<!-- right content end  -->

<script type="text/javascript">
$(function () {
    $('form[data-config-reload-base]').each(function () {
        var $form = $(this);
        var base = $form.data('config-reload-base');
        function applyReloadUrl(key) {
            if (!base || !key) {
                return;
            }
            var join = base.indexOf('?') >= 0 ? '&' : '?';
            $form.attr('request-value', base + join + 'switch=' + encodeURIComponent(key));
        }
        var activeKey = $form.find('.nav-switch-btn .item.am-active').data('key');
        applyReloadUrl(activeKey);
    });
    $(document).on('click', 'form[data-config-reload-base] .nav-switch-btn .item', function () {
        var $form = $(this).closest('form');
        var base = $form.data('config-reload-base');
        var key = $(this).data('key');
        if (base && key) {
            var join = base.indexOf('?') >= 0 ? '&' : '?';
            $form.attr('request-value', base + join + 'switch=' + encodeURIComponent(key));
        }
    });
});
</script>
<!-- footer start -->
<?php echo ModuleInclude('public/footer'); ?>