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
<?php
 
class look_controller extends user{
    //对我感兴趣列表
    function index_action(){
    
        $LookResumeM       =     $this->MODEL('lookresume');
 
        include PLUS_PATH."/com.cache.php";
 
        include PLUS_PATH."/lt.cache.php";
 
        $uid                    =     $this->uid;
 
        $where['uid']           =     $uid;
 
        $where['status']        =     0;
 
        $where['orderby']       =     array('datetime,desc');
 
        $urlarr['c']      =     "look";
 
        $urlarr['page']      =        "{{page}}";
 
        $pageurl                    =     Url('member',$urlarr);
 
        $pageM                        =        $this  -> MODEL('page');
 
        $pages                        =        $pageM -> pageList('look_resume', $where, $pageurl, $_GET['page']);
 
        $where['limit']   =     $pages['limit'];
 
        $looknew          =     $LookResumeM -> getList($where, array('uid'=>$this->uid, 'usertype'=>$this->usertype));
 
        $look             =     $looknew['list'];
        $this->yunset("js_def",2);
    
        $this->yunset("look",$look);
    
        $this->public_action();
    
        $this->user_tpl('look');
    
    }
    //删除对我感兴趣
    function del_action(){
      
      $lookresumeM    =  $this->MODEL('lookresume');
    
        if($_GET['id'] || $_GET['del']){
            if ($_GET['del']){
                $id   =  $_GET['del'];
            }elseif ($_GET['id']){
                $id   =  $_GET['id'];
            }
            
            $return   =  $lookresumeM -> delInfo(array('id'=>$id,'uid'=>$this->uid,'usertype'=>1));
            
            $this -> layer_msg($return['msg'],$return['errcode'],$return['layertype'],$_SERVER['HTTP_REFERER']);
        }
    }
}
?>