chengkun
2025-05-20 f6f7bd25619ad0c0dfb5e609332e9fa1db419386
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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
<?php
 
class admin_tongji_controller extends adminCommon{    
 
    function index_action(){//会员注册统计
        
        $this->yuntpl(array('admin/admin_tongji'));
    }
    
    function reg_action(){//会员注册统计
        
        $TongJi    =    $this -> MODEL('tongji');
    
        //总会员
        $Stats    =    $TongJi -> getTj('member',$_GET,'reg_date');
        $List['all']['name']    =    '所有会员';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];
        
        //企业
        $comStats    =    $TongJi -> getTj('member',$_GET,'reg_date',array('usertype'=>'2'));
        $List['com']['name']    =    '企业会员';
        $List['com']['list']    =    $comStats['list'];
        $AllNum['com']            =    $comStats['allnum'];
        
        //个人
        $userStats    =    $TongJi -> getTj('member',$_GET,'reg_date',array('usertype'=>'1'));
        $List['user']['name']    =    '个人会员';
        $List['user']['list']    =    $userStats['list'];
        $AllNum['user']            =    $userStats['allnum'];
 
        //注册来源统计
 
        $CountTj    =    $TongJi -> DataTj('reg',$Stats['timedate']['DateWhere'],'member','uid');
        
        $this->yunset('counttj',$CountTj);
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
 
        //echo json_encode($List);die;
        $this->yunset('name','会员注册统计');
 
