<?php /*a:10:{s:65:"D:\phpstudy\WWW\12xz\app\admin\view/default\customview\index.html";i:1782629701;s:85:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\form.html";i:1782629701;s:97:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\form_operate_top.html";i:1782629701;s:91:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\form_table.html";i:1782629701;s:98:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\form_table_search.html";i:1782629701;s:99:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\form_table_content.html";i:1782629701;s:100:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\form_operate_bottom.html";i:1782629701;s:99:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\form_fields_select.html";i:1783319679;s:112:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\form_state_operate_reason_modal.html";i:1782629701;s:96:"D:\phpstudy\WWW\12xz\app\admin\view/default\..\..\..\module\view\form_table\form_table_page.html";i:1782629701;}*/ ?>
<?php echo ModuleInclude('public/header'); ?>

<!-- content top hook -->
<?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
    <div class="plugins-tag">
        <span><?php echo htmlentities((string) $hook_name_content_top); ?></span>
    </div>
<?php endif; 
    $hook_data = MyEventTrigger($hook_name_content_top, ['hook_name'=>$hook_name_content_top, 'is_backend'=>true]);
    if(!empty($hook_data) && is_array($hook_data))
    {
        foreach($hook_data as $hook)
        {
            if(is_string($hook) || is_int($hook))
            {
                echo htmlspecialchars_decode($hook);
            }
        }
    }
 ?>

<!-- right content start  -->
<div class="am-form-table-data-container content-right">
    <div class="content">
        <!-- content top start -->
        <div class="form-table-content-top am-cf">
            
        </div>
        <!-- content top end -->

        <!-- content start  -->
        <div class="form-table-content">
            <!-- content inside top hook -->
            <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                <div class="plugins-tag">
                    <span><?php echo htmlentities((string) $hook_name_content_inside_top); ?></span>
                </div>
            <?php endif; 
                $hook_data = MyEventTrigger($hook_name_content_inside_top, ['hook_name'=>$hook_name_content_inside_top, 'is_backend'=>true]);
                if(!empty($hook_data) && is_array($hook_data))
                {
                    foreach($hook_data as $hook)
                    {
                        if(is_string($hook) || is_int($hook))
                        {
                            echo htmlspecialchars_decode($hook);
                        }
                    }
                }
             ?>

            <!-- form -->
            <?php if(!empty($form_table) and !empty($form_table['base']) and !empty($form_table['form']) and is_array($form_table['base']) and is_array($form_table['form'])): ?>
                <form class="am-form form-validation-search" method="post" action="<?php if(isset($form_table['base']['is_search']) and $form_table['base']['is_search'] == 1 and !empty($form_table['base']['search_url'])): ?><?php echo htmlentities((string) $form_table['base']['search_url']); ?><?php endif; ?>" request-type="jump" request-value="<?php if(isset($form_table['base']['is_search']) and $form_table['base']['is_search'] == 1 and !empty($form_table['base']['search_url'])): ?><?php echo htmlentities((string) $form_table['base']['search_url']); ?><?php endif; ?>">
                    <!-- nav start -->
                    <div class="form-table-navigation am-cf">
                        
                    </div>
                    <!-- nav end -->

                    <!-- top operate start -->
                    <div class="form-table-operate-top am-cf">
                        
    <!-- 是否有添加编辑页面权限 -->
    <?php if(AdminIsPower('customview', 'saveinfo')): ?>
        <a href="<?php echo MyUrl('admin/customview/saveinfo'); ?>" class="am-btn am-btn-primary am-radius am-btn-xs" target="_blank" rel="noopener noreferrer">
            <i class="iconfont icon-add am-show-sm-only"></i>
            <span><?php echo MyLang('add_title'); ?></span>
        </a>
    <?php endif; ?>

    <!-- 父级内容 -->
    
                            <!-- 公共操作 -->
<!-- 钩子 -->
<?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
    <div class="plugins-tag">
        <span><?php echo htmlentities((string) $hook_name_form_top_operate); ?></span>
    </div>
<?php endif; 
    $hook_data = MyEventTrigger($hook_name_form_top_operate, ['hook_name'=>$hook_name_form_top_operate, 'is_backend'=>true]);
    if(!empty($hook_data) && is_array($hook_data))
    {
        foreach($hook_data as $hook)
        {
            if(is_string($hook) || is_int($hook))
            {
                echo htmlspecialchars_decode($hook);
            }
        }
    }
 ?>

<!-- 是否开启数据打印操作 -->
<?php if(isset($form_table['base']['is_data_print']) and $form_table['base']['is_data_print'] == 1): ?>
    <button type="button" class="am-btn am-btn-default-plain am-radius am-btn-xs form-table-operate-top-data-print-submit">
        <i class="iconfont icon-data-print am-show-sm-only"></i>
        <span><?php echo MyLang('form_table_nav_operate_data_print_name'); ?></span>
    </button>
<?php endif; ?>

<!-- 是否开启数据导出pdf操作 -->
<?php if(isset($form_table['base']['is_data_export_pdf']) and $form_table['base']['is_data_export_pdf'] == 1): ?>
    <button type="button" class="am-btn am-btn-default-plain am-radius am-btn-xs form-table-operate-top-data-print-submit" data-is-pdf="1">
        <i class="iconfont icon-pdf am-show-sm-only"></i>
        <span><?php echo MyLang('form_table_nav_operate_data_export_pdf_name'); ?></span>
    </button>
<?php endif; ?>

<!-- 是否开启数据导出excel操作 -->
<?php if(isset($form_table['base']['is_data_export_excel']) and $form_table['base']['is_data_export_excel'] == 1): ?>
    <button type="button" class="am-btn am-btn-default-plain am-radius am-btn-xs form-table-operate-top-export-excel-submit">
        <i class="iconfont icon-excel am-show-sm-only"></i>
        <span><?php echo MyLang('form_table_nav_operate_data_export_excel_name'); ?></span>
    </button>
<?php endif; ?>

<!-- 是否开启全部删除操作 -->
<?php if(isset($form_table['base']['is_alldelete']) and $form_table['base']['is_alldelete'] == 1): ?>
    <button
        type="button"
        class="am-btn am-btn-default-plain am-radius am-btn-xs form-table-operate-top-alldelete-submit submit-ajax"
        data-url="<?php if(isset($form_table['base']['alldelete_url'])): ?><?php echo htmlentities((string) $form_table['base']['alldelete_url']); ?><?php endif; ?>"
        data-view="reload"
        data-is-confirm="1"
        data-title="<?php if(isset($form_table['base']['confirm_title'])): ?><?php echo htmlentities((string) $form_table['base']['confirm_title']); ?><?php endif; ?>"
        data-msg="<?php if(isset($form_table['base']['confirm_msg'])): ?><?php echo htmlentities((string) $form_table['base']['confirm_msg']); ?><?php endif; ?>"
        data-timeout="<?php if(isset($form_table['base']['timeout'])): ?><?php echo htmlentities((string) $form_table['base']['timeout']); ?><?php endif; ?>"
    >
        <i class="iconfont icon-clear am-show-sm-only"></i>
        <span><?php echo MyLang('delete_all_title'); ?></span>
    </button>
<?php endif; ?>

<!-- 是否开启删除操作 -->
<?php if(isset($form_table['base']['is_delete']) and $form_table['base']['is_delete'] == 1): ?>
    <button
        type="button"
        class="am-btn am-btn-default-plain am-radius am-btn-xs form-table-operate-top-delete-submit"
        data-url="<?php if(isset($form_table['base']['delete_url'])): ?><?php echo htmlentities((string) $form_table['base']['delete_url']); ?><?php endif; ?>"
        data-form="<?php if(isset($form_table['base']['delete_form'])): ?><?php echo htmlentities((string) $form_table['base']['delete_form']); ?><?php endif; ?>"
        data-key="<?php if(isset($form_table['base']['delete_key'])): ?><?php echo htmlentities((string) $form_table['base']['delete_key']); ?><?php endif; ?>"
        data-confirm-title="<?php if(isset($form_table['base']['confirm_title'])): ?><?php echo htmlentities((string) $form_table['base']['confirm_title']); ?><?php endif; ?>"
        data-confirm-msg="<?php if(isset($form_table['base']['confirm_msg'])): ?><?php echo htmlentities((string) $form_table['base']['confirm_msg']); ?><?php endif; ?>"
        data-timeout="<?php if(isset($form_table['base']['timeout'])): ?><?php echo htmlentities((string) $form_table['base']['timeout']); ?><?php endif; ?>"
    >
        <i class="iconfont icon-delete am-show-sm-only"></i>
        <span><?php echo MyLang('delete_title'); ?></span>
    </button>
<?php endif; ?>

