chengkun
2025-05-23 a6f7b382623096b6a00924f418447cf5204e825e
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
<?php
 
 
class invite_controller extends user{
 
    // 面试通知列表
    function index_action(){
       $JobM       =   $this -> MODEL('job');
        $resume = $this -> public_action();
        
        if($resume['sex']==1){
            
            $name  =   mb_substr($resume['name'],0,1,'utf-8').'先生';
        }elseif($resume['sex']==2){
            
            $name  =   mb_substr($resume['name'],0,1,'utf-8').'女士';
        }else{
            
            $name  =   $resume['name'];
        }
        $this->yunset("realmsgname",$name);
        
        $where  =   $urlarr =   array();
        
        $where['uid']   =   $this->uid;
        $where['type']  =   array('<>', 1);
        $where['isdel'] =   9;
        $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'];
 
           
            $list       =   $JobM -> getYqmsList($where);
        }
        $time           =   time();
        $this -> yunset('time', $time);
        $this -> yunset('rows', $list);
        $this -> yunset('js_def', 4);
        $this -> user_tpl('invite');
    }
 
    /**
     * @desc 面试通知 - 屏蔽企业操作
     */
    function shield_action()
    {
        $blackM =   $this -> MODEL('black');
        $id     =   intval($_GET['id']);
        $data   =   array('id' => $id, 'uid' => $this->uid, 'usertype' => $this->usertype, 'type' => 'yqms');
        $return =   $blackM->addBlacklist($data);
 
        $this -> layer_msg($return['msg'], $return['errcode'], 0, $_SERVER['HTTP_REFERER']);
    }
    //删除面试通知
    function del_action()
    {
        $JobM   =   $this -> MODEL('job');
        if ($_GET['id']) {
            $id     =   intval($_GET['id']);
            $return =   $JobM -> delYqms($id, array('uid' => $this->uid, 'usertype' => $this->usertype));
            $this -> layer_msg($return['msg'], $return['errcode'], $return['layertype'], $_SERVER['HTTP_REFERER']);
        }
    }
    //邀请函数据
    function ajax_action()
    {
        $JobM   =   $this -> MODEL('job');
        if ($_POST['id']) {
 
          
            $row    =   $JobM -> getYqmsInfo(array('id' => intval($_POST['id']),'isdel'=>9,'uid'=>$this->uid), array('yqh' => 1, 'uid' => $this->uid, 'usertype' => $this->usertype));
            
            echo json_encode($row);
            die();
        }
    }
    //面试邀请同意或者拒绝
    function inviteset_action()
    {
        $JobM       =   $this->MODEL('job');
        if($_GET['id']){
            $id         =   (int)$_GET['id'];
            $browse     =   (int)$_GET['browse'];
        }else if($_POST['id']){
            $id         =   (int)$_POST['id'];
            $browse     =   (int)$_POST['browse'];
        }
        $remark     =   '';
        if($browse=='4' && $_POST['remark']){
            $remark =   trim($_POST['remark']);
        }
        
        $return     =   $JobM->setYqms(array('id' => $id, 'browse' => $browse, 'remark'=>$remark, 'uid' => $this->uid, 'username' => $this->username, 'port' => '1'));
 
        if($_GET['id']){
            $this->layer_msg($return['msg'], $return['errcode'], 0, $_SERVER['HTTP_REFERER']);
        }else if($_POST['id']){
            $this ->  ACT_layer_msg($return['msg'], $return['errcode'],$_SERVER['HTTP_REFERER']);
        }
        
 
        
    }
}
?>