|
| ">
\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 ( $prefarray["WEEKENDBG"] ) ) $is_weekend = false;
$class = $is_weekend ? "tablecellweekenddemo" : "tablecelldemo";
$color = $is_weekend ? $prefarray["WEEKENDBG"] : $prefarray["CELLBG"];
if ( empty ( $color ) )
$color = "#C0C0C0";
print "";
else
echo "BGCOLOR=\"$color\">";
echo " ";
print " | \n";
} else {
print " | \n";
}
}
print "\n";
}
?>
|
|