<?php
if (!isset($_SESSION['uid'])) {
echo '<meta http-equiv="refresh"' . 'content="0;URL=crc_login.php">';
}
?>
<table width="500">
<tr>
<td valign="top" width="80">
<!--
This is the menu
-->
<br><br>
<?php
include "../common/crc_menu.html";
?>
</td>
<td valign="top" align="left" width="420">
<!--
This is the content
-->
<br><br>
<table class="tbl">
<tr><td valign="top">
<?php
$len = strlen($_SESSION['msg']);
if ($len > 0) {
print('<tr><td class="RED"><br>' . $_SESSION['msg'] . '<br></td></tr>');
}
$data = $_SESSION['teacherscheduledata'];
print $_SESSION['name'] . ',';
print '<p>';
print 'Here you will find the class information for your the term 2003.';
print 'Please note that courses mentioned are forcasts and may ';
print 'change upon student availability.';
print '</p><p>';
if (count($data) > 0) {
print '<table width="400" border=0 class="popcal">';
//print '<table border=1>';
print '<tr>';
print ' <th>Course Name</th>';
print ' <th>Start Date</th>';
print ' <th>End Date</th>';
print ' <th>Day [Time]</th>';
print ' <th>Room</th>';
print ' <th>Students</th>';
print ' <th>Status</th>';
print '</tr>';
for ($i=0; $i < count($data); $i++) {
print '<tr>';
print '<td>' . $data[$i][1] . '</td>';
print '<td>' . $data[$i][2] . '</td>';
print '<td>' . $data[$i][3] . '</td>';
print '<td>' . $data[$i][4] . '</td>';
if ($data[$i][7] == 1) {
print '<td>TALIM</td>';
} else if ($data[$i][7] == 2) {
print '<td>IRSHAD</td>';
} else {
print '<td>TBA</td>';
}
if ($data[$i][9] == 0) {
print '<td align="center">0</td>';
} else {
print '<td align="center"><a href="crc_handler.php?method=teacher&func=getstudents&scheduleid=' . $data[$i][0] . '"><b>' . $data[$i][9] . '</b></td>';
}
print '<td>' . $data[$i][8] . '</td>';
print '</tr>';
}
print '</table>';
} else {
print '<table class="green"><tr><td>Sorry there are no courses assigned to you at this time. Please contact ';
print 'the CRC Manager in charge if you require further information.</td></tr></table>';
}
print '</p><p>';
print ' FreeSMS Team (Team DM)';
print ' </p>';
print '</td></tr>';
?>
</table>
</td>
</tr>
<table>