egroupware/phpgwapi/templates/default/portal.xsl

86 lines
2.8 KiB
XML
Raw Normal View History

2002-10-03 23:35:38 +02:00
<!-- $Id$ -->
<xsl:template name="portal">
<xsl:choose>
<xsl:when test="mainscreen_message != ''">
<xsl:value-of disable-output-escaping="yes" select="mainscreen_message"/>
</xsl:when>
</xsl:choose>
<xsl:apply-templates select="portal_data"/>
</xsl:template>
<xsl:template match="portal_data">
<table cellpadding="0" cellspacing="0" class="portal">
<tr>
<td class="portal_text">
<xsl:value-of disable-output-escaping="yes" select="space"/>
<xsl:value-of select="title"/>
</td>
<td valign="middle" align="right" class="portal_text">
<xsl:apply-templates select="control_link"/>
</td>
</tr>
<tr>
<td colspan="2">
<table cellpadding="3" cellspacing="0" class="portal">
<xsl:choose>
2002-10-30 00:35:02 +01:00
<xsl:when test="listbox != ''">
<tr>
<td>
<ul>
<xsl:apply-templates select="listbox"/>
</ul>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
2002-10-30 00:35:02 +01:00
<xsl:when test="extrabox != ''">
<tr>
<td>
<xsl:value-of disable-output-escaping="yes" select="extrabox"/>
</td>
</tr>
</xsl:when>
2002-10-30 00:35:02 +01:00
<xsl:when test="xextrabox != ''">
<tr>
<td>
<xsl:call-template name="extrabox"/>
</td>
</tr>
</xsl:when>
</xsl:choose>
</table>
</td>
</tr>
</table>
<br/>
2002-10-03 23:35:38 +02:00
</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>
2003-05-01 04:44:39 +02:00
<a href="{$param_url}" onMouseover="window.status='{$lang_param_statustext}';return true;" onMouseout="window.status='';return true;" class="portal_text">
<xsl:choose>
<xsl:when test="link_img != ''">
<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}"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="link_icon"/>
</xsl:otherwise>
</xsl:choose>
2002-10-03 23:35:38 +02:00
</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>