表单功能完善
This commit is contained in:
@@ -7,6 +7,47 @@
|
||||
<a class="btn btn-warning" href="{:url('/admin/form/lists')}"><i class="fa fa-reply"></i> 导出</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body"></div>
|
||||
<div class="box-body">
|
||||
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="30"><input class="checkbox check-all" type="checkbox"></th>
|
||||
{volist name="grid" id="item"}
|
||||
<th>{$item['title']}</th>
|
||||
{/volist}
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{if condition="empty($list)"}
|
||||
{php}
|
||||
$cow = count($grid)+2;
|
||||
{/php}
|
||||
<tr>
|
||||
<td colspan="{$cow}" align="center">暂无数据!</td>
|
||||
</tr>
|
||||
{else/}
|
||||
{volist name="list" id="item"}
|
||||
<tr>
|
||||
<td><input class="ids row-selected" type="checkbox" name="id[]" value="{$item['id']}"></td>
|
||||
{volist name="grid" id="vo"}
|
||||
{if isset($vo['format'])}
|
||||
<td>{$item[$vo['field']]|$vo['format']}</td>
|
||||
{else/}
|
||||
<td>{$item[$vo['field']]}</td>
|
||||
{/if}
|
||||
{/volist}
|
||||
<td>
|
||||
<a href="{:url('/admin/form/editdata', ['form_id' => $form_id,'id'=>$item['id']])}" >回复</a>
|
||||
<a href="{:url('/admin/form/deldata', ['form_id' => $form_id,'id'=>$item['id']])}" class="ajax-get confirm">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/volist}
|
||||
{/if}
|
||||
</tbody>
|
||||
</table>
|
||||
{$page|raw}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
Reference in New Issue
Block a user