<!-- 右侧操作 -->
<?php if((((!empty($admin) and $module_name == 'admin') or (!empty($user) and $module_name == 'index')) and (!isset($form_table['base']['is_fields_sel']) or $form_table['base']['is_fields_sel'] == 1)) or (isset($form_table['base']['is_search']) and $form_table['base']['is_search'] == 1)): ?>
    <div class="am-fr am-nbfc operate-right">
        <div class="am-flex am-gap-12">
            <!-- 是否开启搜索操作 公共搜索操作放在最后面 -->
            <?php if(isset($form_table['base']['is_search']) and $form_table['base']['is_search'] == 1): ?>
                <!-- 搜索 -->
                <button type="submit" class="am-btn am-radius btn-loading-example form-table-operate-top-search-submit" data-is-sync-search="<?php if(isset($form_table['base']['is_sync_search']) and $form_table['base']['is_sync_search']): ?>1<?php else: ?>0<?php endif; ?>" data-am-loading="{loadingText:' <?php echo MyLang('search_title'); ?>'}"  data-am-popover="{content: '<?php echo MyLang('search_title'); ?>', trigger: 'hover focus', theme: 'sm'}">
                    <i class="iconfont icon-search"></i>
                </button>
                <!-- 重置 -->
                <a href="<?php if(isset($form_table['base']['search_url'])): ?><?php echo htmlentities((string) $form_table['base']['search_url']); ?><?php endif; ?>" class="am-btn am-radius form-table-operate-top-reset-submit" data-am-popover="{content: '<?php echo MyLang('clear_search_where'); ?>', trigger: 'hover focus', theme: 'sm'}">
                    <i class="iconfont icon-refresh"></i>
                </a>
                <!-- 排序数据字段 -->
                <input type="hidden" name="fp_order_by_key" value="<?php if(!empty($form_order_by) and !empty($form_order_by['key'])): ?><?php echo htmlentities((string) $form_order_by['key']); ?><?php endif; ?>" />
                <input type="hidden" name="fp_order_by_val" value="<?php if(!empty($form_order_by) and !empty($form_order_by['val'])): ?><?php echo htmlentities((string) $form_order_by['val']); ?><?php endif; ?>" />

                <!-- 分页数据字段 -->
                <input type="hidden" name="page" value="<?php if(!empty($page)): ?><?php echo htmlentities((string) $page); ?><?php endif; ?>" />
                <input type="hidden" name="page_size" value="<?php if(!empty($page_size)): ?><?php echo htmlentities((string) $page_size); ?><?php endif; ?>" />
            <?php endif; ?>

            <!-- 字段选择 -->
            <?php if(((!empty($admin) and $module_name == 'admin') or (!empty($user) and $module_name == 'index')) and (!isset($form_table['base']['is_fields_sel']) or $form_table['base']['is_fields_sel'] == 1)): ?>
                <button type="button" class="am-btn am-radius" data-am-modal="{target: '#form-table-fields-popup'}" data-am-popover="{content: '<?php echo MyLang('setup_title'); ?>', trigger: 'hover focus', theme: 'sm'}">
                    <i class="iconfont icon-cog"></i>
                </button>
            <?php endif; ?>
        </div>
    </div>
<?php endif; ?>
                        

                    </div>
                    <!-- top operate end -->

                    <!-- form table start -->
                    <div class="am-form-table-data-list-container am-scrollable-horizontal am-table-scrollable-horizontal am-radius" data-md5-key="<?php echo htmlentities((string) $form_md5_key); ?>">
    <?php $form_table_data_list = empty($form_table_data_list) ? (empty($data_list) ? [] : $data_list) : $form_table_data_list; ?>
    <table class="am-table am-table-striped am-table-hover am-text-nowrap form-table-data-list">
        <thead>
            <!-- title -->
            <tr class="form-table-search">
                <?php if(!empty($params['page_size'])): ?>
                    <input type="hidden" name="page_size" value="<?php echo htmlentities((string) $params['page_size']); ?>" />
                <?php endif; foreach($form_table['form'] as $t): if(!isset($t['is_list']) or $t['is_list'] == 1): ?>
                        <!-- 1. 上下居中 -->
                        <!-- 2. 格子大小 -->
                        <!-- 3. 内容位置居（左|中|右） -->
                        <!-- 4. 格子是否固定（left|right 左|右） -->
                        <th class="form-table-search-item-head-title-<?php echo htmlentities((string) $t['unique_key']); ?> 
                            form-table-search-item-head-value-<?php echo htmlentities((string) $t['unique_key']); ?>
                            am-text-top
                            <?php if(!empty($t['grid_size'])): ?> am-grid-<?php echo htmlentities((string) $t['grid_size']); ?> <?php endif; if(!empty($t['align'])): ?> am-text-<?php echo htmlentities((string) $t['align']); ?> <?php endif; if(!empty($t['fixed'])): ?> am-grid-fixed-<?php echo htmlentities((string) $t['fixed']); ?> <?php endif; if(!empty($t['view_type']) and $t['view_type'] == 'operate'): ?> am-operate-grid <?php endif; ?>
                        "
                        style="
                            <?php if(!empty($t['width'])): ?>
                                min-width: <?php echo htmlentities((string) $t['width']); ?>px;
                                max-width: <?php echo htmlentities((string) $t['width']); ?>px;
                            <?php endif; ?>
                        "
                        >
                            <div class="am-flex am-flex-col am-gap-1-half">
                                <div class="am-pr am-flex <?php if($t['view_type'] == 'checkbox'): ?>am-flex-justify-center<?php endif; ?>">
                                    <?php switch($t['view_type']): case "checkbox": ?>
                                            <label class="am-checkbox am-checkbox-inline">
                                                <input type="checkbox" class="form-table-operate-checkbox-submit" value="<?php if(isset($t['is_checked']) and $t['is_checked'] == 1): ?>1<?php else: ?>0<?php endif; ?>" <?php if(empty($form_table_data_list)): ?>disabled<?php endif; ?> data-am-ucheck>
                                            </label>
                                        <?php break; default: if(isset($t['label'])): ?>
                                            <div class="am-text-left"><?php echo htmlentities((string) $t['label']); ?></div>
                                            <?php endif; ?>
                                    <?php endswitch; ?>

                                    <!-- 排序操作 -->
                                    <?php if(isset($t['is_sort']) and $t['is_sort'] == 1 and !empty($t['sort_key'])): ?>
                                        <div class="form-sort-container am-nbfc am-inline-block">
                                            <a href="javascript:;" data-key="<?php echo htmlentities((string) $t['sort_key']); ?>" data-val="asc" class="sort-icon am-icon-caret-up <?php if(!empty($form_order_by) and !empty($form_order_by['key']) and ($form_order_by['key'] == $t['sort_key'] or $form_order_by['key'] == $t['view_key'] or (!empty($t['search_config']) and !empty($t['search_config']['form_name']) and $t['search_config']['form_name'] == $form_order_by['key'])) and !empty($form_order_by['val']) and $form_order_by['val'] == 'asc'): ?>sort-active<?php endif; ?>"></a>
                                            <a href="javascript:;" data-key="<?php echo htmlentities((string) $t['sort_key']); ?>" data-val="desc" class="sort-icon am-icon-caret-down <?php if(!empty($form_order_by) and !empty($form_order_by['key']) and ($form_order_by['key'] == $t['sort_key'] or $form_order_by['key'] == $t['view_key'] or (!empty($t['search_config']) and !empty($t['search_config']['form_name']) and $t['search_config']['form_name'] == $form_order_by['key'])) and !empty($form_order_by['val']) and $form_order_by['val'] == 'desc'): ?>sort-active<?php endif; ?>"></a>
                                        </div>
                                    <?php endif; ?>
                                </div>

                                <!-- search -->
                                <!-- form_table_data_search_start -->
