$profile = new \Ventus\Specialist\Profile($dbo); $modelacc = new \Ventus\Specialist\Accommodation($dbo); $follow = new \Ventus\Specialist\FollowUps($dbo); $model = new \Ventus\Utilities\CourseSchedule($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; if (!empty($studentProfile)) { $followupcount = $follow->fetchFollowUpsCountStudent($_GET['student_num']); $poccount = $profile->countUnlockedPOC($_GET['student_num']); $active_accommodations = $modelacc->getAccommodations($_GET['student_num']); $semester = \Ventus\Utilities\Functions::fetchSemester(); if (!isset($_GET['sem'])) { $selected_semester = $semester['now_short']; } else { $selected_semester = $_GET['sem']; } $has_weekend_courses = "false"; if (count($model->checkIfStudentHasWeekendCourses($selected_semester, $_GET['student_num'])) > 0) { $has_weekend_courses = "true"; } $thisPage = 'course-schedule'; $student_schedule = $model->fetchStudentSchedule($selected_semester, $_GET['student_num']); $l10n->addResource(FS_L10N . '/course-schedule.json'); $l10n->localizeArray($semester, 'now_long'); $l10n->localizeArray($semester, 'previous_long');