Esempio n. 1
0
     //END HEADER PANEL SELECTS
     if ($id = $student->getAssessmentId($get_year, $get_term)) {
         $assessment = new Assessment($id);
         $c_t_id = $assessment->getAssessment()['teacher_id'];
         $c_teacher = new User($c_t_id);
         $scores = $assessment->getScores();
         //print_r($scores);
     }
 } else {
     //FOR THE HEADER PANEL SELECTS
     $year = null;
     $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>";