chengkun
2025-04-30 6ab292fb7415be124651e312ec4f21c594568f17
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
<?php
 
 
 
class attention_me_controller extends company
{
    /*
    查看对我感兴趣的列表页面
    **/
    function index_action()
    {
 
        $where['sc_uid']            =   $this->uid;
        $where['sc_usertype']       =   2;
        $where['PHPYUNBTWSTART_A']  =   '';
        $where['xjhid'][]           =   array('=', 0);
        $where['xjhid'][]           =   array('isnull', '', 'OR');
        $where['PHPYUNBTWEND_A']    =   '';
 
        if (isset($_GET['keyword']) && !empty(trim($_GET['keyword']))) {
 
            $resumeM    =   $this->MODEL('resume');
 
            $resume     =   $resumeM->getSimpleList(array('uname' => array('like', trim($_GET['keyword']))), array('field' => 'uid'));
 
            if ($resume) {
                $uid    =   array();
                foreach ($resume as $v) {
                    if ($v['uid'] && !in_array($v['uid'], $uid)) {
                        $uid[]  =   $v['uid'];
                    }
                }
                $where['uid']   =   array('in', pylode(',', $uid));
            }
            $urlarr['keyword']  =   trim($_GET['keyword']);
        }
 
        $urlarr['c']    =   $_GET['c'];
        $urlarr['page'] =   '{{page}}';
        $pageurl        =   Url('member', $urlarr);
 
        $pageM  =   $this->MODEL('page');
        $pages  =   $pageM->pageList('atn', $where, $pageurl, $_GET['page']);
 
        if ($pages['total'] > 0) {
            $where['orderby']   =   'id';
            $where['limit']     =   $pages['limit'];
 
            $atnM   =   $this->MODEL('atn');
            $List   =   $atnM->getatnList($where, array('utype' => 'user', 'uid' => $this->uid));
            $this->yunset('rows', $List);
        }
 
        //邀请面试选择职位
        $this->yqmsInfo();
        $this->company_satic();
        $this->public_action();
 
        $this->com_tpl('attention_me');
    }
}
 
?>