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
<?php
 
class ltresume_controller extends common{
    function index_action(){
        
        $CacheM        =    $this->MODEL('cache');
        $CacheArr    =    $CacheM->GetCache(array('user','job','city','hy','uptime'));
        $this->yunset($CacheArr);
        
        if($_GET['jobin']){
            $job_classid    =    @explode(',',$_GET['jobin']);
            $jobname        =    $CacheArr['job_name'][$job_classid[0]];
            $this->yunset("jobname",mb_substr($jobname,0,6,'utf-8'));
        }
        foreach($_GET as $k=>$v){
            if($k!=""){
                $searchurl[]=$k."=".$v;
            }
        }
        $searchurl    =    @implode("&",$searchurl);
        $this->yunset("searchurl",$searchurl);
 
        $this->yunset("backurl",Url('wap',array(),'member'));
 
        $this->get_moblie();
 
        $this->seo("user_search");
 
        $this->yunset("topplaceholder","请输入优质简历关键字");
        $this->yuntpl(array('wap/ltresume'));
    }
    function show_action(){
        $resumeM        =    $this->MODEL('resume');
        $jobM            =    $this->MODEL('job');
        $lookresumeM    =    $this->MODEL('lookresume');
 
        $CacheM            =    $this->MODEL('cache');
        $CacheArr        =    $CacheM->GetCache(array('user'));
        $this -> yunset($CacheArr);
        
        if($this->usertype!="3" && $_GET['look']=="" /*&& $this->uid!=$resume_expect['uid']*/){
            $this->ACT_msg_wap($_SERVER['HTTP_REFERER'],'您不是猎头用户,不能查看优质人才!', 1, 3);
        }
        if((int)$_GET['uid']){
            
            if((int)$_GET['type']=="2"){
 
                $user    =    $resumeM->getExpect(array("uid"=>(int)$_GET['uid'],"height_status"=>'2'),array('field'=>'`id`'));
                $id        =    $user['id'];
            }else{
                $def    =    $resumeM->getResumeInfo(array("uid"=>(int)$_GET['uid'],'r_status' => 1),array('field'=>'`def_job`'));
                $id        =    $def['def_job'];
            }
        }else{
            $id            =    (int)$_GET['id'];
        }
        $user            =    $resumeM -> getInfoByEid(array('eid' => (int)$_GET['id'], 'uid' => $this -> uid, 'usertype' => $this -> usertype));
 
        $euid    =    $resumeM->getExpect(array("id"=>(int)$_GET['id']),array('field'=>'`uid`'));
        
        $talent_pool            =    $resumeM->getTalentNum(array('eid'=>(int)$_GET['id'],'cuid'=>$this->uid));
        $user['talent_pool']    =    $talent_pool;
 
        $userid_msg                =    $jobM->getYqmsNum(array('uid'=>$euid['uid'],'fid'=>$this->uid,'isdel'=>9));
        $user['userid_msg']        =    $userid_msg;
 
        $this->yunset("Info",$user);
        
        if($this->usertype=="2" || $this->usertype=="3"){
            
            $this->yunset("uid",$this->uid);
 
            
            $jobM->updSqJob(array("com_id"=>$this->uid,"eid"=>(int)$_GET['id'], "is_browse"=>"1"),array("is_browse"=>"2"));
            
            //简历浏览记录
            $look_resume    =    $lookresumeM->getInfo(array("com_id"=>$this->uid,"resume_id"=>$id));
            if(!empty($look_resume)){
 
                $lookresumeM->upInfo(array("datetime"=>time()),array("resume_id"=>$id,"com_id"=>$this->uid));
            }else{
                $resumeM->addExpectHits($id);
 
                $data        =    array(
                    'uid'        =>    $user['uid'],
                    'resume_id'    =>    $id,
                    'com_id'    =>    $this->uid,
                    'did'        =>    $this->userdid,
                    'datetime'    =>    time()
                );
                $lookresumeM->addInfo($data);
            }
        }
        $this->get_moblie();
 
        $data['resume_username']    =    $user['username_n'];//简历人姓名
        $data['resume_city']        =    $user['city_one'].",".$user['city_two'];//城市
        $data['resume_job']            =    $user['hy'];//行业
        $this->data                    =    $data;
        $this->seo("resume");
 
        $this->yunset("headertitle","优质人才");
        $this->yuntpl(array('wap/ltresumeshow'));
    }
}
?>