<?php /*a:1:{s:67:"D:\phpstudy\WWW\12xz\app\admin\view/default\site\siteset\goods.html";i:1782629701;}*/ ?>
<?php echo ModuleInclude('public/header'); ?>

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <!-- nav start -->
        <?php if(!empty($siteset_nav_list) and is_array($siteset_nav_list)): ?>
            <?php echo ModuleInclude('public/nav_switch_tabs', [
                'nav_data'  => $siteset_nav_list,
                'view_type' => $view_type,
                'nav_type'  => $nav_type,
                'url'       => 'admin/site/index'
            ]); ?>
        <?php endif; ?>
        <!-- nav end -->

        <!-- form start -->
        <form class="am-form form-validation am-form-popup-sticky" action="<?php echo MyUrl('admin/site/save'); ?>" method="POST" request-type="ajax-view" request-value="<?php echo MyUrl('admin/site/index', ['nav_type'=>$nav_type, 'view_type'=>$view_type]); ?>" enctype="multipart/form-data">
            <div class="nav-content">
                <div class="am-form-group">
                    <label><?php echo htmlentities((string) $data['common_goods_sales_price_status']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_goods_sales_price_status']['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_goods_sales_price_status']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_goods_sales_price_status']['error_tips']); ?>" required <?php if(isset($data['common_goods_sales_price_status']['value']) and $data['common_goods_sales_price_status']['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_original_price_status']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_goods_original_price_status']['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_goods_original_price_status']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_goods_original_price_status']['error_tips']); ?>" required <?php if(isset($data['common_goods_original_price_status']['value']) and $data['common_goods_original_price_status']['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_sales_price_unit_status']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_goods_sales_price_unit_status']['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_goods_sales_price_unit_status']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_goods_sales_price_unit_status']['error_tips']); ?>" required <?php if(isset($data['common_goods_sales_price_unit_status']['value']) and $data['common_goods_sales_price_unit_status']['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_original_price_unit_status']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_goods_original_price_unit_status']['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_goods_original_price_unit_status']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_goods_original_price_unit_status']['error_tips']); ?>" required <?php if(isset($data['common_goods_original_price_unit_status']['value']) and $data['common_goods_original_price_unit_status']['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_sales_number_status']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_goods_sales_number_status']['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_goods_sales_number_status']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_goods_sales_number_status']['error_tips']); ?>" required <?php if(isset($data['common_goods_sales_number_status']['value']) and $data['common_goods_sales_number_status']['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_inventory_status']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_goods_inventory_status']['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_goods_inventory_status']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_goods_inventory_status']['error_tips']); ?>" required <?php if(isset($data['common_goods_inventory_status']['value']) and $data['common_goods_inventory_status']['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_detail_content_show_photo']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_is_goods_detail_content_show_photo']['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_detail_content_show_photo']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_is_goods_detail_content_show_photo']['error_tips']); ?>" required <?php if(isset($data['common_is_goods_detail_content_show_photo']['value']) and $data['common_is_goods_detail_content_show_photo']['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_detail_show_comments']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_is_goods_detail_show_comments']['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_detail_show_comments']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_is_goods_detail_show_comments']['error_tips']); ?>" required <?php if(isset($data['common_is_goods_detail_show_comments']['value']) and $data['common_is_goods_detail_show_comments']['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_detail_show_guess_you_like']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_is_goods_detail_show_guess_you_like']['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_detail_show_guess_you_like']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_is_goods_detail_show_guess_you_like']['error_tips']); ?>" required <?php if(isset($data['common_is_goods_detail_show_guess_you_like']['value']) and $data['common_is_goods_detail_show_guess_you_like']['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_detail_show_seeing_you']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_is_goods_detail_show_seeing_you']['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_detail_show_seeing_you']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_is_goods_detail_show_seeing_you']['error_tips']); ?>" required <?php if(isset($data['common_is_goods_detail_show_seeing_you']['value']) and $data['common_is_goods_detail_show_seeing_you']['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_detail_show_left_more']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_is_goods_detail_show_left_more']['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_detail_show_left_more']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_is_goods_detail_show_left_more']['error_tips']); ?>" required <?php if(isset($data['common_is_goods_detail_show_left_more']['value']) and $data['common_is_goods_detail_show_left_more']['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_cover_size_type']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_goods_cover_size_type']['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_goods_cover_size_type']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_goods_cover_size_type']['error_tips']); ?>" required <?php if(isset($data['common_goods_cover_size_type']['value']) and $data['common_goods_cover_size_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_goods_close_buy_button']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_goods_close_buy_button']['describe']); ?></span></label>
                    <div class="am-checkbox-group">
                        <label class="am-checkbox-inline">
                            <input type="checkbox" value="buy" name="<?php echo htmlentities((string) $data['common_goods_close_buy_button']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_goods_close_buy_button']['error_tips']); ?>" <?php if(!empty($data['common_goods_close_buy_button']['value']) and is_array($data['common_goods_close_buy_button']['value']) and in_array('buy', $data['common_goods_close_buy_button']['value'])): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo MyLang('buy_title'); ?>
                        </label>
                        <label class="am-checkbox-inline">
                            <input type="checkbox" value="cart" name="<?php echo htmlentities((string) $data['common_goods_close_buy_button']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_goods_close_buy_button']['error_tips']); ?>" <?php if(!empty($data['common_goods_close_buy_button']['value']) and is_array($data['common_goods_close_buy_button']['value']) and in_array('cart', $data['common_goods_close_buy_button']['value'])): ?>checked<?php endif; ?> data-am-ucheck /> <?php echo MyLang('cart_title'); ?>
                        </label>
                    </div>
                </div>

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

                <div class="am-form-group">
                    <label><?php echo htmlentities((string) $data['common_show_goods_category_level']['name']); ?><span class="am-form-group-label-tips"><?php echo htmlentities((string) $data['common_show_goods_category_level']['describe']); ?></span></label>
                    <div class="am-radio-group level-type">
                        <?php foreach($common_show_goods_category_level_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_show_goods_category_level']['only_tag']); ?>" data-validation-message="<?php echo htmlentities((string) $data['common_show_goods_category_level']['error_tips']); ?>" <?php if(isset($data['common_show_goods_category_level']['value']) and $data['common_show_goods_category_level']['value'] == $v['value']): ?>checked<?php endif; ?> data-am-ucheck required><?php echo htmlentities((string) $v['name']); ?>
                            </label>
                        <?php endforeach; ?>
                    </div>
                    <div class="level-type-content am-margin-top">
                        <?php foreach($common_show_goods_category_level_list as $v): ?>
                            <div class="item <?php if(isset($data['common_show_goods_category_level']['value']) and $data['common_show_goods_category_level']['value'] == $v['value']): ?>am-active<?php endif; ?>" data-key="<?php echo htmlentities((string) $v['value']); ?>">
                                <div class="am-flex am-flex-warp">
                                    <div class="am-flex am-flex-col am-gap-1">
                                        <img class="am-radius-lg" src="<?php echo StaticAttachmentUrl('site/siteset/website/web_level_'.$v['value'].'.png'); ?>" />
                                        <p><?php echo MyLang('web_title'); ?></p>
                                    </div>
                                    <div class="am-flex am-flex-col am-gap-1">
                                        <img class="am-radius-lg" src="<?php echo StaticAttachmentUrl('site/siteset/website/app_level_'.$v['value'].'.png'); ?>" />
                                        <p><?php echo MyLang('app_title'); ?></p>
                                    </div>
                                </div>
                            </div>
                        <?php endforeach; ?>
                    </div>
                    <?php if(is_array(MyLang('site.goods_tips_list'))): ?>
                        <div class="am-tips-card">
                            <p><?php echo implode('</p><p>', MyLang('site.goods_tips_list')); ?></p>
                        </div>
                    <?php endif; ?>
                </div>
            </div>
            <div class="am-form-popup-submit">
                <input type="hidden" name="nav_type" value="<?php echo htmlentities((string) $nav_type); ?>" />
                <input type="hidden" name="view_type" value="<?php echo htmlentities((string) $view_type); ?>" />
                <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  -->

<!-- footer start -->
<?php echo ModuleInclude('public/footer'); ?>