update xslt

This commit is contained in:
ceb 2002-10-27 21:30:27 +00:00
parent 5bd8c0a237
commit c4237ef897
2 changed files with 72 additions and 53 deletions

View File

@ -6,8 +6,8 @@
<xsl:template match="about_data"> <xsl:template match="about_data">
<table cellpadding="2" cellspacing="2" align="center" class="about"> <table cellpadding="2" cellspacing="2" align="center" class="about">
<xsl:variable name="phpgw_logo"><xsl:value-of select="phpgw_logo"/></xsl:variable> <xsl:variable name="phpgw_logo" select="phpgw_logo"/>
<xsl:variable name="lang_url_statustext"><xsl:value-of select="lang_url_statustext"/></xsl:variable> <xsl:variable name="lang_url_statustext" select="lang_url_statustext"/>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<a href="http://www.phpgroupware.org" target="_blank" onMouseover="window.status='{$lang_url_statustext}'; return true;" onMouseout="window.status=''; return true;"> <a href="http://www.phpgroupware.org" target="_blank" onMouseover="window.status='{$lang_url_statustext}'; return true;" onMouseout="window.status=''; return true;">
@ -24,7 +24,7 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td width="20%">
<xsl:value-of select="lang_version"/> <xsl:value-of select="lang_version"/>
</td> </td>
<td> <td>
@ -39,70 +39,89 @@
</xsl:template> </xsl:template>
<xsl:template match="about_app"> <xsl:template match="about_app">
<xsl:variable name="icon" select="icon"/>
<tr> <tr>
<td colspan="2" class="th_text"> <td colspan="2" class="th_text">
<xsl:value-of select="app_title"/> <xsl:if test="icon != ''">
<img src="{$icon}"/>
</xsl:if>
<xsl:value-of select="title"/>
</td> </td>
</tr> </tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<xsl:value-of disable-output-escaping="yes" select="app_descr"/> <xsl:value-of select="description"/>
</td> </td>
</tr> </tr>
<xsl:if test="note != ''">
<tr>
<td colspan="2">
<i><xsl:value-of select="note"/></i>
</td>
</tr>
</xsl:if>
<tr> <tr>
<td valign="top"> <td valign="top">
<xsl:value-of select="lang_written_by"/> <xsl:value-of select="lang_author"/>
</td> </td>
<td> <td>
<xsl:value-of select="developers"/> <xsl:value-of select="author"/>
</td> </td>
</tr> </tr>
<tr valign="top"> <xsl:if test="maintainer != ''">
<td> <tr>
<td valign="top">
<xsl:value-of select="lang_maintainer"/> <xsl:value-of select="lang_maintainer"/>
</td> </td>
<td> <td>
<xsl:value-of select="app_maintainer"/><br/> <xsl:apply-templates select="maintainer"/>
<xsl:value-of disable-output-escaping="yes" select="app_maintainer_email"/>
</td> </td>
</tr> </tr>
</xsl:if>
<tr> <tr>
<td> <td>
<xsl:value-of select="lang_version"/> <xsl:value-of select="lang_version"/>
</td> </td>
<td> <td>
<xsl:value-of select="app_version"/> <xsl:value-of select="version"/>
</td> </td>
</tr> </tr>
<xsl:if test="license != ''">
<tr> <tr>
<td> <td>
<xsl:value-of select="lang_license"/> <xsl:value-of select="lang_license"/>
</td> </td>
<td> <td>
<xsl:value-of select="app_license"/> <xsl:value-of select="license"/>
</td> </td>
</tr> </tr>
<xsl:choose> </xsl:if>
<xsl:when test="app_source"> <xsl:if test="based_on != ''">
<tr> <tr>
<td valign="top"><xsl:value-of select="lang_based_on"/></td> <td valign="top"><xsl:value-of select="lang_based_on"/></td>
<td><xsl:value-of select="app_source"/></td> <td><xsl:value-of select="based_on"/></td>
</tr> </tr>
</xsl:when> </xsl:if>
</xsl:choose> <xsl:if test="based_on_url != ''">
<xsl:choose>
<xsl:when test="app_source_url">
<tr> <tr>
<td height="5"></td> <td height="5"></td>
<td> <td>
<a target="_blank"> <a target="_blank">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="app_source_url"/> <xsl:value-of select="based_on_url"/>
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="app_source_url_name"/> <xsl:value-of select="based_on_url"/>
</a> </a>
</td> </td>
</tr> </tr>
</xsl:when> </xsl:if>
</xsl:choose> </xsl:template>
<xsl:template match="maintainer">
<xsl:variable name="email"><xsl:value-of select="email"/></xsl:variable>
<table>
<tr>
<td><xsl:value-of select="name"/><xsl:text> [</xsl:text><a href="mailto:{$email}"><xsl:value-of select="email"/></a><xsl:text>]</xsl:text></td>
</tr>
</table>
</xsl:template> </xsl:template>

View File

@ -49,18 +49,18 @@
</td> </td>
</tr> </tr>
<tr width="100%"> <tr width="100%">
<td width="33%" class="info"><xsl:value-of select="user_info_name"/></td> <td width="25%" class="info"><xsl:value-of select="user_info_name"/></td>
<xsl:choose> <xsl:choose>
<xsl:when test="current_users"> <xsl:when test="current_users">
<xsl:variable name="url_current_users"><xsl:value-of select="url_current_users"/></xsl:variable> <xsl:variable name="url_current_users"><xsl:value-of select="url_current_users"/></xsl:variable>
<td width="33%" class="info"><a href="{$url_current_users}"><xsl:value-of select="current_users"/></a></td> <td width="25%" class="info"><a href="{$url_current_users}"><xsl:value-of select="current_users"/></a></td>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<td width="33%"></td> <td width="25%"></td>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<td width="33%" class="info" align="right"><xsl:value-of select="user_info_date"/></td> <td class="info" width="25%" align="right"><xsl:value-of select="user_info_date"/></td>
<td> <td width="25%">
<table cellspacing="0" cellpadding="0" align="right"> <table cellspacing="0" cellpadding="0" align="right">
<tr> <tr>
<td><a href="{$home_link}" onMouseOver="" onMouseOut=""><img src="{$home_img}" border="0" name="nine" alt="{$home_title}" title="{$home_title}"/></a></td> <td><a href="{$home_link}" onMouseOver="" onMouseOut=""><img src="{$home_img}" border="0" name="nine" alt="{$home_title}" title="{$home_title}"/></a></td>