Esempio n. 1
0
//============================================================================================
// Load the content
//============================================================================================
if (!isset($_GET['page'])) {
    $render = true;
    if (!empty($studentProfile)) {
        $thisPage = 'poc';
        $followupcount = $follow->fetchFollowUpsCountStudent($_GET['student_num']);
        $poccount = $profile->countUnlockedPOC($_GET['student_num']);
        $semester = \Ventus\Utilities\Functions::fetchSemester();
        $current_courses = $courses->fetchAllStudentCoursesForSemester($_GET['student_num'], $semester['now_short']);
        $activitiesList = $poc->topicsList(\Ventus\Specialist\PointOfContact::TOPIC_ACTIVITIES);
        $learningStrategyList = $poc->topicsList(\Ventus\Specialist\PointOfContact::TOPIC_LEARNING_STRATEGIES);
        $referralList = $poc->topicsList(\Ventus\Specialist\PointOfContact::TOPIC_REFERRALS);
        $assistiveTechnologyList = $poc->topicsList(\Ventus\Specialist\PointOfContact::TOPIC_ASSISTIVE_TECHNOLOGIES);
        $points_of_contact = $poc->listPointsOfContact($_GET['student_num'], $SESSION->department_group);
        $incident_reports = $ir->listIncidentReports($_GET['student_num']);
        foreach ($points_of_contact as &$p) {
            $p["files"] = $poc->fetchAllPointOfContactFiles($p["point_of_contact_id"]);
        }
        unset($p);
        foreach ($incident_reports as &$p) {
            $p["files"] = $ir->fetchAllIncidentReportFiles($p["incident_report_id"]);
        }
        unset($p);
        $l10n->addResource(__DIR__ . '/l10n/point-of-contact.json');
        $l10n->localizeArray($activitiesList, 'topic');
        $l10n->localizeArray($learningStrategyList, 'topic');
        $l10n->localizeArray($referralList, 'topic');
        $l10n->localizeArray($assistiveTechnologyList, 'topic');
        $viewFile = 'views/point-of-contact.php';