67 lines
3.4 KiB
HTML
67 lines
3.4 KiB
HTML
|
{layout name="manager/layout" /}
|
||
|
<div class="layui-card layui-col-md12">
|
||
|
<div class="layui-card-body">
|
||
|
<div class=" top-operate">
|
||
|
<a class="layui-btn layui-btn-normal" data-href="{:url('manager.slide/add')}" title="新增轮播图"><i class="layui-icon layui-icon-add-1"></i>新增轮播图</a>
|
||
|
<button class="layui-btn layui-btn-danger delAll" data-url="{:url('manager.slide/batchDel')}"><i class="layui-icon layui-icon-delete"></i>批量删除</button>
|
||
|
</div>
|
||
|
<table class="layui-table layui-form">
|
||
|
<colgroup>
|
||
|
<col width="15px" >
|
||
|
<col width="75px">
|
||
|
<col width="75px">
|
||
|
<col >
|
||
|
<col >
|
||
|
<col width="60px">
|
||
|
<col width="290px">
|
||
|
</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>
|
||
|
<td>操作</td>
|
||
|
</thead>
|
||
|
{foreach name="items" item="item"}
|
||
|
<tr class="table-lv1" data-id="{$item.id}" data-url="{:url('manager.slide/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['src']) && file_exists('.' . $item['src'])}
|
||
|
<div class="layer-photos">
|
||
|
<img src="{$item['src']}" width="100" />
|
||
|
</div>
|
||
|
{/if}
|
||
|
</td>
|
||
|
<td class="layer-photos">
|
||
|
{if !empty($item['src_mobile']) && file_exists('.' . $item['src_mobile'])}
|
||
|
<div class="layer-photos">
|
||
|
<img src="{$item['src_mobile']}" width="100" />
|
||
|
</div>
|
||
|
{/if}
|
||
|
</td>
|
||
|
<td><a class="layui-btn layui-btn-title" data-href="{:url('manager.slide/edit',['id' => $item['id']])}" title="编辑">{$item.title}</a></td>
|
||
|
<td>{$item.url}</td>
|
||
|
<td>{$item.sort}</td>
|
||
|
<td>
|
||
|
<div style="width: 265px;">
|
||
|
<a class="sort layui-btn layui-btn-primary layui-btn-xs" data-url="{:url('manager.slide/sort')}" data-id="{$item.id}" data-sort="up" href="javascript:void(0)">
|
||
|
<i class=""></i>向上
|
||
|
</a>
|
||
|
<a class="sort layui-btn layui-btn-primary layui-btn-xs" data-url="{:url('manager.slide/sort')}" data-id="{$item.id}" data-sort="down" href="javascript:void(0)">
|
||
|
<i class=""></i>向下
|
||
|
</a>
|
||
|
<a class="layui-btn layui-btn-warm layui-btn-xs" data-href="{:url('manager.slide/edit',['id'=>$item['id']])}" title="编辑">
|
||
|
<i class=""></i>编辑
|
||
|
</a>
|
||
|
<a class="del layui-btn layui-btn-danger layui-btn-xs" data-url="{:url('manager.slide/del')}" data-id="{$item.id}" href="javascript:void(0);">
|
||
|
<i class=""></i>删除
|
||
|
</a>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{/foreach}
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|