Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.129.73.6
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="level_name" />
<xsl:param name="level_name_id" />
<xsl:param name="lang" />
<xsl:template match="/">
<xsl:variable name="tempid" select="substring-after($level_name_id, ',')" />
<xsl:variable name="id1" select="substring-before($level_name_id, ',')" />
<xsl:variable name="id2" select="substring-before($tempid, ',')" />
<xsl:variable name="tempid2" select="substring-after($tempid, ',')" />
<xsl:variable name="id3" select="substring-before($tempid2, ',')" />
<xsl:variable name="id4" select="substring-after($tempid2, ',')" />
<xsl:variable name="show_selector05">
<xsl:choose>
<xsl:when test="$level_name_id != ''">
<xsl:text>true</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>false</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div class="float_left">
<xsl:if test="$show_selector05 = 'true'">
<select class="small_select" onChange="javascript:get_type_level_and_id(this.value, 'seventh_tool_selectors.xsl', 'seventh_level_tool'); get_section_letter(document.getElementById('section04'), this.value);">
<xsl:choose>
<xsl:when test="$level_name = 'ligue4'">
<xsl:for-each select="document('../xml/ligue_levels/ligue_tool_selectors_items5.xml')//ligue/items5[@reftable=$level_name_id]/item">
<option value="{./@value}|ligue5|{./reftable}" title="{./@label}">
<xsl:value-of select="@label" />
</option>
</xsl:for-each>
</xsl:when>
<xsl:when test="$level_name = 'equipe4'">
<xsl:for-each select="document('../xml/equipe_tool_selectors.xml')//equipe/items1/item[@id=number($id1)]/items2/item[@id=number($id2)]/items3/item[@id=number($id3)]/items4/item[@id=number($id4)]/items5/item">
<option value="{./@value}|equipe5|{$id1}, {$id2}, {$id3}, {$id4}, {./@id}" title="{./@label}">
<xsl:value-of select="@label" />
</option>
</xsl:for-each>
</xsl:when>
<xsl:when test="$level_name = 'franchise4'">
<xsl:for-each select="document('../xml/franchise_tool_selectors.xml')//franchise/items1/item[@id=number($id1)]/items2/item[@id=number($id2)]/items3/item[@id=number($id3)]/items4/item[@id=number($id4)]/items5/item">
<option value="{./@value}|franchise5|{$id1}, {$id2}, {$id3}, {$id4}, {./@id}" title="{./@label}">
<xsl:value-of select="@label" />
</option>
</xsl:for-each>
</xsl:when>
</xsl:choose>
</select>
</xsl:if>
</div>
<div id="seventh_level_tool"></div>
</xsl:template>
</xsl:stylesheet>
|