added xsl tpl

This commit is contained in:
ceb 2002-09-27 00:15:09 +00:00
parent 71610c3297
commit 5533870f76
4 changed files with 37 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<xsl:template name="app_header"> <xsl:template name="app_header">
<table border="0" cellpadding="2" cellspacing="4" width="98%" align="center"> <table border="0" cellpadding="2" cellspacing="4" width="98%" align="center">
<tr> <tr>
<td><b><xsl:value-of select="appname"/></b></td> <td class="appheader"><xsl:value-of select="appname"/></td>
</tr> </tr>
<xsl:apply-templates select="function_msg"/> <xsl:apply-templates select="function_msg"/>
</table> </table>
@ -12,6 +12,6 @@
<xsl:template match="function_msg"> <xsl:template match="function_msg">
<tr> <tr>
<td><b><xsl:value-of select="."/></b></td> <td class="functionmsg"><xsl:value-of select="."/></td>
</tr> </tr>
</xsl:template> </xsl:template>

View File

@ -1,8 +1,18 @@
<!-- $Id$ --> <!-- $Id$ -->
<xsl:template name="cat_select"> <xsl:template name="cat_select">
<option value=""><xsl:value-of select="lang_select_category"/></option> <xsl:variable name="select_action"><xsl:value-of select="select_action"/></xsl:variable>
<xsl:apply-templates select="cat_list"/> <xsl:variable name="lang_submit"><xsl:value-of select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="cat_id" class="forms" onChange="this.form.submit();">
<option value=""><xsl:value-of select="lang_select_category"/></option>
<xsl:apply-templates select="cat_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" class="forms" name="submit" value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template> </xsl:template>
<xsl:template match="cat_list"> <xsl:template match="cat_list">

View File

@ -1,7 +1,17 @@
<!-- $Id$ --> <!-- $Id$ -->
<xsl:template name="filter_select"> <xsl:template name="filter_select">
<xsl:apply-templates select="filter_list"/> <xsl:variable name="select_action"><xsl:value-of select="select_action"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="filter" class="forms" onChange="this.form.submit()">
<xsl:apply-templates select="filter_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" class="forms" name="submit" value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template> </xsl:template>
<xsl:template match="filter_list"> <xsl:template match="filter_list">

View File

@ -0,0 +1,12 @@
<!-- $Id$ -->
<xsl:template name="search_field">
<xsl:variable name="select_action"><xsl:value-of select="select_action"/></xsl:variable>
<xsl:variable name="query"><xsl:value-of select="query"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<input type="text" class="forms" name="query" value="{$query}"/>
<xsl:text> </xsl:text>
<input type="submit" class="forms" name="submit" value="{$lang_submit}"/>
</form>
</xsl:template>