user.html
2.7 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
<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="#">用户优惠券列表</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('Coupon/user')}">
用户昵称:
<input type="text" class="form-control" name="nickname" style="width: 180px;" value="{:input('request.nickname/s','')}" placeholder="请输入用户昵称">
用户电话:
<input type="number" class="form-control" name="mobile" style="width: 180px;" value="{:input('request.mobile/s','')}" placeholder="请输入用户电话">
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('Coupon/user')}">清空</a>
</form>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th width="50">用户昵称</th>
<th>用户电话</th>
<th>优惠券名称</th>
<th>优惠券金额</th>
<th>有效期</th>
<th>使用状态</th>
<th width="160">{:lang('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<foreach name="list" item="vo">
<tr>
<td>{$vo.user_nickname}</td>
<td>{$vo.mobile}</td>
<td>{$vo.title}</td>
<td>{$vo.money}</td>
<td>
<switch name="$vo.deadline">
<case value="1">已过期</case>
<default />{$vo.start_time}至{$vo.end_time}
</switch>
<td>
<switch name="$vo.type">
<case value="1">已使用</case>
<default />未使用
</switch>
</td>
<td>
<eq name="$vo.type" value="1">
<a href="{:url('Coupon/userPost',array('id'=>$vo['id'],'type'=>0))}" class="js-ajax-dialog-btn"
data-msg="确定将该券变更为未使用么">变更为未使用</a>
<else />
<a href="{:url('Coupon/userPost',array('id'=>$vo['id'],'type'=>1))}" class="js-ajax-dialog-btn"
data-msg="确定将该券变更为已使用么">变更为已使用</a>
</eq>
<a class="js-ajax-delete" href="{:url('Coupon/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
</td>
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$page}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>