mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-06-18 02:49:16 +08:00
64 lines
2.9 KiB
PHP
64 lines
2.9 KiB
PHP
{extend name="../../admin/view/main"}
|
|
|
|
{block name="button"}
|
|
<!--{if auth("add")}-->
|
|
<button data-modal='{:url("add")}' data-title="添加奖品" class='layui-btn layui-btn-sm layui-btn-primary'>添加奖品</button>
|
|
<!--{/if}-->
|
|
<!--{if auth("del")}-->
|
|
<button data-action='{:url("del")}' data-rule="id#{key}" data-confirm="确定要删除这些奖品吗?" class='layui-btn layui-btn-sm layui-btn-primary'>删除奖品</button>
|
|
<!--{/if}-->
|
|
{/block}
|
|
|
|
{block name="content"}
|
|
<div class="think-box-shadow table-block">
|
|
{include file='luckdraw_prize/index_search'}
|
|
<table class="layui-table" 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>
|
|
<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.code|default=''}</td>
|
|
<td class='text-left nowrap'>{$vo.name|default=''}</td>
|
|
<td class='text-left nowrap'>{$vo.create_at|format_datetime}</td>
|
|
<td class='text-left nowrap'>{eq name='vo.status' value='0'}<span class="layui-badge">已禁用</span>{else}<span class="layui-badge layui-bg-green">使用中</span>{/eq}</td>
|
|
<td class='text-left nowrap'>
|
|
|
|
<!--{if auth("edit")}-->
|
|
<a class="layui-btn layui-btn-xs" data-title="编辑奖品" data-modal='{:url("edit")}?code={$vo.code}'>编 辑</a>
|
|
<!--{/if}-->
|
|
|
|
<!--{if auth('state') and $vo.status eq 1}-->
|
|
<a class="layui-btn layui-btn-xs layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#0">禁 用</a>
|
|
<!--{/if}-->
|
|
|
|
<!--{if auth("state") and $vo.status eq 0}-->
|
|
<a class="layui-btn layui-btn-xs layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#1">启 用</a>
|
|
<!--{/if}-->
|
|
|
|
<!--{if auth("remove")}-->
|
|
<a class="layui-btn layui-btn-xs layui-btn-danger" data-confirm="确定要删除该奖品吗?" data-action="{:url('del')}" data-value="id#{$vo.id}">删 除</a>
|
|
<!--{/if}-->
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
|
</div>
|
|
{/block} |