credit_request.html 2.15 KB
{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'}