index.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {extend name='main'}
  2. {block name="button"}
  3. <!--{if auth("add")}-->
  4. <a class='layui-btn layui-btn-sm layui-btn-primary' data-title="添加" data-modal='{:url("add")}'>添加</a>
  5. <!--{/if}-->
  6. {/block}
  7. {block name="content"}
  8. <div class="think-box-shadow">
  9. <!-- {include file='funding/index_search'}-->
  10. <table class="layui-table margin-top-10" lay-skin="line">
  11. {notempty name='list'}
  12. <thead>
  13. <tr>
  14. <th class='list-table-check-td think-checkbox'>
  15. <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
  16. </th>
  17. <th class='text-left nowrap'>名称</th>
  18. <th class='text-left nowrap'></th>
  19. </tr>
  20. </thead>
  21. {/notempty}
  22. <tbody>
  23. {foreach $list as $key=>$vo}
  24. <tr data-dbclick>
  25. <td class='list-table-check-td think-checkbox'>
  26. <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
  27. </td>
  28. <td class='text-left nowrap'>
  29. {$vo.name}
  30. </td>
  31. <td class='text-left nowrap'>
  32. <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
  33. <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>
  34. </td>
  35. </tr>
  36. {/foreach}
  37. </tbody>
  38. </table>
  39. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  40. </div>
  41. {/block}