sun = " . date ( "D, m-d-Y", $sun ) . " ";
//echo "monthstart = " . date ( "D, m-d-Y", $monthstart ) . " ";
//echo " monthend = " . date ( "D, m-d-Y", $monthend ) . " ";
// NOTE: if you make HTML changes to this table, make the same changes
// to the example table in pref.php.
for ( $i = $wkstart; date ( "Ymd", $i ) <= date ( "Ymd", $monthend );
$i += ( 24 * 3600 * 7 ) ) {
print " \n";
for ( $j = 0; $j < 7; $j++ ) {
$date = $i + ( $j * 24 * 3600 );
if ( date ( "Ymd", $date ) >= date ( "Ymd", $monthstart ) &&
date ( "Ymd", $date ) <= date ( "Ymd", $monthend ) ) {
$thiswday = date ( "w", $date );
$is_weekend = ( $thiswday == 0 || $thiswday == 6 );
if ( empty ( $WEEKENDBG ) ) $is_weekend = false;
$class = $is_weekend ? "tablecellweekend" : "tablecell";
$color = $is_weekend ? $WEEKENDBG : $CELLBG;
if ( empty ( $color ) )
$color = "#C0C0C0";
print "";
else
echo "BGCOLOR=\"$color\">";
//echo date ( "D, m-d-Y H:i:s", $date ) . " ";
print_date_entries ( date ( "Ymd", $date ),
( ! empty ( $user ) ) ? $user : $login,
$friendly, false );
print " | \n";
} else {
print " | \n";
}
}
print " \n";
}
?>
|