chengkun
2025-05-26 4462855c0033970c39ac8d0da704b7dc41eabbfe
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php
 
class   admin_comset_controller extends adminCommon{
 
    function index_action()
    {
 
        $ratingM    =   $this->MODEL('rating');
 
        $qy_rows    =   $ratingM->getList(array('category' => 1, 'orderby' => array('sort,desc')));
        $this->yunset("qy_rows", $qy_rows);
        $this->yunset("com_link_no", @explode(',', $this->config['com_link_no']));
 
        $this->yuntpl(array('admin/admin_com_config'));
    }
 
    function save_action(){
        
        $configM    =   $this->   MODEL("config");
    
         if($_POST["config"]){
              
            unset($_POST["config"]);
            unset($_POST['pytoken']);
            
            if($_FILES['exa_cert_wt_files']){
 
                $upArr  =  array(
                    'file'  =>  $_FILES['exa_cert_wt_files'],
                    'dir'   =>  'comdoc'
                );
                
                $uploadM  =  $this->MODEL('upload');
                
                $result   =  $uploadM -> uploadDoc($upArr);
                
                if ($result['msg']){
                    
                    $this->ACT_layer_msg($result['msg'],8);
                    
                }else{
 
                    $_POST['exa_cert_wt']   =   $result['docurl'];
                }
            }
 
            if (isset($_POST['sy_only_price'])) {
                $_POST['sy_only_price']     =   $_POST['sy_only_price'] ? @implode(',', $_POST['sy_only_price']) : '';
            }
 
            if(isset($_POST['com_single_can'])){
                $_POST['com_single_can']    =   $_POST['com_single_can'] ? @implode(',', $_POST['com_single_can']) : '';
            }
 
            $configM -> setConfig($_POST);
       
            $this->web_config();
      
            $this->ACT_layer_msg("配置修改成功!",9,1,2,1);
        }
    }
    function savereward_action(){
    
        $configM    =   $this->   MODEL("config");
    
        unset($_POST["config"]);
        
        $configM -> setConfig($_POST);
        
        $this->web_config();
      
        $this->ACT_layer_msg("配置修改成功!",9,$_SERVER['HTTP_REFERER'],2,1);
      
    }
    function logo_action(){
    
        if($_POST['submit']){
      
            $this->web_config();
      
            $this->ACT_layer_msg("会员头像配置设置成功!",9,$_SERVER['HTTP_REFERER'],2,1);
        }
        $this->yuntpl(array('admin/admin_comlogo'));
    }
    function set_action(){
        
        $this->yuntpl(array('admin/admin_integral_com'));
    }
    function rating_action(){
    
        $rating     =   $this->MODEL('rating');
        $qy_rows    =   $rating -> getList(array('category' => 1, 'orderby' => array('sort,desc')));
        $this->yunset("qy_rows",$qy_rows);
 
        $sy_only_price  =   @explode(',',$this->config['sy_only_price']);
        $this->yunset('sy_only_price',$sy_only_price);
 
 
        $com_single_can = @explode(',',$this->config['com_single_can']);
        $this->yunset('com_single_can',$com_single_can);
 
        $this->yunset("com_look",@explode(',',$this->config['com_look']));
        $this->yunset("rating_add",@explode(',',$this->config['rating_add']));
        $this->yuntpl(array('admin/admin_rating_config'));
    }    
    
    function reward_action(){
    
        $this->yuntpl(array('admin/admin_com_reward'));
    
    }
    
    function comspend_action(){
        
        $configM     =    $this -> MODEL('config');
        
        $row        =    $configM -> getInfo(array('name'=>'integral_down_resume_dayprice'));
        
        $marr        =    explode(':',$row['config']);
        
        foreach($marr as $v){
            
            $narr    =    explode('_',$v);
            
            $data[]    =    array('days'=>$narr[0],'price'=>$narr[1]);
        }
        
 
        $this->yunset('data',$data);
 
        $this->yuntpl(array('admin/admin_integral_comspend'));
    
    }
    function saveComspend_action(){
        
        $configM    =   $this->MODEL("config");
        
        if($_POST["config"]){
            
            unset($_POST["config"]);
            unset($_POST['pytoken']);
            
            $configM -> setConfig($_POST);
            
            $this->web_config();
            
            $this->ACT_layer_msg("配置修改成功!",9,1,2,1);
        }
    }
 
}
?>