예제 #1
0
        $term = null;
        $assessment;
        if ($assessment = new Assessment($student->getLastAssessmentId())) {
            $current_session = $assessment->getYear();
            $current_term = $assessment->getTermID();
        }
        foreach ($sessions as $key => $value) {
            if ($value == $current_session) {
                $options .= "<option selected value=\"{$value}\">{$value} SESSION</option>";
                $year = $value;
            } else {
                $options .= "<option value=\"{$value}\">{$value} SESSION</option>";
            }
        }
        foreach ($terms as $key => $value) {
            if ($value['term_id'] == $current_term) {
                $options1 .= "<option selected value=\"{$value['term_id']}\">{$value['nice_name']}</option>";
                $term = $value['nice_name'];
            } else {
                $options1 .= "<option value=\"{$value['term_id']}\">{$value['nice_name']}</option>";
            }
        }
        $period_reminder = $term . " of " . $year . " SESSION";
        //END HEADER PANEL SELECTS
        $c_t_id = $assessment->getAssessment()['teacher_id'];
        $c_teacher = new User($c_t_id);
        $scores = $assessment->getScores();
        //print_r($scores);
    }
}
include "app/parent/assessment.php";