$url = $plugin->getTermsUrl($data, ADVANCED_SUBSCRIPTION_TERMS_MODE_FINAL); header('Location: ' . $url); exit; } } break; case 'confirm': // Check if new status is set if (isset($data['newStatus'])) { if ($data['newStatus'] === ADVANCED_SUBSCRIPTION_QUEUE_STATUS_ADMIN_APPROVED) { try { $isAllowToDoRequest = $plugin->isAllowedToDoRequest($data['studentUserId'], $data); } catch (Exception $ex) { $messageTemplate = new Template(null, false, false); $messageTemplate->assign('content', Display::return_message($ex->getMessage(), 'error', false)); $messageTemplate->display_no_layout_template(); $showJSON = false; break; } } // Update queue status $res = $plugin->updateQueueStatus($data, $data['newStatus']); if ($res === true) { // Prepare data // Prepare session data $fieldsArray = array('description', 'target', 'mode', 'publication_end_date', 'recommended_number_of_participants'); $sessionArray = api_get_session_info($data['sessionId']); $extraSession = new ExtraFieldValue('session'); $extraField = new ExtraField('session'); // Get session fields $fieldList = $extraField->get_all(array('variable IN ( ?, ?, ?, ?, ?)' => $fieldsArray));
<?php /* For licensing terms, see /license.txt */ /** * @package chamilo.admin */ $cidReset = true; require_once '../inc/global.inc.php'; $this_section = SECTION_MYPROFILE; api_block_anonymous_users(); if (api_get_setting('allow_skills_tool') != 'true') { api_not_allowed(); } //Adds the JS needed to use the jqgrid $htmlHeadXtra[] = api_get_jqgrid_js(); $htmlHeadXtra[] = api_get_js('jqueryui-touch-punch/jquery.ui.touch-punch.min.js'); $htmlHeadXtra[] = api_get_js('jquery.jsPlumb.all.js'); $htmlHeadXtra[] = api_get_js('skills.js'); $skill = new Skill(); $type = 'read'; //edit $tree = $skill->get_skills_tree(api_get_user_id(), null, true); $skill_visualizer = new SkillVisualizer($tree, $type); $url = api_get_path(WEB_AJAX_PATH) . 'skill.ajax.php?1=1'; $tpl = new Template(null, false, false); $tpl->assign('url', $url); $tpl->assign('skill_visualizer', $skill_visualizer); $content = $tpl->fetch('default/skill/skill_tree_student.tpl'); $tpl->assign('content', $content); $tpl->display_no_layout_template();
$template->assign('gamification_mode', $gamificationMode); $template->assign('breadcrumb', $breadcrumb); $template->assign('button_home_url', $buttonHomeUrl); $template->assign('button_home_text', $buttonHomeText); $template->assign('navigation_bar', $navigation_bar); $template->assign('progress_bar', $progress_bar); $template->assign('show_audio_player', $show_audioplayer); $template->assign('media_player', $mediaplayer); $template->assign('toc_list', $get_toc_list); $template->assign('teacher_toc_buttons', $get_teacher_buttons); $template->assign('iframe_src', $src); $template->assign('navigation_bar_bottom', $navigation_bar_bottom); if ($gamificationMode == 1) { $template->assign('gamification_stars', $_SESSION['oLP']->getCalculateStars($sessionId)); $template->assign('gamification_points', $_SESSION['oLP']->getCalculateScore($sessionId)); } $template->assign('lp_preview_image', Display::img($lpPreviewImagePath, $_SESSION['oLP']->name, array('class' => 'img-circle'), ICON_SIZE_BIG)); $template->assign('lp_author', $_SESSION['oLP']->get_author()); $template->assign('lp_mode', $_SESSION['oLP']->mode); $template->assign('lp_title_scorm', $_SESSION['oLP']->name); $template->assign('lp_html_toc', $_SESSION['oLP']->get_html_toc($get_toc_list)); $template->assign('lp_id', $_SESSION['oLP']->lp_id); $template->assign('lp_current_item_id', $_SESSION['oLP']->get_current_item_id()); $content = $template->fetch('default/learnpath/view.tpl'); $template->assign('content', $content); $template->display_no_layout_template(); // Restore a global setting. $_setting['show_navigation_menu'] = $save_setting; if ($debug) { error_log(' ------- end lp_view.php ------'); }