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
113
114
115
116
117
118
119
<?php
 
class zixun_controller extends lietou{    
    
    function index_action(){
        
        $MsgM    =    $this -> MODEL('msg');
        
        $where['job_uid']        =    $this -> uid;
 
        $where['status']        =    1;
 
        $urlarr        =    array("c" => "msg","page" => "{{page}}");
        
        $pageurl    =    Url('member',$urlarr);
        
        $pageM        =    $this -> MODEL('page');
        
        $pages        =    $pageM -> pageList('msg',$where,$pageurl,$_GET['page'],$this->config['sy_listnum']);
        
        if($pages['total'] > 0){
            
            
            $where['orderby']    =    'id';
            
            
            $where['limit']        =    $pages['limit'];
            
            
            $rows    =    $MsgM -> getList($where);
            
        }
        
        $this->yunset("rows",$rows['list']);
        
        $this->public_action();
        
        $this->yunset("class",24);
        
        $this->lietou_tpl('zixun');
    
    }
    
    function del_action(){
        
        $SysmsgM    =    $this->MODEL('sysmsg');
        
        if($_POST['delid'] || $_GET['id']){
            
            if($_GET['id']){
                
                $id        =    intval($_GET['id']);
            
            }elseif($_POST['delid']){
                
                $id        =    $_POST['delid'];
            
            }
            
            $return        =    $SysmsgM -> delMsg($id,array('job_uid'=>$this->uid));
            
            $this -> layer_msg($return['msg'],$return['errcode'],$return['layertype'],$_SERVER['HTTP_REFERER']);
        
        }
    
    }
    
    function sreplys_action(){
        
        $MsgM    =    $this -> MODEL('msg');
        
        if($_POST['submit']){
            
            $data['reply']                    =    $_POST['reply'];
            
            $data['reply_time']                =    time();
            
            $data['user_remind_status']        =    '0';
            
            $where['id']                    =    (int)$_POST['id'];
            
            $where['job_uid']                =    $this->uid;
            
            $id        =    $MsgM -> upReplyInfo(array('id' => $_POST['id'], 'job_uid' => $this -> uid),$data);
            
            if($id){
                 
                $this ->MODEL('log')-> addMemberLog($this -> uid, 3,"回复求职咨询",18,1);//会员日志
                 
                $this->ACT_layer_msg("回复成功!",9,"index.php?c=zixun");
             
            }else{
                 
                $this->ACT_layer_msg("添加失败!",8,"index.php?c=zixun");
             
            }
        }
    }
    
    function replys_action(){
        
        $MsgM    =    $this -> MODEL('msg');
        
        $reply    =    $MsgM->getInfo(array('id'=>$_GET['id'],'job_uid'=>$this -> uid));
        
        $this->yunset("reply",$reply);
        
        $this->yunset("id",$_GET['id']);
        
        $this->public_action();
        
        $this->yunset("class",41);
        
        $this->lietou_tpl('replyss');
    
    }
    
}
?>