| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <include file="public@header" />
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a href="{:url('user/sales')}">销售员</a></li>
- </ul>
- <form class="well form-inline margin-top-20" method="get" action="{:url('User/sales')}">
- 用户名:
- <input type="text" class="form-control" name="user_login" style="width: 120px;" value="{:input('request.user_login/s','')}" placeholder="请输入{:lang('USERNAME')}">
- 手机号:
- <input type="text" class="form-control" name="mobile" style="width: 120px;" value="{:input('request.mobile/s','')}" placeholder="请输入手机号">
- <input type="submit" class="btn btn-primary" value="搜索" />
- <a class="btn btn-danger" href="{:url('User/sales')}">清空</a>
- </form>
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <th width="50">ID</th>
- <th width="50">头像</th>
- <th>{:lang('USERNAME')}</th>
- <th>{:lang('REALNAME')}</th>
- <th>{:lang('MOBILE')}</th>
- <th>所属经理</th>
- <th>已分配用户</th>
- <th>{:lang('LAST_LOGIN_IP')}</th>
- <th>{:lang('LAST_LOGIN_TIME')}</th>
- <th>{:lang('EMAIL')}</th>
- <th>{:lang('STATUS')}</th>
- <th width="200">{:lang('ACTIONS')}</th>
- </tr>
- </thead>
- <tbody>
- <php>$user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));</php>
- <foreach name="users" item="vo">
- <tr>
- <td>{$vo.id}</td>
- <td> <if condition="$vo['avatar']"><img src="/upload/{$vo.avatar}" style="width: 50px;height: 50px;"></if></td>
- <td><if condition="$vo['user_url']"><a href="{$vo.user_url}" target="_blank" title="{$vo.signature}">{$vo.user_login}</a><else />{$vo.user_login}</if></td>
- <td>{$vo.real_name}</td>
- <td>{$vo.mobile}</td>
- <td>{$vo.parent_name}</td>
- <td>{$vo.user_count}</td>
- <td>{$vo.last_login_ip}</td>
- <td>
- <if condition="$vo['last_login_time'] eq 0">
- {:lang('USER_HAVE_NOT_LOGIN')}
- <else />
- {:date('Y-m-d H:i:s',$vo['last_login_time'])}
- </if>
- </td>
- <td>{$vo.user_email}</td>
- <td>
- <switch name="vo.user_status">
- <case value="0">
- <span class="label label-danger">{$user_statuses[$vo['user_status']]}</span>
- </case>
- <case value="1">
- <span class="label label-success">{$user_statuses[$vo['user_status']]}</span>
- </case>
- <case value="2">
- <span class="label label-warning">{$user_statuses[$vo['user_status']]}</span>
- </case>
- </switch>
- </td>
- <td>
- <a class="btn btn-xs btn-primary" target="_blank" href='{:url("public/saleLogin",array("id"=>$vo["id"],"key"=> $vo["login_key"]))}'>登入管理</a>
- <if condition="$adminInfo.user_type neq 5">
- <a class="btn btn-xs btn-warning" target="_blank" onclick="switchLeave('{$vo.id}')">转入离职交接</a>
- </if>
- </td>
- </tr>
- </foreach>
- </tbody>
- </table>
- <div class="pagination">{$page}</div>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- <script src="__STATIC__/js/layer/layer.js"></script>
- <script>
- function switchLeave(id){
- if(confirm('确定释放该销售的所有资源到离职交接吗?该操作不可逆')) {
- $.post('/admin/pools/switchLeave', {id: id, type: 9}, function (res) {
- if (res.code == 1) {
- layer.msg(res.msg)
- setTimeout(function () {
- location.reload();
- }, 2000)
- } else {
- layer.msg(res.msg)
- }
- }, "json")
- }
- }
- </script>
- </body>
- </html>
|