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

93 lines
3.8 KiB
HTML

{template '_header'}
<style type="text/css">.avatar {width:30px; height:30px; padding:1px; border:1px solid #ccc;}</style>
<div class="page-heading">
<span class="pull-right">
<a href="{php echo webUrl('invitation')}" class="btn btn-default btn-sm">返回列表</a>
</span>
<h2>扫描记录
<small>(总扫描次数: <span class='text-danger'>{$invitation['scan']}</span> 总关注数量: <span class='text-danger'>{$invitation['follow']}</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="invitation.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">
<select name='searchfield' class='form-control input-sm select-md' style="width:100px;">
<option value='share' {if $_GPC['searchfield']=='share'}selected{/if}>推荐人</option>
<option value='scan' {if $_GPC['searchfield']=='scan'}selected{/if}>扫码人</option>
</select>
<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>
{if empty($list)}
<div class='panel panel-default'>
<div class='panel-body' style='text-align: center;padding:40px;'>暂时没有任何扫描记录</div>
</div>
{else}
<table class="table table-responsive">
<thead>
<tr>
<th style="width: 60px;">ID</th>
<th>推荐人</th>
<th>扫描人</th>
<th style="width: 180px;">扫描时间</th>
<th style="width: 80px;">是否关注</th>
</tr>
</thead>
<tbody>
{loop $list $row}
<tr>
<td>{$row['id']}</td>
<td>
<a href="{php echo webUrl('member/list/detail', array('id'=>$row['msid']))}" target="_blank">
<img src="{php echo tomedia($row['avatar_ms'])}" class="avatar"> {php echo !empty($row['nickname_ms'])? $row['nickname_ms']: '未记录'}
</a>
</td>
<td>
<a href="{php echo webUrl('member/list/detail', array('id'=>$row['mcid']))}" target="_blank">
<img src="{php echo tomedia($row['avatar_mc'])}" class="avatar"> {php echo !empty($row['nickname_mc'])? $row['nickname_mc']: '未记录'}
</a>
</td>
<td>{php echo date('Y-m-d H:i:s', $row['scan_time'])}</td>
<td>
{if !empty($row['follow'])}
<label class="label label-primary"></label>
{else}
<label class="label label-default"></label>
{/if}
</td>
</tr>
{/loop}
<tr>
<td colspan="5">{$pager}</td>
</tr>
</tbody>
</table>
{/if}
{template '_footer'}