portalbox($title, $primary, $secondary, $tertiary); $this->setvar("outerwidth",400); $this->setvar("innerwidth",400); } /* This is the only method within the class. Quite simply, as you can see it draws the table(s), placing the required data in the appropriate place. */ function draw() { echo ''; echo ''; echo ''; echo '
'.$this->getvar("title").'
'; echo ''; for ($x = 0; $x < count($this->data); $x++) { echo ''; echo ''; echo ''; echo ''; } echo '
'.$this->data[$x][0].''.$this->data[$x][1].'
'; echo '
'; } }