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
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
<?php
 
 
class index_controller extends zph_controller
{
 
    function index_action()
    {
        $zphM    =    $this->MODEL('zph');
        $this->Zphpublic_action();
        $zphList    = $zphM->getZphList();
        $newZphInfo = $zphM->getNewZph();
        $this->yunset("zphList", $zphList);
        $this->yunset("newZph", $newZphInfo);
        $this -> seo('zph');
 
        //判断我是否有简历
        $eData    =   array(
            'field'   => '`lastupdate`,`jobstatus`,`id`,`name`'
        );
        $resumeM        =   $this -> MODEL('resume');
        $rlist  =  $resumeM -> getExpectByUid($this->uid,$eData);
        $this -> yunset('rlist',$rlist);
        
        $this -> yun_tpl(array('index'));
    }
 
    //往期回顾
    function review_action()
    {
        $this -> Zphpublic_action();
        $this -> seo('zph');
        $this -> yun_tpl(array('review'));
    }
 
    /**
     * @desc    招聘会预定
     */
    function reserve_action()
    {
        $this -> Zphpublic_action();
        $id         =   intval($_GET['id']);
        $zphM       =   $this->MODEL('zph');
 
        $row        =   $zphM->getInfo(array( 'id' => $id ), array( 'pic' => 1 ));
        $this -> yunset('Info', $row);
 
        $rows       =   $zphM->getZphPicList(array('zid' => $id));
        $this -> yunset('Image_info', $rows);
 
        $space      =   $zphM->getZphSpaceInfo(array('id' => $row['sid']), array('pic' => 1,'field' => '`pic`,`content`'));
        $this -> yunset('space', $space);
 
        $spacelist  =   $zphM->getZphSpaceList(array('keyid' => $row['sid'], 'orderby' => 'sort,asc'), array( 'id' => $id, 'utype' => 'index' ));
 
        $this -> yunset('spacelist', $spacelist);
 
        if ($this->usertype == 2) {
 
            $ratingM    =   $this->MODEL('rating');
            $ratingList =   $ratingM->getList(array('display' => 1, 'orderby' => array('type,asc', 'sort,desc')));
 
            $rating_1 = $rating_2 = $raV = array();
 
            if (! empty($ratingList)) {
 
                foreach ($ratingList as $ratingV) {
 
                    $raV[$ratingV['id']] = $ratingV;
 
                    if ($ratingV['category'] == 1 && $ratingV['service_price'] > 0) {
 
                        if ($ratingV['type'] == 1) {
 
                            $rating_1[] = $ratingV;
                        } elseif ($ratingV['type'] == 2) {
 
                            $rating_2[] = $ratingV;
                        }
                    }
                }
            }
            $this->yunset('rating_1', $rating_1);
            $this->yunset('rating_2', $rating_2);
 
            $statisM    =   $this->MODEL('statis');
            $statis     =   $statisM->getInfo($this->uid, array( 'usertype' => 2));
 
            if (! empty($statis)) {
                $discount   =   isset($raV[$statis['rating']]) ? $raV[$statis['rating']] : array();
                $this -> yunset('discount', $discount);
                $this -> yunset('statis', $statis);
            }
 
            $add    =   $ratingM->getComSerDetailList(array('orderby' => array('type,asc', 'sort,desc')), array('pack' => '1'));
            $this -> yunset('add', $add);
 
            $couponM    =   $this->MODEL('coupon');
            $couponList =   $couponM->getCouponList(array('uid' => $this->uid, 'status' => 1, 'validity' => array('>', time()), 'orderby'=>array('coupon_amount,asc','coupon_scope,asc')));
            $this->yunset('couponList', $couponList);
        }
 
        $data['zph_title']  =   $row['title'];
        $data['zph_desc']   =   $this->GET_content_desc($row['body']); // 描述
        $this -> data       =   $data;
        $this -> seo("zph_reserve");
        $this -> yun_tpl(array('reserve'));
    }
    function getComList_action(){
        $this -> Zphpublic_action();
 
        $id     =   intval($_POST['zid']);
        $return =   array();
        if($id){
            $page   =   intval($_POST['page']);
        
            $zphM   =   $this->MODEL('zph');
 
            
            $zclimit            =   20;
            $zcwhere            =   array();
            $zcwhere['zid']     =   $id;
            $zcwhere['status']  =   1;
            $zcwhere['orderby'] =   array('sort,desc','ctime,asc');
 
            $zcnum              =   $zphM->getZphComNum($zcwhere);
 
            if($page > 0){
                    
                $pagenav  =  ($page - 1) * $zclimit;
                $zcwhere['limit']  =  array($pagenav,$zclimit);
                
            }else{
                
                $zcwhere['limit']  =  $zclimit;
            }
 
            $zcList             =   $zphM -> getZphCompanyList($zcwhere);
            $return['zclist']   =   $zcList;
            $return['error']    =   1;
            $return['msg']      =   '';
        }else{
            $return['zclist']   =   array();
            $return['error']    =   0;
            $return['msg']      =   '参数错误请重试';
        }
 
        echo json_encode($return);exit();
    }
    function getJobList_action(){
        $this -> Zphpublic_action();
 
        $id     =   intval($_POST['zid']);
        $return =   array();
        if($id){
            $page   =   intval($_POST['page']);
            $keyword   =   trim($_POST['keyword']);
            $zphM   =   $this->MODEL('zph');
 
            
            $zjwhere            =   array();
            $zjwhere['zid']     =   $id;
            $zjwhere['status']  =   1;
            $zjwhere['orderby'] =   array('sort,desc','ctime,asc');
 
            $zjwhereData        =   array('zwhereData'=>$zjwhere);
 
            $zjlimit            =   40;
            $jwhere['state']    =   1;
            $jwhere['status']   =   0;
            $jwhere['r_status'] =   1;
            if($page > 0){
                    
                $pagenav  =  ($page - 1) * $zjlimit;
                $jwhere['limit']  =  array($pagenav,$zjlimit);
                
            }else{
                
                $jwhere['limit']  =  $zjlimit;
            }
            if($keyword){
                $jwhere['PHPYUNBTWSTART_a'] = '';
                $jwhere['name']  =   array('like',$keyword);
                $jwhere['com_name']  =   array('like',$keyword,'OR');
                $jwhere['PHPYUNBTWEND_a']  = '';
            }
            $jwhere['orderby']  =   'lastupdate,desc';
 
            $zjwhereData['jwhereData'] = $jwhere;
 
            $zjList             =   $zphM -> getZphJobList($zjwhereData);
 
            $return['zjlist']   =   $zjList['list'];
            $return['error']    =   1;
            $return['msg']      =   '';
        }else{
            $return['zjlist']   =   array();
            $return['error']    =   0;
            $return['msg']      =   '参数错误请重试';
        }
 
        echo json_encode($return);exit();
    }
}
?>