index.html
3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<include file="public@header"/>
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a>{:lang('USER_INDEXADMIN_INDEX')}</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index')}">
用户ID:
<input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}"
placeholder="请输入用户ID">
关键字:
<input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
placeholder="用户名/昵称/邮箱">
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('user/adminIndex/index')}">清空</a>
</form>
<form method="post" class="js-ajax-form">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>ID</th>
<th>{:lang('USERNAME')}</th>
<th>{:lang('NICENAME')}</th>
<th>{:lang('AVATAR')}</th>
<th>{:lang('EMAIL')}</th>
<th>手机</th>
<th>{:lang('REGISTRATION_TIME')}</th>
<th>{:lang('LAST_LOGIN_TIME')}</th>
<th>{:lang('LAST_LOGIN_IP')}</th>
<th>积分详情</th>
<th>积分明细</th>
<th>是否设置为回收员</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="list" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo['user_login']?$vo['user_login']:($vo['mobile']?$vo['mobile']:lang('THIRD_PARTY_USER'))}
</td>
<td>{$vo['user_nickname']?$vo['user_nickname']:lang('NOT_FILLED')}</td>
<td><img width="25" height="25" src="{:url('user/public/avatar',array('id'=>$vo['id']))}"/></td>
<td>{$vo.user_email}</td>
<td>{$vo.mobile}</td>
<td>{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
<td>{:date('Y-m-d H:i:s',$vo['last_login_time'])}</td>
<td>{$vo.last_login_ip}</td>
<td>
<a href="{:url('adminIndex/detail',array('id'=>$vo['id']))}">积分详情</a>
</td>
<td>
<a href="{:url('adminIndex/jifendetail',array('id'=>$vo['id']))}">积分明细</a>
</td>
<td>
<if condition="$vo.is_set eq 1">
<a href="{:url('adminIndex/cancel',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn"
data-msg="您确定要取消设置吗"><span style="color: red">取消设置</span></a>
<else />
<a href="{:url('adminIndex/set',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn"
data-msg="您确定要设置吗"><span style="color: green">设置</span></a>
</if>
</td>
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$page}</div>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>