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
<?php
 
class talent_controller extends lietou{
 
    function index_action(){
        $this->public_action();
        $this->yunset("class",14);
        $where['uid']    =  $this->uid;
        $urlarr['c']    =    $_GET['c'];
        $urlarr['page']    =    '{{page}}';
        $pageurl        =    Url('member',$urlarr);
 
        $pageM            =    $this->MODEL('page');
        $pages            =    $pageM->pageList('lt_talent',$where,$pageurl,$_GET['page']);
        
        if($pages['total'] > 0){
            $where['orderby']        =    'id';
            $where['limit']            =    $pages['limit'];
            
            $talentM  =  $this->MODEL('talent');
            
            $List       =  $talentM->getList($where);
        }
        $this->yunset("rows",$List);
        
        $this->lietou_tpl('talent');
    }
 
    function expect_action(){
        if($_GET['id']){
            $talentM    =    $this->MODEL('talent');
            $expectInfo    =    $talentM -> getInfo(array('id'=>intval($_GET['id']),'uid'=>$this -> uid));
            
            $this->yunset("resume",$expectInfo);
        }
        $this->yunset($this->MODEL('cache')->GetCache(array('city','user','hy')));
    
        $this->public_action();
        $this->yunset("class",14);
        $this->lietou_tpl('talent_expect');
    }
    function saveexpect_action(){
        if($_POST){
            $talentM = $this->MODEL('talent');
            $_POST['uid']    =    $this->uid;
            $_POST['did']    =    $this->userdid;
            $return  = $talentM->addTalent($_POST);
            
            if($return['error']=='1'){
 
                $this->ACT_layer_msg($return['msg'],9,'index.php?c=talent');
            }else{
                $this->ACT_layer_msg($return['msg'],8);
            }
        }
    
    }
    function telstatus_action(){
        
        $talentM = $this->MODEL('talent');
        
        $return  = $talentM->telStatus($_POST['id'],$this->uid,$_POST['linktel'],$_POST['code']);
        
        if($return['error']=='1'){
 
            $this ->MODEL('log')-> addMemberLog($this -> uid, 3,"简历库授权认证",2,2);//会员日志
        }
        echo json_encode($return);
    }
    // 验证手机号
    function regmoblie_action()
    {
        $userinfoM  =  $this->MODEL("userinfo");
        
        $return     =  $userinfoM -> addMemberCheck(array('moblie'=>$_POST['telphone']),$this->uid);
        
        if ($return['msg']) {
            
            echo 1;die;
        } else {
            
            echo 0;die;
        }
    }
}
?>