<?php if(isset($form_table['base']['is_search']) and $form_table['base']['is_search'] == 1): if(!empty($t['search_config']) and !empty($t['search_config']['form_type']) and !empty($t['search_config']['form_name'])): switch($t['search_config']['form_type']): case "input": ?>
                <!-- 输入 -->
                <input type="text" class="am-form-field am-radius" autocomplete="off" name="<?php echo htmlentities((string) $t['form_key']); ?>" value="<?php if(!empty($form_params) and isset($form_params[$t['form_key']])): ?><?php echo htmlentities((string) $form_params[$t['form_key']]); ?><?php endif; ?>" placeholder="<?php if(isset($t['search_config']['placeholder'])): ?><?php echo htmlentities((string) $t['search_config']['placeholder']); ?><?php endif; ?>" <?php if(isset($t['search_config']['is_disabled']) and $t['search_config']['is_disabled'] == 1): ?> disabled<?php endif; if(!empty($form_params) and isset($form_params[$t['form_key']])): ?> data-am-popover="{theme: 'sm', content: '<?php echo PopoverContentHandle($form_params[$t['form_key']]); ?>', trigger: 'hover focus'}"<?php endif; ?> />
            <?php break; case "select": ?>
                <!-- 选择 -->
                <select name="<?php echo htmlentities((string) $t['form_key']); ?>"
                    class="chosen-select am-text-left"
                    data-placeholder="<?php if(isset($t['search_config']['placeholder'])): ?><?php echo htmlentities((string) $t['search_config']['placeholder']); ?><?php endif; ?>"
                    <?php if(isset($t['search_config']['is_multiple']) and $t['search_config']['is_multiple'] == 1): ?> multiple<?php endif; if(isset($t['search_config']['is_disabled']) and $t['search_config']['is_disabled'] == 1): ?> disabled<?php endif; ?>
                >
                    <?php if(isset($t['search_config']['is_seat_select']) and $t['search_config']['is_seat_select'] == 1 and (!isset($t['search_config']['is_multiple']) or $t['search_config']['is_multiple'] != 1)): ?>
                        <option value="<?php if(isset($t['search_config']['seat_select_value'])): ?><?php echo htmlentities((string) $t['search_config']['seat_select_value']); ?><?php endif; ?>">
                            <?php if(empty($t['search_config']['seat_select_text'])): if(empty($t['search_config']['placeholder'])): ?>请选择<?php if(!empty($t['label'])): ?><?php echo htmlentities((string) $t['label']); ?><?php endif; else: ?><?php echo htmlentities((string) $t['search_config']['placeholder']); ?><?php endif; else: ?><?php echo htmlentities((string) $t['search_config']['seat_select_text']); ?><?php endif; ?>
                        </option>
                    <?php endif; if(!empty($t['search_config']['data']) and is_array($t['search_config']['data'])): foreach($t['search_config']['data'] as $k=>$v): if(is_array($v)): ?>
                                <option value="<?php if(isset($t['search_config']['data_key']) and isset($v[$t['search_config']['data_key']])): ?><?php echo htmlentities((string) $v[$t['search_config']['data_key']]); ?><?php endif; ?>" <?php if(!empty($form_params) and isset($form_params[$t['form_key']]) and isset($t['search_config']['data_key']) and ((is_array($form_params[$t['form_key']]) and in_array($v[$t['search_config']['data_key']], $form_params[$t['form_key']])) or (!is_array($form_params[$t['form_key']]) and $v[$t['search_config']['data_key']] == $form_params[$t['form_key']]))): ?>selected<?php endif; ?>>
                                    <?php if(isset($t['search_config']['data_name']) and isset($v[$t['search_config']['data_name']])): ?>
                                        <?php echo htmlentities((string) $v[$t['search_config']['data_name']]); ?>
                                    <?php endif; ?>
                                </option>
                            <?php else: ?>
                                <option value="<?php echo htmlentities((string) $k); ?>" <?php if(!empty($form_params) and isset($form_params[$t['form_key']]) and isset($t['search_config']['data_key']) and ((is_array($form_params[$t['form_key']]) and in_array($k, $form_params[$t['form_key']])) or (!is_array($form_params[$t['form_key']]) and $k == $form_params[$t['form_key']]))): ?>selected<?php endif; ?>><?php echo htmlentities((string) $v); ?></option>
                            <?php endif; ?>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </select>
            <?php break; case "section": ?>
                <!-- 区间 -->
                <div class="form-table-search-section">
                    <input type="number" class="am-form-field am-radius am-inline-block" autocomplete="off" name="<?php echo htmlentities((string) $t['form_key']); ?>_min" value="<?php if(!empty($form_params) and isset($form_params[$t['form_key'].'_min'])): ?><?php echo htmlentities((string) $form_params[$t['form_key'].'_min']); ?><?php endif; ?>" <?php if(isset($t['search_config']['is_point']) and $t['search_config']['is_point'] == 1): ?>step="0.01"<?php endif; ?> min="0" placeholder="<?php if(isset($t['search_config']['placeholder_min'])): ?><?php echo htmlentities((string) $t['search_config']['placeholder_min']); ?><?php endif; ?>" <?php if(isset($t['search_config']['is_disabled']) and $t['search_config']['is_disabled'] == 1): ?> disabled<?php endif; if(!empty($form_params) and isset($form_params[$t['form_key'].'_min'])): ?> data-am-popover="{theme: 'sm', content: '<?php echo PopoverContentHandle($form_params[$t['form_key'].'_min']); ?>', trigger: 'hover focus'}"<?php endif; ?> />
                    <span>-</span>
                    <input type="number" class="am-form-field am-radius am-inline-block" autocomplete="off" name="<?php echo htmlentities((string) $t['form_key']); ?>_max" value="<?php if(!empty($form_params) and isset($form_params[$t['form_key'].'_max'])): ?><?php echo htmlentities((string) $form_params[$t['form_key'].'_max']); ?><?php endif; ?>" <?php if(isset($t['search_config']['is_point']) and $t['search_config']['is_point'] == 1): ?>step="0.01"<?php endif; ?> min="0" placeholder="<?php if(isset($t['search_config']['placeholder_max'])): ?><?php echo htmlentities((string) $t['search_config']['placeholder_max']); ?><?php endif; ?>" <?php if(isset($t['search_config']['is_disabled']) and $t['search_config']['is_disabled'] == 1): ?> disabled<?php endif; if(!empty($form_params) and isset($form_params[$t['form_key'].'_max'])): ?> data-am-popover="{theme: 'sm', content: '<?php echo PopoverContentHandle($form_params[$t['form_key'].'_max']); ?>', trigger: 'hover focus'}"<?php endif; ?> />
                </div>
            <?php break; case "datetime": ?>
                <div class="form-table-search-section form-table-search-time">
                    <input type="text" autocomplete="off" class="am-form-field am-input-sm am-radius am-inline-block Wdate" id="form-table-search-time-start-<?php echo htmlentities((string) $t['form_key']); ?>" name="<?php echo htmlentities((string) $t['form_key']); ?>_start" value="<?php if(!empty($form_params) and isset($form_params[$t['form_key'].'_start'])): ?><?php echo htmlentities((string) $form_params[$t['form_key'].'_start']); ?><?php endif; ?>" placeholder="<?php if(isset($t['search_config']['placeholder_start'])): ?><?php echo htmlentities((string) $t['search_config']['placeholder_start']); ?><?php endif; ?>" value="" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd H:mm:ss',maxDate:'#F{$dp.$D(\'form-table-search-time-end-<?php echo htmlentities((string) $t['form_key']); ?>\');}'})" autocomplete="off" <?php if(isset($t['search_config']['is_disabled']) and $t['search_config']['is_disabled'] == 1): ?> disabled<?php endif; if(!empty($form_params) and isset($form_params[$t['form_key'].'_start'])): ?> data-am-popover="{theme: 'sm', content: '<?php echo PopoverContentHandle($form_params[$t['form_key'].'_start']); ?>', trigger: 'hover focus'}"<?php endif; ?> />
                    <span>-</span>
                    <input type="text" autocomplete="off" class="am-form-field am-input-sm am-radius am-inline-block Wdate" id="form-table-search-time-end-<?php echo htmlentities((string) $t['form_key']); ?>" name="<?php echo htmlentities((string) $t['form_key']); ?>_end" value="<?php if(!empty($form_params) and isset($form_params[$t['form_key'].'_end'])): ?><?php echo htmlentities((string) $form_params[$t['form_key'].'_end']); ?><?php endif; ?>" placeholder="<?php if(isset($t['search_config']['placeholder_end'])): ?><?php echo htmlentities((string) $t['search_config']['placeholder_end']); ?><?php endif; ?>" value="" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd H:mm:ss',minDate:'#F{$dp.$D(\'form-table-search-time-start-<?php echo htmlentities((string) $t['form_key']); ?>\');}'})" autocomplete="off" <?php if(isset($t['search_config']['is_disabled']) and $t['search_config']['is_disabled'] == 1): ?> disabled<?php endif; if(!empty($form_params) and isset($form_params[$t['form_key'].'_end'])): ?> data-am-popover="{theme: 'sm', content: '<?php echo PopoverContentHandle($form_params[$t['form_key'].'_end']); ?>', trigger: 'hover focus'}"<?php endif; ?> />
                </div>
            <?php break; case "date": ?>
                <div class="form-table-search-section form-table-search-time">
                    <input type="text" autocomplete="off" class="am-form-field am-input-sm am-radius am-inline-block Wdate" id="form-table-search-time-start-<?php echo htmlentities((string) $t['form_key']); ?>" name="<?php echo htmlentities((string) $t['form_key']); ?>_start" value="<?php if(!empty($form_params) and isset($form_params[$t['form_key'].'_start'])): ?><?php echo htmlentities((string) $form_params[$t['form_key'].'_start']); ?><?php endif; ?>" placeholder="<?php if(isset($t['search_config']['placeholder_start'])): ?><?php echo htmlentities((string) $t['search_config']['placeholder_start']); ?><?php endif; ?>" value="" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'form-table-search-time-end-<?php echo htmlentities((string) $t['form_key']); ?>\',{d:-1});}'})" autocomplete="off" <?php if(isset($t['search_config']['is_disabled']) and $t['search_config']['is_disabled'] == 1): ?> disabled<?php endif; if(!empty($form_params) and isset($form_params[$t['form_key'].'_start'])): ?> data-am-popover="{theme: 'sm', content: '<?php echo PopoverContentHandle($form_params[$t['form_key'].'_start']); ?>', trigger: 'hover focus'}"<?php endif; ?> />
                    <span>-</span>
                    <input type="text" autocomplete="off" class="am-form-field am-input-sm am-radius am-inline-block Wdate" id="form-table-search-time-end-<?php echo htmlentities((string) $t['form_key']); ?>" name="<?php echo htmlentities((string) $t['form_key']); ?>_end" value="<?php if(!empty($form_params) and isset($form_params[$t['form_key'].'_end'])): ?><?php echo htmlentities((string) $form_params[$t['form_key'].'_end']); ?><?php endif; ?>" placeholder="<?php if(isset($t['search_config']['placeholder_end'])): ?><?php echo htmlentities((string) $t['search_config']['placeholder_end']); ?><?php endif; ?>" value="" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'form-table-search-time-start-<?php echo htmlentities((string) $t['form_key']); ?>\',{d:+1});}'})" autocomplete="off" <?php if(isset($t['search_config']['is_disabled']) and $t['search_config']['is_disabled'] == 1): ?> disabled<?php endif; if(!empty($form_params) and isset($form_params[$t['form_key'].'_end'])): ?> data-am-popover="{theme: 'sm', content: '<?php echo PopoverContentHandle($form_params[$t['form_key'].'_end']); ?>', trigger: 'hover focus'}"<?php endif; ?> />
                </div>
            <?php break; case "ym": ?>
                <input type="text" autocomplete="off" class="am-form-field am-input-sm am-radius Wdate" name="<?php echo htmlentities((string) $t['form_key']); ?>" value="<?php if(!empty($form_params) and isset($form_params[$t['form_key']])): ?><?php echo htmlentities((string) $form_params[$t['form_key']]); ?><?php endif; ?>" placeholder="<?php if(isset($t['search_config']['placeholder'])): ?><?php echo htmlentities((string) $t['search_config']['placeholder']); ?><?php endif; ?>" value="" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM'})" autocomplete="off" <?php if(isset($t['search_config']['is_disabled']) and $t['search_config']['is_disabled'] == 1): ?> disabled<?php endif; if(!empty($form_params) and isset($form_params[$t['form_key']])): ?> data-am-popover="{theme: 'sm', content: '<?php echo PopoverContentHandle($form_params[$t['form_key']]); ?>', trigger: 'hover focus'}"<?php endif; ?> />
            <?php break; case "module": ?>
                <!-- 从模块加载自定义模块数据 -->
                <?php if(!empty($t['search_config']['template'])): if(isset($t['search_config']['data'])): ?>
                        <?php echo ModuleInclude($t['search_config']['template'], [
                            'form'=>$t,
                            'data'=>$t['search_config']['data'],
                            'form_name_key'=>$t['form_key'],
                            'params'=>isset($form_params) ? $form_params : [],
                        ]); else: ?>
                        <?php echo ModuleInclude($t['search_config']['template'], [
                            'form'=>$t,
                            'data'=>[],
                            'form_name_key'=>$t['form_key'],
                            'params'=>isset($form_params) ? $form_params : [],
                        ]); ?>
                    <?php endif; ?>
                <?php endif; break; ?>
        <?php endswitch; ?>
    <?php endif; ?>
