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.144.227.73


Current Path : /var/www/lhjmq-records.qc.ca/public_html/lang_fr/links/
Upload File :
Current File : /var/www/lhjmq-records.qc.ca/public_html/lang_fr/links/teams.php

<?php
//Get the structure in date of today and show the teams in league 1
$struct = struct_get_tree($mysql_link, NULL, date('Y-m-d'));
$lhjmq_struct = $struct['leagues'][1];
unset($struct);
?>
<table width="631" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td> 
      <!--TITRE DE PAGE -->
			<br>
      <!--CONTENU -->
			<table width="621" border="0" cellspacing="0" cellpadding="3" class="outlinetab">
				<?php walk_drawlist($lhjmq_struct); ?>
      </table>
      <br>
      <table width="621" border="0" cellspacing="0" cellpadding="0" bgcolor="#546085">
        <tr> 
          <td><img src="../../images/spacer.gif" width="621" height="1"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<?php
function walk_drawlist($nodes){
	global $irow;
	//print_r(func_get_args());
	foreach($nodes as $node){
		if(isset($node['sys_struct_data']) && isset($node['sys_node_data'])){
			if($node['sys_struct_data']['struct_type'] == STRUCT_LIGUE_LEAGUE_NODE){
				walk_drawlist($node, $id_equipe);
			}elseif($node['sys_struct_data']['struct_type'] == STRUCT_LIGUE_CONF_NODE || $node['sys_struct_data']['struct_type'] == STRUCT_LIGUE_DIV_NODE){
				echo '<TR class="blackText9px list'.(($irow++ % 2)+1).'Reg"><TD><B>'.$node['sys_struct_data']['struct_nodename_fr'].'</B></TD><TD>&nbsp;</TD></TR>';
				walk_drawlist($node, $id_equipe);
			}elseif($node['sys_struct_data']['struct_type'] == STRUCT_LIGUE_TEAM_NODE){
				echo '<TR class="blackText9px list'.(($irow++ % 2)+1).'Reg">';
				echo '<TD>'.$node['sys_node_data']['hist_city'].', '.$node['sys_node_data']['hist_name'].'</TD>';
				if($node['sys_node_data']['hist_contact_web_site'] != ''){
					echo '<TD><A href="'.(substr($node['sys_node_data']['hist_contact_web_site'], 0, 7) != 'http://' ? 'http://' : '').$node['sys_node_data']['hist_contact_web_site'].'" class="lnkBase9px">'.$node['sys_node_data']['hist_contact_web_site'].'</A></TD>';
				}else{
					echo '<TD>&nbsp;</TD>';
				}
				echo '</TR>';
			}
		}else{
		}
	}
}
?>