Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

calendar-box.inc.php

Go to the documentation of this file.
00001 <?
00002 class CalendarBox extends BaseBox
00003 {
00004     private $month;
00005     private $year;
00006 
00007     function __construct($month = null, $year = null)
00008     {
00009         //default month
00010         if ($month === null)
00011             $this->month = date("m");
00012         else
00013             $this->month = $month;
00014 
00015         //default year
00016         if ($year === null)
00017             $this->year = date("Y");
00018         else
00019             $this->year = $year;
00020         
00021         parent::__construct('Calendar');
00022     }
00023 
00024     function drawContent()
00025     {
00026         echo "<center>\n";
00027         $cal = new Calendar();
00028         $cal->findDate();
00029         $cal->drawCalendar($this->month, $this->year, 'small');
00030         echo "</center>\n";
00031     }
00032 }
00033 ?>

Generated on Fri Oct 27 12:26:39 2006 for BaseJumper by doxygen 1.3.9.1