0) {
print(' |
' . $_SESSION['msg'] . '
|
');
}
$data = $_SESSION['teacherscheduledata'];
print $_SESSION['name'] . ',';
print '';
if (count($data) > 0) {
print '  These are your courses, if any. Please note that courses mentioned are forcasts and may ';
print 'change upon teacher and student availability.';
print '
  By clicking on the students number you will be able to mark the attendance for the current date.';
print '
  By clicking on the course name you will be able to see course statistics (attendance, course feedback).';
print '
';
print '';
print '';
print ' Course Name | ';
print ' Start Date | ';
print ' End Date | ';
print ' Day [Time] | ';
print ' Room | ';
print ' Students | ';
print ' Status | ';
print '
';
for ($i=0; $i < count($data); $i++) {
print '';
print '' . $data[$i][0] . ' | ';
print '' . $data[$i][1] . ' | ';
print '' . $data[$i][2] . ' | ';
print '' . $data[$i][3] . ' | ';
print '' . $data[$i][8] . ' | ';
if ($data[$i][9] == 0) {
print '0 | ';
} else {
if (strtolower($data[$i][5]) == "in progress") {
print '' . $data[$i][9] . ' | ';
} else {
print '' . $data[$i][9] . ' | ';
}
}
print '' . $data[$i][5] . ' | ';
print '
';
}
print '
';
} else {
$profile = new crc_profile(false);
$profile->fn_getprofile("admin");
print '  Sorry there are no courses assigned to you at this time. Please contact ';
print 'the m_data[5] . '>administrator if you require assistance. |
';
}
print '';
print ' FreeSMS Team';
print '
';
print '';
?>