Calendar
This is a customizable web based calendar implemented in C using CGI.
See an example for the current month. This is a web application that you are free to reuse by linking to this calendar from within your own web site. For example, if you have a web application that uses frames, you can make a frame point to the calendar at http://cuspy.com/webtools/calendar/calendar.cgi and set the appropriate parameters.
The calendar is generated as XHTML. You can check the calendar for compliance.
Parameters
The following parameters are understood by the CGI interface. This web server can fetch XML files from other web servers to customize the calendar.
- month
- An integer value from 1 to 12. Defaults to the current month.
- year
- An integer value from 1900 to 2100. Defaults to the current year.
- style
- A URL to a stylesheet. Defaults to http://cuspy.com/webtools/calendar/style.css.
- months
- A URL to an XML file that lists the names of the months. Defaults to http://cuspy.com/webtools/calendar/months.en.xml for English. There is also one for Spanish available at http://cuspy.com/webtools/calendar/months.es.xml.
- days
- A URL to an XML file that lists the names of the days of the week. Defaults to http://cuspy.com/webtools/calendar/days.en.xml for English. There is also one for Spanish available at http://cuspy.com/webtools/calendar/days.es.xml.
- dates
- A URL to an XML file that lists dates of events to put in the calendar. Defaults to http://cuspy.com/webtools/calendar/usholidays.xml for a list of US holidays.
Stylesheet classes
You can use the following classes in your stylesheet to make the calendar look the way you want:
- day
- A style for a regular day in the month shown.
- today
- A style for a day in the month shown that happens to be the current day.
- empty
- A style for days visible that are not part of the month shown.
- date
- A style for events that come from a dates XML file.
Contact the maintainer, Gene McCulley, if you have ideas, questions, or suggestions.