| Current Path : /var/www/html/mmishra/icure/ |
| Current File : /var/www/html/mmishra/icure/sschedules.inc |
<h3 align='left'>Schedule of Staff</h3>
<center>
<table border='1' width='90%'>
<tr><th nowrap>Date\Shift</th>
<?php
$tbl = 'sschedules';
$period = date("Y-m");
echo "<th>" . implode($shifts, "</th><th>") . "</th></tr>";
$rs = mysql_query("select distinct sch_date from $tbl where sch_date like '$period%' order by sch_date");
while ($o = mysql_fetch_object($rs)) {
echo "<tr><th>$o->sch_date</th>";
foreach ($shifts as $sf) {
echo "<td nowrap align='center' style='font-size: x-small'>";
$j = 0;
$rr = mysql_query("select * from $tbl where sch_date='$o->sch_date' and sch_shift='$sf' order by sch_id");
if (mysql_num_rows($rr)) {
while ($q = mysql_fetch_object($rr)) {
$j++;
echo ($j > 1 ? ' + ' : '');
echo ($q->ph_id ? staff_detail($q->ph_id) : 'x');
}
}
echo "</td>";
}
echo "</tr>";
$schdate = $o->sch_date;
}
?>
</table>
</center>
<div align='left'>
<b>Note:</b>
<ol>
<li>10 PM to 7 AM - is emergency service hours and NOT to be treated as OPD service hours.</li>
<li>All staffs are available on their cell phones round the clock for emergency consultation:
<table border='1' width='70%' align='center'>
<?php
$rs = mysql_query("select * from staffs order by ph_id");
while ($o = mysql_fetch_object($rs)) {
echo "<tr><td nowrap>$o->ph_name</td><td>$o->specialization</td><td>$o->contact</td><td>$o->email</td></tr>";
}
?>
</table></li>
</ol>
</div>