Esempio n. 1
0
	</TD>
</TR>
<TR>
<? // Display the days of the week
foreach($daysOfWeek as $dayOfWeek ) {?>
	<TH CLASS="dg_header_cell"><?php 
echo $dayOfWeek;
?>
</TH>
<?
}
?>
</TR>
<?
// Loop through the day entries
while ( ($day = $month->fetch()) != false ) {

    // If its the start of a week, start a new row
    if ( $day->isFirst() ) {
        echo "<tr class=\"dg_data_cell_1\">\n";
    }

    // Check to see if day is an "empty" day
    if ( ! $day->isEmpty() ) {

        // If it's the current day, highlight it
        if ( !$day->isSelected() )
            echo "<td class=\"cal_day\">";
        else
            echo "<td class=\"cal_day_current\">";