index.html
14.7 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<include file="public/layout" />
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
<div class="fixed-bar">
<div class="item-title">
<div class="ftitle">
<h3>充值产品</h3>
<h5>(共{$pager->totalRows}条记录)</h5>
<div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>
</div>
</div>
</div>
<div class="flexigrid">
<div class="mDiv">
<form class="navbar-form form-inline" action="{:U('Payment/index')}" method="post">
<div class="sDiv">
<Font color="red"><b>总金额:{$sumbuy_money}元</b></Font>
<div class="sDiv2" style="margin-right: 10px;display: none;">
<input type="text" size="30" name="start" id="add_time_begin" value="{$start}" placeholder="起始时间" class="qsbox">
<!--<input type="button" class="btn" value="起始时间">-->
</div>
<div class="sDiv2" style="margin-right: 10px;display: none;">
充值时间:<input type="text" size="30" name="end" id="add_time_end" value="{$end}" placeholder="截止时间" class="qsbox">
<!--<input type="button" class="btn" value="截止时间">-->
</div>
<include file="public/date" />
<div class="sDiv2" style="margin-right: 10px;border:none;">
<select name="type">
<option value="0" <if condition="$Think.request.type eq 0">selected</if>>开通项目</option>
<option value="1" <if condition="$Think.request.type eq 1">selected</if>>分销系统</option>
<option value="2" <if condition="$Think.request.type eq 2">selected</if>>在线客服</option>
<option value="3" <if condition="$Think.request.type eq 3">selected</if>>购买模板</option>
<option value="4" <if condition="$Think.request.type eq 4">selected</if>>客服续费</option>
<option value="6" <if condition="$Think.request.type eq 6">selected</if>>自定义模板</option>
<option value="8" <if condition="$Think.request.type eq 8">selected</if>>等级卡</option>
<option value="9" <if condition="$Think.request.type eq 9">selected</if>>短信充值</option>
<option value="10" <if condition="$Think.request.type eq 10">selected</if>>京东到家</option>
<option value="11" <if condition="$Think.request.type eq 11">selected</if>>微信小程序</option>
<option value="20" <if condition="$Think.request.type eq 4">selected</if>>plus续费</option>
<option value="21" <if condition="$Think.request.type eq 4">selected</if>>分销续费</option>
</select>
</div>
<div class="sDiv2" style="margin-right: 10px;border:none;">
<select name="admtype">
<option value="0">支付方式</option>
<option value="1" <if condition="$Think.request.admtype eq 1">selected</if>>手动充值</option>
<option value="2" <if condition="$Think.request.admtype eq 2">selected</if>>自助充值</option>
</select>
<select name="is_real">
<option value="0">是否真实收钱</option>
<option value="1" <if condition="$Think.request.is_real eq 1">selected</if>>不是收钱</option>
<option value="2" <if condition="$Think.request.is_real eq 2">selected</if>>真实收钱</option>
</select>
</div>
是否使用ERP
<div class="sDiv2" style="margin-right: 10px;border:none;">
<select name="is_usererp" id="is_usererp">
<option value="" <if condition="$Think.request.is_usererp eq ''">selected</if>>请选择</option>
<option value="2" <if condition="$Think.request.is_usererp eq 2">selected</if>>否</option>
<option value="1" <if condition="$Think.request.is_usererp eq 1">selected</if>>是</option>
</select>
</div>
<div class="sDiv2">
<input type="text" size="30" name="erp" class="qsbox" placeholder="商家名称/账套/手机号" value="{$Think.request.erp}">
</div>
<div class="sDiv2">
<input type="text" size="30" name="no" class="qsbox" placeholder="支付订单号" value="{$Think.request.no}">
<input type="submit" class="btn" value="搜索" style="height: 27px">
</div>
</div>
</form>
</div>
<div class="hDiv">
<div class="hDivBox">
<table cellspacing="0" cellpadding="0">
<thead>
<tr>
<th class="w80">
<div style="text-align: left;">商家名称</div>
</th>
<th class="w90">
<div style="text-align: left;">帐套名/手机号</div>
</th>
<th class="w80">
<div style="text-align: left;">开通项目</div>
</th>
<th class="w70">
<div style="text-align: left;">金额(元)</div>
</th>
<th class="w70">
<div style="text-align: left;">购买总数</div>
</th>
<th class="w80">
<div style="text-align: left;">已用人数</div>
</th>
<th class="w120">
<div style="text-align: center;">充值时间</div>
</th>
<th class="w120">
<div style="text-align: center;">到期时间</div>
</th>
<th class="w140">
<div style="text-align: center;">支付订单号</div>
</th>
<th class="w70">
<div style="text-align: center;">支付方式</div>
</th>
<th class="w80">
<div style="text-align: center;">操作</div>
</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="tDiv">
<div class="tDiv2">
<div class="fbutton">
<a href="{:U('Payment/recharge_info',['url'=>$old_url])}">
<div class="add" title="添加充值记录">
<span><i class="fa fa-plus"></i>添加充值记录</span>
</div>
</a>
</div>
</div>
<div style="clear:both"></div>
</div>
<div class="bDiv" style="height: auto;">
<div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
<table>
<tbody>
<empty name="list">
<tr>
<td colspan="20" class="norecord">
<div class="warning-option"><i class="icon-warning-sign"></i><span>暂无符合条件的数据记录</span></div>
</td>
</tr>
<else/>
<foreach name="list" item="vo" key="k" >
<tr>
<td class="w80">
<div style="text-align: left">{$vo.store_name}</div>
</td>
<td class="w80">
<div style="text-align: left">
<if condition="$vo.erpid neq ''">
{$vo.erpid}
<else/>
{$vo.reg_mobile}
</if>
</div>
</td>
<td class="w80">
<div style="text-align: left">
<switch name="vo.type">
<case value="1"> 分销系统</case>
<case value="2">客服开通</case>
<case value="3">购买模板</case>
<case value="4">客服续费</case>
<case value="5">分销续费</case>
<case value="6">自定义模板</case>
<case value="8">等级卡</case>
<case value="9">短信充值</case>
<case value="10">京东到家</case>
<case value="11">微信小程序</case>
<case value="20">plus续费</case>
<case value="21">分销续费</case>
</switch>
</div>
</td>
<td class="w70">
<if condition="$vo.type eq 4">
<div style="text-align: left">{$vo.pernum}</div>
<else/>
<div style="text-align: left">{$vo.buy_money}</div>
</if>
</td>
<td class="w70">
<if condition="$vo.type eq 4">
<div style="text-align: left">1</div>
<else/>
<if condition="$vo.type eq 1 or $vo.type eq 5">
<div style="text-align: left">{$vo.user_num}</div>
<else/>
<if condition="$vo.type eq 8">
<div style="text-align: left">{$vo.dj_num}</div>
<else/>
<div style="text-align: left">{$vo.buy_num}</div>
</if>
</if>
</if>
</td>
<td class="w80">
<div style="text-align: left">
<if condition="$vo.type eq 1 or $vo.type eq 5 ">
{:get_vali_num($vo.store_id)}
<else/>
<if condition="$vo.type eq 8 ">
{:get_vali_num2($vo.store_id)}
<else/>
无
</if>
</if>
</div>
</td>
<td class="w120">
<if condition="$vo.type eq 4">
<div style="text-align: center">{$vo.b_time|date="Y-m-d H:i:s",###}</div>
<else/>
<div style="text-align: center">{$vo.billdate|date="Y-m-d H:i:s",###}</div>
</if>
</td>
<td class="w120">
<div style="text-align: center">
<if condition="$vo.type eq 4">
{$vo.e_time|date="Y-m-d H:i:s",###}
<else/>
<if condition="empty($vo.end_time)">
不限
<else/>
{$vo.end_time|date="Y-m-d H:i:s",###}
</if>
</if>
</div>
</td>
<td class="w140">
<div style="text-align: center">{$vo.recharge_no}</div>
</td>
<td class="w70">
<div style="text-align: center">
<if condition="$vo.admin_type eq 1">
手动充值
<else/>
自助充值
</if>
</div>
</td>
<td class="w80">
<div style="text-align: center">
<a href="{:U('payment/recharge_detail',array('id'=>$vo['id']))}" class="btn blue"><i class="fa fa-pencil-square-o"></i>查看</a> </div>
</div>
</td>
</tr>
</foreach>
</empty>
</tbody>
</table>
</div>
<div class="iDiv" style="display: none;"></div>
</div>
<!--分页位置-->
{$pager->show()}
</div>
</div>
<script>
$(document).ready(function(){
// 表格行点击选中切换
$('#flexigrid > table>tbody >tr').click(function(){
$(this).toggleClass('trSelected');
});
// 点击刷新数据
$('.fa-refresh').click(function(){
location.href = location.href;
});
});
</script>
</body>
</html>