$profile = new Profile($dbo); $studentws = new \Ventus\Workshops\StudentWorkshops($dbo); $courses = new Courses($dbo); if (isset($_GET['student_num']) && ctype_digit($_GET['student_num'])) { $studentProfile = $profile->getProfile($_GET['student_num']); } //============================================================================================ // Load the content //============================================================================================ if (!isset($_GET['page'])) { $render = true; $thisPage = 'student-workshops'; if (!empty($studentProfile)) { $attended = $studentws->listWorkshopsAttended($_GET['student_num'], SERVICE_ID_ACCESS); $registered = $studentws->listWorkshopsRegisteredTo($_GET['student_num'], SERVICE_ID_ACCESS); $future = $studentws->listWorkshopsNotRegisteredTo($_GET['student_num'], SERVICE_ID_ACCESS); $poccount = $profile->countUnlockedPOC($_GET['student_num']); $semester = \Ventus\Utilities\Functions::fetchSemester(); $current_courses = $courses->fetchAllStudentCoursesForSemester($_GET['student_num'], $semester['now_short']); $l10n->addResource(FS_L10N . '/student-workshops.json'); $viewFile = FS_VIEWS . '/student-workshops.php'; } } /** * View rendering */ if (isset($render) && $render) { $follow_up_pending_count = $follow->fetchFollowUpsCountEmployee($SESSION->user_id); $l10n->addResource(__DIR__ . '/l10n/menu.json'); require FS_PHP . '/header.php'; require FS_PHP . '/nav.php';
//============================================================================================ $profile = new Profile($dbo); $studentws = new \Ventus\Workshops\StudentWorkshops($dbo); if (isset($_GET['student_num']) && ctype_digit($_GET['student_num'])) { $studentProfile = $profile->getProfile($_GET['student_num']); } //============================================================================================ // Load the content //============================================================================================ if (!isset($_GET['page'])) { $render = true; $thisPage = 'student-workshops'; if (!empty($studentProfile)) { $attended = $studentws->listWorkshopsAttended($_GET['student_num'], SERVICE_ID_COUNSELLING); $registered = $studentws->listWorkshopsRegisteredTo($_GET['student_num'], SERVICE_ID_COUNSELLING); $future = $studentws->listWorkshopsNotRegisteredTo($_GET['student_num'], SERVICE_ID_COUNSELLING); $l10n->addResource(FS_L10N . '/student-workshops.json'); $viewFile = FS_VIEWS . '/student-workshops.php'; } } /** * View rendering */ if (isset($render) && $render) { $l10n->addResource(__DIR__ . '/l10n/menu.json'); require FS_PHP . '/header.php'; require FS_PHP . '/nav.php'; if (isset($viewFile) && file_exists($viewFile)) { require $viewFile; require 'views/menu.php'; } else {