index.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {extend name='admin@main'}
  2. {block name="button"}
  3. {if auth("resume")}
  4. <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>
  5. {/if}
  6. {if auth("forbid")}
  7. <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>
  8. {/if}
  9. {/block}
  10. {block name="content"}
  11. <div class="think-box-shadow">
  12. {include file='member/index_search'}
  13. <table class="layui-table margin-top-10" lay-skin="line">
  14. {notempty name='list'}
  15. <thead>
  16. <tr>
  17. <th class='list-table-check-td think-checkbox'>
  18. <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
  19. </th>
  20. <th class='list-table-sort-td'>
  21. <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
  22. </th>
  23. <th class='text-left nowrap'>头像地址</th>
  24. <th class='text-left nowrap'>用户姓名</th>
  25. <th class='text-left nowrap'>昵称</th>
  26. <th class='text-left nowrap'>手机号码</th>
  27. <th class='text-left nowrap'>职位</th>
  28. <th class='text-left nowrap'>所属部门</th>
  29. <th class='text-left nowrap'>状态</th>
  30. <th class='text-left nowrap'>签名状态</th>
  31. <!-- <th class='text-left nowrap' style="width: 20%">所属部门</th>-->
  32. <th class="text-center" style="width: 20%">操作</th>
  33. </tr>
  34. </thead>
  35. {/notempty}
  36. <tbody>
  37. {foreach $list as $key=>$vo}
  38. <tr>
  39. <td class='list-table-check-td think-checkbox'>
  40. <input class="list-check-box" value='{$vo.id}' type='checkbox'>
  41. </td>
  42. <td class='text-left nowrap'></td>
  43. <td class='text-left nowrap'>
  44. {notempty name='vo.avatar'}
  45. <img data-tips-image style="width:25px;height:25px;vertical-align:top" src="{$vo.avatar|default=''}" class="margin-right-5">
  46. {/notempty}
  47. </td>
  48. <td class='text-left nowrap'>
  49. <div class="inline-block">{$vo.name|default=''}</div>
  50. </td>
  51. <td class='text-left'>{$vo.nickname|default='--'}</td>
  52. <td class='text-left'>{$vo.mobile|default='--'}</td>
  53. <td class='text-left'>{$vo.title|default='--'}</td>
  54. <td class='text-left'>{$vo.department_text|default='--'}</td>
  55. <td class='text-left'>
  56. {eq name='vo.status' value='0'}<strong class="color-red">已禁用</strong>{else}<strong class="color-green">正常</strong>{/eq}
  57. </td>
  58. <td class='text-left'>
  59. <strong>{$get_signature_status_list[$vo.signature_status]}</strong>
  60. </td>
  61. <!-- <td class='text-left'>{$vo.department|default='&#45;&#45;'}</td>-->
  62. <td class='text-center nowrap'>
  63. {if $vo.status eq 1 and auth("forbid")}
  64. <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>
  65. {elseif auth("resume")}
  66. <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>
  67. {/if}
  68. {if $vo.signature_status eq 2}
  69. <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>
  70. <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>
  71. {/if}
  72. </td>
  73. </tr>
  74. {/foreach}
  75. </tbody>
  76. </table>
  77. {empty name='list'}<span class="notdata">没 有 记 录 哦!</span>{else}{$pagehtml|raw|default=''}{/empty}
  78. </div>
  79. {/block}