";
$h = substr(str_replace(':','',$hour), 0, -1);
$gSess = $i.$h;
print " Sept 0".$i."th $hour | ";
if(in_array($gSess,$groupSession)){
print "$pres[$gSess] | ";
} else {
for($j=1;$j<(count($room)+1);$j++){//loop of the rooms
print "";
//print "d: $i, h:$h, r:$j ";
for($z=1;$z<7;$z++){//scheduling loop
$code = $i.$h.$j.$z;
//print" code: $code ";
if(isset($pres[$code])) {
print $pres[$code]."
";
} else if(isset($acca[$code])){
print $acca[$code]."
";
}
//else print" code: $code";
}
print " | ";
}
}
print'
';
}//end foearch(sched)
}//end for $sched
?>