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. space for variables. In this circumstance it is not necessary.
*/ */
//constructor //constructor
function resultbox($title="", $primary="", $secondary="", $tertiary="") function resultbox($title='', $primary='', $secondary='', $tertiary='')
{ {
$this->portalbox($title, $primary, $secondary, $tertiary); $this->portalbox($title, $primary, $secondary, $tertiary);
$this->setvar("outerwidth",400); $this->setvar('outerwidth',400);
$this->setvar("innerwidth",400); $this->setvar('innerwidth',400);
} }
/* /*
@ -46,15 +46,19 @@
*/ */
function draw() 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')
echo '<tr><td align="center">'.$this->getvar("title").'</td></tr>'; . '" 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 '<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++) for ($x = 0; $x < count($this->data); $x++)
{ {
echo '<tr>'; echo '<tr>';
echo '<td width="50%">'.$this->data[$x][0].'</td>'; echo '<td width="50%">' . $this->data[$x][0] . '</td>';
echo '<td width="50%">'.$this->data[$x][1].'</td>'; echo '<td width="50%">' . $this->data[$x][1] . '</td>';
echo '</tr>'; echo '</tr>';
} }
echo '</table>'; echo '</table>';