<?php endif; ?>
<!-- form_table_data_search_end -->

                            </div>
                        </th>
                    <?php endif; ?>
                <?php endforeach; ?>
            </tr>
        </thead>
        <tbody>
            <!-- content -->
            <!-- form_table_data_content_start -->
<?php if(!empty($form_table_data_list) and !empty($form_table['base']['key_field'])): ?>
    <!-- 处理数据数量小于默认数量 -->
    <?php $__FOR_START_1907852506__=0;$__FOR_END_1907852506__=count($form_table_data_list);for($i=$__FOR_START_1907852506__;$i < $__FOR_END_1907852506__;$i+=1){ ?>
        <!-- 1. tr 主键id名称 -->
        <!-- 2. 是否黄色选中class -->
        <tr
            <?php if(isset($form_table_data_list[$i][$form_table['base']['key_field']])): ?>
                id="data-list-<?php echo htmlentities((string) $form_table_data_list[$i][$form_table['base']['key_field']]); ?>"
            <?php endif; if(!empty($form_table['base']['status_field']) and isset($form_table_data_list[$i][$form_table['base']['status_field']]) and $form_table_data_list[$i][$form_table['base']['status_field']] == 0): ?>
                class="am-active"
            <?php endif; if(!empty($form_table_data_list[$i])): ?>
                data-original-form-table-item-data="<?php echo urlencode(base64_encode(json_encode($form_table_data_list[$i], JSON_UNESCAPED_UNICODE))); ?>"
            <?php endif; ?>
        >
            <?php foreach($form_table['form'] as $t): if(!isset($t['is_list']) or $t['is_list'] == 1): ?>
                    <!-- 1. 上下居中 -->
                    <!-- 2. 格子大小 -->
                    <!-- 3. 内容位置居（左|中|右） -->
                    <!-- 4. 格子是否固定（left|right 左|右） -->
                    <!-- 5. 是否操作列 -->
                    <td class="am-nowrap-initial
                        <?php if(isset($t['is_middle']) and $t['is_middle'] == 1): ?>am-text-middle <?php endif; if(!empty($t['grid_size'])): ?>am-grid-<?php echo htmlentities((string) $t['grid_size']); ?> <?php endif; if(!empty($t['align'])): ?>am-text-<?php echo htmlentities((string) $t['align']); ?> <?php endif; if(!empty($t['fixed'])): ?>am-grid-fixed-<?php echo htmlentities((string) $t['fixed']); ?> <?php endif; if(!empty($t['view_type']) and $t['view_type'] == 'operate'): ?>am-operate-grid <?php endif; ?>
                    "
                    style="
                        <?php if(!empty($t['width'])): ?>
                            min-width: <?php echo htmlentities((string) $t['width']); ?>px;
                            max-width: <?php echo htmlentities((string) $t['width']); ?>px;
                        <?php endif; ?>
                    "
                    >
                        <?php if(isset($form_table_data_list[$i]) and !empty($t['view_type']) and !empty($t['view_key'])): ?>
                            <!-- 数据匹配 -->
                            <?php switch($t['view_type']): case "many_text": if(!empty($form_table_data_list[$i][$t['view_key']])): if(is_array($form_table_data_list[$i][$t['view_key']])): if(isset($form_table_data_list[$i][$t['view_key']][0]) and !is_array($form_table_data_list[$i][$t['view_key']][0])): ?>
                                                <p class="am-text-truncate"><?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']][0]); ?></p>
                                            <?php endif; else: ?>
                                            <p class="am-text-truncate"><?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?></p>
                                        <?php endif; ?>
                                        <a href="javascript:;" class="am-text-blue" data-am-modal="{target: '#form-table-item-content-<?php echo htmlentities((string) $t['view_key']); ?>-<?php echo htmlentities((string) $i); ?>', width: 420}"><?php echo MyLang('view_title'); if(is_array($form_table_data_list[$i][$t['view_key']])): ?>(<?php echo count($form_table_data_list[$i][$t['view_key']]); ?>)<?php endif; ?> ></a>
                                        <div class="am-modal am-modal-no-btn" tabindex="-1" id="form-table-item-content-<?php echo htmlentities((string) $t['view_key']); ?>-<?php echo htmlentities((string) $i); ?>">
                                            <div class="am-modal-dialog am-radius">
                                                <div class="am-modal-hd">
                                                    <span><?php echo htmlentities((string) $t['label']); ?></span>
                                                    <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
                                                </div>
                                                <div class="am-modal-bd am-text-left">
                                                    <ul class="am-padding-top-sm am-padding-horizontal-xs">
                                                        <?php if(is_array($form_table_data_list[$i][$t['view_key']])): foreach($form_table_data_list[$i][$t['view_key']] as $tlv): if(!is_array($tlv)): ?>
                                                                    <li class="am-nbfc am-padding-xs"><?php echo htmlentities((string) $tlv); ?></li>
                                                                <?php endif; ?>
                                                            <?php endforeach; else: ?>
                                                            <li class="am-nbfc am-padding-xs"><?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?></li>
                                                        <?php endif; ?>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    <?php endif; break; case "many_images": if(!empty($form_table_data_list[$i][$t['view_key']]) and is_array($form_table_data_list[$i][$t['view_key']])): ?>
                                        <div class="am-nbfc">
                                            <ul data-am-widget="gallery" class="am-gallery am-avg-sm-5 am-avg-md-5 am-avg-lg-5 am-gallery-default am-padding-0" data-am-gallery="{pureview: true}">
                                                <?php foreach($form_table_data_list[$i][$t['view_key']] as $mik=>$miv): if(!empty($miv)): if(empty($t['view_data_key'])): if(!is_array($miv)): ?>
                                                                <li class="am-padding-0">
                                                                    <div class="am-gallery-item am-nbfc am-padding-right-xs am-padding-bottom-xs">
                                                                        <img src="<?php echo htmlentities((string) $miv); ?>" class="am-block am-radius" />
                                                                    </div>
                                                                </li>
                                                            <?php endif; else: if(is_array($miv) and !empty($miv[$t['view_data_key']])): ?>
                                                                <li class="am-padding-0">
                                                                    <div class="am-gallery-item am-nbfc am-padding-right-xs am-padding-bottom-xs">
                                                                        <img src="<?php echo htmlentities((string) $miv[$t['view_data_key']]); ?>" class="am-block am-radius" />
                                                                    </div>
                                                                </li>
                                                            <?php endif; ?>
                                                        <?php endif; ?>
                                                    <?php endif; ?>
                                                <?php endforeach; ?>
                                            </ul>
                                        </div>
                                    <?php endif; break; case "images": if(!empty($form_table_data_list[$i][$t['view_key']])): ?>
                                        <img src="<?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?>" class="am-img-thumbnail <?php if(!empty($t['images_shape'])): ?>am-<?php echo htmlentities((string) $t['images_shape']); ?><?php endif; ?> common-annex-view-event" data-is-download="1" data-value="<?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?>" style="<?php if(!empty($t['images_width'])): ?>width:<?php echo htmlentities((string) $t['images_width']); ?>px;<?php endif; if(!empty($t['images_height'])): ?>height:<?php echo htmlentities((string) $t['images_height']); ?>px;<?php endif; ?>" />
                                    <?php endif; break; case "video": if(!empty($form_table_data_list[$i][$t['view_key']])): ?>
                                        <video src="<?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?>" class="am-img-thumbnail <?php if(!empty($t['video_shape'])): ?>am-<?php echo htmlentities((string) $t['video_shape']); ?><?php endif; ?> common-annex-view-event" data-type="video" data-is-download="1" data-value="<?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?>" style="<?php if(!empty($t['video_width'])): ?>width:<?php echo htmlentities((string) $t['video_width']); ?>px;<?php endif; if(!empty($t['video_height'])): ?>height:<?php echo htmlentities((string) $t['video_height']); ?>px;object-fit:fill;<?php endif; ?>">your browser does not support the video tag</video>
                                    <?php endif; break; case "qrcode": if(!empty($form_table_data_list[$i][$t['view_key']])): if(isset($t['qrcode_type']) and $t['qrcode_type'] == 1): ?>
                                            <a href="javascript:;" class="text-copy-submit" data-value="<?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?>">
                                                <div class="view-qrcode-init <?php if(!empty($t['images_shape'])): ?>am-<?php echo htmlentities((string) $t['images_shape']); ?><?php endif; ?>" data-width="<?php if(empty($t['images_width'])): ?>45<?php else: ?><?php echo htmlentities((string) $t['images_width']); ?><?php endif; ?>" data-height="<?php if(empty($t['images_height'])): ?>45<?php else: ?><?php echo htmlentities((string) $t['images_height']); ?><?php endif; ?>"><?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?></div>
                                                <?php if(isset($t['is_qrcode_text']) and $t['is_qrcode_text'] == 1): ?>
                                                    <p><?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?></p>
                                                <?php endif; ?>
                                            </a>
                                        <?php else: ?>
                                            <div class="am-dropdown am-inline-block am-margin-left-xs text-copy-submit" data-value="<?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?>" data-am-dropdown="{trigger: 'hover'}">
                                                <a href="javascript:;" class="am-icon-qrcode am-dropdown-toggle"> <?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?></a>
                                                <div class="am-dropdown-content am-radius am-padding-sm am-text-center">
                                                    <div class="view-qrcode-init" data-width="130" data-height="130"><?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?></div>
                                                </div>
                                            </div>
                                        <?php endif; ?>
                                    <?php endif; break; case "progress": if((!empty($t['view_key']) and isset($form_table_data_list[$i][$t['view_key']])) or (!empty($t['progress_data_key']) and isset($form_table_data_list[$i][$t['progress_data_key']]))): ?>
                                        <div class="data-progress <?php if(!empty($t['progress_text_key'])): ?> data-progress-view-text<?php endif; ?>">
                                            <div class="am-progress am-margin-bottom-0 am-inline-block am-vertical-align-middle <?php if(isset($t['is_striped']) and $t['is_striped'] == 1): ?> am-progress-striped<?php endif; if(!empty($t['progress_size'])): ?> am-progress-<?php echo htmlentities((string) $t['progress_size']); ?><?php endif; if(isset($t['is_radius']) and $t['is_radius'] == 1): ?> am-radius<?php endif; if(isset($t['is_active']) and $t['is_active'] == 1): ?> am-active<?php endif; ?>">
                                                <div class="am-progress-bar <?php if(!empty($t['color_style'])): ?> am-progress-bar-<?php echo htmlentities((string) $t['color_style']); ?><?php endif; ?>"  style="width: <?php if(!empty($t['progress_data_key']) and isset($form_table_data_detail[$t['progress_data_key']])): ?><?php echo htmlentities((string) $form_table_data_detail[$t['progress_data_key']]); else: ?><?php echo htmlentities((string) $form_table_data_detail[$t['view_key']]); ?><?php endif; ?>%"></div>
                                            </div>
                                            <?php if(!empty($t['progress_text_key'])): ?>
                                                <span class="am-text-grey am-margin-left-xs am-vertical-align-middle"><?php if(isset($form_table_data_list[$i][$t['progress_text_key']])): ?><?php echo htmlentities((string) $form_table_data_list[$i][$t['progress_text_key']]); ?><?php endif; if(isset($t['progress_text_unit'])): ?><?php echo htmlentities((string) $t['progress_text_unit']); ?><?php endif; ?></span>
                                            <?php endif; ?>
                                        </div>
                                    <?php endif; break; case "star": 
                                        $temp_star_data_key_field = (!empty($t['view_key']) and isset($form_table_data_list[$i][$t['view_key']])) ? 'view_key' : 'star_data_key';
                                     if(!empty($t[$temp_star_data_key_field]) and isset($form_table_data_list[$i][$t[$temp_star_data_key_field]])): ?>
                                        <div class="am-text-grey am-inline-block am-vertical-align-middle">
                                            <?php $__FOR_START_1388613644__=1;$__FOR_END_1388613644__=empty($t['star_max']) ? 5 : $t['star_max'];for($star_i=$__FOR_START_1388613644__;$star_i <= $__FOR_END_1388613644__;$star_i+=1){ if($star_i > $form_table_data_list[$i][$t[$temp_star_data_key_field]]): ?>
                                                    <i class="am-icon-star-o"></i>
                                                <?php else: ?>
                                                    <i class="am-icon-star <?php if(!empty($t['color_style'])): ?> am-text-<?php echo htmlentities((string) $t['color_style']); ?><?php endif; ?>" <?php if(!empty($t['color_value'])): ?> style="color:<?php echo htmlentities((string) $t['color_value']); ?>"<?php endif; ?>></i>
                                                <?php endif; } ?>
                                        </div>
                                        <?php if(!empty($t['star_text_key'])): ?>
                                            <span class="am-text-grey am-margin-left-xs am-vertical-align-middle"><?php if(isset($form_table_data_list[$i][$t['star_text_key']])): ?><?php echo htmlentities((string) $form_table_data_list[$i][$t['star_text_key']]); ?><?php endif; if(isset($t['star_text_unit'])): ?><?php echo htmlentities((string) $t['star_text_unit']); ?><?php endif; ?></span>
                                        <?php endif; ?>
                                    <?php endif; break; case "field": ?>
                                    <div class="richtext 
                                        <?php if(isset($t['is_badge']) and $t['is_badge'] == 1): ?>
                                            am-badge <?php if(!empty($t['badge_key']) and !empty($t['badge_style']) and isset($form_table_data_list[$i][$t['badge_key']]) and isset($t['badge_style'][$form_table_data_list[$i][$t['badge_key']]]) and substr($t['badge_style'][$form_table_data_list[$i][$t['badge_key']]], 0, 1) != '#'): ?>am-badge-<?php echo htmlentities((string) $t['badge_style'][$form_table_data_list[$i][$t['badge_key']]]); ?> <?php endif; if(!empty($t['badge_shape'])): ?>am-<?php echo htmlentities((string) $t['badge_shape']); ?> <?php endif; ?> 
                                        <?php endif; if(isset($t['is_color']) and $t['is_color'] == 1 and !empty($t['color_key']) and !empty($t['color_style']) and isset($form_table_data_list[$i][$t['color_key']]) and isset($t['color_style'][$form_table_data_list[$i][$t['color_key']]]) and substr($t['color_style'][$form_table_data_list[$i][$t['color_key']]], 0, 1) != '#'): ?>am-text-<?php echo htmlentities((string) $t['color_style'][$form_table_data_list[$i][$t['color_key']]]); ?><?php endif; if(!empty($t['text_truncate'])): ?>am-text-truncate<?php if($t['text_truncate'] > 1): ?>-<?php echo htmlentities((string) $t['text_truncate']); ?><?php endif; ?><?php endif; if(isset($t['is_popup']) and $t['is_popup'] == 1 and (!empty($t['popup_url']) or (!empty($t['popup_url_key']) and !empty($form_table_data_list[$i][$t['popup_url_key']])))): ?>submit-popup<?php endif; if(isset($t['is_modal']) and $t['is_modal'] == 1 and (!empty($t['modal_url']) or (!empty($t['modal_url_key']) and !empty($form_table_data_list[$i][$t['modal_url_key']])))): ?>submit-modal<?php endif; ?>" 
                                        style="
                                        <?php if(isset($t['is_badge']) and $t['is_badge'] == 1 and !empty($t['badge_key']) and !empty($t['badge_style']) and is_array($t['badge_style']) and isset($form_table_data_list[$i][$t['badge_key']]) and isset($t['badge_style'][$form_table_data_list[$i][$t['badge_key']]]) and substr($t['badge_style'][$form_table_data_list[$i][$t['badge_key']]], 0, 1) == '#'): ?>background: <?php echo htmlentities((string) $t['badge_style'][$form_table_data_list[$i][$t['badge_key']]]); ?>;<?php endif; if(isset($t['is_color']) and $t['is_color'] == 1): if(!empty($t['color_key']) and !empty($t['color_style']) and is_array($t['color_style']) and isset($form_table_data_list[$i][$t['color_key']]) and isset($t['color_style'][$form_table_data_list[$i][$t['color_key']]]) and substr($t['color_style'][$form_table_data_list[$i][$t['color_key']]], 0, 1) == '#'): ?>color: <?php echo htmlentities((string) $t['color_style'][$form_table_data_list[$i][$t['color_key']]]); ?>;<?php endif; if(!empty($t['color_style']) and !is_array($t['color_style'])): ?>color: <?php echo htmlentities((string) $t['color_style']); ?>;<?php endif; if(!empty($t['color_field_key']) and !empty($form_table_data_list[$i][$t['color_field_key']])): ?>color: <?php echo htmlentities((string) $form_table_data_list[$i][$t['color_field_key']]); ?>;<?php endif; ?>
                                        <?php endif; ?>" 
                                        <?php if(isset($t['is_popover']) and $t['is_popover'] == 1 and !empty($t['popover_field']) and !empty($form_table_data_list[$i][$t['popover_field']])): ?>data-am-popover="{content: '<?php echo PopoverContentHandle($form_table_data_list[$i][$t['popover_field']]); ?>', trigger: 'hover focus', theme: 'sm'}"<?php endif; if(isset($t['is_popup']) and $t['is_popup'] == 1 and (!empty($t['popup_url']) or (!empty($t['popup_url_key']) and !empty($form_table_data_list[$i][$t['popup_url_key']])))): ?>
                                            data-url="<?php if(!empty($t['popup_url_key']) and !empty($form_table_data_list[$i][$t['popup_url_key']])): ?><?php echo htmlentities((string) $form_table_data_list[$i][$t['popup_url_key']]); else: if(!empty($t['popup_url'])): ?><?php echo htmlentities((string) $t['popup_url']); ?><?php endif; ?><?php endif; ?>" 
                                            <?php if(!empty($t['popup_title'])): ?>
                                                data-title="<?php echo htmlentities((string) $t['popup_title']); ?>" 
                                            <?php endif; if(!empty($t['popup_class'])): ?>
                                                data-class="<?php echo htmlentities((string) $t['popup_class']); ?>" 
                                            <?php endif; if(isset($t['popup_full'])): ?>
                                                data-full="<?php echo htmlentities((string) $t['popup_full']); ?>" 
                                            <?php endif; if(isset($t['popup_full_max'])): ?>
                                                data-full-max="<?php echo htmlentities((string) $t['popup_full_max']); ?>" 
                                            <?php endif; if(!empty($t['popup_full_max_size'])): ?>
                                                data-full-max="1" 
                                                data-full-max-size="<?php echo htmlentities((string) $t['popup_full_max_size']); ?>" 
                                            <?php endif; if(!empty($t['popup_offcanvas'])): ?>
                                                data-offcanvas="<?php echo htmlentities((string) $t['popup_offcanvas']); ?>" 
                                            <?php endif; ?>
                                        <?php endif; if(isset($t['is_modal']) and $t['is_modal'] == 1 and (!empty($t['modal_url']) or (!empty($t['modal_url_key']) and !empty($form_table_data_list[$i][$t['modal_url_key']])))): ?>
                                            data-url="<?php if(!empty($t['modal_url_key']) and !empty($form_table_data_list[$i][$t['modal_url_key']])): ?><?php echo htmlentities((string) $form_table_data_list[$i][$t['modal_url_key']]); else: if(!empty($t['modal_url'])): ?><?php echo htmlentities((string) $t['modal_url']); ?><?php endif; ?><?php endif; ?>" 
                                            <?php if(!empty($t['modal_width'])): ?>
                                                data-width="<?php echo htmlentities((string) $t['modal_width']); ?>" 
                                            <?php endif; if(!empty($t['modal_height'])): ?>
                                                data-height="<?php echo htmlentities((string) $t['modal_height']); ?>" 
                                            <?php endif; ?>
                                        <?php endif; ?> 
                                    >
                                        <!-- 图标+提示 -->
                                        <?php if(isset($t['is_first_tips']) and $t['is_first_tips'] == 1 and ((!empty($t['first_tips_key']) and !empty($form_table_data_list[$i][$t['first_tips_key']])) or (!empty($t['first_tips_data'])))): ?>
                                            <span class="am-margin-right-xs <?php if(!empty($t['first_tips_style'])): ?>am-text-<?php echo htmlentities((string) $t['first_tips_style']); ?><?php endif; ?> am-icon-<?php if(empty($t['first_tips_icon'])): ?>exclamation-circle<?php else: ?><?php echo htmlentities((string) $t['first_tips_icon']); ?><?php endif; if(isset($t['is_first_tips_copy']) and $t['is_first_tips_copy'] == 1): ?> text-copy-submit<?php endif; ?>" data-value="<?php if(!empty($t['first_tips_key']) and !empty($form_table_data_list[$i][$t['first_tips_key']])): ?><?php echo PopoverContentHandle($form_table_data_list[$i][$t['first_tips_key']]); else: ?><?php echo PopoverContentHandle($t['first_tips_data']); ?><?php endif; ?>" data-am-popover="{content: '<?php if(!empty($t['first_tips_key']) and !empty($form_table_data_list[$i][$t['first_tips_key']])): ?><?php echo PopoverContentHandle($form_table_data_list[$i][$t['first_tips_key']]); else: ?><?php echo PopoverContentHandle($t['first_tips_data']); ?><?php endif; ?>', trigger: 'hover focus', theme: '<?php if(!empty($t['first_tips_style'])): ?><?php echo htmlentities((string) $t['first_tips_style']); ?><?php endif; ?> sm'}"></span>
                                        <?php endif; ?>

                                        <!-- 连接+提示 -->
                                        <?php if(isset($t['is_first_link']) and $t['is_first_link'] == 1 and ((!empty($t['first_link_key']) and !empty($form_table_data_list[$i][$t['first_link_key']])) or (!empty($t['first_link_data'])))): ?>
                                            <a href="<?php if(!empty($t['first_link_key']) and !empty($form_table_data_list[$i][$t['first_link_key']])): ?><?php echo htmlentities((string) $form_table_data_list[$i][$t['first_link_key']]); else: ?><?php echo htmlentities((string) $t['first_link_data']); ?><?php endif; ?>" class="am-margin-right-xs <?php if(!empty($t['first_link_style'])): ?>am-text-<?php echo htmlentities((string) $t['first_link_style']); ?><?php endif; ?> am-icon-<?php if(empty($t['first_link_icon'])): ?>external-link<?php else: ?><?php echo htmlentities((string) $t['first_link_icon']); ?><?php endif; ?>" target="_blank" rel="noopener noreferrer" <?php if(!empty($t['first_link_popover'])): ?>data-am-popover="{content: '<?php echo PopoverContentHandle($t['first_link_popover']); ?>', trigger: 'hover focus', theme: 'sm'}"<?php endif; ?>></a>
                                        <?php endif; ?>

                                        <!-- 圆点 -->
                                        <?php if(isset($t['is_round_point']) and $t['is_round_point'] == 1): ?>
                                            <i class="am-icon-circle am-margin-right-xs <?php if(!empty($t['round_point_key']) and !empty($t['round_point_style']) and is_array($t['round_point_style']) and isset($form_table_data_list[$i][$t['round_point_key']]) and isset($t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]]) and substr($t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]], 0, 1) != '#'): ?>am-text-<?php echo htmlentities((string) $t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]]); ?><?php endif; ?>" 
                                            style="<?php if(!empty($t['round_point_key']) and !empty($t['round_point_style']) and is_array($t['round_point_style']) and isset($form_table_data_list[$i][$t['round_point_key']]) and isset($t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]]) and substr($t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]], 0, 1) == '#'): ?>color: <?php echo htmlentities((string) $t['round_point_style'][$form_table_data_list[$i][$t['round_point_key']]]); ?>;<?php endif; ?>"></i>
                                        <?php endif; ?>

                                        <!-- 前后固定拼接的值 前面 -->
                                        <?php if(isset($t['view_join_first'])): ?>
                                            <span><?php echo htmlentities((string) $t['view_join_first']); ?></span>
                                        <?php endif; ?>

                                        <!-- 如果字段为数组则处理多个字段拼接数据 -->
                                        <?php if(is_array($t['view_key'])): foreach($t['view_key'] as $fk=>$fv): if(isset($form_table_data_list[$i][$fv])): ?>
                                                    <span><?php echo htmlentities((string) $form_table_data_list[$i][$fv]); ?></span>
                                                    <!-- 多个字段拼接数据的的拼接字符 -->
                                                    <?php if(isset($t['view_key_join']) and $fk < count($t['view_key'])-1): ?>
                                                        <span><?php echo $t['view_key_join']; ?></span>
                                                    <?php endif; ?>
                                                <?php endif; ?>
                                            <?php endforeach; else: ?>
                                            <!-- 是否存在数据 key -->
                                            <?php if(isset($form_table_data_list[$i][$t['view_key']])): ?>
                                                <!-- 是否指定数据转换 -->
                                                <?php if(!empty($t['view_data']) and is_array($t['view_data'])): ?>
                                                    <!-- 不存在数组中则不显示 -->
                                                    <?php if(isset($t['view_data'][$form_table_data_list[$i][$t['view_key']]])): ?>
                                                        <!-- 是否指定二维数组key取值 -->
                                                        <?php if(!empty($t['view_data_key'])): if(isset($t['view_data'][$form_table_data_list[$i][$t['view_key']]][$t['view_data_key']])): ?>
                                                                <span><?php echo htmlentities((string) $t['view_data'][$form_table_data_list[$i][$t['view_key']]][$t['view_data_key']]); ?></span>
                                                                <?php if(isset($t['is_copy']) and $t['is_copy'] == 1 and !empty($t['view_data'][$form_table_data_list[$i][$t['view_key']]][$t['view_data_key']])): ?>
                                                                    <i class="iconfont icon-copy am-margin-left-xs am-color-grey text-copy-submit" data-value="<?php echo htmlentities((string) $t['view_data'][$form_table_data_list[$i][$t['view_key']]][$t['view_data_key']]); ?>"></i>
                                                                <?php endif; ?>
                                                            <?php endif; else: ?>
                                                            <span><?php echo htmlentities((string) $t['view_data'][$form_table_data_list[$i][$t['view_key']]]); ?></span>
                                                            <?php if(isset($t['is_copy']) and $t['is_copy'] == 1 and !empty($t['view_data'][$form_table_data_list[$i][$t['view_key']]])): ?>
                                                                <i class="iconfont icon-copy am-margin-left-xs am-color-grey text-copy-submit" data-value="<?php echo htmlentities((string) $t['view_data'][$form_table_data_list[$i][$t['view_key']]]); ?>"></i>
                                                            <?php endif; ?>
                                                        <?php endif; ?>
                                                    <?php endif; else: ?>
                                                    <!-- 直接展示数据 -->
                                                    <span><?php echo $form_table_data_list[$i][$t['view_key']]; ?></span>
                                                    <?php if(isset($t['is_copy']) and $t['is_copy'] == 1 and !empty($form_table_data_list[$i][$t['view_key']])): ?>
                                                        <i class="iconfont icon-copy am-margin-left-xs am-color-grey text-copy-submit" data-value="<?php echo $form_table_data_list[$i][$t['view_key']]; ?>"></i>
                                                    <?php endif; ?>
                                                <?php endif; ?>
                                            <?php endif; ?>
                                        <?php endif; ?>
                                        <!-- 前后固定拼接的值 后面 -->
                                        <?php if(isset($t['view_join_last'])): ?>
                                            <span><?php echo htmlentities((string) $t['view_join_last']); ?></span>
                                        <?php endif; ?>
                                    </div>
                                <?php break; case "module": ?>
                                    <!-- 从模块加载自定义模块数据 -->
                                    <?php echo ModuleInclude(empty($t['template']) ? $t['view_key'] : $t['template'], $form_table_data_list[$i], [
                                        'form'      => $t,
                                        'params'    => isset($form_params) ? $form_params : [],
                                    ]); break; case "status": ?>
                                    <!-- 数据状态操作按钮组件 -->
                                    <?php if(!empty($t['key_field']) and !empty($t['post_url']) and !empty($form_table_data_list[$i][$t['key_field']]) and array_key_exists($t['view_key'], $form_table_data_list[$i])): ?>
                                        <a href="javascript:;"
                                            class="am-icon-btn submit-state <?php if($form_table_data_list[$i][$t['view_key']] == 1): ?>am-success<?php else: ?>am-default<?php endif; ?>"
                                            data-url="<?php echo htmlentities((string) $t['post_url']); ?>"
                                            data-id="<?php if(isset($form_table_data_list[$i][$t['key_field']])): ?><?php echo htmlentities((string) $form_table_data_list[$i][$t['key_field']]); ?><?php endif; ?>"
                                            data-state="<?php echo htmlentities((string) $form_table_data_list[$i][$t['view_key']]); ?>"
                                            data-field="<?php echo htmlentities((string) $t['view_key']); ?>"
                                            data-is-update-status="<?php if(isset($t['is_form_su']) and $t['is_form_su'] == 1): ?>1<?php else: ?>0<?php endif; ?>"
                                            data-is-operate-reason="<?php if(isset($t['is_operate_reason']) and $t['is_operate_reason'] == 1): ?>1<?php else: ?>0<?php endif; ?>"
                                            data-operate-reason-where="<?php if(isset($t['operate_reason_where'])): ?><?php echo is_array($t['operate_reason_where']) ? implode(',', $t['operate_reason_where']) : $t['operate_reason_where']; ?><?php endif; ?>"
                                            data-is-loading="<?php if(isset($t['is_loading']) and $t['is_loading'] == 1): ?>1<?php else: ?>0<?php endif; ?>"
                                            data-loading-msg="<?php if(!empty($t['loading_msg'])): ?><?php echo htmlentities((string) $t['loading_msg']); ?><?php endif; ?>"
                                        >
                                            <i class="iconfont icon-enable"></i>
                                        </a>
                                    <?php endif; break; case "operate": ?>
                                    <!-- 是否操作列 -->
                                    <!-- 模块数据 -->
                                    <?php echo ModuleInclude($t['view_key'], $form_table_data_list[$i], [
                                        'form'      => $t,
                                        'params'    => isset($form_params) ? $form_params : [],
                                    ]); ?>

                                    <!-- 列表操作钩子 -->
                                    <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                                        <div class="plugins-tag">
                                            <span><?php echo htmlentities((string) $hook_name_form_list_operate); ?></span>
                                        </div>
                                    <?php endif; 
                                        $hook_data = MyEventTrigger($hook_name_form_list_operate, [
                                            'hook_name'     => $hook_name_form_list_operate,
                                            'is_backend'    => true,
                                            'id'            => isset($form_table_data_list[$i][$form_table['base']['key_field']]) ? $form_table_data_list[$i][$form_table['base']['key_field']] : 0,
                                            'data'          => $form_table_data_list[$i],
                                        ]);
                                        if(!empty($hook_data) && is_array($hook_data))
                                        {
                                            foreach($hook_data as $hook)
                                            {
                                                if(is_string($hook) || is_int($hook))
                                                {
                                                    echo htmlspecialchars_decode($hook);
                                                }
                                            }
                                        }
                                     break; case "radio": if(isset($form_table_data_list[$i][$form_table['base']['key_field']])): ?>
                                        <!-- 是否配置指定数据不显示控件 -->
                                        <?php if(!isset($t['not_show_data']) or 
                                            empty($t['not_show_key']) or 
                                            (is_array($t['not_show_data']) and isset($form_table_data_list[$i][$t['not_show_key']]) and !in_array($form_table_data_list[$i][$t['not_show_key']], $t['not_show_data'])) or 
                                            (isset($t['not_show_type']) and isset($form_table_data_list[$i][$t['not_show_key']]) and (
                                                ($t['not_show_type'] == 0 and $form_table_data_list[$i][$t['not_show_key']] == $t['not_show_data']) or 
                                                ($t['not_show_type'] == 1 and $form_table_data_list[$i][$t['not_show_key']] > $t['not_show_data']) or 
                                                ($t['not_show_type'] == 2 and $form_table_data_list[$i][$t['not_show_key']] < $t['not_show_data'])
                                            ))): ?>
                                            <div class="form-table-operate-radio">
                                                <label class="am-radio am-secondary am-radio-inline">
                                                    <input type="radio" name="<?php echo htmlentities((string) $t['view_key']); ?>" value="<?php echo htmlentities((string) $form_table_data_list[$i][$form_table['base']['key_field']]); ?>" <?php if(isset($t['is_checked']) and $t['is_checked'] == 1): ?>checked<?php endif; ?> data-am-ucheck />
                                                </label>
                                            </div>
                                        <?php endif; ?>
                                    <?php endif; break; case "checkbox": if(isset($form_table_data_list[$i][$form_table['base']['key_field']])): ?>
                                        <!-- 是否配置指定数据不显示控件 -->
                                        <?php if(!isset($t['not_show_data']) or 
                                            empty($t['not_show_key']) or 
                                            (is_array($t['not_show_data']) and isset($form_table_data_list[$i][$t['not_show_key']]) and !in_array($form_table_data_list[$i][$t['not_show_key']], $t['not_show_data'])) or 
                                            (isset($t['not_show_type']) and isset($form_table_data_list[$i][$t['not_show_key']]) and (
                                                ($t['not_show_type'] == 0 and $form_table_data_list[$i][$t['not_show_key']] == $t['not_show_data']) or 
                                                ($t['not_show_type'] == 1 and $form_table_data_list[$i][$t['not_show_key']] > $t['not_show_data']) or 
                                                ($t['not_show_type'] == 2 and $form_table_data_list[$i][$t['not_show_key']] < $t['not_show_data'])
                                            ))): ?>
                                            <div class="form-table-operate-checkbox">
                                                <label class="am-checkbox am-checkbox-inline">
                                                    <input type="checkbox" name="<?php echo htmlentities((string) $t['view_key']); ?>" value="<?php echo htmlentities((string) $form_table_data_list[$i][$form_table['base']['key_field']]); ?>" <?php if(isset($t['is_checked']) and $t['is_checked'] == 1): ?>checked<?php endif; ?> data-am-ucheck />
                                                </label>
                                            </div>
                                        <?php endif; ?>
                                    <?php endif; break; ?>
                            <?php endswitch; ?>

                            <!-- 底部提示文字 -->
                            <?php if(isset($t['is_bottom_text_tips']) and $t['is_bottom_text_tips'] == 1 and (
                                    (!empty($t['bottom_text_tips_key']) and !empty($form_table_data_list[$i][$t['bottom_text_tips_key']])) or
                                    !empty($t['bottom_text_tips_data'])
                                ) and (
                                    (empty($t['bottom_text_tips_where_key']) or empty($t['bottom_text_tips_where_type']) or !isset($t['bottom_text_tips_where_value'])) or 
                                    (
                                        ($t['bottom_text_tips_where_type'] == 'eq' and $form_table_data_list[$i][$t['bottom_text_tips_where_key']] == $t['bottom_text_tips_where_value']) or 
                                        ($t['bottom_text_tips_where_type'] == 'gt' and $form_table_data_list[$i][$t['bottom_text_tips_where_key']] > $t['bottom_text_tips_where_value']) or 
                                        ($t['bottom_text_tips_where_type'] == 'neq' and $form_table_data_list[$i][$t['bottom_text_tips_where_key']] != $t['bottom_text_tips_where_value']) or 
                                        ($t['bottom_text_tips_where_type'] == 'lt' and $form_table_data_list[$i][$t['bottom_text_tips_where_key']] < $t['bottom_text_tips_where_value']) or 
                                        ($t['bottom_text_tips_where_type'] == 'in' and is_array($t['bottom_text_tips_where_value']) and in_array($form_table_data_list[$i][$t['bottom_text_tips_where_key']], $t['bottom_text_tips_where_value'])) or 
                                        ($t['bottom_text_tips_where_type'] == 'notin' and is_array($t['bottom_text_tips_where_value']) and !in_array($form_table_data_list[$i][$t['bottom_text_tips_where_key']], $t['bottom_text_tips_where_value']))
                                    )
                                )): ?>
                                <p class="am-margin-top-xs <?php if(!empty($t['bottom_text_tips_style'])): ?>am-text-<?php echo htmlentities((string) $t['bottom_text_tips_style']); ?><?php endif; if(!empty($t['bottom_text_tips_icon'])): ?>am-icon-<?php echo htmlentities((string) $t['bottom_text_tips_icon']); ?><?php endif; ?>"><?php if(!empty($t['bottom_text_tips_key']) and !empty($form_table_data_list[$i][$t['bottom_text_tips_key']])): ?><?php echo htmlentities((string) $form_table_data_list[$i][$t['bottom_text_tips_key']]); else: ?><?php echo htmlentities((string) $t['bottom_text_tips_data']); ?><?php endif; ?></p>
                            <?php endif; ?>

                            <!-- 列表格子钩子 -->
                            <?php if(!empty($t['unique_key']) and $t['view_type'] != 'operate'): if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                                    <div class="plugins-tag">
                                        <span><?php echo htmlentities((string) $hook_name_form_grid); ?>_<?php echo htmlentities((string) $t['unique_key']); ?></span>
                                    </div>
                                <?php endif; 
                                    $hook_data = MyEventTrigger($hook_name_form_grid.'_'.$t['unique_key'], [
                                        'hook_name'     => $hook_name_form_grid.'_'.$t['unique_key'],
                                        'is_backend'    => true,
                                        'id'            => isset($form_table_data_list[$i][$form_table['base']['key_field']]) ? $form_table_data_list[$i][$form_table['base']['key_field']] : 0,
                                        'data'          => $form_table_data_list[$i],
                                    ]);
                                    if(!empty($hook_data) && is_array($hook_data))
                                    {
                                        foreach($hook_data as $hook)
                                        {
                                            if(is_string($hook) || is_int($hook))
                                            {
                                                echo htmlspecialchars_decode($hook);
                                            }
                                        }
                                    }
                                 ?>
                            <?php endif; ?>
                        <?php endif; ?>
                    </td>
                <?php endif; ?>
            <?php endforeach; ?>
        </tr>
    <?php } ?>
