"; for ($i=1; $i<=$firstwday; $i++) { echo ""; } $firstweek = false; } if ($wday==0) { // Sunday start week with echo ""; } // print cell // // $lnk_f = "index2.php3?table=".$table."&reqdate=".strtotime("$year-$mon-$d")."&reset=0&period=$period"; $lnk_f = "index2.php3?table=".$table."&reqdate=".mktime(0,0,0,$mon,$d,$year)."&reset=0&period=$period"; $lnk = "".$d.""; echo " $d "; echo " >
$lnk
"; if ($wday==6) { // Saturday end week with
echo "\n"; } $wday++; $wday = $wday % 7; $d++; } ?>
"> ">
"> ">
:
">