egroupware/phpgwapi/templates/default/portal.xsl

69 lines
2.3 KiB
XML
Raw Normal View History

2002-10-03 23:35:38 +02:00
<!-- $Id$ -->
<xsl:template match="portal">
2002-10-06 18:17:37 +02:00
<table cellpadding="0" cellspacing="0" class="portal">
<tr>
2002-10-06 21:57:58 +02:00
<td class="portal_text">
<xsl:value-of disable-output-escaping="yes" select="space"/>
<xsl:value-of select="title"/>
2002-10-03 23:35:38 +02:00
</td>
2002-10-06 20:04:05 +02:00
<td valign="middle" align="right" class="portal_text">
2002-10-03 23:35:38 +02:00
<xsl:apply-templates select="control_link"/>
</td>
</tr>
<tr>
<td colspan="2">
2002-10-06 21:57:58 +02:00
<table cellpadding="3" cellspacing="0" class="portal">
<xsl:choose>
<xsl:when test="listbox">
<tr>
<td>
2002-10-05 00:40:34 +02:00
<ul>
<xsl:apply-templates select="listbox"/>
</ul>
2002-10-06 21:57:58 +02:00
</td>
</tr>
</xsl:when>
2002-10-07 00:28:41 +02:00
</xsl:choose>
<xsl:choose>
2002-10-06 21:57:58 +02:00
<xsl:when test="extrabox">
<tr>
<td>
2002-10-06 01:40:51 +02:00
<xsl:value-of disable-output-escaping="yes" select="extrabox"/>
2002-10-06 21:57:58 +02:00
</td>
</tr>
</xsl:when>
2002-10-07 00:28:41 +02:00
<xsl:when test="xextrabox">
2002-10-06 21:57:58 +02:00
<tr>
<td>
2002-10-06 00:00:25 +02:00
<xsl:call-template name="extrabox"/>
2002-10-06 21:57:58 +02:00
</td>
</tr>
2002-10-07 00:28:41 +02:00
</xsl:when>
2002-10-06 21:57:58 +02:00
</xsl:choose>
2002-10-03 23:35:38 +02:00
</table>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="control_link">
<xsl:variable name="param_url"><xsl:value-of select="param_url"/></xsl:variable>
<xsl:variable name="link_img"><xsl:value-of select="link_img"/></xsl:variable>
<xsl:variable name="img_width"><xsl:value-of select="img_width"/></xsl:variable>
<xsl:variable name="lang_param_statustext"><xsl:value-of select="lang_param_statustext"/></xsl:variable>
<a href="{$param_url}" onMouseover="window.status='{$lang_param_statustext}';return true;" onMouseout="window.status='';return true;">
<img src="{$link_img}" border="0" width="{img_width}" height="15" onMouseover="window.status='{$lang_param_statustext}';return true;" onMouseout="window.status='';return true;" alt="{$lang_param_statustext}"/>
</a>
</xsl:template>
<xsl:template match="listbox">
<xsl:variable name="link"><xsl:value-of select="link"/></xsl:variable>
<xsl:variable name="lang_link_statustext"><xsl:value-of select="lang_link_statustext"/></xsl:variable>
2002-10-05 00:40:34 +02:00
<li>
<a href="{$link}" onMouseover="window.status='{$lang_link_statustext}';return true;" onMouseout="window.status='';return true;">
<xsl:value-of select="text"/>
</a>
</li>
2002-10-03 23:35:38 +02:00
</xsl:template>