index.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {extend name='admin@main'}
  2. {block name="content"}
  3. <div class="think-box-shadow">
  4. {include file='member/index_search'}
  5. <table class="layui-table margin-top-10" lay-skin="line">
  6. {notempty name='list'}
  7. <thead>
  8. <tr>
  9. <th class='text-left nowrap' style="width: 10%">头像</th>
  10. <th class='text-left nowrap' style="width: 15%">姓名</th>
  11. <th class='text-left nowrap' style="width: 15%">手机号</th>
  12. <th class='text-left nowrap' style="width: 20%">职位</th>
  13. <th class='text-left nowrap' style="width: 20%">所属部门</th>
  14. <th class="text-center" style="width: 20%">操作</th>
  15. </tr>
  16. </thead>
  17. {/notempty}
  18. <tbody>
  19. {foreach $list as $key=>$vo}
  20. <tr>
  21. <td class='text-left nowrap'>
  22. {notempty name='vo.headimg'}
  23. <img data-tips-image style="width:20px;height:20px;vertical-align:top" src="{$vo.headimg|default=''}" class="margin-right-5">
  24. {/notempty}
  25. </td>
  26. <td class='text-left nowrap'>
  27. <div class="inline-block">{$vo.name|default='--'}</div>
  28. </td>
  29. <td class='text-left'>{$vo.phone|default='--'}</td>
  30. <td class='text-left'>{$vo.title|default='--'}</td>
  31. <td class='text-left'>{$vo.department|format_datetime}</td>
  32. <td class='text-center nowrap'>
  33. {if $vo.status eq 1 and auth("forbid")}
  34. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0">禁 用</a>
  35. {elseif auth("resume")}
  36. <a class="layui-btn layui-btn-sm layui-bg-blue" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1">启 用</a>
  37. {/if}
  38. </td>
  39. </tr>
  40. {/foreach}
  41. </tbody>
  42. </table>
  43. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  44. </div>
  45. {/block}