forked from extern/egroupware
update portalbox functions
This commit is contained in:
parent
702e169b42
commit
c5d16e93c9
@ -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();
|
||||
}
|
||||
|
@ -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()
|
||||
|
@ -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}">
|
||||
|
@ -25,7 +25,7 @@
|
||||
</ul>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="extrabox"/>
|
||||
<xsl:call-template name="extrabox"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</td>
|
||||
|
Loading…
Reference in New Issue
Block a user