index.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {extend name='main'}
  2. {block name="button"}
  3. <!--{if auth("add")}-->
  4. <button data-open='{:url("add")}' data-title="添加" class='layui-btn layui-btn-sm layui-btn-primary'>添加</button>
  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'>logo</th>
  18. <th class='text-left nowrap'>标题</th>
  19. <th class='text-left nowrap'>发布平台</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. </tr>
  25. </thead>
  26. {/notempty}
  27. <tbody>
  28. {foreach $list as $key=>$vo}
  29. <tr data-dbclick>
  30. <td class='list-table-check-td think-checkbox'>
  31. <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
  32. </td>
  33. <td class='text-left nowrap'>
  34. <img data-tips-image style="width:60px;height:60px" src="{$vo.image|default=''}" class="margin-right-5 text-top">
  35. </td>
  36. <td class='text-left nowrap'>{$vo.title|default=''}</td>
  37. <td class='text-left nowrap'>{$vo.name|default=''}</td>
  38. <td class='text-left nowrap'>{$vo.tname|default=''}</td>
  39. <td class='text-left nowrap'>{eq name='vo.status' value='0'}<span class="color-red">已禁用</span>{else}<span class="color-green">使用中</span>{/eq}</td>
  40. <td class='text-left nowrap'>{$vo.create_time}</td>
  41. <td class='text-left nowrap'>
  42. <button data-open='{:url("edit")}?id={$vo.id}' data-title="编 辑" class='layui-btn layui-btn-sm layui-btn-primary'>编 辑</button>
  43. {if $vo.status eq 1 and auth("forbid")}
  44. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('forbid')}">禁 用</a>
  45. {elseif $vo.status eq 0 and auth("resume")}
  46. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('resume')}">启 用</a>
  47. {/if}
  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. </td>
  50. </tr>
  51. {/foreach}
  52. </tbody>
  53. </table>
  54. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  55. </div>
  56. {/block}