fansmanager.html
7.9 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{template 'common/header'}
<ul class="nav nav-tabs">
<li {if $op == 'display'}class="active"{/if}><a href="{php echo $this->createWebUrl('fansmanager');}">代理</a></li>
<li {if $op == 'nocheck'}class="active"{/if}><a href="{php echo $this->createWebUrl('fansmanager', array('op'=>'nocheck'));}">非代理</a></li>
<li {if $op == 'flagdisplay'}class="active"{/if}><a href="{php echo $this->createWebUrl('memberflaggrade', array('op' => 'flagdisplay'))}">代理等级管理</a></li>
{if $op == 'post'}<li class="active"><a>{if !empty($memberflag['id'])}编辑{else}添加{/if}代理等级</a></li>{/if}
{if $op == 'sort'}
<li class="active"><a>代理搜索</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="fansmanager" />
<input type="hidden" name="op" value="sort" />
{if $op == 'nocheck'}
<input type="hidden" name="opp" value="nocheck" />
{/if}
<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='flaggrade' class="form-control" style="width:300px;display:inline;">
<option value="0" selected>所有代理</option>
{loop $flagexp $ex}
<option value="{$ex['displayorder']}" {if $gpflaggrade==$ex['displayorder']}selected{/if}>{$ex['flag_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="fansstatisticsEXP01" value="fansstatisticsEXP01" class="btn btn-warning btn-lg">导出代理excel</button></div>
</div>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">{if $op == 'nocheck'}非{/if}代理名单:<span class="label label-success"><?php echo $total;?></span> 位</div>
<div class="panel-body table-responsive">
<table class="table table-hover">
<thead class="navbar-inner">
<tr>
<th style="width:75px;">代理标识</th>
<th style="width:75px;">上级标识</th>
<th style="width:75px;">下级数量</th>
<th style="width:75px;">推广订单</th>
<th style="width:120px;">代理姓名</th>
<th style="width:110px;">手机电话</th>
<th class="width:100px;">注册时间</th>
<th class="width:60px;">状态</th>
<th class="width:60px;">权限</th>
<th style="width:80px;">金额</th>
<th style="width:80px;">积分</th>
<th style="width:60px;">点击数</th>
<th style="width:90px;text-align:right;">操作</th>
</tr>
</thead>
<tbody>
{loop $list $v}
<tr>
<td title="点击前往用户详情"><a href="{if $op == 'nocheck'}{php echo $this->createWebUrl('fansmanager', array('op' => 'detail', 'opp' => 'nocheck', 'from_user'=>$v['from_user']))}{else}{php echo $this->createWebUrl('fansmanager', array('op' => 'detail', 'from_user'=>$v['from_user']))}{/if}"><span class="label label-success" style="cursor:pointer;">{$v['id']}</span></a></td>
<td title="点击前往上级详情"><a href="{php echo $this->createWebUrl('fansmanager', array('op' => 'detail', 'id'=>$v['shareid']))}"><span class="label {if $v['shareid']==0}label-success{else}label-danger{/if}" style="cursor:pointer;">{$v['shareid']}</span></a></td>
<td title="点击前往代理名单"><a href="{php echo $this->createWebUrl('fansmanager', array('op' => 'user', 'from_user'=>$v['from_user']))}"><span class="label {if $this->getFromflagsum($v['from_user'],13)==0}label-info{else}label-danger{/if}" style="cursor:pointer;">{php echo $this->getFromflagsum($v['from_user'],13)}</span></a></td>
<td title="点击前往推广订单"><a href="{php echo $this->createWebUrl('order', array('operation' => 'display', 'status'=>-99, 'shareid'=>$v['id']))}"><span class="label {if $this->getFromordersum($v['id'])==0}label-info{else}label-danger{/if}" style="cursor:pointer;">{php echo $this->getFromordersum($v['id'])}</span></a></td>
<td title="{$v['realname']}">{$v['realname']}</td>
<td title="{$v['mobile']}">{$v['mobile']}</td>
<td title="{php echo date('Y-m-d',$v['createtime'])}">{php echo date('Y-m-d',$v['createtime'])}</td>
<td>
{if $v['flag']==0}
<a class="label label-danger" href="{php echo $this->createWebUrl('fansmanager',array('op'=>'delflag','id' => $v['id'],'isstatus' => 1));}" onclick="return confirm('确定要恢复该代理吗?');">非代理</a>
{else}
<a class="label label-success" href="{php echo $this->createWebUrl('fansmanager',array('op'=>'delflag','id' => $v['id'],'isstatus' => 0));}" onclick="return confirm('确定要禁用该代理吗?');">正常代理</a>
{/if}
</td>
<td>
{if $v['status']==0}
<a class="label label-danger" href="{php echo $this->createWebUrl('fansmanager',array('op'=>'delstatus','id' => $v['id'],'isstatus' => 1));}" onclick="return confirm('确定要恢复该帐号权限吗?');">已禁用</a>
{else}
<a class="label label-success" href="{php echo $this->createWebUrl('fansmanager',array('op'=>'delstatus','id' => $v['id'],'isstatus' => 0));}" onclick="return confirm('确定要禁用该帐号权限吗?');">正常</a>
{/if}
</td>
<td>{if empty($v['credit2'])}0{else}{$v['credit2']}{/if}</td>
<td>{if empty($v['credit1'])}0{else}{$v['credit1']}{/if}</td>
<td>{$v['clickcount']}</td>
<td style="width:240px;text-align:right;">
<a href="{php echo $this->createWebUrl('fansmanager',array('op'=>'delete','id' => $v['id']));}" onclick="return confirm('删除将清空一切代理的信息,包括该代理的一切订单与上下级代理关系,确定要删除该代理吗?');">删除</a>
<a href="{php echo $this->createWebUrl('fansmanager',array('op'=>'recharge','id' => $v['id']));}">打款</a>
</td>
</tr>
{/loop}
</tbody>
</table>
</div>
{$pager}
</div>
</div>
{template 'common/footer'}