index.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {extend name='main'}
  2. {block name="button"}
  3. {if auth("add")}
  4. <button data-modal='{:url("add")}?uid={$uid}' data-title="添加用户" class='layui-btn layui-btn-sm layui-btn-primary'>添加</button>
  5. {/if}
  6. <!--{if auth("remove")}-->
  7. <!--<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>-->
  8. <!--{/if}-->
  9. {/block}
  10. {block name="content"}
  11. <div class="think-box-shadow">
  12. {include file='userimage/index_search'}
  13. <table class="layui-table margin-top-10" lay-skin="line">
  14. {notempty name='list'}
  15. <thead>
  16. <tr>
  17. <th class='list-table-check-td think-checkbox'>
  18. <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
  19. </th>
  20. <th class='text-left nowrap'>标题</th>
  21. <th class='text-left nowrap'>图片</th>
  22. <th class='text-left nowrap'>数量</th>
  23. <!-- <th class='text-left nowrap'>状态</th>-->
  24. <th class='text-left nowrap'></th>
  25. </tr>
  26. </thead>
  27. {/notempty}
  28. <tbody>
  29. {foreach $list as $key=>$vo}
  30. <tr data-dbclick>
  31. <td class='list-table-check-td think-checkbox'>
  32. <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
  33. </td>
  34. <td class='text-left nowrap'>{$vo.name}</td>
  35. <td class='text-left nowrap'>
  36. {foreach $vo.images as $k=>$v}
  37. <img data-tips-image style="width:60px;height:60px" src="{$v|default=''}" class="margin-right-5 text-top">
  38. {/foreach}
  39. </td>
  40. <td class='text-left nowrap'>{$vo.number}</td>
  41. <td class='text-left nowrap'>
  42. <a data-dbclick class="layui-btn layui-btn-sm" data-title="修改" data-modal='{:url("edit")}?id={$vo.id}&type=2'>修改</a>
  43. <!-- {if auth("pass")}-->
  44. <!-- <a class="layui-btn layui-btn-normal layui-btn-sm" data-title="施工照片" data-modal='{:url("pass")}?id={$vo.id}'>施工照片</a>-->
  45. <!-- {/if}-->
  46. <!-- <a class="layui-btn layui-btn-normal layui-btn-sm" data-title="施工照片管理" data-modal='{:url("pass")}?id={$vo.id}'>施工照片管理</a>-->
  47. {if auth("remove")}
  48. <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>
  49. {/if}
  50. </td>
  51. </tr>
  52. {/foreach}
  53. </tbody>
  54. </table>
  55. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  56. </div>
  57. {/block}