12) { $month = 1;$year++; } $first_epoch = mktime(0, 0, 1, date("n") + $monthskip, 1, date("Y")); print ""; print ""; print ""; print ""; # Fill in pre blanks $dotw = date('N', $first_epoch); while (--$dotw > 0) { print ""; } # Begin printing $tdcount = date('N', $first_epoch) - 1; $dcount = 0; while (++$dcount <= date('t', $first_epoch)) { $shortdate = date("Ymd", $first_epoch + (($dcount - 1) * 87600)); if (++$tdcount > 7) { print "";$tdcount = 1; } if ($shortdate == date("Ymd", time())) { print ""; } # Fill in post blanks while ($tdcount++ < 7) { print ""; } print "
".date("F Y", $first_epoch)."
MondayTuesdayWednesdayThursdayFridaySaturdaySunday
 
$dcount
"; } else { print "
$dcount
"; } @include("$shortdate.cal"); print "
 
"; } ?>



Event Manager