forked from extern/egroupware
update to use xslt
This commit is contained in:
parent
f684ccd732
commit
bfc4ee7556
@ -71,17 +71,14 @@
|
||||
{
|
||||
for ($x = 0; $x < count($this->data); $x++)
|
||||
{
|
||||
$var = array
|
||||
$var[] = array
|
||||
(
|
||||
'text' => $this->data[$x]['text'],
|
||||
'link' => $this->data[$x]['link'],
|
||||
'lang_link_statustext' => $this->data[$x]['lang_link_statustext']
|
||||
);
|
||||
$this->output['portal_row'] = array
|
||||
(
|
||||
'listbox' => $var
|
||||
);
|
||||
}
|
||||
$this->output['listbox'] = $var;
|
||||
}
|
||||
$this->set_internal($extra_data);
|
||||
return $this->draw_box();
|
||||
|
@ -117,7 +117,7 @@
|
||||
$data = ' ';
|
||||
}
|
||||
|
||||
$this->output['portal_row']['extrabox'] = array
|
||||
$this->output['extrabox'] = array
|
||||
(
|
||||
'data' => $data
|
||||
);
|
||||
|
@ -16,7 +16,12 @@
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table cellpadding="0" cellspacing="0" width="{$inner_width}" class="portal">
|
||||
<xsl:apply-templates select="portal_row"/>
|
||||
<tr>
|
||||
<td>
|
||||
<xsl:apply-templates select="listbox"/>
|
||||
<xsl:apply-templates select="extrabox"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@ -33,14 +38,14 @@
|
||||
</a>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="portal_row">
|
||||
<!-- <xsl:template name="portal_row">
|
||||
<tr>
|
||||
<td>
|
||||
<xsl:apply-templates select="listbox"/>
|
||||
<xsl:apply-templates select="extrabox"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:template>
|
||||
</xsl:template> -->
|
||||
|
||||
<xsl:template match="listbox">
|
||||
<xsl:variable name="link"><xsl:value-of select="link"/></xsl:variable>
|
||||
|
Loading…
Reference in New Issue
Block a user