update portalbox functions

This commit is contained in:
ceb 2002-10-05 22:00:25 +00:00
parent 702e169b42
commit c5d16e93c9
4 changed files with 26 additions and 10 deletions

View File

@ -57,7 +57,7 @@
}
}
$this->portalbox($param['title']);
$this->start_template();
//$this->start_template();
}
/*
@ -66,6 +66,15 @@
*/
function draw($extra_data='')
{
if ($extra_data)
{
$this->start_template(True);
}
else
{
$this->start_template();
}
if(count($this->data))
{
for ($x = 0; $x < count($this->data); $x++)
@ -79,6 +88,7 @@
}
$this->output['listbox'] = $var;
}
$this->set_internal($extra_data);
return $this->draw_box();
}

View File

@ -26,6 +26,7 @@
{
//Set up the Object, reserving memory space for variables
var $app_name;
var $outerwidth;
var $width;
var $innerwidth;
@ -75,15 +76,23 @@
/*
This is the constructor for the object.
*/
function portalbox($title='')
function portalbox($title = '')
{
$this->setvar('title',$title);
// echo 'After SetVar Title = '.$this->getvar('title')."<br>\n";
}
function start_template()
function start_template($extra = False)
{
$GLOBALS['phpgw']->xslttpl->add_file(array('portal'));
if ($extra)
{
$GLOBALS['phpgw']->xslttpl->add_file(array('portal',$GLOBALS['phpgw']->common->get_tpl_dir($this->getvar('app_name'),'default') . SEP . 'extrabox'));
}
else
{
$GLOBALS['phpgw']->xslttpl->add_file(array('portal'));
}
$this->output = array
(
@ -111,10 +120,7 @@
$data = ' ';
}
$this->output['extrabox'] = array
(
'data' => $data
);
$this->output['extrabox'] = $data;
}
function draw_box()

View File

@ -1,6 +1,6 @@
<!-- $Id$ -->
<xsl:template name="cat_select">
<xsl:template name="cat_filter">
<xsl:variable name="select_action"><xsl:value-of select="select_action"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">

View File

@ -25,7 +25,7 @@
</ul>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="extrabox"/>
<xsl:call-template name="extrabox"/>
</xsl:otherwise>
</xsl:choose>
</td>