'); 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('', $strCssclass, $strCssclass, $intTimestampLabel, $intLabel); $intIndex++; } print(''); $intRowCount++; } ?>
Su Mo Tu We Th Fr Sa
%s
Selected Day:
 
 
Month Days: %s
Prev Month Days: %s", $intMonthStartsOn, $intMonthDays, $intPreviousMonthDays); ?>