GREAT PROGRAM however i need help changing a line from time to read periods ::: function get_hour_header($th, $startDay, $endDay, $timespan) {
global $conf;
$header = ‘’;

// Write out the available times
foreach ($th as $time => $cols) {
    $header .= "<td colspan="$cols">$time</td>";

// Close row, start next
$header .= "</tr>n<tr class="scheduleTimes">n";

// Compute total # of cols
$totCol = intval(($endDay - $startDay) / $timespan);
// Create the fraction hour minute marks
for ($x = 0; $x < $totCol; $x++)
    $header .= '<td>&nbsp;</td>';

return $header;



Ok great… So whats the problem? Wheres the question here? Can’t help if I don’t know what I am helping with or trying to accomplish.

A little bit more info would be helpful. Thanks


I need the time headers to read as school periods and not as times (ex. 1,2,3,4,5,6,7)