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
<?php
 
class resumetpl_controller extends user{
    //简历模板列表
    function index_action() {
 
    $TplM                 =     $this->MODEL('tpl');
    
    $uid                  =     $this->uid;
    
        $where['status']        =        1;
   
    
        $where['orderby']        =        array('id,desc');
        
        $rows                 =     $TplM -> getResumetplList($where);
        
        $statis               =     $this->member_satic();
        
        if($statis['paytpls']){
      
            $paytpls=@explode(',',$statis['paytpls']);
      
            $this->yunset("paytpls",$paytpls);
      
        }  
    
        $this->yunset("rows",$rows);
    
        $this->public_action();
    
        $this->user_tpl('resumetpl'); 
    }
    //购买简历模板
    function pay_action(){
            
        $tplM    =    $this -> MODEL('tpl');
    
        $id        =    intval($_GET['id']);
        
        $return    =    $tplM -> payResumetpl(array('id'=>$id,'uid'=>$this->uid));
        
        $this -> layer_msg($return['msg'],$return['errcode'],0,"index.php?c=resumetpl");
    
    }
    function settpl_action(){
    
        $tplM    =    $this -> MODEL('tpl');
    
        $id        =    intval($_GET['id']);
    
        $return    =    $tplM -> setResumetpl(array('id'=>$id,'uid'=>$this->uid));
    
        $this -> layer_msg($return['msg'],$return['errcode'],0,"index.php?c=resumetpl");
    
    }
}
?>