update to use xslt

This commit is contained in:
ceb 2002-10-03 22:02:19 +00:00
parent f684ccd732
commit bfc4ee7556
3 changed files with 11 additions and 9 deletions

View File

@ -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();

View File

@ -117,7 +117,7 @@
$data = ' ';
}
$this->output['portal_row']['extrabox'] = array
$this->output['extrabox'] = array
(
'data' => $data
);

View File

@ -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>