You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.4 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. <!DOCTYPE html><html><head><title>管理员列表_后台管理</title>@include('admin.common.header')
  2. <div class="container-fluid">
  3. <div class="row">
  4. <!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
  5. <!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
  6. <h2 class="sub-header">管理员列表</h2>[ <a href="/fladmin/user/add">添加管理员</a> ]<br><br>
  7. <form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
  8. <thead><tr>
  9. <th>ID</th>
  10. <th>用户名</th>
  11. <th>邮箱</th>
  12. <th>状态</th>
  13. <th>管理</th>
  14. </tr></thead>
  15. <tbody>
  16. <?php foreach($posts as $row){ ?><tr>
  17. <td><?php echo $row->id; ?></td>
  18. <td><?php echo $row->username; ?></td>
  19. <td><?php echo $row->email; ?></td>
  20. <td><?php if($row->status==0){echo '正常';}elseif($row->status==1){echo '禁用';}elseif($row->status==2){echo '禁用';} ?></td>
  21. <td><a href="/fladmin/user/edit?id=<?php echo $row->id; ?>">权限设置</a> | <a href="/fladmin/user/edit?id=<?php echo $row->id; ?>">修改</a> | <a onclick="delconfirm('/fladmin/user/del?id=<?php echo $row->id; ?>')" href="javascript:;">删除</a></td>
  22. </tr><?php } ?>
  23. </tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
  24. <nav aria-label="Page navigation">{{ $posts->links() }}</nav>
  25. </div></div><!-- 右边结束 --></div></div>
  26. </body></html>