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
<?php
 
class admin_ltset_controller extends adminCommon{
    /**
     * 会员-猎头- 猎头设置
     * 猎头设置
     * 2019-06-03 hjy
     */
    public function index_action()
    {
        $ratingM        =   $this->MODEL('rating');
        $rating_list    =   $ratingM->getList(array('category' => 2, 'orderby' => 'sort, asc'));
        $this->yunset("lt_rows", $rating_list);
 
        $lt_single_can  =   @explode(',', $this->config['lt_single_can']);
        $this->yunset('lt_single_can', $lt_single_can);
 
        $lt_rating_add  =   @explode(',', $this->config['lt_rating_add']);
        $this->yunset('lt_rating_add', $lt_rating_add);
 
        $this->yuntpl(array('admin/admin_lt_config'));
    }
    /**
     * 会员-猎头- 猎头设置
     * 头像设置
     * 2019-06-03 hjy
     */
    public function logo_action(){
        if(!empty($_POST['submit'])){
            
 
            $this -> web_config();
            $this -> ACT_layer_msg("会员头像配置设置成功!", 9, $_SERVER['HTTP_REFERER'],2,1);
        }
        $this -> yuntpl(array('admin/admin_ltlogo'));
    }
    /**
     * 会员-猎头- 猎头设置
     * 积分设置
     * 2019-06-03 hjy
     */
    public function set_action(){
        $this -> yuntpl(array('admin/admin_integral_lt'));        
    }
     
    /**
     * 会员-猎头- 猎头设置
     * 保存设置
     * 2019-06-03 hjy
     */
    public function save_action(){
        if(empty($_POST["config"])){
            $this -> ACT_layer_msg("配置修改失败!", 8, $_SERVER['HTTP_REFERER']);
        }
 
        unset($_POST["config"]);
 
        $configM                    =    $this -> MODEL('config');
        $postData                    =    $this -> post_trim($_POST);
 
        if(isset($postData['lt_single_can'])){
            $postData['lt_single_can'] = $postData['lt_single_can'] ? @implode(',', $postData['lt_single_can']) : '';
        }else{
            $postData['lt_single_can'] = '';
        }
 
        $configM -> setConfig($postData);
 
        $this -> web_config();
        $this -> ACT_layer_msg("配置修改成功!", 9, 1, 2, 1);
    }
 
}
?>