123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- {extend name='admin@main'}
- {block name="button"}
- {if auth("resume")}
- <button class="layui-btn layui-btn-sm layui-btn-primary" data-confirm="确定要批量启用吗?" data-action='{:url("resume")}' data-csrf="{:systoken('resume')}" data-rule="id#{key}">批量启用</button>
- {/if}
- {if auth("forbid")}
- <button class="layui-btn layui-btn-sm layui-btn-primary" data-confirm="确定要批量禁用吗?" data-action="{:url('forbid')}" data-csrf="{:systoken('forbid')}" data-rule="id#{key}">批量禁用</button>
- {/if}
- {/block}
- {block name="content"}
- <div class="think-box-shadow">
- {include file='member/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'>
- <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
- </th>
- <th class='list-table-sort-td'>
- <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
- </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>
- <th class='text-left nowrap'>状态</th>
- <th class='text-left nowrap'>签名状态</th>
- <!-- <th class='text-left nowrap' style="width: 20%">所属部门</th>-->
- <th class="text-center" style="width: 20%">操作</th>
- </tr>
- </thead>
- {/notempty}
- <tbody>
- {foreach $list as $key=>$vo}
- <tr>
- <td class='list-table-check-td think-checkbox'>
- <input class="list-check-box" value='{$vo.id}' type='checkbox'>
- </td>
- <td class='text-left nowrap'></td>
- <td class='text-left nowrap'>
- {notempty name='vo.avatar'}
- <img data-tips-image style="width:25px;height:25px;vertical-align:top" src="{$vo.avatar|default=''}" class="margin-right-5">
- {/notempty}
- </td>
- <td class='text-left nowrap'>
- <div class="inline-block">{$vo.name|default=''}</div>
- </td>
- <td class='text-left'>{$vo.nickname|default='--'}</td>
- <td class='text-left'>{$vo.mobile|default='--'}</td>
- <td class='text-left'>{$vo.title|default='--'}</td>
- <td class='text-left'>{$vo.department_text|default='--'}</td>
- <td class='text-left'>
- {eq name='vo.status' value='0'}<strong class="color-red">已禁用</strong>{else}<strong class="color-green">正常</strong>{/eq}
- </td>
- <td class='text-left'>
- <strong>{$get_signature_status_list[$vo.signature_status]}</strong>
- </td>
- <!-- <td class='text-left'>{$vo.department|default='--'}</td>-->
- <td class='text-center nowrap'>
- {if $vo.status eq 1 and auth("forbid")}
- <a class="layui-btn layui-btn-xs layui-btn-warm" data-confirm="确定要禁用该账号吗?" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('forbid')}">禁 用</a>
- {elseif auth("resume")}
- <a class="layui-btn layui-btn-xs layui-bg-blue" data-confirm="确定要启用该账号吗?" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('resume')}">启 用</a>
- {/if}
- {if $vo.signature_status eq 2}
- <a class="layui-btn layui-btn-xs layui-bg-blue" data-confirm="确定要审核通过吗?" data-action="{:url('signature_status')}" data-value="id#{$vo.id};signature_status#3" data-csrf="{:systoken('signature_status')}">审核通过</a>
- <a class="layui-btn layui-btn-xs layui-btn-danger" data-confirm="确定要审核驳回吗?" data-action="{:url('signature_status')}" data-value="id#{$vo.id};signature_status#4" data-csrf="{:systoken('signature_status')}">审核驳回</a>
- {/if}
- </td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {empty name='list'}<span class="notdata">没 有 记 录 哦!</span>{else}{$pagehtml|raw|default=''}{/empty}
- </div>
- {/block}
|