chengkun
2025-05-22 1a8aea45ebb1582c9f65d9e8dcd520002f83ae12
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
<?php
 
 
class partok_controller extends company
{
 
    function index_action()
    {
        $this -> public_action();
        
        $partM          =   $this -> MODEL('part');
         
        include PLUS_PATH . 'part.cache.php';
        
        $where          =   array();
        
        $urlarr         =   array();
        
        $uid            =   $this -> uid;
        
        $where['uid']   =   $uid;
 
        $jobM       =   $this->MODEL('job');
        $this->yunset('jobNum', $jobM->getJobNum($where));
        $this->yunset('partNum', $partM->getpartJobNum($where));
        $ltjobM          =   $this -> MODEL('lietoujob');
        $this->yunset('ltjobNum', $ltjobM->getLtjobNum($where));
 
        $urlarr['c']    =   'partok';
 
        $urlarr['page'] =   '{{page}}';
 
        $w              =   intval($_GET['w']);
 
        if ($w >= 0) {
 
            $where['state']     =   $w;
 
            $urlarr['w']        =   $w;
        } else {
 
            $where['edate']     =   array('<', time());
 
            $urlarr['w']        =   0;
        }
 
        $pageurl                =   Url('member', $urlarr);
 
        $pageM                  =   $this -> MODEL('page');
 
        $pages                  =   $pageM -> pageList('partjob', $where, $pageurl, $_GET['page']);
 
        if ($pages['total'] > 0) {
            
            $where['orderby']   =   'lastupdate,desc';
            $where['limit']     =   $pages['limit'];
            
            $rows               =   $partM -> getList($where); 
        }
 
        $this->yunset('rows', $rows);
        $this -> yunset('i_know_part', !empty($_COOKIE['i_know_part_' . $this->uid]) ? 1 : 0);
 
        $this->company_satic();
        if ($w == 1) {
 
            $this->com_tpl('part'); // 招聘中的职位
        } else {
 
            $this->com_tpl('partok');
        }
    }
 
    function opera_action()
    {
        $this->part();
    }
}
?>