        $this->yuntpl(array('admin/admin_tongji_reg'));
    }
    //职位浏览
    function lookjob_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
    
        $Stats    =    $TongJi -> getTj('look_job',$_GET,'datetime');
        
        $List['all']['name']    =    '职位浏览';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];
        //统计浏览数最多的职位
        $TopList['job']            =    $TongJi -> TopTen("look_job",$Stats['timedate']['DateWhere'],"jobid","job");
        //统计浏览最多的企业
        $TopList['company']     =    $TongJi -> TopTen("look_job",$Stats['timedate']['DateWhere'],"com_id","company");
        
        
        $this->yunset('toplist',$TopList);
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','职位浏览统计');
 
        $this->yuntpl(array('admin/admin_tongji_lookjob'));
    
    }
 
    //简历浏览
    function lookresume_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
    
        $Stats    =    $TongJi -> getTj('look_resume',$_GET,'datetime');
        $List['all']['name']    =    '简历浏览';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];
 
        //统计浏览数最多的求职简历
        $TopList['expect']        =    $TongJi -> TopTen("look_resume",$Stats['timedate']['DateWhere'],"resume_id","expect");
        //统计浏览最多简历的企业
        $TopList['company']        =    $TongJi -> TopTen("look_resume",$Stats['timedate']['DateWhere'],"com_id","company");
        
        $this->yunset('toplist',$TopList);
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','简历浏览统计');
        $this->yuntpl(array('admin/admin_tongji_lookresume'));
    
    }
    //邀请面试
    function useridmsg_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
    
        $Stats    =    $TongJi -> getTj('userid_msg',$_GET,'datetime');
        $List['all']['name']    =    '邀请面试';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];
        //统计发出邀请面试最多的企业
        $TopList['company']        =    $TongJi -> TopTen("userid_msg",$Stats['timedate']['DateWhere'],"fid","company");
 
        //统计被邀请最多的求职者
        
        $TopList['resume']        =    $TongJi -> TopTen("userid_msg",$Stats['timedate']['DateWhere'],"uid","resume");
        
        //根据邀请面试数量统计紧缺人才
 
        $CountTj    =    $TongJi -> DataTj('job',$Stats['timedate']['DateWhere'],'userid_msg','jobid');
        
        $this->yunset('counttj',$CountTj);
        $this->yunset('toplist',$TopList);
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','邀请面试统计');
 
        $this->yuntpl(array('admin/admin_tongji_useridmsg'));
    
    }
 
    //简历下载
    function downresume_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
    
        $Stats    =    $TongJi -> getTj('down_resume',$_GET,'downtime');
        $List['all']['name']    =    '简历下载';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];
        
        //统计下载简历最多企业
        $TopList['company']        =    $TongJi -> TopTen("down_resume",$Stats['timedate']['DateWhere'],"comid","company");
 
        //统计被下载最多的求职者
        
        $TopList['resume']        =     $TongJi -> TopTen("down_resume",$Stats['timedate']['DateWhere'],"uid","resume");
        
        //根据下载数据统计企业最感兴趣范围
 
        $CountTj    =    $TongJi -> DataTj('resume_expect',$Stats['timedate']['DateWhere'],'down_resume','eid');
        
        $this->yunset('counttj',$CountTj);
        $this->yunset('toplist',$TopList);
 
        
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','简历下载统计');
 
        $this->yuntpl(array('admin/admin_tongji_downresume'));
    
    }
    //简历投递
    function useridjob_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
    
        $Stats    =    $TongJi -> getTj('userid_job',$_GET,'datetime');
        $List['all']['name']    =    '简历投递';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];
 
        //统计发出邀请面试最多的企业
        $TopList['company']        =    $TongJi -> TopTen("userid_job",$Stats['timedate']['DateWhere'],"com_id","company");
 
        //统计发出最多申请的简历
        
        $TopList['resume']        =    $TongJi -> TopTen("userid_job",$Stats['timedate']['DateWhere'],"eid","expect");
        
 
        //根据邀请面试数量统计紧缺人才
 
        $CountTj    =    $TongJi -> DataTj('resume_expect',$Stats['timedate']['DateWhere'],'userid_job','eid');
        
        $this->yunset('toplist',$TopList);
        $this->yunset('counttj',$CountTj);
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','简历投递统计');
 
        $this->yuntpl(array('admin/admin_tongji_useridjob'));
    
    }
    //订单统计
    function order_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
        
        if($_GET['did']){
            $where    =    array('order_state' => '2', 'did' => $_GET['did']);
        }else{
            $where    =    array('order_state' => '2');
        }        
 
        $Stats    =    $TongJi -> getTj('company_order', $_GET, 'order_time', $where, "SUM(`order_price`) as count");
 
        $List['all']['name']    =    '充值金额';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];
        
        $TopList['company']        =    $TongJi -> TopTen('company_order', array_merge($Stats['timedate']['DateWhere'], $where),"uid","order",'10',"SUM(`order_price`) as count");
        
        //统计充值各类型
        $CountTj    =    $TongJi -> DataTj('order', array_merge($Stats['timedate']['DateWhere'], $where), 'company_order', 'id');
 
        $this->yunset('toplist',$TopList);
        $this->yunset('counttj',$CountTj);
 
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','充值金额统计');
        
        //提取分站内容
        $cacheM    =    $this -> MODEL('cache');
        $domain    =    $cacheM    -> GetCache('domain');
        
        $this -> yunset('Dname', $domain['Dname']);
 
        $this->yuntpl(array('admin/admin_tongji_order'));
    
    }
 
    //消费统计
    function pay_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
    
        $Stats    =    $TongJi -> getTj('company_pay',$_GET,'pay_time');
        $List['all']['name']    =    '消费记录';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];
        
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','消费记录统计');
 
        $this->yuntpl(array('admin/admin_tongji_pay'));
    
    }
 
    //职位发布统计
    function job_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
    
        $Stats    =    $TongJi -> getTj('company_job',$_GET,'sdate');
        $List['all']['name']    =    '发布职位';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];        
        
 
        //统计发布职位最多企业
        $TopList['company']        =    $TongJi -> TopTen("company_job",$Stats['timedate']['DateWhere'],"uid","company");
 
        //根据发布职位量统计企业需求
 
        $CountTj    =    $TongJi -> DataTj('job',$Stats['timedate']['DateWhere'],'company_job','id');
        
        $this->yunset('toplist',$TopList);
        $this->yunset('counttj',$CountTj);
 
 
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','发布职位统计');
 
        $this->yuntpl(array('admin/admin_tongji_job'));
    
    }
    //简历数据统计
    function resume_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
        $Stats    =    $TongJi -> getTj('resume_expect',$_GET,'ctime');
        $List['all']['name']    =    '发布简历';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];        
 
        //根据简历数据统计求职需求
 
        $CountTj    =    $TongJi -> DataTj('resume_expect',$Stats['timedate']['DateWhere'],'resume_expect','id');
        
        $this->yunset('counttj',$CountTj);
 
 
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','发布简历统计');
 
        $this->yuntpl(array('admin/admin_tongji_resume'));
    
    }
 
    //会员办理统计
    function rating_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
    
        $Stats    =    $TongJi -> getTj('company_statis',$_GET,'sdate');
        $List['all']['name']    =    '会员办理';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];
        
        
        //统计VIP企业数量
        $TopList['company']        =    $TongJi -> TopTen("userid_job",$Stats['timedate']['DateWhere'],"com_id","company");
 
        //统计发出最多申请的简历
        
        $TopList['resume']        =    $TongJi -> TopTen("userid_job",$Stats['timedate']['DateWhere'],"eid","expect");
        
 
        //根据邀请面试数量统计紧缺人才
 
        $CountTj    =    $TongJi -> DataTj('resume_expect',$Stats['timedate']['DateWhere'],'userid_job','eid');
        
        $this->yunset('toplist',$TopList);
        $this->yunset('counttj',$CountTj);
 
 
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','会员办理统计');
 
        $this->yuntpl(array('admin/admin_tongji'));
    
    }
    //企业统计
    function company_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
    
        $Stats    =    $TongJi -> getTj('member',$_GET,'reg_date',array('usertype'=>'2'));
        $List['all']['name']    =    '企业统计';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];
        
        //待审核企业
        $comStats    =    $TongJi -> getTj('member',$_GET,'reg_date',array('usertype'=>'2','status'=>'0'));
        $List['com']['name']    =    '待审核企业';
        $List['com']['list']    =    $comStats['list'];
        $AllNum['com']            =    $comStats['allnum'];
 
 
        $CountTj    =    $TongJi -> DataTj('company',$Stats['timedate']['DateWhere'],'member','uid');
        
        $this->yunset('counttj',$CountTj);
 
 
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','企业统计');
 
        $this->yuntpl(array('admin/admin_tongji_company'));
    
    }
    //广告点击统计
    function ad_action(){
 
        $TongJi    =    $this -> MODEL('tongji');
    
        $Stats     =    $TongJi -> getTj('adclick',$_GET,'addtime');
        $List['all']['name']    =    '点击量';
        $List['all']['list']    =    $Stats['list'];
        $AllNum['all']            =    $Stats['allnum'];
        
        //统计点击量最多的职位
        $TopList['ad']            =    $TongJi -> TopTen("adclick",$Stats['timedate']['DateWhere'],"aid","ad");
 
        $this->yunset('toplist',$TopList);
        //$CountTj    =    $TongJi    -> DataTj('ad',$Stats['timedate']['DateWhere'],'adclick','id');
        //$this->yunset('counttj',$CountTj);
 
 
        $this->yunset('AllNum',$AllNum);
        $this->yunset('list',$List);
        $this->yunset('name','广告点击统计');
 
        $this->yuntpl(array('admin/admin_tongji_ad'));
    
    }
 
    
}
 
?>