index.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <article class="cl pd-20">
  2. <div class="cl pd-5 bg-1 bk-gray">
  3. <span class="l">
  4. <a href="javascript:;" onclick="del_all()" class="btn btn-danger radius">
  5. <i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
  6. <a href="javascript:save(0);" class="btn btn-primary radius">
  7. <i class="Hui-iconfont">&#xe600;</i> 添加管理员</a>
  8. </span>
  9. </div>
  10. <div class="mt-10" style="min-width:800px;">
  11. <table class="table table-border table-bordered table-bg">
  12. <thead>
  13. <tr class="text-c">
  14. <th width="25">
  15. <input type="checkbox" name="allcheck" value="">
  16. </th>
  17. <th width="40px">ID</th>
  18. <th width="120px">登录名</th>
  19. <th width="120px">用户组</th>
  20. <th width="120px">姓名</th>
  21. <th width="120px">昵称</th>
  22. <th width="160px">邮箱</th>
  23. <th width="80px">登录次数</th>
  24. <th width="140px">最后登录时间</th>
  25. <th width="120px">最后登录ip</th>
  26. <th width="140px">创建时间</th>
  27. <th>状态</th>
  28. <th>操作</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. {foreach $list as $val}
  33. <tr class="text-c">
  34. <td>
  35. <input type="checkbox" value="{$val.userid}" name="checkbox[]">
  36. </td>
  37. <td>{$val.userid}</td>
  38. <td>{$val.username}</td>
  39. <td>{$val.rolename}</td>
  40. <td>{$val.truename}</td>
  41. <td>{$val.nickname}</td>
  42. <td>{$val.email}</td>
  43. <td>{$val.login_num}</td>
  44. <td>{$val.per_time}</td>
  45. <td>{$val.per_ip}</td>
  46. <td>{$val.create_time}</td>
  47. <td class="td-status">
  48. <a href="javascript:;" onclick="status(this,'{$val.userid}')" style="text-decoration: none;"
  49. title="{$val.status==1? '禁用' : '正常'}">
  50. <span class="f-20 c-primary"><i class="Hui-iconfont">{$val.status==1?'&#xe601;' :
  51. '&#xe677;'}</i></span></a>
  52. </td>
  53. <td class="td-manage">
  54. <a title="编辑" href="javascript:save({$val.userid});" class="btn btn-primary radius">
  55. <i class="Hui-iconfont">&#xe6df;</i></a>
  56. <a title="删除" href="javascript:;" onclick="del(this,'{$val.userid}')" class="ml-5 btn btn-danger radius">
  57. <i class="Hui-iconfont">&#xe6e2;</i></a>
  58. </td>
  59. </tr>
  60. {/foreach}
  61. </tbody>
  62. </table>
  63. </div>
  64. </article>
  65. <!--请在下方写此页面业务相关的脚本-->
  66. <script type="text/javascript">
  67. function save(id) {
  68. var title = id == 0 ? '添加管理员' : '修改管理员'
  69. var url = "{:url('save')}" + "?_layer=true&id=" + id
  70. layer_show(title, url, 800, 600);
  71. }
  72. </script>
  73. <!--/请在上方写此页面业务相关的脚本-->