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); } } ?>