| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- {include file="public/header"}
- <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;">
- {volist name="user_info" id="vo"}
- <tr>
- <td><b>{$vo.id}</b></td>
- <td>
- {if condition = "$vo.nickname eq null"}
- 暂无
- {else/}
- {$vo.nickname}
- {/if}
- </td>
- <td>
- {if condition = "$vo.headimgurl eq null"}
- 暂无
- {else/}
- <img src="{$vo.headimgurl}" alt="微信头像" style="width:30px;border-radius: 50%">
- {/if}
- </td>
- <td>
- {if condition = "$vo.telephone eq null"}
- 暂无
- {else/}
- {$vo.telephone}
- {/if}
- </td>
- <td>
- {if condition = "$vo.username eq null"}
- 暂无
- {else/}
- {$vo.username}
- {/if}
- </td>
- <td>
- {if condition = "$vo.group eq null"}
- 暂无
- {else/}
- {$vo.group}
- {/if}
- </td>
- <td>
- {if condition = "$vo.address eq null"}
- 暂无
- {else/}
- {$vo.address}
- {/if}
- </td>
- <td>
- {if condition = "$vo.identity eq 0"}
- 报修者
- {elseif condition = "$vo.identity eq 1" /}
- 维修者
- {elseif condition = "$vo.identity eq 2" /}
- 协管者
- {elseif condition = "$vo.identity eq 99" /}
- 管理员
- {else/}
- 暂无
- {/if}
- </td>
- <td>{$vo.addtime}</td>
- <td>
- {if condition = "$vo.is_register eq 0"}
- <font style="color:red;">未审核</font>
- {else /}
- <font style="color:green;">已审核</font>
- {/if}
- </td>
-
- <td>
- <button data-userid="{$vo['id']}" class="btn btn-xs btn-info buttoninfo">查看</button>
- <button data-userid="{$vo['id']}" class="btn btn-xs btn-danger buttoneidt">编辑</button>
- </td>
- </tr>
- {/volist}
- </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;">
- {$user_info->render()}
- </div>
- <script src="__LOGIN__/js/jquery.min.js"></script>
- <!-- 补单函数的触发 -->
- <script>
- $(function () {
- $('.buttoninfo').click(function () {
- //获取当前用户id
- let userid = $(this).attr('data-userid');
- window.location.href = "__URL__/user_info?user_id=" + userid;
- });
- $('.buttoneidt').click(function () {
- //编辑当前用户
- let userid = $(this).attr('data-userid');
- window.location.href = "__URL__/edit_user_info?user_id=" + userid;
- });
- $('#adduser').click(function(){
- window.location.href = "__URL__/add_user"; //添加用户
- });
- });
- </script>
|