%s', $intTimestampLabel, $strSelected, $strLabel); } ?>
%s', $intTimestampLabel, $strSelected, $strLabel); } ?>
Su
Mo
Tu
We
Th
Fr
Sa
'); for ($intDayOfWeek = 0; $intDayOfWeek <= 6; $intDayOfWeek++) { if ($intIndex < 1) { $intLabel = $intPreviousMonthDays + $intIndex; $intTimestampLabel = mktime(0,0,0, $intSelectedMonth - 1, $intLabel, $intSelectedYear); $strCssclass = "offMonth"; } else if ($intIndex > $intMonthDays) { $intLabel = $intIndex - $intMonthDays; $intTimestampLabel = mktime(0,0,0, $intSelectedMonth + 1, $intLabel, $intSelectedYear); $strCssclass = "offMonth"; } else { $intLabel = $intIndex; $intTimestampLabel = mktime(0,0,0, $intSelectedMonth, $intLabel, $intSelectedYear); $strCssclass = "onMonth"; if ((date("w", $intTimestampLabel) == 0) || (date("w", $intTimestampLabel) == 6)) $strCssclass = "onMonthWeekend"; else $strCssclass = "onMonth"; } if ($intTimestampLabel == $intTimestamp) $strCssclass = "selected"; else if ($intTimestampLabel == $dttToday) $strCssclass = "today"; printf('
%s
', $strCssclass, $strCssclass, $intTimestampLabel, $intLabel); $intIndex++; } print(''); $intRowCount++; } ?>
Selected Day: