
Calendar demo
See the
demo.
calendar.tcf
Witango class file for displaying date information in XHTML.
Copyright 2005, To the Point. All Rights Reserved.
Author: William M. Conlon, P.E., Ph.D.
draw_month
This method will render a monthly calendar in various forms depending on the input parameters.
Parameters
| Name | type | description |
| date | Required text | This is a date in the witango date format (e.g. DATEFORMAT=%m/%d/%Y. This date will be highlighed in the calendar. |
| class | optional text | a CSS class to be applied to table, tr, th, and td tags. |
| date_array | optional any* | This a an array of dates. It may optional have a second column contain text to be displayed within a cell. An optional third column contains an anchor href to be applied to the text from the second column. If only the first column of dates is present, then the date is hyperlinked using the value of Choose_URI as the href target. |
| change_URI | optional text | this is a URI used to change the month being viewed. Dates in witango date format (URL encoded) are appended to the URI to create hyperlinks to the previous month & year, and next month & year. If not included, then the next/previous links are not shown. |
| choose_URI | optional text | this is a URI used to select a particular date. Dates in witango date format (URL encoded) are appended to the URI to create hyperlinks. If not included, there is no hyperlink |
| month_style | optional text | specifies a CSS style too be applied to the cells in the first row of the table, containing the month and option next/previous links. |
| days_style | optional text | specifies a CSS style too be applied to the cells in the second row of the table, containing the days of the week. |
| weekend_style | optional text | specifies a CSS style too be applied to the cells in the Sunday and Saturday columns of the table |
| holiday_style | optional text | specifies a CSS style too be applied to the cells in that match dates in the holiday array |
| holiday_array | optional array | a one-column array of dates, in the witango date format, specifying holidays to which the holiday style is to be applied |