{extend name="$_admin_base_layout" /} {block name="content"} {notempty name="page_tips"}

{$page_tips}

{/notempty}
{notempty name="tab_nav"}
{else/} {empty name="_pop"}

### {$page_title|default=""|htmlspecialchars}

{/empty} {/notempty}
{notempty name="_search_area"}
{volist name="_search_area" id="vo"} {switch name="vo[0]"} {case value="text"}
{$vo.2|default=''}
{/case} {case value="select"}
{$vo.2|default=''}
{/case} {case value="daterange"}
{$vo.2|default=''}
{/case} {/switch} {/volist}
重置
{/notempty} {// 顶部筛选及搜索 } {$extra_html_toolbar_top|default=''}
{// 搜索框 } {notempty name="search"}
{$search_button ?= '
'}
{/notempty} {// 顶部按钮 }
{if (!empty($top_buttons))} {volist name="top_buttons" id="button"} {$button} {/volist} {/if} {// 下拉菜单} {notempty name="_select_list"}
{volist name="_select_list" id="item"}
{/volist}
{/notempty} {// 时间段搜索} {notempty name="_filter_time"}
{/notempty}
{$extra_html_toolbar_bottom|default=''}
{$extra_html_table_top|default=''}

{if (!$hide_checkbox)} {/if} {volist name="columns" id="column"} | {// 字段标题} {$column.title|default=''|htmlspecialchars} {// 排序功能} {php}if (isset($order_columns[$column['name']])): {/php} {php} $_by = input('param._by') == 'asc' ? 'desc' : 'asc'; $_param = array_merge(input('get.'), ['_by' => $_by, '_order' => $order_columns[$column['name']]]); if ($_param) { $_get = []; foreach ($_param as $key => $value) { $_get[] = $key. '=' .$value; } $_get = '?'.implode('&', $_get); } {/php} {php} if (input('param._order') == $order_columns[$column['name']]) { echo input('param._by') == 'asc' ? '' : ''; } else { echo ''; } {/php} {php}endif;{/php} {// 筛选功能} {php}if (isset($filter_columns[$column['name']])): {/php} {php} if (!empty(request()->param('_field_display'))) { $_field_display = request()->param('_field_display'); } {/php} {php}endif;{/php} {/volist}
--- | ---
{volist name="row_list" id="row"}
{if (!$hide_checkbox)} {/if} {volist name="columns" id="column"} | {php}if(is_array($column['type']) || $column['type'] == '' || $column['type'] == 'btn' || $column['type'] == 'text'):{/php} {$row[$column['name']]|default=''} {php}else:{/php} {$row[$column['name'].'__'.$column['type']]|default=''} {php}endif;{/php} {/volist}
{/volist} {empty name="row_list"} {notempty name="empty_tips"}
{php}$colspan = count($columns)+1{/php} {$empty_tips}
{/notempty} {/empty}

{$extra_html_table_bottom|default=''}
{// 分页 } {notempty name="pages"} {$pages} {/notempty} {notempty name="_page_info"}
/ {$_page_info->lastPage()} 页，共 {$_page_info->total()} 条数据，每页显示数量
{/notempty}
{/block} {block name="style"} {volist name="css_list" id="vo"} {/volist} {// 额外CSS代码 } {$extra_css|default=''} {/block} {block name="script"} {volist name="js_list" id="vo"}
{/volist} {// 额外JS代码 } {$extra_js|default=''} {/block}