build(); // Construct strings for next/previous links $PMonth = $Month->prevMonth('object'); // Get previous month as object $prev = $_SERVER['PHP_SELF'].'?y='.$PMonth->thisYear().'&m='.$PMonth->thisMonth().'&d='.$PMonth->thisDay(); $NMonth = $Month->nextMonth('object'); $next = $_SERVER['PHP_SELF'].'?y='.$NMonth->thisYear().'&m='.$NMonth->thisMonth().'&d='.$NMonth->thisDay(); ?> Calendar

Build with Calendar_Month_Weeks::build() then Calendar_Week::build()

fetch()) { echo "\n"; // Build the days in the week, passing the selected days $Week->build($selectedDays); while ($Day = $Week->fetch()) { // Build a link string for each day $link = $_SERVER['PHP_SELF']. '?y='.$Day->thisYear(). '&m='.$Day->thisMonth(). '&d='.$Day->thisDay(); // Check to see if day is selected if ($Day->isSelected()) { echo ''."\n"; // Check to see if day is empty } else if ($Day->isEmpty()) { echo ''."\n"; } else { echo ''."\n"; } } echo ''."\n"; } ?>
getTimeStamp()); ?>
M T W T F S S
'.$Day->thisDay().''.$Day->thisDay().''.$Day->thisDay().'
<<   >>
Took: '.(getmicrotime()-$start).' seconds

'; ?>