update xslt

This commit is contained in:
ceb 2002-10-25 21:40:09 +00:00
parent 24aa900898
commit 3e7875e1c6
2 changed files with 10 additions and 7 deletions

View File

@ -45,10 +45,12 @@
*/
function listbox()
{
$this->portalbox();
}
function set_params($param)
{
$this->portalbox(True);
@reset($param);
while(list($key,$value) = each($param))
{
@ -87,8 +89,7 @@
function draw($extra_data='')
{
$this->start_template();
if(count($this->data))
if(is_array($this->data) && !empty($this->data))
{
for ($x = 0; $x < count($this->data); $x++)
{
@ -115,8 +116,7 @@
{
$this->start_template();
}
if(count($this->data))
if(is_array($this->data) && !empty($this->data))
{
for ($x = 0; $x < count($this->data); $x++)
{

View File

@ -47,7 +47,7 @@
/* This is the constructor for the object. */
function portalbox()
function portalbox($reset = False)
{
$this->title = '';
$this->app_name = '';
@ -62,9 +62,12 @@
$this->extrabox = '';
$this->xextrabox = '';
$this->listbox = '';
$this->output;
$this->data = array();
if (!$reset)
{
$this->output;
}
}
/*