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->portalbox($param['title']);
|
||||||
$this->start_template();
|
//$this->start_template();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -66,6 +66,15 @@
|
|||||||
*/
|
*/
|
||||||
function draw($extra_data='')
|
function draw($extra_data='')
|
||||||
{
|
{
|
||||||
|
if ($extra_data)
|
||||||
|
{
|
||||||
|
$this->start_template(True);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->start_template();
|
||||||
|
}
|
||||||
|
|
||||||
if(count($this->data))
|
if(count($this->data))
|
||||||
{
|
{
|
||||||
for ($x = 0; $x < count($this->data); $x++)
|
for ($x = 0; $x < count($this->data); $x++)
|
||||||
@ -79,6 +88,7 @@
|
|||||||
}
|
}
|
||||||
$this->output['listbox'] = $var;
|
$this->output['listbox'] = $var;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->set_internal($extra_data);
|
$this->set_internal($extra_data);
|
||||||
return $this->draw_box();
|
return $this->draw_box();
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
{
|
{
|
||||||
//Set up the Object, reserving memory space for variables
|
//Set up the Object, reserving memory space for variables
|
||||||
|
|
||||||
|
var $app_name;
|
||||||
var $outerwidth;
|
var $outerwidth;
|
||||||
var $width;
|
var $width;
|
||||||
var $innerwidth;
|
var $innerwidth;
|
||||||
@ -75,15 +76,23 @@
|
|||||||
/*
|
/*
|
||||||
This is the constructor for the object.
|
This is the constructor for the object.
|
||||||
*/
|
*/
|
||||||
function portalbox($title='')
|
function portalbox($title = '')
|
||||||
{
|
{
|
||||||
$this->setvar('title',$title);
|
$this->setvar('title',$title);
|
||||||
|
|
||||||
// echo 'After SetVar Title = '.$this->getvar('title')."<br>\n";
|
// echo 'After SetVar Title = '.$this->getvar('title')."<br>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
function start_template()
|
function start_template($extra = False)
|
||||||
|
{
|
||||||
|
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'));
|
$GLOBALS['phpgw']->xslttpl->add_file(array('portal'));
|
||||||
|
}
|
||||||
|
|
||||||
$this->output = array
|
$this->output = array
|
||||||
(
|
(
|
||||||
@ -111,10 +120,7 @@
|
|||||||
$data = ' ';
|
$data = ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->output['extrabox'] = array
|
$this->output['extrabox'] = $data;
|
||||||
(
|
|
||||||
'data' => $data
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function draw_box()
|
function draw_box()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!-- $Id$ -->
|
<!-- $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="select_action"><xsl:value-of select="select_action"/></xsl:variable>
|
||||||
<xsl:variable name="lang_submit"><xsl:value-of select="lang_submit"/></xsl:variable>
|
<xsl:variable name="lang_submit"><xsl:value-of select="lang_submit"/></xsl:variable>
|
||||||
<form method="post" action="{$select_action}">
|
<form method="post" action="{$select_action}">
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:apply-templates select="extrabox"/>
|
<xsl:call-template name="extrabox"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user