[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc/class.resultbox.inc.php, 1.8
From: |
nomail |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc/class.resultbox.inc.php, 1.8 |
Date: |
Thu, 30 Dec 2004 07:47:31 +0100 |
Update of /phpgwapi/inc
Added Files:
Branch:
class.resultbox.inc.php
date: 2004/12/30 06:47:31; author: skwashd; state: Exp; lines: +16 -24
Log Message:
new HEAD
=====================================================================
<?php
/**
* Creates result boxes using templates
* @author Dan Kuykendall <address@hidden>
* @author Joseph Engo <address@hidden>
* @copyright Copyright (C) 2000-2004 Free Software Foundation, Inc.
http://www.fsf.org/
* @license http://www.fsf.org/licenses/lgpl.html GNU Lesser General
Public License
* @package phpgwapi
* @subpackage gui
* @version $Id: class.resultbox.inc.php,v 1.8 2004/12/30 06:47:31
skwashd Exp $
*/
CreateObject('phpgwapi.portalbox');
/**
* Creates result boxes using templates
*
* @package phpgwapi
* @subpackage gui
*/
class resultbox extends portalbox
{
/*
Set up the Object. You will notice, we have not reserved memory
space for variables. In this circumstance it is not necessary.
*/
//constructor
function resultbox($title='', $primary='', $secondary='',
$tertiary='')
{
$this->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 '<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')
. '">';
for ($x = 0; $x < count($this->data); $x++)
{
echo '<tr>';
echo '<td width="50%">' . $this->data[$x][0] .
'</td>';
echo '<td width="50%">' . $this->data[$x][1] .
'</td>';
echo '</tr>';
}
echo '</table>';
echo '</td></tr>';
echo '</table>';
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc/class.resultbox.inc.php, 1.8,
nomail <=