0) {
print(' |
' . $_SESSION['msg'] . '
|
');
}
$data = $_SESSION['teacherattendancegetdata'];
print $_SESSION['name'] . ',';
print '';
if (count($data) > 0) {
print '
This page has the attendance for student ' . $data[0][1] . ' ' . $data[0][2] . ' for the course ' . $data[0][0] . '.';
print '
';
$totalclasses = count($data);
$totalpresent = 0;
$totalabsent = 0;
for ($i = 0; $i < $totalclasses; $i++) {
if ($data[$i][6] == "P") {
$totalpresent = $totalpresent + 1;
} else {
$totalabsent = $totalabsent + 1;
}
}
print '
';
print 'Total number of classes: | ' . $totalclasses . ' |
';
print 'Total number of classes present: | ' . $totalpresent . ' |
';
print 'Total number of classes absent: | ' . $totalabsent . ' |
';
print '
';
print '';
print '
';
//print '';
} else {
print 'Sorry there are no dates assigned for this student scheduled for this courses offering at this time. |
';
}
print '';
print ' FreeSMS Team';
print '
';
print '';
?>