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 ''.$this->getvar("title").' |
';
echo '';
echo '';
for ($x = 0; $x < count($this->data); $x++) {
echo '';
echo ''.$this->data[$x][0].' | ';
echo ''.$this->data[$x][1].' | ';
echo ' ';
}
echo ' ';
echo ' |
';
echo '
';
}
}