| ".date("F Y", $first_epoch)." | ||||||
| Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
|---|---|---|---|---|---|---|
| "; } # 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 " | ||||||
| $dcount "; } else { print " | $dcount "; } @include("$shortdate.cal"); print " | ";
}
# Fill in post blanks
while ($tdcount++ < 7) { print ""; } print " | ||||