credit_request.html
2.15 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
{template 'common/header'}
<ul class="nav nav-tabs">
<li {if $operation == 'post'}class="active"{/if}><a href="{php echo create_url('site/entry/award', array('m' => 'wwx_fxxt', 'op' => 'post'));}">添加积分商品</a></li>
<li {if $operation == 'display'&&$modules!='credit'}class="active"{/if}><a href="{php echo create_url('site/entry/award', array('m' => 'wwx_fxxt', 'op' => 'display'));}">管理积分商品</a></li>
<li {if $operation == 'display'&&$modules=='credit'}class="active"{/if}><a href="{php echo create_url('site/entry/credit', array('m' => 'wwx_fxxt', 'op' => 'display'));}">兑换申请管理</a></li>
</ul>
{if $operation == 'display'}
<div class="main">
<div class="panel panel-default">
<div class="panel-heading">全部商品</div>
<div style="padding:15px;">
<table class="table table-hover">
<thead class="navbar-inner">
<tr>
<th style="width:100px;">姓名</th>
<th style="width:100px;">手机</th>
<th style="width:150px;">地址</th>
<th style="width:120px;">时间</th>
<th style="width:100px;">奖品名称</th>
<th style="width:50px;">价格</th>
<th style="width:80px;">消耗积分</th>
<th style="width:80px;">剩余积分</th>
<th style="text-align:right; width:50px;">操作</th>
</tr>
</thead>
<tbody>
{loop $list $item}
<tr>
<td>{$fans[$item['from_user']]['realname']}</td>
<td>{$fans[$item['from_user']]['mobile']}</td>
<td>{$fans[$item['from_user']]['residedist']}</td>
<td>{php echo date('Y-m-d H:i:s', $item['createtime'])}</td>
<td>{$item['title']}</td>
<td>{$item['price']}</td>
<td>{$item['credit_cost']}</td>
<td>{$fans[$item['from_user']]['credit1']}</td>
<td style="text-align:right;">
<a href="{php echo create_url('site/entry/credit', array('m' => 'wwx_fxxt', 'id' => $item['id'], 'op' => 'delete'))}" onclick="return confirm('此操作不可恢复,确认删除?');return false;" title="删除" class="btn btn-default btn-sm"><i class="fa fa-remove"></i></a>
</td>
</tr>
{/loop}
</tbody>
</table>
{$pager}
</div>
</div>
</div>
{/if}
{template 'common/footer'}