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

<!-- right content start  -->
<div class="content-right">
	<div class="content">
        <?php if(AdminIsPower('screeningprice', 'save')): ?>
            <!-- save win start -->
            <div class="am-popup am-radius" id="data-save-win">
                <div class="am-popup-inner">
                    <div class="am-popup-hd">
                        <h4 class="am-popup-title" data-add-title="<?php echo MyLang('screeningprice.base_nav_title'); ?><?php echo MyLang('add_title'); ?>" data-edit-title="<?php echo MyLang('screeningprice.base_nav_title'); ?><?php echo MyLang('edit_title'); ?>"><?php echo MyLang('screeningprice.base_nav_title'); ?><?php echo MyLang('add_title'); ?></h4>
                        <span data-am-modal-close class="am-close">&times;</span>
                    </div>
                    <div class="am-popup-bd">
                        <!-- form start -->
                        <form class="am-form form-validation am-form-popup-fixed" action="<?php echo MyUrl('admin/screeningprice/save'); ?>" method="POST" request-type="ajax-fun" request-value="CardFormSaveBack">
                            <?php if(is_array(MyLang('screeningprice.top_tips_list'))): ?>
                                <div class="am-operate-stretch-tips">
                                    <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('screeningprice.top_tips_list')); ?></p>
                                </div>
                            <?php endif; ?>
                            <div class="am-form-group row">
                                <label><?php echo MyLang('common_service.screeningprice.form_item_name'); ?><span class="am-form-group-label-tips-must">*</span></label>
                                <input type="text" placeholder="<?php echo MyLang('common_service.screeningprice.form_item_name_message'); ?>" name="name" minlength="1" maxlength="60" data-validation-message="<?php echo MyLang('common_service.screeningprice.form_item_name_message'); ?>" class="am-radius" required />
                            </div>
                            <div class="am-form-group row">
                                <label><?php echo MyLang('common_service.screeningprice.form_item_min_price'); ?><span class="am-form-group-label-tips-must">*</span></label>
                                <input type="number" placeholder="<?php echo MyLang('common_service.screeningprice.form_item_min_price'); ?>" name="min_price" maxlength="10" data-validation-message="<?php echo MyLang('common_service.screeningprice.form_item_min_price_message'); ?>" class="am-radius" value="0" required />
                            </div>
                            <div class="am-form-group row">
                                <label><?php echo MyLang('common_service.screeningprice.form_item_max_price'); ?><span class="am-form-group-label-tips-must">*</span></label>
                                <input type="number" placeholder="<?php echo MyLang('common_service.screeningprice.form_item_max_price'); ?>" name="max_price" maxlength="10" data-validation-message="<?php echo MyLang('common_service.screeningprice.form_item_max_price_message'); ?>" class="am-radius" value="0" required />
                            </div>
                            <?php echo ModuleInclude('lib/sort', ['is_row'=>1]); ?>
                            <?php echo ModuleInclude('lib/is_enable', ['is_row'=>1]); ?>
                            <div class="am-form-popup-submit">
                                <input type="hidden" name="id" />
                                <button type="button" class="am-btn am-btn-warning am-radius am-btn-xs" data-am-modal-close>
                                    <i class="am-icon-paint-brush"></i>
                                    <span><?php echo MyLang('cancel_title'); ?></span>
                                </button>
                                <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>
            </div>
            <!-- save win end -->
        <?php endif; ?>

        <!-- list start -->
        <div id="card" class="tree-first" data-prefix='{"name":"<?php echo htmlentities((string) $currency_symbol); ?>"}' data-suffix="" data-additional='[{"field":"min_price", "value":"0", "type":"input"}, {"field":"max_price", "value":"0", "type":"input"}]' data-node-url="<?php echo MyUrl('admin/screeningprice/getnodeson'); ?>" data-del-url="<?php if(AdminIsPower('screeningprice', 'delete')): ?><?php echo MyUrl('admin/screeningprice/delete'); ?><?php endif; ?>" data-popup-tag="#data-save-win">
            <?php echo ModuleInclude('public/loading'); ?>
        </div>
        <!-- list end -->
	</div>
</div>
<!-- right content end  -->

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

<script type="text/javascript">
	// 初始化
	Card(0, $('#card').data('node-url'), 0);

	// 回调处理
	function CardFormSaveBack(e)
	{
		CardFormSaveBackHandle(e);
	}
</script>