83 lines
3.9 KiB
HTML
83 lines
3.9 KiB
HTML
{php}
|
|
use app\service\Image as CImage;
|
|
{/php}
|
|
{layout name="manager/layout" /}
|
|
<div class="layui-card layui-col-md12">
|
|
<div class="layui-card-body">
|
|
<div class="layui-col-xs12 between-center">
|
|
<div class="layui-inline">
|
|
<a id="add-article" class="layui-btn layui-btn-normal" data-href="{:url('manager.HallLayout/add')}" title="添加" data-width="1300"><i class="layui-icon layui-icon-add-1"></i>添加内容</a>
|
|
</div>
|
|
<form class="layui-form search-form" action="{:url('manager.HallLayout/index')}" method="get">
|
|
<input type="hidden" name="__token__" value="{$_token}" />
|
|
<div class="layui-row">
|
|
<div class="layui-inline">
|
|
<div class="layui-inline" >
|
|
<div class="layui-input-inline">
|
|
<input type="text" name="keyword" value="{$keyword??''}" class="layui-input search-input" placeholder="请输入关键字"/>
|
|
</div>
|
|
</div>
|
|
<div class="layui-inline" >
|
|
<div class="layui-input-inline" style="width:auto">
|
|
<input type="submit" class="layui-btn layui-btn-normal" value="搜索" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="layui-clear"></div>
|
|
<hr style="margin: 20px 0;">
|
|
<table class="layui-table layui-form layui-table-nobrder" id="check_box">
|
|
<colgroup>
|
|
<col width="15px" >
|
|
<col width="75px">
|
|
<col >
|
|
|
|
<col width="145px">
|
|
<col width="75px">
|
|
<col width="75px">
|
|
<col width="370px">
|
|
</colgroup>
|
|
<thead>
|
|
<td><input type="checkbox" lay-skin="primary" lay-filter="parents-table" title=""/></td>
|
|
<td>封面</td>
|
|
<td>标题</td>
|
|
<td>创建日期</td>
|
|
<td>排序</td>
|
|
|
|
<td>操作</td>
|
|
</thead>
|
|
{foreach name="list" item="item"}
|
|
<tr class="select_box table-lv1" data-id="{$item.id}" data-url="{:url('manager.HallLayout/sort')}">
|
|
<td><input type="checkbox" name="checkbox" value="{$item.id}" lay-skin="primary" lay-filter="childrens-table"/></td>
|
|
<td class="layer-photos">
|
|
{if !empty($item['layout_img']) && file_exists('.' . $item['layout_img'])}
|
|
<img src="{:CImage::getThumb($item.layout_img, 50, 50)}" layer-src="{$item.layout_img}" width="50" />
|
|
{/if}
|
|
</td>
|
|
<td><a class="layui-btn layui-btn-title" data-state="edit" data-href="{:url('manager.HallLayout/edit',['id' => $item['id']])}" title="编辑">{$item.title}</a></td>
|
|
|
|
<td>{$item.create_time|date="Y-m-d H:i"}</td>
|
|
<td>{$item.sort}</td>
|
|
|
|
<td>
|
|
<div style="width: 340px;">
|
|
|
|
|
|
|
|
<a class="layui-btn layui-btn-warm layui-btn-xs" data-state="edit" data-href="{:url('manager.HallLayout/edit',['id' => $item['id']])}" title="编辑" data-width="1300">
|
|
<i class=""></i>编辑
|
|
</a>
|
|
<a class="del layui-btn layui-btn-danger layui-btn-xs" data-url="{:url('manager.HallLayout/del')}" data-id="{$item['id']}" href="javascript:void(0);">
|
|
<i class=""></i>删除
|
|
</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
<div class="page top30">{$list->render()|raw}</div>
|
|
</div>
|
|
</div>
|