<?php endif; ?>
<!-- form_table_data_content_end -->
        </tbody>
    </table>
    <!-- 是否开启数据打印操作 -->
    <?php if((isset($form_table['base']['is_data_print']) and $form_table['base']['is_data_print'] == 1) or (isset($form_table['base']['is_data_export_pdf']) and $form_table['base']['is_data_export_pdf'] == 1) or (isset($form_table['base']['is_data_export_excel']) and $form_table['base']['is_data_export_excel'] == 1)): ?>
        <script type="text/javascript">
            // 定义打印配置
            var print_is_list_choice = 1;
            // 打印模板
            var print_template = <?php if(empty($form_table['base']['data_print_template'])): ?>{}<?php else: if(is_array($form_table['base']['data_print_template'])): ?><?php echo json_encode($form_table['base']['data_print_template'], JSON_UNESCAPED_UNICODE); else: ?><?php echo $form_table['base']['data_print_template']; ?><?php endif; ?><?php endif; ?>;
        </script>
    <?php endif; ?>

    <!-- 无数据 -->
    <div class="form-table-no-data">
        <?php if(empty($form_table_data_list)): ?>
            <!-- form_table_no_data_start -->
            <?php echo ModuleInclude('public/not_data'); ?>
            <!-- form_table_no_data_end -->
        <?php endif; ?>
    </div>
