wpfw_ewei_shopv2/plugin/lottery/template/web/log.html
2023-02-14 19:57:32 +08:00

76 lines
2.8 KiB
HTML

{template '_header'}
<div class="page-heading"> <h2>抽奖记录 <small>人数: <span class='text-danger'>{$total}</span></small></h2> </div>
<form action="./index.php" method="get" class="form-horizontal table-search" role="form">
<input type="hidden" name="c" value="site" />
<input type="hidden" name="a" value="entry" />
<input type="hidden" name="m" value="{EWEI_SHOP_V2_MODULE_NAME}" />
<input type="hidden" name="do" value="web" />
<input type="hidden" name="r" value="lottery.log" />
<input type="hidden" name="id" value="{$_GPC['id']}" />
<div class="page-toolbar row m-b-sm m-t-sm">
<div class="col-sm-5">
<div class="btn-group btn-group-sm" style='float:left'>
<button class="btn btn-default btn-sm" type="button" data-toggle='refresh'><i class='fa fa-refresh'></i></button>
</div>
<div class='input-group input-group-sm' >
{php echo tpl_daterange('time', array('placeholder'=>'抽奖时间'),true);}
</div>
</div>
<div class="col-sm-6 pull-right">
<div class="input-group">
<input type="text" class="input-sm form-control" name='keyword' value="{$_GPC['keyword']}" placeholder="昵称/姓名/手机号"> <span class="input-group-btn">
<button class="btn btn-sm btn-primary" type="submit"> 搜索</button> </span>
</div>
</div>
</div>
</form>
<form action="" method="post" onsubmit="return formcheck(this)">
{if count($list)>0}
<table class="table table-responsive">
<thead>
<tr>
<th style='width:100px;'>参与人</th>
<th style='width:100px;'></th>
<th style='width:120px;'>奖励</th>
<th>参与时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{loop $list $row}
{php $row['lottery_data']=unserialize($row['lottery_data']);}
<tr>
<td><span data-toggle='tooltip' title='{$row['nickname']}'><img src='{$row['avatar']}' style='width:20px;height:20px;padding1px;border:1px solid #ccc' /> {$row['nickname']}</span></td>
<td>{$row['realname']}<br/>{$row['mobile']}</td>
<td data-toggle="tooltip" title="{if !empty($row['lottery_data'])}{php echo $this->model->lottery_complain($row['lottery_data']);}{else}无奖励{/if}"> {if !empty($row['lottery_data'])}{php echo mb_substr($this->model->lottery_complain($row['lottery_data']),0,10,'utf-8');}{else}无奖励{/if}
</td>
<td>{php echo date('Y-m-d H:i',$row['addtime']);}</td>
<td><a class='btn btn-default' href="{php echo webUrl('lottery/log',array('id'=>$row['lottery_id'],'keyword'=>$row['nickname']));}" title='此用户抽奖列表'><i class='fa fa-users'></i></a></td>
</tr>
{/loop}
</tbody>
</table>
{$pager}
{else}
<div class='panel panel-default'>
<div class='panel-body' style='text-align: center;padding:30px;'>
暂时没有任何参与记录!
</div>
</div>
{/if}
</form>
{template '_footer'}