chengkun
2025-05-12 c49b17b9588306c14ad4b30e6a2c4b8644f3233b
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
<?php
 
class admin_trainset_controller extends adminCommon{
    /**
     * 会员 - 培训 - 培训设置
     * 培训设置
     * 2019-06-06 hjy
     */     
    public function index_action(){
        $this -> yuntpl(array('admin/admin_train_config'));
    }
 
    /**
     * 会员 - 培训 - 培训设置
     * 保存培训设置
     * 2019-06-06 hjy
     */    
    public function config_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);
        $configM -> setConfig($postData);
 
        $this -> web_config();
        $this -> ACT_layer_msg($this->config['integral_train']."配置修改成功!", 9, 1, 2, 1);
   }
 
       /**
     * 会员 - 培训 - 培训设置
     * 头像设置 保存头像设置
     * 2019-06-06 hjy
     */     
    public function logo_action(){
        if(!empty($_POST['submit'])){
            unset($_POST['submit']);
            
            $this -> web_config();
            $this -> ACT_layer_msg("会员头像配置设置成功!", 9, $_SERVER['HTTP_REFERER'], 2, 1);
        }
        $this -> yuntpl(array('admin/admin_pxlogo'));
    }
 
    /**
     * 会员 - 培训 - 培训设置
     * 积分设置
     * 2019-06-06 hjy
     */     
    public function set_action(){
        $this -> yuntpl(array('admin/admin_integral_train'));        
    }
    /**
     * 会员 - 培训 - 培训设置
     * 保存积分设置
     * 2019-06-06 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);
        $configM -> setConfig($postData);
 
        $this -> web_config();
        $this -> ACT_layer_msg($this->config['integral_pricename']."配置修改成功!", 9, 1, 2, 1);
 
   }
 
}
?>