Pre-Set the Calendar
$calendar = new Calendar("example","2006-1-1");
When we wish to give our calendar a default date, where it should start, we simply
set it as our second parameter to our object's constructor.
The format is as follows, YYYY-MM-DD
Styles
$calendar = new Calendar("example");
(1) $calendar->currentDateStyle = "currentDate";
(2) $calendar->selectedDateStyle = "selectedDate";
(3) $calendar->normalDateStyle = "normalDate";
(4) $calendar->navigateStyle = "navigateYear";
(5) $calendar->monthStyle = "month";
(6) $calendar->daysOfTheWeekStyle = "daysOfTheWeek";
Description
If you wish to use different styles for certain aspects or all aspects of the calendars, you
can set it using these properties.
(1) Style for current date
(2) Style for selected dates
(3) Style for unselected dates
(4) Style used in navigation "buttons"
(5) Style used to display month
(6) Styles used to display sun-mon
Redirect from Calendar
$calendar = new Calendar("example");
(1) $calendar->redirect = "day.php";
If you wish to redirect to a different page once the user selects a date, simply set the
redirect property, to the name of the page you wish to go to.