$day->build($sHours); $title = "Calendar - Month View"; require 'header.php'; ?> <table class="dg_table" width="450"> <TR> <TD COLSPAN="2" CLASS="dg_header_cell"><?php echo date('l F jS', $day->thisDay(true)); ?> </TD> </TR> <? $alt=''; // Loop through the hours while ( ($hour = $day->fetch()) != false ) { // Set a range for the hours; only between 8am and 6pm //if ( $hour->thisHour() < 6 || $hour->thisHour() > 20 ) // continue; // For alternating row colors $alt= $alt=="dg_data_cell_1" ? "dg_data_cell_2" : "dg_data_cell_1"; // If it's the current day, highlight it if ( !$hour->isSelected() ) echo "<tr>\n"; else echo "<tr class=\"cal_hour_current\">\n"; echo "<td class=\"cal_hour\">".date('g A',$hour->thisHour(true))."</td>";