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
<?php
 
class sendresume_controller extends resume_controller{
    /**
     * 发送简历
     * 2019-06-15
     */
    function index_action(){
        $id                    =    intval($_GET['id']);
        if(!empty($id)){
            $resumeM        =    $this -> MODEL('resume');
            $user            =    $resumeM -> getInfoByEid(array(
                'eid'         =>    $id,
                'uid'         =>    $this -> uid,
                'usertype'     =>    $this -> usertype
            ));
 
            $JobM            =    $this -> MODEL('job');
            
            $time            =    strtotime("-14 day");
            $allnum            =    $JobM -> getYqmsNum(array(
                'uid'         =>    $user['uid'],
                'eid'         =>    $id,
                'datetime'     =>    array('>', $time)
            ));
            $replynum        =    $JobM -> getYqmsNum(array(
                'uid'         =>    $user['uid'],
                'eid'         =>    $id,
                'datetime'     =>    array('>', $time),
                'is_browse' =>    array('>', 1)
            ));
 
            $pre            =    round(($replynum/$allnum)*100);
            
            $this -> yunset('pre', $pre);
            $this -> yunset('Info', $user);
            
            $resumeCheck    =    $this->config['resume_open_check'] == '1' ? '1' : '2';
            $this->yunset('resumeCkeck',  $resumeCheck);
        }
 
        $this->yuntpl(array('resume/sendresume'));
    }
}
?>