| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:73:"/www/wwwroot/repairceshi/public/../application/admin/view/index/user.html";i:1554263570;s:66:"/www/wwwroot/repairceshi/application/admin/view/public/header.html";i:1554260573;}*/ ?>
- <!DOCTYPE html>
- <html lang="zh-cn">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <title>管理中心</title>
- <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
- <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
- <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
- </head>
- <body>
- <nav class="navbar navbar-fixed-top navbar-default">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
- aria-expanded="false" aria-controls="navbar">
- <span class="sr-only">导航按钮</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" href="#">管理中心</a>
- </div><!-- /.navbar-header -->
- <div id="navbar" class="collapse navbar-collapse">
- <ul class="nav navbar-nav navbar-right">
- <li>
- <a href="/admin/index/index"><span class="glyphicon glyphicon-home"></span> 管理首页</a>
- </li>
- <li><a href="/admin/index/order"><span class="glyphicon glyphicon-shopping-cart"></span> 订单管理</a></li>
- <li><a href="/admin/index/group"><span class="glyphicon glyphicon-user"></span> 分组管理</a></li>
- <li><a href="/admin/index/user"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
- <li><a href="/admin/index/loginout"><span class="glyphicon glyphicon-log-out"></span> 退出登陆</a></li>
- </ul>
- </div><!-- /.navbar-collapse -->
- </div><!-- /.container -->
- </nav><!-- /.navbar -->
- <div class="container" style="padding-top:70px;">
- <div class="col-xs-12 col-sm-10 col-lg-11 center-block" style="float: none;">
- <form action="user" method="GET" class="form-inline">
- <div class="form-group">
- <label>搜索</label>
- <select name="type" class="form-control">
- <option value="1">用户id</option>
- </select>
- </div>
- <div class="form-group">
- <input type="text" class="form-control" name="keyword" placeholder="搜索内容">
- </div>
- <button type="submit" class="btn btn-primary">搜索</button>
- <button type="button" class="btn btn-primary" id="adduser">添加用户</button>
- </form>
- <div class="table-responsive" style="padding-top: 10px;">
- <table class="table table-striped" border='1'>
- <thead>
- <tr>
- <th style="text-align: center;">用户id</th>
- <th style="text-align: center;">微信名称</th>
- <th style="text-align: center;">微信头像</th>
- <th style="text-align: center;">注册手机号</th>
- <th style="text-align: center;">用户名称</th>
- <th style="text-align: center;">所属分组</th>
- <th style="text-align: center;">地址</th>
- <th style="text-align: center;">身份</th>
- <th style="text-align: center;">添加时间</th>
- <th style="text-align: center;">是否审核</th>
- <th style="text-align: center;">操作</th>
- </tr>
- </thead>
- <tbody style="text-align: center;">
- <?php if(is_array($user_info) || $user_info instanceof \think\Collection || $user_info instanceof \think\Paginator): $i = 0; $__LIST__ = $user_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
- <tr>
- <td><b><?php echo $vo['id']; ?></b></td>
- <td>
- <?php if($vo['nickname'] == null): ?>
- 暂无
- <?php else: ?>
- <?php echo $vo['nickname']; endif; ?>
- </td>
- <td>
- <?php if($vo['headimgurl'] == null): ?>
- 暂无
- <?php else: ?>
- <img src="<?php echo $vo['headimgurl']; ?>" alt="微信头像" style="width:30px;border-radius: 50%">
- <?php endif; ?>
- </td>
- <td>
- <?php if($vo['telephone'] == null): ?>
- 暂无
- <?php else: ?>
- <?php echo $vo['telephone']; endif; ?>
- </td>
- <td>
- <?php if($vo['username'] == null): ?>
- 暂无
- <?php else: ?>
- <?php echo $vo['username']; endif; ?>
- </td>
- <td>
- <?php if($vo['group'] == null): ?>
- 暂无
- <?php else: ?>
- <?php echo $vo['group']; endif; ?>
- </td>
- <td>
- <?php if($vo['address'] == null): ?>
- 暂无
- <?php else: ?>
- <?php echo $vo['address']; endif; ?>
- </td>
- <td>
- <?php if($vo['identity'] == 0): ?>
- 报修者
- <?php elseif($vo['identity'] == 1): ?>
- 维修者
- <?php elseif($vo['identity'] == 2): ?>
- 协管者
- <?php elseif($vo['identity'] == 99): ?>
- 管理员
- <?php else: ?>
- 暂无
- <?php endif; ?>
- </td>
- <td><?php echo $vo['addtime']; ?></td>
- <td>
- <?php if($vo['is_register'] == 0): ?>
- <font style="color:red;">未审核</font>
- <?php else: ?>
- <font style="color:green;">已审核</font>
- <?php endif; ?>
- </td>
-
- <td>
- <button data-userid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-info buttoninfo">查看</button>
- <button data-userid="<?php echo $vo['id']; ?>" class="btn btn-xs btn-danger buttoneidt">编辑</button>
- </td>
- </tr>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- </tbody>
- <thead>
- <tr>
- <th style="text-align: center;">用户id</th>
- <th style="text-align: center;">微信名称</th>
- <th style="text-align: center;">微信头像</th>
- <th style="text-align: center;">注册手机号</th>
- <th style="text-align: center;">用户名称</th>
- <th style="text-align: center;">所属分组</th>
- <th style="text-align: center;">地址</th>
- <th style="text-align: center;">身份</th>
- <th style="text-align: center;">添加时间</th>
- <th style="text-align: center;">是否审核</th>
- <th style="text-align: center;">操作</th>
- </tr>
- </thead>
- </table>
- </div>
- <!-- 分页的渲染函数 -->
- <div style="text-align:center;">
- <?php echo $user_info->render(); ?>
- </div>
- <script src="/static/login/js/jquery.min.js"></script>
- <!-- 补单函数的触发 -->
- <script>
- $(function () {
- $('.buttoninfo').click(function () {
- //获取当前用户id
- let userid = $(this).attr('data-userid');
- window.location.href = "/admin/index/user_info?user_id=" + userid;
- });
- $('.buttoneidt').click(function () {
- //编辑当前用户
- let userid = $(this).attr('data-userid');
- window.location.href = "/admin/index/edit_user_info?user_id=" + userid;
- });
- $('#adduser').click(function(){
- window.location.href = "/admin/index/add_user"; //添加用户
- });
- });
- </script>
|