charge.html
6.37 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{template 'common/header'}
<ul class="nav nav-tabs">
<li {if $op == 'list'}class="active"{/if}><a href="{php echo create_url('site/entry', array('do' => 'charge', 'op' => 'list','m' => 'wwx_fxxt','uniacid'=>$_W['uniacid']))}">会员管理</a></li>
<li {if $operation == 'display'}class="active"{/if}><a href="{php echo $this->createWebUrl('membershipgrade', array('op' => 'display'))}">等级管理</a></li>
{if $operation == 'post'}<li class="active"><a>{if !empty($membership['id'])}编辑{else}添加{/if}会员等级</a></li>{/if}
</ul>
<div class="main">
<div class="panel panel-info">
<div class="panel-heading">筛选</div>
<div class="panel-body">
<form action="./index.php" 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="wwx_fxxt" />
<input type="hidden" name="do" value="charge" />
<input type="hidden" name="op" value="list" />
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">姓名</label>
<div class="col-sm-8 col-lg-9 col-xs-12">
<input class="form-control" name="realname" id="" type="text" value="{$gprealname}" placeholder="可模糊查询会员姓名 /昵称">
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">手机</label>
<div class="col-sm-8 col-lg-9 col-xs-12">
<input class="form-control" name="mobile" id="" type="text" value="{$gpmobile}" placeholder="可模糊查询手机号">
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">会员标识</label>
<div class="col-sm-8 col-lg-9 col-xs-12">
<input class="form-control" name="userid" onkeyup="value=this.value.replace(/\D+/g,'')" id="" type="text" value="{$gpuserid}" placeholder="可精确查询会员标识">
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">上级标识</label>
<div class="col-sm-8 col-lg-9 col-xs-12">
<input class="form-control" name="flagid" onkeyup="value=this.value.replace(/\D+/g,'')" id="" type="text" value="{$gpflagid}" placeholder="可精确查询上级标识">
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">会员等级</label>
<div class="col-sm-9 col-xs-12">
<select name='usergrade' class="form-control" style="width:300px;display:inline;">
<option value="0" selected>所有会员</option>
{loop $userexp $ex}
<option value="{$ex['displayorder']}" {if $gpusergrade==$ex['displayorder']}selected{/if}>{$ex['member_name']}</option>
{/loop}
</select>
<label class="radio-inline"><input type="checkbox" name="Thecharts" value="1" {if $gpThecharts == 1} checked="checked"{/if}/> 涮选有单会员</label>
</div>
</div>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label"></label>
<div class="col-sm-1 col-lg-1"><input type="submit" name="submit" value="搜 索" class="btn btn-primary"></div>
<div class="col-sm-2 col-lg-2"><button type="submit" name="memberstatisticsEXP01" value="memberstatisticsEXP01" class="btn btn-warning btn-lg">导出会员excel</button></div>
</div>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">会员管理名单:<span class="label label-success">{$total}</span> 位</div>
<div class="panel-body table-responsive">
<table class="table table-hover">
<thead class="navbar-inner">
<tr>
<th style="width:55px;">会员标识</th>
<th style="width:55px;">上级标识</th>
<th style="width:50px;">会员订单</th>
<th style="width:80px;">昵称</th>
<th style="width:80px;">姓名</th>
<th style="width:65px;">电话</th>
<th style="width:55px;">余额</th>
<th style="width:50px;">积分</th>
<th style="width:160px; text-align:right;">操作</th>
</tr>
</thead>
<tbody>
{loop $list $v}
<tr>
<td title="点击前往用户详情"><a href="{php echo $this->createWebUrl('fansmanager', array('op' => 'detail', 'from_user'=>$v['from_user']))}"><span class="label label-success" style="cursor:pointer;">{$v['flagid']}</span></a></td>
<td title="点击前往上级详情"><a href="{php echo $this->createWebUrl('fansmanager', array('op' => 'detail', 'id'=>$this->getShareId($v['from_user'])))}"><span class="label {if $this->getShareId($v['from_user'])==0}label-success{else}label-danger{/if}" style="cursor:pointer;">{php echo $this->getShareId($v['from_user'])}</span></a></td>
<td title="点击前往会员订单"><a href="{php echo $this->createWebUrl('order', array('op' => 'display', 'status'=>-99, 'uid'=>$v['uid'], 'from_user'=>$v['from_user']))}"><span class="label {if $this->getFromUserOrderSum(0,$v['from_user'])==0}label-info{else}label-danger{/if}" style="cursor:pointer;">{php echo $this->getFromUserOrderSum(0,$v['from_user'])}</span></a></td>
<td title="{$v['nickname']}">{$v['nickname']}</td>
<td title="{$v['realname']}">{$v['realname']}</td>
<td title="{$v['mobile']}">{$v['mobile']}</td>
<td>{$v['credit2']}</td>
<td>{$v['credit1']}</td>
<td style="width:160px; text-align:right;">
<a href="{php echo create_url('site/entry', array('do' => 'charge', 'op' => 'post','m' => 'wwx_fxxt','uniacid'=>$_W['uniacid'],'chargeType'=>'credit2','uid'=>$v['uid'],'from_user'=>$v['from_user']))}" class="btn btn-primary">充值余额</a>
<a href="{php echo create_url('site/entry', array('do' => 'charge', 'op' => 'post','m' => 'wwx_fxxt','uniacid'=>$_W['uniacid'],'chargeType'=>'credit1','uid'=>$v['uid'],'from_user'=>$v['from_user']))}" class="btn btn-primary">充值积分</a>
<a href="{php echo create_url('site/entry',array('do' => 'charge', 'op' => 'delete','m' => 'wwx_fxxt','uniacid'=>$_W['uniacid'],'uid'=>$v['uid'],'from_user'=>$v['from_user']));}" onclick="return confirm('删除会员将删除该会员的一切信息,确定要删除该会员吗?');" class="btn btn-primary">删除会员</a>
</td>
</tr>
{/loop}
</tbody>
</table>
</div>
{$pager}
</div>
</div>
{template 'common/footer'}