mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-28 20:36:37 +08:00
60 lines
2.7 KiB
PHP
60 lines
2.7 KiB
PHP
{extend name="../../admin/view/main"}
|
|
|
|
{block name="content"}
|
|
<div class="think-box-shadow table-block">
|
|
{include file='user/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='nowrap'>姓名信息</th>
|
|
<th class='nowrap'>所在区域</th>
|
|
<th class='nowrap'>注册时间</th>
|
|
<th class='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="sub-span-blue nowrap">
|
|
<div class="headimg" data-tips-image data-lazy-src="{$vo.headimg|default='__ROOT__/static/theme/img/headimg.png'}"></div>
|
|
<div class="inline-block">
|
|
{notempty name='vo.username'}
|
|
<div>姓名:<span>{$vo.username|default='-'}</span></div>
|
|
{else}
|
|
<div>昵称:<span>{$vo.nickname|default='-'}</span></div>
|
|
{/notempty}
|
|
<div>手机:<span>{$vo.phone|default='-'}</span></div>
|
|
</div>
|
|
</td>
|
|
<td class="nowrap">{$vo.region_province|default=''}{$vo.region_city|default=''}{$vo.region_area|default=''}</td>
|
|
<td class="nowrap">
|
|
使用状态:{if $vo.status eq 0}<b class="color-red margin-right-5">已冻结</b>{elseif $vo.status eq 1}<b class="color-green margin-right-5">已激活</b>{/if}<br>
|
|
注册时间:{$vo.create_at|format_datetime}
|
|
</td>
|
|
<td class="nowrap">
|
|
<!--{if auth("state") and $vo.status eq 1}-->
|
|
<a class="layui-btn layui-btn-sm layui-btn-danger" 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-sm layui-btn-normal" data-action="{:url('state')}" data-value="id#{$vo.id};status#1">解冻账号</a>
|
|
<!--{/if}-->
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
|
</div>
|
|
{/block}
|