2021-03-27 14:30:51 +08:00

40 lines
1.4 KiB
PHP

{extend name="../../admin/view/full"}
{block name='content'}
<div class="think-box-shadow">
<table class="layui-table margin-top-10" lay-skin="line">
{notempty name='list'}
<thead>
<tr>
<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="text-left nowrap">{$vo.title|default=''}</td>
<td class='text-left nowrap'>{if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">已激活</span>{/if}</td>
<td class='text-left nowrap'><a class="layui-btn layui-btn-sm layui-btn-normal" data-item="{$vo.title}"> </a></td>
</tr>
{/foreach}
</tbody>
</table>
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
{block name='script'}
<script>
$(function () {
layui.form.render();
$('[data-article]').on('click', function () {
if (top.setItemValue) top.setItemValue(this.getAttribute('data-item') || '');
parent.layer.close(parent.layer.getFrameIndex(window.name));
});
$.form.reInit($('[data-select-container]'));
});
</script>
{/block}