'; } ?> '; ?>




'); } $data = $_SESSION['teacherattendancegetdata']; print $_SESSION['name'] . ','; print '

'; if (count($data) > 0) { print '

This page has the attendance for student ' . $data[0][2] . ', ' . $data[0][1] . ' 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 '

0) { print('

' . $_SESSION['msg'] . '
'; print ''; print ''; print ''; print '
Total number of classes: ' . $totalclasses . '
Total number of classes present: ' . $totalpresent . '
Total number of classes absent: ' . $totalabsent . '
'; print '

'; print ''; print ''; print ''; print ''; print ''; for ($i=0; $i < count($data); $i++) { print ''; print ''; if ($data[$i][6] == "P") { print ''; } else { print ''; } print ''; } print '
DateAttendance
' . $data[$i][3] . '-'; print $data[$i][4] . '-'; print $data[$i][5] . '
PresentAbsent
'; } 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 '