'index.php','name' => get_lang('PlatformAdmin')); $interbreadcrumb[] = array('url' => 'session_list.php', 'name' => get_lang('SessionList')); // Setting the name of the tool $tool_name = get_lang('EnrollTrainersFromExistingSessions'); $form_sent = 0; $errorMsg = ''; $id = intval($_GET['id']); SessionManager::protectSession($id); $htmlResult = null; if (isset($_POST['form_sent']) && $_POST['form_sent']) { $form_sent = $_POST['form_sent']; if ($form_sent == 1 && isset($_POST['sessions']) && isset($_POST['courses'])) { $sessions = $_POST['sessions']; $courses = $_POST['courses']; $htmlResult = SessionManager::copyCoachesFromSessionToCourse($sessions, $courses); } } $session_list = SessionManager::get_sessions_list(array(), array('name')); $sessionList = array(); foreach ($session_list as $session) { $sessionList[$session['id']] = $session['name']; } $courseList = CourseManager::get_courses_list(0, 0, 'title'); $courseOptions = array(); foreach ($courseList as $course) { $courseOptions[$course['id']] = $course['title']; } Display::display_header($tool_name); ?>
'.$tool_name.' '; echo $htmlResult; echo Display::input('hidden', 'form_sent', '1'); ?>
: :
'width:360px', 'multiple'=>'multiple', 'id'=>'sessions', 'size'=>'15px'), false ); ?> 'width:360px', 'id'=>'courses', 'size'=>'15px'), false ); ?>

'. get_lang('SubscribeTeachersToSession').''; ?>