formatting

This commit is contained in:
Miles Lott 2001-10-02 04:17:19 +00:00
parent b7b205a2fa
commit 77db927501

View File

@ -33,11 +33,11 @@
space for variables. In this circumstance it is not necessary.
*/
//constructor
function resultbox($title="", $primary="", $secondary="", $tertiary="")
function resultbox($title='', $primary='', $secondary='', $tertiary='')
{
$this->portalbox($title, $primary, $secondary, $tertiary);
$this->setvar("outerwidth",400);
$this->setvar("innerwidth",400);
$this->setvar('outerwidth',400);
$this->setvar('innerwidth',400);
}
/*
@ -46,10 +46,14 @@
*/
function draw()
{
echo '<table border="'.$this->getvar("outerborderwidth").'" cellpadding="0" cellspacing="0" width="'.$this->getvar("outerwidth").'" bordercolor="'.$this->getvar("outerbordercolor").'" bgcolor="'.$this->getvar("titlebgcolor").'">';
echo '<table border="'.$this->getvar('outerborderwidth')
. '" cellpadding="0" cellspacing="0" width="' . $this->getvar('outerwidth')
. '" bordercolor="' . $this->getvar('outerbordercolor')
. '" bgcolor="' . $this->getvar('titlebgcolor') . '">';
echo '<tr><td align="center">'.$this->getvar("title") . '</td></tr>';
echo '<tr><td>';
echo '<table border="0" cellpadding="0" cellspacing="0" width="'.$this->getvar("innerwidth").'" bgcolor="'.$this->getvar("innerbgcolor").'">';
echo '<table border="0" cellpadding="0" cellspacing="0" width="'.$this->getvar('innerwidth')
. '" bgcolor="' . $this->getvar('innerbgcolor') . '">';
for ($x = 0; $x < count($this->data); $x++)
{
echo '<tr>';