</div>
                    <!-- form table end -->

                    <!-- bottom operate start -->
                    <div class="form-table-operate-bottom am-cf am-margin-top">
                        
                            <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
    <div class="plugins-tag">
        <span><?php echo htmlentities((string) $hook_name_form_bottom_operate); ?></span>
    </div>
<?php endif; 
    $hook_data = MyEventTrigger($hook_name_form_bottom_operate, ['hook_name'=>$hook_name_form_bottom_operate, 'is_backend'=>true]);
    if(!empty($hook_data) && is_array($hook_data))
    {
        foreach($hook_data as $hook)
        {
            if(is_string($hook) || is_int($hook))
            {
                echo htmlspecialchars_decode($hook);
            }
        }
    }
 ?>
                        
                    </div>
                    <!-- bottom operate end -->
                </form>

                <!-- 字段选择 -->
                <?php if(!isset($form_table['base']['is_fields_sel']) or $form_table['base']['is_fields_sel'] == 1): ?>
    <div class="am-popup am-radius" id="form-table-fields-popup">
        <div class="am-popup-inner">
            <div class="am-popup-hd">
                <h4 class="am-popup-title"><?php echo MyLang('setup_title'); ?></h4>
                <span data-am-modal-close class="am-close">&times;</span>
            </div>
            <div class="am-popup-bd">
                <form class="am-form am-form-full-screen am-form-popup-fixed">
                    <div class="form-table-fields-select-container">
                        <div class="form-table-fields-list-container">
                            <?php if(!empty($form_user_fields)): ?>
                                <div class="form-table-fields-list-top-tips">
                                    <p><?php echo MyLang('form_table_column_sort_tips'); ?></p>
                                </div>
                                <ul class="am-flex am-flex-col am-padding-xs form-table-fields-content-container">
                                    <?php foreach($form_user_fields as $v): ?>
                                        <li class="am-padding-vertical-sm">
                                            <label class="am-checkbox-inline">
                                                <input type="checkbox" name="form_field_checkbox_value" value="<?php echo htmlentities((string) $v['key']); ?>" data-original-name="<?php echo htmlentities((string) $v['label']); ?>" data-am-ucheck <?php if(isset($v['checked']) and $v['checked'] == 1): ?>checked<?php endif; ?> />
                                                <span><?php echo htmlentities((string) $v['label']); ?></span>
                                            </label>
                                        </li>
                                    <?php endforeach; ?>
                                </ul>
                            <?php else: ?>
                                <?php echo ModuleInclude('public/not_data'); ?>
                            <?php endif; ?>
                        </div>
                    </div>
                    <div class="am-form-popup-submit">
                        <label class="am-checkbox-inline am-fl">
                            <input type="checkbox" class="form-table-field-checkbox-submit" data-value="<?php if(array_sum(array_column($form_user_fields, 'checked')) > 0): ?>1<?php else: ?>0<?php endif; ?>"  
                            data-checked-text="<?php echo MyLang('reverse_select_title'); ?>" data-not-checked-text="<?php echo MyLang('select_all_title'); ?>" 
                            value="<?php if(array_sum(array_column($form_user_fields, 'checked')) > 0): ?>1<?php else: ?>0<?php endif; ?>" data-am-ucheck <?php if(array_sum(array_column($form_user_fields, 'checked')) > 0): ?>checked<?php endif; ?> />
                            <span class="checkbox-name"><?php if(array_sum(array_column($form_user_fields, 'checked')) > 0): ?><?php echo MyLang('reverse_select_title'); else: ?><?php echo MyLang('select_all_title'); ?><?php endif; ?></span>
                        </label>

                        <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="button" class="am-btn am-btn-primary-plain am-radius am-btn-xs btn-loading-example am-margin-right-lg submit-ajax" data-url="<?php echo MyUrl($module_name.'/formtable/fieldsselectreset'); ?>" data-id="<?php echo htmlentities((string) $form_md5_key); ?>" data-key="md5_key" data-view="reload" data-is-confirm="0" data-am-loading="{spinner: 'circle-o-notch', loadingText:'<?php echo MyLang('reset_title'); ?>'}">
                            <i class="am-icon-filter"></i>
                            <span><?php echo MyLang('reset_title'); ?></span>
                        </button>
                        <button type="button" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example form-table-field-confirm-submit" data-url="<?php echo MyUrl($module_name.'/formtable/fieldsselectsave'); ?>" data-am-loading="{spinner: 'circle-o-notch', loadingText:'<?php echo MyLang('confirm_title'); ?>'}">
                            <i class="am-icon-check"></i>
                            <span><?php echo MyLang('confirm_title'); ?></span>
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>
<?php endif; ?>

                <!-- 状态操作原因 -->
                <div class="am-modal am-modal-no-btn" tabindex="-1" id="form-table-state-operate-reason-modal">
    <div class="am-modal-dialog am-radius am-nbfc">
        <div class="am-modal-hd">
            <span><?php echo MyLang('form_operate_reason'); ?></span>
            <a href="javascript: void(0)" class="am-close" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd">
            <form class="am-form am-form-popup-fixed">
                <div class="am-form-group am-margin-top">
                    <input type="text" autocomplete="off" placeholder="<?php echo MyLang('form_operate_reason_message'); ?>" maxlength="230" data-validation-message="<?php echo MyLang('form_operate_reason_message'); ?>" class="am-radius am-form-field" />
                </div>
                <div class="am-form-popup-submit">
                    <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="button" class="am-btn am-btn-primary am-radius am-btn-xs state-operate-confirm-submit">
                        <i class="am-icon-check"></i>
                        <span><?php echo MyLang('confirm_title'); ?></span>
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
            <?php else: ?>
                <div class="table-no"><i class="am-icon-warning"></i> <?php if(empty($form_error)): ?><?php echo MyLang('form_table_config_error_tips'); else: ?><?php echo htmlentities((string) $form_error); ?><?php endif; ?></div>
            <?php endif; ?>

            <!-- page start -->
            <div class="form-table-operate-page am-cf">
                
                    <!-- form_table_data_page_start -->
