chengkun
2025-05-26 8f3df543230cd4403368b39b9bbe5726d11a0284
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
<?php
 
class tongji_controller extends adminCommon{ 
    function index_action(){ 
        $jobM        =    $this->MODEL('job');
        
        $linkM        =    $this->MODEL('link');
        
        $resumeM    =    $this->MODEL('resume');
        
        $companyM    =    $this->MODEL('company');
        
        $userinfoM    =    $this->MODEL('userinfo');
        
        $comorderM    =    $this->MODEL('companyorder');
        
        $today        =    strtotime('today');
        
        $yesterday    =    $today-86400;
        
        $tocomwh['usertype']        =    $yestercomwh['usertype']    =    '2';
        
        $tocomwh['reg_date']        =    array('>=',$today);
        
        $yestercomwh['reg_date'][]    =    array('>=',$yesterday);
        
        $yestercomwh['reg_date'][]    =    array('<',$today);
        
        $com['today']        =    $userinfoM -> getMemberNum($tocomwh);
        
        $com['yesterday']    =    $userinfoM -> getMemberNum($yestercomwh);
        
        $yesterjobwh['sdate'][]    =    array('>=',$yesterday);
        
        $yesterjobwh['sdate'][]    =    array('<',$today);
        
        $job['today']        =    $jobM -> getJobNum(array('sdate'=>array('>=',$today)));
        
        $job['yesterday']    =    $jobM -> getJobNum($yesterjobwh);
        
        $touserwh['usertype']        =    $yesteruserwh['usertype']=    '1';
        
        $touserwh['reg_date']        =    array('>=',$today);
        
        $yesteruserwh['reg_date'][]    =    array('>=',$yesterday);
        
        $yesteruserwh['reg_date'][]    =    array('<',$today);
        
        $user['today']        =    $userinfoM -> getMemberNum($touserwh);
        
        $user['yesterday']    =    $userinfoM -> getMemberNum($yesteruserwh);
        
        $yesterresumewh['ctime'][]    =    array('>=',$yesterday);
        
        $yesterresumewh['ctime'][]    =    array('<',$today);
        
        $resume['today']    =    $resumeM -> getExpectNum(array('ctime'=>array('>=',$today)));
        
        $resume['yesterday']=    $resumeM -> getExpectNum($yesterresumewh);
        
        $check['job']    =    $jobM -> getJobNum(array('state'=>'0'));
        
        $check['link']    =    $linkM -> getLinkNum(array('link_state'=>'0'));
        
        $check['order']    =    $comorderM -> getCompanyOrderNum(array('order_state'=>'3'));
        
        $check['com']    =    $companyM -> getCertNum(array('type'=>'3','status'=>'0'));
        
        $check['user']    =    $resumeM -> getResumeNum(array('idcard_status'=>'0','idcard_pic'=>array('<>','')));
        
        $this->yunset("resume",$resume);
        
        $this->yunset("user",$user);
        
        $this->yunset("com",$com);
        
        $this->yunset("job",$job);
        
        $this->yunset("check",$check);
        
        $this->yunset("headertitle","统计管理");
        $this->yuntpl(array('wapadmin/admin_tongji'));
    } 
}
 
?>