AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 18.189.194.225


Current Path : /var/www/lhjmq-records.qc.ca/public_html/xsl/records/booknew/xsl/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/xsl/records/booknew/xsl/second_tool_selectors.xsl

<?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:param name="selection" />
	<xsl:param name="level_type" />

	<xsl:template match="/">

		<xsl:if test="$lang = 'fr'">
			<div style="padding-bottom:10px;" class="record_font_color" id="records_type_cat_04">Types de records</div>
		</xsl:if>
		<xsl:if test="$lang = 'en'">
			<div style="padding-bottom:10px;" class="record_font_color" id="records_type_cat_04">Records type</div>
		</xsl:if>

		<div class="float_left">
			
			<span class="asterix">*</span>
			
			<!-- REF third_tool_selectors.xsl -->
			<xsl:choose>
				<xsl:when test="$level_name = 'ligue0'">
					<select name="advanced_records" id="advanced_records" class="small_select form-control" onChange="javascript:is_main_selector_selection(true); get_type_level_and_id(this.value, 'third_tool_selectors.xsl', 'thrid_level_tool', null, null); get_section_letter(document.getElementById('section04'), this.value); start_animation_id(this.value); get_drop_spec(drop_second_level, this);">
						<xsl:for-each select="document(concat('../xml/ligue_levels', $level_type, '/ligue_tool_selectors_items1.xml'))//ligue/items1/item">
							<xsl:if test="$lang = 'fr'">
								<xsl:choose>
									<xsl:when test="$selection = @label">
										<option value="{./@value}|ligue1|{./@reftable}|{@animtype}|{parent::*/@reftable}|ligue0|ligue2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label}" selected="selected">
											<xsl:value-of select="@label" />
										</option>
									</xsl:when>
									<xsl:otherwise>
										<option value="{./@value}|ligue1|{./@reftable}|{@animtype}|{parent::*/@reftable}|ligue0|ligue2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label}">
											<xsl:value-of select="@label" />
										</option>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
							<xsl:if test="$lang = 'en'">
								<xsl:choose>
									<xsl:when test="$selection = @label_en">
										<option value="{./@value}|ligue1|{./@reftable}|{@animtype}|{parent::*/@reftable}|ligue0|ligue2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label_en}" selected="selected">
											<xsl:value-of select="@label_en" />
										</option>
									</xsl:when>
									<xsl:otherwise>
										<option value="{./@value}|ligue1|{./@reftable}|{@animtype}|{parent::*/@reftable}|ligue0|ligue2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label_en}">
											<xsl:value-of select="@label_en" />
										</option>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</xsl:for-each>
					</select>
				</xsl:when>
				<xsl:when test="$level_name = 'equipe0'">
					<select name="advanced_records" id="advanced_records" class="small_select form-control" onChange="javascript:is_main_selector_selection(true); get_type_level_and_id(this.value, 'third_tool_selectors.xsl', 'thrid_level_tool', null, null); get_section_letter(document.getElementById('section04'), this.value); start_animation_id(this.value); get_drop_spec(drop_second_level, this)">
						<xsl:for-each select="document(concat('../xml/equipe_levels', $level_type, '/equipe_tool_selectors_items1.xml'))//equipe/items1/item">
							<xsl:if test="$lang = 'fr'">
								<xsl:choose>
									<xsl:when test="$selection = @label">
										<option value="{./@value}|equipe1|{./@reftable}|{@animtype}|{parent::*/@reftable}|equipe0|equipe2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label}" selected="selected">
											<xsl:value-of select="@label" />
										</option>
									</xsl:when>
									<xsl:otherwise>
										<option value="{./@value}|equipe1|{./@reftable}|{@animtype}|{parent::*/@reftable}|equipe0|equipe2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label}">
											<xsl:value-of select="@label" />
										</option>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
							<xsl:if test="$lang = 'en'">
								<xsl:choose>
									<xsl:when test="$selection = @label_en">
										<option value="{./@value}|equipe1|{./@reftable}|{@animtype}|{parent::*/@reftable}|equipe0|equipe2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label_en}" selected="selected">
											<xsl:value-of select="@label_en" />
										</option>
									</xsl:when>
									<xsl:otherwise>
										<option value="{./@value}|equipe1|{./@reftable}|{@animtype}|{parent::*/@reftable}|equipe0|equipe2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label_en}">
											<xsl:value-of select="@label_en" />
										</option>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</xsl:for-each>
					</select>
				</xsl:when>
				<xsl:when test="$level_name = 'franchise0'">
					<select name="advanced_records" id="advanced_records" class="small_select form-control" onChange="javascript:is_main_selector_selection(true); get_type_level_and_id(this.value, 'third_tool_selectors.xsl', 'thrid_level_tool', null, null); get_section_letter(document.getElementById('section04'), this.value); start_animation_id(this.value); get_drop_spec(drop_second_level, this)">
						<xsl:for-each select="document(concat('../xml/franchise_levels', $level_type, '/franchise_tool_selectors_items1.xml'))//franchise/items1/item">
							<xsl:if test="$lang = 'fr'">
								<xsl:choose>
									<xsl:when test="$selection = @label">
										<option value="{./@value}|franchise1|{./@reftable}|{@animtype}|{parent::*/@reftable}|franchise0|franchise2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label}" selected="selected">
											<xsl:value-of select="@label" />
										</option>
									</xsl:when>
									<xsl:otherwise>
										<option value="{./@value}|franchise1|{./@reftable}|{@animtype}|{parent::*/@reftable}|franchise0|franchise2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label}">
											<xsl:value-of select="@label" />
										</option>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
							<xsl:if test="$lang = 'en'">
								<xsl:choose>
									<xsl:when test="$selection = @label_en">
										<option value="{./@value}|franchise1|{./@reftable}|{@animtype}|{parent::*/@reftable}|franchise0|franchise2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label_en}" selected="selected">
											<xsl:value-of select="@label_en" />
										</option>
									</xsl:when>
									<xsl:otherwise>
										<option value="{./@value}|franchise1|{./@reftable}|{@animtype}|{parent::*/@reftable}|franchise0|franchise2|{./@third_level_reffilter}|{./@third_level_reflabel}" title="{@label_en}">
											<xsl:value-of select="@label_en" />
										</option>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</xsl:for-each>
					</select>
				</xsl:when>
				<xsl:otherwise>
					<select name="advanced_records" id="advanced_records" class="small_select form-control" onChange="javascript:get_type_level_and_id(this.value, 'third_tool_selectors.xsl', 'thrid_level_tool', null, this.selectedIndex.innerHTML); get_section_letter(document.getElementById('section04'), this.value); start_animation_id(this.value)">
							<option value="-1">
							</option>
					</select>
				</xsl:otherwise>
			</xsl:choose>
		</div>
		<div id="thrid_level_tool"></div>

	</xsl:template>

</xsl:stylesheet>