123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- {extend name='main'}
- {block name="button"}
- <!--{if auth("add")}-->
- <button data-open='{:url("add")}' data-title="添加" class='layui-btn layui-btn-sm layui-btn-primary'>添加</button>
- <!--{/if}-->
- {/block}
- {block name="content"}
- <div class="think-box-shadow">
- {include file='funding/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'>logo</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>
- <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'>
- <img data-tips-image style="width:60px;height:60px" src="{$vo.image|default=''}" class="margin-right-5 text-top">
- </td>
- <td class='text-left nowrap'>{$vo.title|default=''}</td>
- <td class='text-left nowrap'>{$vo.name|default=''}</td>
- <td class='text-left nowrap'>{$vo.tname|default=''}</td>
- <td class='text-left nowrap'>{eq name='vo.status' value='0'}<span class="color-red">已禁用</span>{else}<span class="color-green">使用中</span>{/eq}</td>
- <td class='text-left nowrap'>{$vo.create_time}</td>
- <td class='text-left nowrap'>
- <button data-open='{:url("edit")}?id={$vo.id}' data-title="编 辑" class='layui-btn layui-btn-sm layui-btn-primary'>编 辑</button>
- {if $vo.status eq 1 and auth("forbid")}
- <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>
- {elseif $vo.status eq 0 and auth("resume")}
- <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>
- {/if}
- <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>
- </td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
- </div>
- {/block}
|