1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- {extend name='main'}
- {block name="button"}
- {if auth("add")}
- <button data-modal='{:url("add")}?uid={$uid}' data-title="添加用户" class='layui-btn layui-btn-sm layui-btn-primary'>添加</button>
- {/if}
- <!--{if auth("remove")}-->
- <!--<button data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('remove')}" data-confirm="确定要删除这些用户吗?" class='layui-btn layui-btn-sm layui-btn-primary'>删除用户</button>-->
- <!--{/if}-->
- {/block}
- {block name="content"}
- <div class="think-box-shadow">
- {include file='userimage/index_search'}
- <table class="layui-table margin-top-10" lay-skin="line">
- {notempty name='list'}
- <thead>
- <tr>
- <th class='list-table-check-td think-checkbox'>
- <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
- </th>
- <th class='text-left nowrap'>标题</th>
- <th class='text-left nowrap'>图片</th>
- <th class='text-left nowrap'>数量</th>
- <!-- <th class='text-left nowrap'>状态</th>-->
- <th class='text-left nowrap'></th>
- </tr>
- </thead>
- {/notempty}
- <tbody>
- {foreach $list as $key=>$vo}
- <tr data-dbclick>
- <td class='list-table-check-td think-checkbox'>
- <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
- </td>
- <td class='text-left nowrap'>{$vo.name}</td>
- <td class='text-left nowrap'>
- {foreach $vo.images as $k=>$v}
- <img data-tips-image style="width:60px;height:60px" src="{$v|default=''}" class="margin-right-5 text-top">
- {/foreach}
- </td>
- <td class='text-left nowrap'>{$vo.number}</td>
- <td class='text-left nowrap'>
- <a data-dbclick class="layui-btn layui-btn-sm" data-title="修改" data-modal='{:url("edit")}?id={$vo.id}&type=2'>修改</a>
- <!-- {if auth("pass")}-->
- <!-- <a class="layui-btn layui-btn-normal layui-btn-sm" data-title="施工照片" data-modal='{:url("pass")}?id={$vo.id}'>施工照片</a>-->
- <!-- {/if}-->
- <!-- <a class="layui-btn layui-btn-normal layui-btn-sm" data-title="施工照片管理" data-modal='{:url("pass")}?id={$vo.id}'>施工照片管理</a>-->
- {if auth("remove")}
- <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该用户吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
- {/if}
- </td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
- </div>
- {/block}
|