CS Trüter
PHP Calendar Documentation
version 1.0

Back

Example 1 - Simple Example

<html> <head> <title>Calendar Example1</title> (1) <link rel="stylesheet" type="text/css" href="styles/calendar.css" /> </head> <body> <? (2) include "includes/PHP4/calendar.php"; (3) $calendar = new Calendar("example1"); (4) echo $calendar->Output(); (5) echo 'Value : '.$calendar->Value(); ?> </body> </html>
Description

(1) Include the stylesheet needed to style the calendar.
(2) Include the Calendar Class file into your page (PHP5 folder if you're using PHP 5).
(3) Instantiate an object of that Calendar Class, and assign and ID via the constructor.
(4) Simply echo the Output method of the object wherever you need to place it.
(5) Use the Value method of the object, to get the selected value.