{template 'common/header'}
{if $operation == 'post'}

#### 添加数据

{loop $search['fields'] $row}
{$row['title']}{if $row['required']} *{/if} | {php echo $this->formatForm($row, $row['search'] || $row['variable'] == 'title' ? $data[$row['variable']] : $data['data'][$row['variable']])} {if $row['description']}{$row['description']}{/if}
{/loop}

{elseif $operation == 'display'}

{loop $search['fields'] $field} {if $field['search']}
{$field['title']} {/if} {/loop} | 创建时间 |
--- | --- | ---
{loop $list $item}
{loop $search['fields'] $field} {if $field['search']}
{$item[$field['variable']]} {/if} {/loop} | {php echo date('Y-m-d H:i:s', $item['createtime'])} |
{/loop}

{$pager}
{elseif $operation == 'batch'}

#### 添加数据

| 下载批量添加excel文件
批量导入 | 选择导入的文件更改 批量导入数据前请先下载“批量添加excel文件”添充数据后，上传即可。

{/if} {template 'common/footer'}