00001 <?
00002 class BaseBox
00003 {
00004     public $title;
00005     public $body;
00006 
00007     public function __construct($title = 'Title', $body = '')
00008     {
00009         $this->title = $title;
00010         $this->body = $body;
00011     }
00012 
00013     public function draw()
00014     {
00015         echo "<div id=\"sidebox\">\n";
00016 
00017         
00018         echo "\t<h2>$this->title</h2>\n";
00019         
00020         
00021         echo "\t<div id=\"container\">\n";
00022         $this->drawContent();
00023         echo "\n</div>\n";
00024         
00025         echo "\n</div>\n";
00026     }
00027 
00028     public function drawContent()
00029     {
00030         echo $this->body;
00031     }
00032 }
00033 ?>