test
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

126 lines
6.9 KiB

{php include wl_template('common/header');}
<ul class="nav nav-tabs">
{loop $levelList $key $value}
<li {if $value['id'] == $_GPC['level']}class="active"{/if}><a href="{php echo web_url('setting/rights/useRightsIndex',array('level' => $value['id']));}">{$value['rights_type']}</a></li>
{/loop}
</ul>
<div class="app-content">
<div class="app-filter">
<div class="filter-list">
<form action="" method="get" class="form-horizontal" role="form" id="form1">
<input type="hidden" name="c" value="site" />
<input type="hidden" name="a" value="entry" />
<input type="hidden" name="m" value="{MODULE_NAME}" />
<input type="hidden" name="p" value="setting" />
<input type="hidden" name="ac" value="rights" />
<input type="hidden" name="do" value="useRightsIndex" />
<div class="form-group form-inline">
<label class="col-sm-2 control-label">搜索内容</label>
<div class="col-sm-9">
<select name="keywordtype" class="form-control">
<option value="1" {if $_GPC['keywordtype']==1}selected="selected"{/if}>商户ID</option>
<option value="2" {if $_GPC['keywordtype']==2}selected="selected"{/if}>商户名称</option>
<option value="3" {if $_GPC['keywordtype']==3}selected="selected"{/if}>微信用户ID</option>
<option value="4" {if $_GPC['keywordtype']==4}selected="selected"{/if}>微信用户昵称</option>
</select>
<input type="text" name="keyword" class="form-control" value="{$_GPC['keyword']}" placeholder="请输入关键字"/>
</div>
</div>
<div class="form-group form-inline">
<label class="col-sm-2 control-label">使用状态</label>
<div class="col-sm-9">
<select name="status" class="form-control">
<option value="">全部</option>
<option value="0" {if $_GPC['status']=='0'}selected="selected"{/if}>待使用</option>
<option value="1" {if $_GPC['status']==1}selected="selected"{/if}>使用中</option>
<option value="2" {if $_GPC['status']==2}selected="selected"{/if}>使用完</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"></label>
<div class="col-sm-9">
<input type="hidden" name="level" value="{$_GPC['level']}">
<button class="btn btn-primary" type="submit">筛选</button>
</div>
</div>
</form>
</div>
</div>
<div class="app-table-list">
<div class="table-responsive">
<table class="table table-responsive">
<thead>
<tr>
<th style="width: 7%;">商户ID</th>
<th style="width: 16%;">商户名称</th>
<th style="width: 7%;">微信用户ID</th>
<th style="width: 16%;">微信用户昵称</th>
{if $_GPC['level'] == 5}
<th style="width: 10%;">岗位名称</th>
{/if}
<th style="width: 7%;">总{$unit}数</th>
<th style="width: 8%;">已使用{$unit}数</th>
<th style="width: 7%;">剩余{$unit}数</th>
<th style="width: 11%;">开始时间</th>
<th style="width: 11%;">结束时间</th>
<th style="width: 5%;">状态</th>
<th style="width: 5%;text-align: right;">操作</th>
</tr>
</thead>
<tbody>
{loop $list $row}
<tr>
<td style="overflow: visible">{$row['storeid']}</td>
<td style="overflow: visible">
<img class="scrollLoading" src="{$row['logo']}" data-url="{php echo $row['logo'];}" height="50" width="50"/>
{$row['storename']}
</td>
<td style="overflow: visible">{$row['mid']}</td>
<td style="overflow: visible">
<img class="scrollLoading" src="{$row['avatar']}" data-url="{php echo $row['avatar'];}" height="50" width="50"/>
{php echo $row['nickname'];}
</td>
{if $_GPC['level'] == 5}
<td style="overflow: visible">{$row['recruit_title']}</td>
{/if}
<td style="overflow: visible">{$row['use_total_amount']}</td>
<td style="overflow: visible">{$row['use_amount']}</td>
<td style="overflow: visible">{$row['remaining_amount']}</td>
<td style="overflow: visible">{$row['start_time']}</td>
<td style="overflow: visible">{$row['end_time']}</td>
<td style="overflow: visible">
{if $row['status'] == '0'}
<label class="label label-primary check-result{php echo $row['id'];}">待使用</label>
{elseif $row['status'] == '1'}
<label class="label label-success check-result{php echo $row['id'];}">使用中</label>
{elseif $row['status'] == '2'}
<label class="label label-warning check-result{php echo $row['id'];}">使用完</label>
{/if}
</td>
<td style="overflow: visible;text-align: right;">
{if empty($row['status']) && $_GPC['level'] == 1}
<a class="btn btn-primary btn-sm" href="{php echo web_url('setting/rights/beginRightsUse',array('level' => $_GPC['level'],'id' => $row['id']));}" id="show-audit-{php echo $row['id'];}" title="">开始</a>
{/if}
{if $row['use_total_amount'] > $row['use_amount'] && $_GPC['level'] == 5}
<a class="btn btn-primary btn-sm" href="{php echo web_url('setting/rights/pushRecruitIndex',array('level' => $_GPC['level'],'id' => $row['id']));}" id="show-audit-{php echo $row['id'];}" title="">去推送</a>
{/if}
</td>
</tr>
{/loop}
</tbody>
</table>
</div>
<div class="app-table-foot clearfix">
<div class="pull-left">
</div>
<div class="pull-right">
{$pager}
</div>
</div>
</div>
</div>
<script>
</script>
{php include wl_template('common/footer');}