00001 <?
00002 class CalendarBox extends BaseBox
00003 {
00004 private $month;
00005 private $year;
00006
00007 function __construct($month = null, $year = null)
00008 {
00009
00010 if ($month === null)
00011 $this->month = date("m");
00012 else
00013 $this->month = $month;
00014
00015
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 ?>