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(); ?>
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
'.$Day->thisDay().' | '."\n"; // Check to see if day is empty } else if ($Day->isEmpty()) { echo ''.$Day->thisDay().' | '."\n"; } else { echo ''.$Day->thisDay().' | '."\n"; } } echo '||||
<< | >> |