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

base-box.inc.php

Go to the documentation of this file.
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         //our title.
00018         echo "\t<h2>$this->title</h2>\n";
00019         
00020         //we want our content...
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 ?>

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