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
<?php
 
class invite_controller extends company{
    //面试邀请记录
    function index_action(){
        $uid            =   $this -> uid;
        
        $where['fid']    =    $uid;
        $where['isdel']    =    9;
        
        if(trim($_GET['keyword'])){
            $resumeM                =  $this -> MODEL('resume');
                
            $resume                    =  $resumeM -> getSimpleList(array('uname'=>array('like',trim($_GET['keyword']))),array('field'=>'uid'));
            
             if ($resume){
                foreach($resume as $v){
                    if($v['uid'] && !in_array($v['uid'],$uid)){
                        $uids[]        =  $v['uid'];
                    }
                }
                $where['uid']        =  array('in',pylode(',', $uids));
            }
            $urlarr['keyword']        =    trim($_GET['keyword']);
        }
        
        $urlarr['c']    =    $_GET['c'];
        $urlarr['page']    =    '{{page}}';
        $pageurl        =    Url('member',$urlarr);
 
        $pageM            =    $this   ->  MODEL('page');
        $pages            =    $pageM  ->  pageList('userid_msg',$where,$pageurl,$_GET['page']);
        
        if($pages['total'] > 0){
            $where['orderby']        =    'id';
            $where['limit']            =    $pages['limit'];
            
            $JobM    =   $this -> MODEL('job');
            $list    =   $JobM -> getYqmsList($where,array('uid'=>$this->uid,'usertype'=>$this->usertype));
        }
        $this -> yunset('rows',$list); 
        $this -> yunset('com_look', @explode(',', $this->config['com_look']));
 
        $this->public_action();
        $this->company_satic();
        $this->com_tpl('invite');
    }
    //获取邀请记录信息
    function ajax_action(){
        if($_POST['id']){
            $JobM                =   $this -> MODEL('job');
            $row                =   $JobM -> getYqmsInfo(array('id'=>intval($_POST['id']),'fid'=>$this->uid,'isdel'=>9),array('yqh'=>1));
            echo json_encode($row);die;
        }
    }
    //删除面试邀请
    function del_action(){
        if($_POST['delid'] || $_GET['id']){
            if ($_GET['id']){
                $id   =  intval($_GET['id']);
            }elseif ($_POST['delid']){
                $id   =  $_POST['delid'];
            }
            $JobM        =  $this->MODEL('job');
            $return        =  $JobM -> delYqms($id,array('uid'=>$this->uid,'usertype'=>$this->usertype));
            $this -> layer_msg($return['msg'],$return['errcode'],$return['layertype'],$_SERVER['HTTP_REFERER']);
        }
    }
}
?>