build($selectedDays); // 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(); $thisDate = new Date($month->thisMonth('timestamp')); ?>
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
'.$day->thisDay().' | '."\n"; } else if ($day->isEmpty()) { echo ''."\n"; } else { echo ' | '.$day->thisDay().' | '."\n"; } // isLast() to find end of week if ($day->isLast()) { echo "||||
<< | >> |