egroupware/phpgwapi/templates/default/help.xsl

79 lines
2.6 KiB
XML
Raw Normal View History

2002-11-30 02:31:30 +01:00
<!-- $Id$ -->
<xsl:template name="help">
2002-12-05 01:16:27 +01:00
<xsl:apply-templates select="help_values"/>
2002-11-30 02:31:30 +01:00
</xsl:template>
2002-12-05 01:16:27 +01:00
<xsl:template match="help_values">
<xsl:variable name="img" select="img"/>
2002-11-30 02:56:08 +01:00
<table cellpadding="0" cellspacing="0" width="100%">
<tr class="th">
2002-12-05 01:16:27 +01:00
<td class="th_text" valign="middle">
<img src="{$img}" border="0"/>&nbsp;
<xsl:value-of select="title"/>&nbsp;
<xsl:value-of select="lang_version"/>:&nbsp;<xsl:value-of select="version"/>
2002-11-30 02:31:30 +01:00
</td>
2002-11-30 02:56:08 +01:00
<td valign="middle" align="right">
2002-12-05 01:16:27 +01:00
<xsl:choose>
<xsl:when test="control_link != ''">
<xsl:apply-templates select="control_link"/>
</xsl:when>
</xsl:choose>
2002-11-30 02:31:30 +01:00
</td>
</tr>
<tr>
<td colspan="2">
2002-12-05 01:16:27 +01:00
<table cellpadding="3" cellspacing="0" class="row_on" width="100%">
2002-11-30 02:31:30 +01:00
<xsl:choose>
<xsl:when test="listbox != ''">
<tr>
<td>
<ul>
<xsl:apply-templates select="listbox"/>
</ul>
</td>
</tr>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="extrabox != ''">
<tr>
<td>
<xsl:value-of disable-output-escaping="yes" select="extrabox"/>
</td>
</tr>
</xsl:when>
2002-12-05 01:16:27 +01:00
<xsl:when test="xhelp != ''">
2002-11-30 02:31:30 +01:00
<tr>
<td>
2002-12-05 01:16:27 +01:00
<xsl:call-template name="help_data"/>
2002-11-30 02:31:30 +01:00
</td>
</tr>
</xsl:when>
</xsl:choose>
</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>
<li>
<a href="{$link}" onMouseover="window.status='{$lang_link_statustext}';return true;" onMouseout="window.status='';return true;">
<xsl:value-of select="text"/>
</a>
</li>
</xsl:template>