Beispiel #1
0
        $total_students = $subjectAnalysis_->totalStudents($class_id);
        echo $total_students;
        ?>
</td>
<td align="center"><?php 
        if ($total_students > 0) {
            $mean_points = number_format($total_points / $total_students, 1);
            echo $mean_points;
        } else {
            $mean_points = '0.0';
            echo $mean_points;
        }
        ?>
</td>
<td align="center"><?php 
        $mean_grade = $subjectAnalysis_->getMeanGrade($mean_points, $gradeTable);
        echo $mean_grade;
        ?>
</td>
<td align="center"><?php 
        $mean_score = $subjectAnalysis_->getMeanScore($subject_id, $term_id, $gradeTable);
        echo number_format($mean_score, 3);
        ?>
</td>
<td align="center"><?php 
        $highest_mark = $subjectAnalysis_->highestScore($subject_id, $term_id, $gradeTable);
        echo $highest_mark;
        ?>
</td>
<?php 
    }
        $total_students = $subjectAnalysis_->totalStudents($class_id);
        echo $total_students;
        ?>
</td>
<td align="center"><?php 
        if ($total_students > 0) {
            $mean_points = number_format($total_points / $total_students, 3);
            echo $mean_points;
        } else {
            $mean_points = '0.0';
            echo $mean_points;
        }
        ?>
</td>
<td align="center"><?php 
        $mean_grade = $subjectAnalysis_->getMeanGrade(number_format($mean_points, 1), $gradeTable);
        echo $mean_grade;
        ?>
</td>
<td align="center"><?php 
        $mean_score = $subjectAnalysis_->getMeanScore($subject_id, $term_id, $gradeTable);
        echo number_format($mean_score, 3);
        ?>
</td>
<td align="center"><?php 
        $highest_mark = $subjectAnalysis_->highestScore($subject_id, $term_id, $gradeTable);
        echo $highest_mark;
        ?>
</td>
<?php 
    }