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
<?php
 
 
class info_controller extends lietou
{
 
    function index_action()
    {
        
        $LietouM    =   $this->MODEL('lietou');
 
        $row        =   $LietouM->getInfo(array('uid' => $this->uid));
 
        $CacheList  =   $this->MODEL('cache')->GetCache(array('city', 'lt', 'ltjob', 'lthy'));
        
        $jobnameA   =   $hynameA    =   array();
        
        $job        =   @explode(',', $row['job']);
        
        $this->yunset('job', $job);
        
        $hy         =   @explode(',', $row['hy']);
        
        $this->yunset('hy', $hy);
        
        foreach ($job as $v) {
            
            $jobnameA[] =   $CacheList['ltjob_name'][$v];
        }
        
        $row['jobname'] =   @implode(',', $jobnameA);
        
        foreach ($hy as $v) {
            
            $hynameA[]  =   $CacheList['lthy_name'][$v];
        }
        
        $row['hyname']  =   @implode(',', $hynameA);
 
        $this->yunset($CacheList);
 
        $this->yunset('row', $row);
 
        $this->public_action();
 
        $this->yunset('class', '1');
 
        $this->lietou_tpl('info');
    }
 
    function save_action()
    {
        $LietouM        =   $this->MODEL('lietou');
 
        $lt                =    $this->ltInfo;
        if($lt){
            $rstaus     =   $lt['r_status'];
        }else{
            $rstaus        =    $this->config['lt_status'];
        }
 
        $_POST['job']   =   pylode(',', $_POST['job']);
 
        $_POST['hy']    =   pylode(',', $_POST['qw_hy']);
 
        $mData          =   array('email' => $_POST['email'], 'moblie' => $_POST['moblie']);
 
        $ltData         =   array(
            'realname'      =>  $_POST['realname'],
            'com_name'      =>  $_POST['com_name'],
            'email'         =>  $_POST['email'],
            'moblie'        =>  $_POST['moblie'],
            'phone'         =>  $_POST['phone'],
            'provinceid'    =>  $_POST['provinceid'],
            'cityid'        =>  $_POST['cityid'],
            'three_cityid'  =>  $_POST['three_cityid'],
            'exp'           =>  $_POST['exp'],
            'title'         =>  $_POST['title'],
            'hy'            =>  $_POST['hy'],
            'job'           =>  $_POST['job'],
            'content'       =>  $_POST['content'],
            'r_status'         =>     $rstaus,
            'client'        =>  $_POST['client']
        );
        if(!$this -> ltInfo['uid']){
            $userinfoM    =   $this->MODEL("userinfo");
            $userinfoM -> activUser($this->uid,3);
        }
        $return         =   $LietouM->upLtInfo(array('uid' => $this->uid), array('mData' => $mData, 'ltData' => $ltData, 'utype' => 'user'));
        
        if ($return['url']) {
            
            $this->ACT_layer_msg($return['msg'], $return['errcode'], $_SERVER['HTTP_REFERER']);
        } else {
            // 当前手机号码不存在 页面不要刷新
            $this->ACT_layer_msg($return['msg'], $return['errcode']);
        }
    }
}
?>