Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.17.183.187
<?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:param name="xml_file_name" />
<xsl:param name="hist_xml_path" select="'../hist/'" />
<xsl:param name="lang" />
<xsl:param name="status_type" />
<xsl:param name="id_xml" select="substring-after($xml_file_name, '/')"/>
<xsl:param name="id_equipe" />
<xsl:param name="seasonsid" />
<xsl:param name="currentseason" />
<xsl:param name="preselection" />
<xsl:param name="season" select="document('../../records/book/xml/saisons.xml')//items0/item[@seasonregid = $currentseason]/@label" />
<xsl:param name="seasonfrom" select="document('../../records/book/xml/saisons.xml')//items0/item[@seasonregid = $currentseason]/@from" />
<xsl:param name="playoffsid" select="document('../../records/book/xml/saisons.xml')//items0/item[@seasonregid = $currentseason]/@seasonplayoffid" />
<xsl:template match="/">
<div style="overflow-x:scroll; width:591px; overflow-y:none;" id="table_content" name="table_content">
<xsl:if test="$xml_file_name != 'false'">
<xsl:variable name="anchors_total">
<xsl:if test="$lang = 'fr'">
<xsl:value-of select="count(document(concat($hist_xml_path, $xml_file_name))//anchors/anchor)" />
</xsl:if>
<xsl:if test="$lang = 'en'">
<xsl:value-of select="count(document(concat($hist_xml_path, $xml_file_name))//anchors/anchor_en)" />
</xsl:if>
</xsl:variable>
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr><td height="10"></td></tr>
<tr>
<xsl:if test="$lang = 'fr'">
<xsl:for-each select="document(concat($hist_xml_path, $xml_file_name))//anchors/anchor">
<td align="center" class="blackText10px darkTableBg">
<a id="{concat('id_', 'anchor_', @reftable)}" href="{concat('#', 'anchor_', @reftable)}" class="subtab" onClick="change_tab_color(this, {$anchors_total})" >
<xsl:value-of select="." />
</a>
</td>
</xsl:for-each>
</xsl:if>
<xsl:if test="$lang = 'en'">
<xsl:for-each select="document(concat($hist_xml_path, $xml_file_name))//anchors/anchor_en">
<td align="center" class="blackText10px darkTableBg">
<a id="{concat('id_', 'anchor_', @reftable)}" href="{concat('#', 'anchor_', @reftable)}" class="subtab" onClick="change_tab_color(this, {$anchors_total})">
<xsl:value-of select="." />
</a>
</td>
</xsl:for-each>
</xsl:if>
</tr>
<tr><td height="10"></td></tr>
</table>
<xsl:for-each select="document(concat($hist_xml_path, $xml_file_name))//table">
<xsl:variable name="anchors" select="concat('anchor_', @reftable)" />
<a name="{$anchors}"></a>
<table cellpadding="4" cellspacing="0" border="0" id="hist_table" width="100%" style="border-collapse:collapse;">
<tr>
<td colspan="60" class="xsl_table_sub_title">
<div class="less_margin_left">
<xsl:if test="$lang = 'fr'">
<xsl:value-of select="head_title" />
</xsl:if>
<xsl:if test="$lang = 'en'">
<xsl:value-of select="head_title_en" />
</xsl:if>
</div>
</td>
</tr>
<xsl:if test="head_title_sub">
<tr>
<td colspan="60" class="xsl_table_sub_sub_title">
<div class="less_margin_left">
<xsl:if test="$lang = 'fr'">
<xsl:value-of select="head_title_sub" />
</xsl:if>
<xsl:if test="$lang = 'en'">
<xsl:value-of select="head_title_sub_en" />
</xsl:if>
</div>
</td>
</tr>
</xsl:if>
<tr>
<xsl:if test="$lang = 'fr'">
<xsl:for-each select="cols_title/td">
<td class="whiteText10px darkTableBg" style="font-weight:bold;padding:5px; colo:#ffffff; border-right:1px solid #ffffff;" title="{.}" align="center">
<xsl:value-of select="@abrv" />
</td>
</xsl:for-each>
</xsl:if>
<xsl:if test="$lang = 'en'">
<xsl:for-each select="cols_title/td_en">
<td class="whiteText10px darkTableBg" style="font-weight:bold;padding:5px; colo:#ffffff; border-right:1px solid #ffffff;" title="{.}" align="center">
<xsl:value-of select="@abrv" />
</td>
</xsl:for-each>
</xsl:if>
</tr>
<xsl:for-each select="row">
<xsl:variable name="bgcolor">
<xsl:choose>
<xsl:when test="position() mod 2 = 1">
<xsl:text>xsl_table_row_light</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>xsl_table_row_dark</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr>
<xsl:if test="$lang = 'fr'">
<xsl:for-each select="td">
<xsl:choose>
<xsl:when test="@lid">
<xsl:variable name="status_type">
<xsl:choose>
<xsl:when test="@status = 1">
<xsl:text>&status_type=1</xsl:text>
</xsl:when>
<xsl:when test="@status = 2">
<xsl:text>&status_type=2</xsl:text>
</xsl:when>
<xsl:when test="@status = 3">
<xsl:text>&status_type=3</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>&status_type=1</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="link_leaguestats">
<xsl:choose>
<xsl:when test="@lscid != ''">
<xsl:text>/coaches/</xsl:text>
</xsl:when>
<xsl:when test="@lsid != ''">
<xsl:text>/players/</xsl:text>
</xsl:when>
<xsl:when test="@lspid != ''">
<xsl:text>/people/</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text></xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<td title="{.}" class="blackText10px {$bgcolor} hist_table_align" style="border:1px solid #ffffff;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding-right:5px;" align="center">
<!--<a href="./index.php?page=2147483647&currentseason={$currentseason}&id_register={@lid}{$status_type}&lscid={@lscid}&lsid={@lsid}&lspid={@lspid}" class="blackText10px" target="_blank" style="color:#000000;">//-->
<!-- <img src="/create_on_demand.php?type=icon&id_register={@lid}&lang={$lang}" width="32" height="32" border="0"/> -->
<a href="https://chl.ca/lhjmq{$link_leaguestats}{@lscid}{@lsid}{@lspid}" class="blackText10px" target="_blank" style="color:#000000;">
<!--<img src="/images/icons/{@lid}.jpg" width="32" height="32" border="0"/>//-->
<img src="../create_image_on_demand_ls.php?id_register={@lid}&type=1" width="32" height="32" border="0"/>
</a>
</td>
<td align="center">
<!--<a href="./index.php?page=2147483647&currentseason={$currentseason}&id_register={@lid}{$status_type}&lscid={@lscid}&lsid={@lsid}&lspid={@lspid}" class="blackText10px" target="_blank" style="color:#000000;">//-->
<a href="https://chl.ca/lhjmq{$link_leaguestats}{@lscid}{@lsid}{@lspid}" class="blackText10px" target="_blank" style="color:#000000;">
<nobr><xsl:value-of select="@abrv" /></nobr>
</a>
</td>
</tr>
</table>
</td>
</xsl:when>
<xsl:otherwise>
<td title="{.}" class="blackText10px {$bgcolor} hist_table_align" align="center" style="border:1px solid #ffffff;">
<nobr><xsl:value-of select="@abrv" /></nobr>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:if>
<xsl:if test="$lang = 'en'">
<xsl:for-each select="td_en">
<xsl:choose>
<xsl:when test="@lid">
<xsl:variable name="status_type">
<xsl:choose>
<xsl:when test="@status = 1">
<xsl:text>&status_type=1</xsl:text>
</xsl:when>
<xsl:when test="@status = 2">
<xsl:text>&status_type=2</xsl:text>
</xsl:when>
<xsl:when test="@status = 3">
<xsl:text>&status_type=3</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>&status_type=1</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="link_leaguestats">
<xsl:choose>
<xsl:when test="@lscid != ''">
<xsl:text>/coaches/</xsl:text>
</xsl:when>
<xsl:when test="@lsid != ''">
<xsl:text>/players/</xsl:text>
</xsl:when>
<xsl:when test="@lspid != ''">
<xsl:text>/people/</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text></xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<td title="{.}" class="blackText10px {$bgcolor} hist_table_align" style="border:1px solid #ffffff;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" style="padding-right:5px;">
<!--<a href="./index.php?page=2147483647&currentseason={$currentseason}&id_register={@lid}{$status_type}&lscid={@lscid}&lsid={@lsid}&lspid={@lspid}" class="blackText10px" target="_blank" style="color:#000000;">//-->
<a href="https://chl.ca/lhjmq/en{$link_leaguestats}{@lscid}{@lsid}{@lspid}" class="blackText10px" target="_blank" style="color:#000000;">
<!-- <img src="/create_on_demand.php?type=icon&id_register={@lid}&lang={$lang}" width="32" height="32" border="0"/> -->
<!--<img src="/images/icons/{@lid}.jpg" width="32" height="32" border="0"/>//-->
<img src="../create_image_on_demand_ls.php?id_register={@lid}&type=1" width="32" height="32" border="0"/>
</a>
</td>
<td align="center">
<!--<a href="./index.php?page=2147483647&currentseason={$currentseason}&id_register={@lid}{$status_type}&lscid={@lscid}&lsid={@lsid}&lspid={@lspid}" class="blackText10px" target="_blank" style="color:#000000;">//-->
<a href="https://chl.ca/lhjmq/en{$link_leaguestats}{@lscid}{@lsid}{@lspid}" class="blackText10px" target="_blank" style="color:#000000;">
<nobr><xsl:value-of select="@abrv" /></nobr>
</a>
</td>
</tr>
</table>
</td>
</xsl:when>
<xsl:otherwise>
<td title="{.}" class="blackText10px {$bgcolor} hist_table_align" align="center" style="border:1px solid #ffffff;">
<nobr><xsl:value-of select="@abrv" /></nobr>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:if>
</tr>
</xsl:for-each>
<tr class="darkTableBg whiteText10px" style="font-weight:bold;">
<td colspan="60">
<xsl:if test="$lang = 'fr'">
<a href="#top" style="color:#ffffff; font-weight:bold;">
Haut de page
</a>
</xsl:if>
<xsl:if test="$lang = 'en'">
<a href="#top" style="color:#ffffff; font-weight:bold;">
Top
</a>
</xsl:if>
</td>
</tr>
<tr height="25"><td></td></tr>
</table>
</xsl:for-each>
</xsl:if>
</div>
</xsl:template>
</xsl:stylesheet>
|