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



Your IP : 3.141.192.174


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

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>

	<xsl:template name="table_img">
		<xsl:param name="seasonin" />
		<xsl:param name="seasonout" />
		<xsl:param name="type_number" />
		<xsl:param name="url_type" />
		<xsl:param name="l_id" />
		<xsl:param name="abrev_lang" />
		<xsl:param name="pos_row" />
		<xsl:param name="tble_name" />

			<xsl:if test="$tble_name = 'evolution'">
				<table cellpadding="0" cellspacing="0" border="0" width="100%" class="small_table">
					<tr>
						<td align="left">
							<!--
							<a href="{concat($url_type, $l_id)}" target="_blank">
								<xsl:value-of select="$abrev_lang" />
							</a>
							-->

							<xsl:choose>
								<xsl:when test="$type_number = '3'">
									<xsl:variable name="currentseason" select="document('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/saisons.xml')//saison/items0/item[@from=$seasonin]/@seasonregid" />
									<a href="javascript:" onClick="open_window_browser('{concat($url_type, $l_id, '&amp;currentseason=', $currentseason)}')">
										<xsl:value-of select="$abrev_lang" />
									</a>
								</xsl:when>
								<xsl:otherwise>
									<a href="javascript:" onClick="open_window_browser('{concat($url_type, $l_id)}')">
										<xsl:value-of select="$abrev_lang" />
									</a>
								</xsl:otherwise>
							</xsl:choose>

							<xsl:if test="$pos_row = 1">
								<xsl:if test="$tble_name = 'main'">
									<img src="img/flash.gif" width="0" height="0" onLoad="call_swf_video('{$l_id}', '{$lang}'), '{$abrev_lang}');" />
								</xsl:if>
							</xsl:if>
						</td>
						<td align="right">
							<xsl:if test="$type_number = '1'">
								1<img src="/images/icons/{$l_id}.jpg" width="32" height="32" border="0"/>
							</xsl:if>
							<xsl:if test="$type_number = '3'">
								2<img src="/create_on_demand.php?id_register={$l_id}&amp;type=crest&amp;in={$seasonin}&amp;out={$seasonout}&amp;lang={$lang}" width="25" height="25"/>
							</xsl:if>
							<xsl:if test="$type_number = '5'">
								3<img src="/images/icons/{$l_id}.jpg" width="32" height="32" border="0"/>
							</xsl:if>
							<xsl:if test="$type_number = '6'">
								4<img src="/images/icons/{$l_id}.jpg" width="32" height="32" border="0"/>
							</xsl:if>
						</td>

					</tr>
				</table>
			</xsl:if>
			<xsl:if test="$tble_name != 'evolution'">
				<!--
				<a href="{concat($url_type, $l_id)}" target="_blank">
					<xsl:value-of select="$abrev_lang" />
				</a>
				-->

				<xsl:choose>
					<xsl:when test="$type_number = '3'">
						<xsl:variable name="currentseason" select="document('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/saisons.xml')//saison/items0/item[@from=$seasonin]/@seasonregid" />
						<a href="javascript:" onClick="open_window_browser('{concat($url_type, $l_id, '&amp;currentseason=', $currentseason)}')">
							<xsl:value-of select="$abrev_lang" />
						</a>
					</xsl:when>
					<xsl:otherwise>
						<a href="javascript:" onClick="open_window_browser('{concat($url_type, $l_id)}')">
							<xsl:value-of select="$abrev_lang" />
						</a>
					</xsl:otherwise>
				</xsl:choose>

				<xsl:if test="$pos_row = 1 and $type_number != 3">
					<xsl:if test="$tble_name = 'main'">
						<img src="img/flash.gif" width="0" height="0" onLoad="call_swf_video('{$l_id}', '{$lang}', '{$abrev_lang}');" />
					</xsl:if>
				</xsl:if>
			</xsl:if>



	</xsl:template>

	<xsl:template name="recordtable">
		<xsl:param name="title" />
		<xsl:param name="title_en" />
		<xsl:param name="title_sub" />
		<xsl:param name="title_sub_en" />
		<xsl:param name="tds" />
		<xsl:param name="tds_en" />
		<xsl:param name="rows" />
		<xsl:param name="table_w" />
		<xsl:param name="table_name" />

		<xsl:variable name="type1_fr" select="'../../../lang_fr/index.php?page=2147483647&amp;status_type=1&amp;id_register='" />
		<xsl:variable name="type2_fr" select="'../../../lang_fr/index.php?page=342374&amp;id_partie='" />
		<xsl:variable name="type3_fr" select="'../../../lang_fr/index.php?page=8392&amp;id_equipe='" />
		<xsl:variable name="type4_fr" select="'../../../lang_fr/index.php?page=342874&amp;id_register='" />
		<xsl:variable name="type5_fr" select="'../../../lang_fr/index.php?page=2147483648&amp;status_type=2&amp;id_register='" />
		<xsl:variable name="type6_fr" select="'../../../lang_fr/index.php?page=2147483647&amp;status_type=3&amp;id_register='" />

		<xsl:variable name="type1_en" select="'../../../lang_en/index.php?page=2147483647&amp;status_type=1&amp;id_register='" />
		<xsl:variable name="type2_en" select="'../../../lang_en/index.php?page=342374&amp;id_partie='" />
		<xsl:variable name="type3_en" select="'../../../lang_en/index.php?page=8392&amp;id_equipe='" />
		<xsl:variable name="type4_en" select="'../../../lang_en/index.php?page=342874&amp;id_register='" />
		<xsl:variable name="type5_en" select="'../../../lang_en/index.php?page=2147483648&amp;status_type=2&amp;id_register='" />
		<xsl:variable name="type6_en" select="'../../../lang_en/index.php?page=2147483647&amp;status_type=3&amp;id_register='" />

		<xsl:if test="$title != ''">
			<tr>
				<xsl:if test="$lang = 'en'">
					<td colspan="{count($tds)}" class="bg_top_title">
						<xsl:value-of select="$title_en" />
					</td>
				</xsl:if>
				<xsl:if test="$lang = 'fr'">
					<td colspan="{count($tds)}" class="bg_top_title">
						<xsl:value-of select="$title" />
					</td>
				</xsl:if>
			</tr>
		</xsl:if>
		<xsl:if test="$title_sub != ''">
			<tr>
				<xsl:if test="$lang = 'en'">
					<td colspan="{count($tds)}" class="bg_sub_title">
						<xsl:value-of select="$title_sub_en" />
					</td>
				</xsl:if>
				<xsl:if test="$lang = 'fr'">
					<td colspan="{count($tds)}" class="bg_sub_title">
						<xsl:value-of select="$title_sub" />
					</td>
				</xsl:if>
			</tr>
		</xsl:if>
		<tr>
			<xsl:if test="$lang = 'en'">
				<xsl:for-each select="//mainrecord/head/td_en">
					<xsl:if test="position() = last()">
						<td align="left" class="head_record_border" title="{.}" style="cursor:default; width:auto;">
							<strong>
								<xsl:value-of select="@abrv" />
							</strong>
						</td>
					</xsl:if>
					<xsl:if test="position() != last()">
						<td align="left" class="head_record_last_cell_border" title="{.}" style="cursor:default; width:auto">
							<strong>
								<xsl:value-of select="@abrv" />
							</strong>
						</td>
					</xsl:if>
				</xsl:for-each>
			</xsl:if>
			<xsl:if test="$lang = 'fr'">
				<xsl:for-each select="$tds">
					<xsl:if test="position() = last()">
						<td align="left" class="head_record_border" title="{.}" style="cursor:default; width:auto;">
							<strong>
								<xsl:value-of select="@abrv" />
							</strong>
						</td>
					</xsl:if>
					<xsl:if test="position() != last()">
						<td align="left" class="head_record_last_cell_border" title="{.}" style="cursor:default; width:auto">
							<strong>
								<xsl:value-of select="@abrv" />
							</strong>
						</td>
					</xsl:if>
				</xsl:for-each>
			</xsl:if>
		</tr>
		<xsl:for-each select="$rows">
			<xsl:variable name="rowpos" select="position()" />
			<tr>
				<xsl:for-each select="./td">
					<xsl:if test="position() != last()">
						<xsl:choose>
							<xsl:when test="@colspan != ''">
								<td colspan="{@colspan}" align="left" class="record_table_border" title="{.}" style="width:auto; cursor:default">
									<xsl:choose>
										<xsl:when test="@lid != ''">

											<xsl:if test="$lang='en'">

												<xsl:if test="@lidtype = 1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">
													<a href="javascript:" onClick="open_window_browser('{concat($type2_en, @lid)}')">
														<xsl:value-of select="@abrv_en" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!--<a href="javascript:" onClick="open_window_browser('{concat($type3_en, @lid)}')">
														<xsl:value-of select="@abrv_en" />
													</a>-->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser('{concat($type4_en, @lid)}')">
														<xsl:value-of select="@abrv_en" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>

											<xsl:if test="$lang='fr'">

												<xsl:if test="@lidtype = 1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">
													<a href="javascript:" onClick="open_window_browser('{concat($type2_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!--<a href="javascript:" onClick="open_window_browser('{concat($type3_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>-->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser('{concat($type4_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											<xsl:if test="$lang='en'">
												<xsl:value-of select="@abrv_en" />
											</xsl:if>
											<xsl:if test="$lang='fr'">
												<xsl:value-of select="@abrv" />
											</xsl:if>
										</xsl:otherwise>
									</xsl:choose>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td align="left" class="record_table_border" title="{.}" style="width:auto; cursor:default">
									<xsl:choose>
										<xsl:when test="@lid != ''">
											<xsl:if test="$lang='en'">

												<xsl:if test="@lidtype=1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">
													<a href="javascript:" onClick="open_window_browser('{concat($type2_en, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!-- <a href="javascript:" onClick="open_window_browser('{concat($type3_en, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a> -->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser('{concat($type4_en, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
											<xsl:if test="$lang='fr'">

												<xsl:if test="@lidtype=1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">
													<a href="javascript:" onClick="open_window_browser('{concat($type2_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!--<a href="javascript:" onClick="open_window_browser('{concat($type3_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>-->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser('{concat($type4_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="@abrv" />
										</xsl:otherwise>
									</xsl:choose>
								</td>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:if>
					<xsl:if test="position() = last()">
						<xsl:choose>
							<xsl:when test="@colspan != ''">
								<td colspan="{@colspan}" align="left" class="record_table_last_cell_border" title="{.}" style="width:auto; cursor:default">
									<xsl:choose>
										<xsl:when test="@lid != ''">
											<xsl:if test="$lang='en'">

												<xsl:if test="@lidtype = 1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">
													<a href="javascript:" onClick="open_window_browser('{concat($type2_en, @lid)}')">
														<xsl:value-of select="@abrv_en" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!-- <a href="javascript:" onClick="open_window_browser('{concat($type3_en, @lid)}')">
														<xsl:value-of select="@abrv_en" />
													</a> -->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser('{concat($type4_en, @lid)}')">
														<xsl:value-of select="@abrv_en" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv_en" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>

											<xsl:if test="$lang='fr'">
												<xsl:if test="@lidtype = 1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">
													<a href="javascript:" onClick="open_window_browser('{concat($type2_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!--<a href="javascript:" onClick="open_window_browser('{concat($type3_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>-->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser('{concat($type4_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											<xsl:if test="$lang='en'">
												<xsl:value-of select="@abrv_en" />
											</xsl:if>
											<xsl:if test="$lang='fr'">
												<xsl:value-of select="@abrv" />
											</xsl:if>
										</xsl:otherwise>
									</xsl:choose>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td align="left" class="record_table_last_cell_border" title="{.}" style="width:auto; cursor:default">
									<xsl:choose>
										<xsl:when test="@lid != ''">
											<xsl:if test="$lang='en'">
												<xsl:if test="@lidtype=1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">
													<a href="javascript:" onClick="open_window_browser('{concat($type2_en, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!-- <a href="javascript:" onClick="open_window_browser('{concat($type3_en, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>-->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser('{concat($type4_en, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_en" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
											<xsl:if test="$lang='fr'">
												<xsl:if test="@lidtype=1">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type1_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

												<xsl:if test="@lidtype = 2">
													<a href="javascript:" onClick="open_window_browser('{concat($type2_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 3">
													<xsl:call-template name="table_img">
														<xsl:with-param name="seasonin" select="@seasonin" />
														<xsl:with-param name="seasonout" select="@seasonout" />
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type3_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>

													<!-- <a href="javascript:" onClick="open_window_browser('{concat($type3_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a> -->
												</xsl:if>
												<xsl:if test="@lidtype = 4">
													<a href="javascript:" onClick="open_window_browser('{concat($type4_fr, @lid)}')">
														<xsl:value-of select="@abrv" />
													</a>
												</xsl:if>
												<xsl:if test="@lidtype = 5">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type5_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>
												<xsl:if test="@lidtype = 6">
													<xsl:call-template name="table_img">
														<xsl:with-param name="type_number" select="@lidtype" />
														<xsl:with-param name="url_type" select="$type6_fr" />
														<xsl:with-param name="l_id" select="@lid" />
														<xsl:with-param name="abrev_lang" select="@abrv" />
														<xsl:with-param name="pos_row" select="$rowpos" />
														<xsl:with-param name="tble_name" select="$table_name" />
													</xsl:call-template>
												</xsl:if>

											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="@abrv" />
										</xsl:otherwise>
									</xsl:choose>
								</td>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:if>
				</xsl:for-each>
			</tr>
		</xsl:for-each>
	</xsl:template>

	<xsl:param name="pop_type" />
	<xsl:param name="lang" />
	<xsl:param name="actual_file" />
	<xsl:param name="thisseason" />
	<xsl:param name="img_year" />
	<xsl:param name="is_evolution" />
	<xsl:param name="is_relatifs" />
	<xsl:template match="/">

		<xsl:variable name="file_year" select="substring-before ($actual_file, '_')" />
		<xsl:variable name="selected_file_name" select="substring-after ($actual_file, '_')" />

		<div style="color:#ffffff;display:none;">
			file_year = <xsl:value-of select="$file_year" /><br />
			selected_file_name = <xsl:value-of select="$selected_file_name" /><br />
			thisseason = <xsl:value-of select="$thisseason" /><br />
			img_year = <xsl:value-of select="$img_year" /><br />
			is_evolution = <xsl:value-of select="$is_evolution" /><br />
			is_relatifs = <xsl:value-of select="$is_relatifs" /><br />
		</div>

		<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr valign="top">
				<td align="center">

					<!-- MAIN RECORD -->

					<xsl:if test="$lang = 'fr'">
						<div><a href="#a1"><img src="img/ancre_1_fr.png" alt="" /></a><a href="#a2"><img src="img/ancre_2_fr.png" alt="" style="margin:0 1px;" /></a><a href="#a3"><img src="img/ancre_3_fr.png" alt="" /></a><a href="#a4"><img src="img/ancre_4_fr.png" alt="" style="margin:0 0 0 1px;" /></a></div>
						<div><img src="img/head_main_fr.png" alt="" /></div>
					</xsl:if>
					<xsl:if test="$lang = 'en'">
						<div><a href="#a1"><img src="img/ancre_1_en.png" alt="" /></a><a href="#a2"><img src="img/ancre_2_en.png" alt="" style="margin:0 1px;" /></a><a href="#a3"><img src="img/ancre_3_en.png" alt="" /></a><a href="#a4"><img src="img/ancre_4_en.png" alt="" style="margin:0 0 0 1px;" /></a></div>
						<div><img src="img/head_main_en.png" alt="" /></div>
					</xsl:if>

					<div>
						<table cellpadding="5" cellspacing="0" border="0" width="100%" class="record_font_color main_font_size" style="table-layout:auto;">
							<tr>
								<xsl:call-template name="recordtable">
									<xsl:with-param name="title" select="//mainrecord/title" />
									<xsl:with-param name="title_en" select="//mainrecord/title_en" />
									<xsl:with-param name="title_sub" select="//mainrecord/title_sub" />
									<xsl:with-param name="title_sub_en" select="//mainrecord/title_sub_en" />
									<xsl:with-param name="tds" select="//mainrecord/head/td" />
									<xsl:with-param name="tds_en" select="//mainrecord/head/td_en" />
									<xsl:with-param name="rows" select="//mainrecord/rows/row" />
									<xsl:with-param name="table_w" select="586" />
									<xsl:with-param name="table_name" select="'main'" />
								</xsl:call-template>
							</tr>
						</table>

						<xsl:if test="$lang = 'fr'">
							<a href="#top"><img src="img/top_large_fr.png" alt="" /></a>
						</xsl:if>
						<xsl:if test="$lang = 'en'">
							<a href="#top"><img src="img/top_large_en.png" alt="" /></a>
						</xsl:if>

					</div>
					<!-- MAIN RECORD END -->
					<br style="line-height:10px;" />

					<a name="a4"></a>

					<xsl:if test="$lang = 'fr'">
						<div><img src="img/head_pop_fr.png" /></div>
					</xsl:if>
					<xsl:if test="$lang = 'en'">
						<div><img src="img/head_pop_en.png" /></div>
					</xsl:if>

					<!-- TABLEAU DES LIENS VERS LES RECORDS LES PLUS POPUPAIRES -->

					<table width="100%" border="0" cellspacing="0" cellpadding="0">
					  <tr>
					    <td valign="top">
							<div id="most_pop_records"></div>
						</td>
					  </tr>
					  <tr>
					    <td valign="top">
							<xsl:if test="$lang = 'fr'">
								<a href="#top"><img src="img/top_large_fr.png" alt="" /></a>
							</xsl:if>
							<xsl:if test="$lang = 'en'">
								<a href="#top"><img src="img/top_large_en.png" alt="" /></a>
							</xsl:if>
					    </td>
					  </tr>
					</table>

				</td>
				<td width="10"></td>
				<td width="345">

					<table cellpadding="0" cellspacing="0" border="0" width="345" class="small_table">
						<tr>
							<td>
								<!-- TABLEAU PHOTO - VID�O - AUDIO -->
								<div id="record_movie"></div>
							</td>
						</tr>
						<xsl:if test="$is_evolution = 'true'">
							<tr>
								<td>
									<!-- TABLEAU �VOLUTION -->
									<xsl:if test="$lang = 'fr'">
										<div><img src="img/head_evolution_fr.png" /></div>
									</xsl:if>
									<xsl:if test="$lang = 'en'">
										<div><img src="img/head_evolution_en.png" /></div>
									</xsl:if>

										<table cellpadding="3" cellspacing="0" border="0" width="100%" class="record_font_color small_table" style="table-layout:auto;background-color:#4d0000;">
											<tr>
												<xsl:call-template name="recordtable">
													<xsl:with-param name="title" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution/', $selected_file_name))//evolutionrecord/title" />
													<xsl:with-param name="tds" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution/', $selected_file_name))//evolutionrecord/head/td" />
													<xsl:with-param name="rows" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/evolution/', $selected_file_name))//evolutionrecord/rows/row" />
													<xsl:with-param name="table_w" select="345" />
													<xsl:with-param name="table_name" select="'evolution'" />
												</xsl:call-template>
											</tr>
										</table>

									<xsl:if test="$lang = 'fr'">
										<a href="#top"><img src="img/top_red_fr.png" alt="" /></a>
									</xsl:if>
									<xsl:if test="$lang = 'en'">
										<a href="#top"><img src="img/top_red_en.png" alt="" /></a>
									</xsl:if>
								</td>
							</tr>
						</xsl:if>
						<xsl:if test="$thisseason != 'false'">
							<tr>
								<td style="height:10px;"></td>
							</tr>
							<tr>
								<td>
									<!-- TABLEAU EN SAISON -->
									<a name="a2"></a>

									<div>
										<img src="img/head_cette_saison{$img_year}_{$lang}.png" />
									</div>

										<table cellpadding="3" cellspacing="0" border="0" width="100%" class="record_font_color small_table" style="table-layout:auto;background-color:#021a30;">
											<tr>
												<xsl:call-template name="recordtable">
													<xsl:with-param name="tds" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/', $thisseason, '/', $thisseason, '_', $selected_file_name))//mainrecord/head/td" />
													<xsl:with-param name="rows" select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/', $thisseason, '/',  $thisseason, '_', $selected_file_name))//mainrecord/rows/row" />
													<xsl:with-param name="table_w" select="345" />
													<xsl:with-param name="table_name" select="'saison'" />
												</xsl:call-template>
											</tr>
										</table>
									<xsl:if test="$lang = 'fr'">
										<a href="#top"><img src="img/top_blue_fr.png" alt="" /></a>
									</xsl:if>
									<xsl:if test="$lang = 'en'">
										<a href="#top"><img src="img/top_blue_en.png" alt="" /></a>
									</xsl:if>
								</td>
							</tr>
						</xsl:if>

					</table>

					<xsl:if test="$is_relatifs = 'true'">
						<br style="line-height:10px;" />
						<!-- TABLEAU DES LIENS VERS DES RECORDS RELATIFS � CELUI AFFICHER -->
						<a name="a3"></a>

						<xsl:if test="$lang = 'fr'">
							<div><img src="img/head_rel_fr.png" /></div>
						</xsl:if>
						<xsl:if test="$lang = 'en'">
							<div><img src="img/head_rel_en.png" /></div>
						</xsl:if>

						<div style="overflow:auto;background-color:#021a30;">
							<xsl:if test="$lang = 'fr'">
								<xsl:for-each select="document( concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/relatifs/', $file_year, '/', $selected_file_name) )//suggestrecord">
									<div style="padding:2px 10px;">
										<a href="javascript:get_other_xml_name('{./@xmlfile}', '{$lang}')">
											<xsl:value-of select="." />
										</a>
									</div>
								</xsl:for-each>
							</xsl:if>

							<xsl:if test="$lang = 'en'">
								<xsl:for-each select="document(concat('/var/www/lhjmq-records.qc.ca/public_html/xsl/records/book/xml/_tableaux/relatifs/', $file_year, '/', $selected_file_name))//suggestrecord_en">
									<div style="padding:2px 10px;">
										<a href="javascript:get_other_xml_name('{./@xmlfile}', '{$lang}')">
											<xsl:value-of select="." />
										</a>
									</div>
								</xsl:for-each>
							</xsl:if>
						</div>

						<xsl:if test="$lang = 'fr'">
							<a href="#top"><img src="img/top_blue_fr.png" alt="" /></a>
						</xsl:if>
						<xsl:if test="$lang = 'en'">
							<a href="#top"><img src="img/top_blue_en.png" alt="" /></a>
						</xsl:if>
					</xsl:if>
				</td>
			</tr>
			<tr>
				<xsl:element name="script"><xsl:attribute name="language">javascript</xsl:attribute>testing('allo');</xsl:element>
				<td style="height:50px;" id="test_value" class="record_font_color"></td>
			</tr>
		</table>


	</xsl:template>

</xsl:stylesheet>