<?php $form_table_data_list = empty($form_table_data_list) ? (empty($data_list) ? [] : $data_list) : $form_table_data_list; if(!empty($form_table_data_list) and isset($page_html)): ?>
    <?php echo $page_html; ?>
<?php endif; ?>
<!-- form_table_data_page_end -->
                
            </div>
            <!-- page end -->

            <!-- extend start -->
            <div class="form-table-extend am-cf">
                
            </div>
            <!-- extend end -->

            <!-- content inside bottom hook -->
            <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
                <div class="plugins-tag">
                    <span><?php echo htmlentities((string) $hook_name_content_inside_bottom); ?></span>
                </div>
            <?php endif; 
                $hook_data = MyEventTrigger($hook_name_content_inside_bottom, ['hook_name'=>$hook_name_content_inside_bottom, 'is_backend'=>true]);
                if(!empty($hook_data) && is_array($hook_data))
                {
                    foreach($hook_data as $hook)
                    {
                        if(is_string($hook) || is_int($hook))
                        {
                            echo htmlspecialchars_decode($hook);
                        }
                    }
                }
             ?>
        </div>
        <!-- content end  -->
    </div>
</div>
<!-- right content end  -->

<!-- content bottom hook -->
<?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true): ?>
    <div class="plugins-tag">
        <span><?php echo htmlentities((string) $hook_name_content_bottom); ?></span>
    </div>
<?php endif; 
    $hook_data = MyEventTrigger($hook_name_content_bottom, ['hook_name'=>$hook_name_content_bottom, 'is_backend'=>true]);
    if(!empty($hook_data) && is_array($hook_data))
    {
        foreach($hook_data as $hook)
        {
            if(is_string($hook) || is_int($hook))
            {
                echo htmlspecialchars_decode($hook);
            }
        }
    }
 ?>

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

<!-- page buttom -->
