Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 13.59.217.1
<?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);
$franchisname = @mysql_fetch_assoc(@mysql_query($sql = "SELECT name FROM `equipes` WHERE `id_equipe` ='".$id_equipe."'", $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 />
<table cellpadding="0" cellspacing="0" border="0" width="598" style="background:url(/images/players/bg_sub.png) top no-repeat;height:40px;" align="center">
<tr>
<td valign="top" align="center">
<div id="menu-tab-page" class="tab-page">
<h2 class="tab">
<a href="index.php?page=8392&id_equipe=<?= $id_equipe ?>¤tseason=<?= $season['id'] ?>" onfocus="if (this.blur)this.blur()" class="<?= $_REQUEST[page] == '8392' ? 'color1' : 'color2' ?>">Roster</a
><span> | </span><a href="index.php?page=19337&id_equipe=<?= $id_equipe ?>¤tseason=<?= $season['id'] ?>" onfocus="if (this.blur)this.blur()" class="<?= $_REQUEST[page] == '19337' ? 'color1' : 'color2' ?>">Arena</a
><span> | </span><a href="index.php?page=306836&id_equipe=<?= $id_equipe ?>¤tseason=<?= $season['id'] ?>" onfocus="if (this.blur)this.blur()" class="<?= $_REQUEST[page] == '306836' ? 'color1' : 'color2' ?>">Staff</a
><span> | </span><a href="index.php?page=27844&id_equipe=<?= $id_equipe ?>¤tseason=<?= $season['id'] ?>" onfocus="if (this.blur)this.blur()" class="<?= $_REQUEST[page] == '27844' ? 'color1' : 'color2' ?>">History</a
><span> | </span><a href="index.php?page=74620&id_equipe=<?= $id_equipe ?>¤tseason=<?= $season['id'] ?>" onfocus="if (this.blur)this.blur()" class="<?= $_REQUEST[page] == '74620' ? 'color1' : 'color2' ?>">Stats / Records</a
><span> | </span><a href="index.php?page=238934&id_equipe=<?= $id_equipe ?>¤tseason=<?= $season['id'] ?>" onfocus="if (this.blur)this.blur()" class="<?= $_REQUEST[page] == '238934' ? 'color1' : 'color2' ?>">Entry Draft</a
><span> | </span><a href="index.php?page=2210549&id_equipe=<?= $id_equipe ?>¤tseason=<?= $season['id'] ?>" onfocus="if (this.blur)this.blur()" class="<?= $_REQUEST[page] == '2210549' ? 'color1' : 'color2' ?>">Trades</a
><span> | </span><a href="index.php?page=127435&id_equipe=<?= $id_equipe ?>¤tseason=<?= $season['id'] ?>" onfocus="if (this.blur)this.blur()" class="<?= $_REQUEST[page] == '127435' ? 'color1' : 'color2' ?>">Attendance</a>
</h2>
</div>
</td>
</tr>
</table>
<br style="line-height:5px;" />
<?php
if (isset($_GET['currentseason']) && $_GET['currentseason'] != ""){
$seasons = season_get($mysql_link, $_GET['currentseason']);
//Get the team data
//$equipe = team_get_data($mysql_link, $id_equipe, $seasons['date_start']);
if ($showcheckplayers == "true"){
$equipe = team_get_data($mysql_link, $id_equipe, date('Y-m-d'));
}
else
{
$equipe = team_get_data($mysql_link, $id_equipe, $seasons['date_start']);
}
$nearest_reg_season = $seasons;
$id_reg_saison = $_GET['currentseason'];
$nearest_pyf_season = playoff_get($mysql_link, $seasons['date_start'], $seasons['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'));
}
?>
<table width="595" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="175">
<div style="background:url(/images/team/bg_team.jpg) no-repeat;width:180px;height:140px;"><img src="<?php echo $equipe[$id_equipe][hist_pic168x127]; ?>" width="168" height="127"></div>
</td>
<td style="padding:0 10px 0 10px;" id="team_info">
<p><span style="font-size:18px;"><b><?php echo $equipe[$id_equipe]['sys_arena_data'][nom]; ?></b></span></p>
<p class="blackText11px"><?php echo $equipe[$id_equipe][hist_contact_address]; ?>, <?php echo $equipe[$id_equipe][hist_contact_city]; ?><br />
<?php echo $equipe[$id_equipe][hist_contact_province]; ?>, <?php echo $equipe[$id_equipe][hist_contact_country]; ?>, <?php echo $equipe[$id_equipe][hist_contact_postalcode]; ?>
</p>
<?php
if ($showcheckplayers == "true") {
?>
<p class="blackText11px"> Phone: <?php echo $equipe[$id_equipe][hist_contact_tel]; ?><br />
<?php
if ($equipe[$id_equipe][hist_contact_fax] != "") {
?>
Fax: <?php echo $equipe[$id_equipe][hist_contact_fax]; ?><br />
<?php
}
if ($equipe[$id_equipe][hist_contact_email] != "") {
?>
<a href="mailto:<?php echo $equipe[$id_equipe][hist_contact_email]; ?>" class="lnkBase10px"><?php echo $equipe[$id_equipe][hist_contact_email]; ?></a></p>
<?php
}
}
if ($equipe[$id_equipe][hist_couleur_fr] != "") { ?>
<p class="blackText11px">Team Colours<br />
<b><?php echo $equipe[$id_equipe][hist_couleur_en]; ?></b>
</p>
<?php } ?>
</td>
<td width="188" align="right" rowspan="2">
<?php
$calendarlink = "index.php?page=234342412&calendar_mode=0&id_type_cal=0&browse_mode=1&id_saison=".$id_reg_saison."&startdate=".substr($nearest_reg_season['date_start'], 0, 10)."&enddate=".substr($nearest_reg_season['date_end'], 0, 10)."&id_equipe=" . $equipe[$id_equipe][hist_parent] . "&teammode=1";
$calendarserielink = "index.php?page=234342412&calendar_mode=0&id_type_cal=2&browse_mode=1&id_saison=".$id_pyf_saison."&startdate=".substr($nearest_pyf_season['date_start'], 0, 10)."&enddate=".substr($nearest_pyf_season['date_end'], 0, 10)."&id_equipe=" . $equipe[$id_equipe][hist_parent] . "&teammode=1";
$resultlink = "index.php?page=234342412&calendar_mode=1&id_type_cal=0&browse_mode=1&id_saison=".$id_reg_saison."&startdate=".substr($nearest_reg_season['date_start'], 0, 10)."&enddate=".substr($nearest_reg_season['date_end'], 0, 10)."&id_equipe=" . $equipe[$id_equipe][hist_parent] . "&teammode=1";
$resultserielink = "index.php?page=234342412&calendar_mode=1&id_type_cal=2&browse_mode=1&id_saison=".$id_pyf_saison."&startdate=".substr($nearest_pyf_season['date_start'], 0, 10)."&enddate=".substr($nearest_pyf_season['date_end'], 0, 10)."&id_equipe=" . $equipe[$id_equipe][hist_parent] . "&teammode=1";
$albumlink = "index.php?page=44444&equipe=" . $equipe[$id_equipe][hist_parent];
?>
<ul class="menu_team" style="">
<?php if ($showcheckplayers == "true") {
if ($equipe[$id_equipe][hist_contact_web_site] != "") { ?>
<li class="menu_team_top"><a href="#" onClick="MM_openBrWindow('<?= $equipe[$id_equipe][hist_contact_web_site] ?>','LHJMQteamsite','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=600,height=400')" onFocus="if (this.blur)this.blur()">Official Website</a></li>
<?php } ?>
<li class="menu_team_main"><a href="<?= $calendarlink ?>¤tseason=<?= $id_reg_saison ?>">Regular Season Schedule</a></li>
<li class="menu_team_main"><a href="<?= $calendarserielink ?>">Playoffs Schedule</a></li>
<? } ?>
<li class="menu_team_main"><a href="<?= $resultlink ?>">Regular Season Results</a></li>
<li class="menu_team_main"><a href="<?= $resultserielink ?>">Playoffs Results</a></li>
<li class="menu_team_main"><a href="<?= $albumlink ?>">Photo Album</a></li>
<?php
if ($showcheckplayers == "true") {
?>
<li class="menu_team_bottom"><a href="index.php?page=934584342#<?= strtolower($equipe[$id_equipe][hist_abbrev]) ?>">Box Office</a></li>
<?
}
?>
</ul>
<br />
<div style="background:url(/images/team/bg_franchise.jpg) no-repeat;width:188px;height:90px;">
<div align="center" style="padding:30px 10px 0 5px;">
<table>
<tr>
<td>
<div style="font-size:10px;color:#fff;"><?php echo $franchisname['name'];?></div>
</td>
</tr>
</table>
<form name="francform" method="get" style="margin:0;">
<select name="currentseason" onchange="javascript:francform.submit();" style="font-size:10px;width:85%;">
<?
while ($franchisid = @mysql_fetch_assoc($franchisids)) {
$fBeginYear = substr($franchisid['date_start'], 0, 4);
$fEndYear = substr($franchisid['date_end'], 0, 4);
?>
<option value="<?php echo $franchisid['id'];?>" <?php if ($season['id'] == $franchisid['id']) { echo "selected"; }?> ><?php echo $fBeginYear.'-'.$fEndYear;?></option>
<?
}
?>
</select>
<input type="hidden" name="id_equipe" value="<?php echo $id_equipe;?>">
<input type="hidden" name="page" value="<?php echo $_GET['page'];?>">
</form>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="2" valign="top">
<hr style="color:#4d4d4d;background-color:#4d4d4d;height:1px;border:0;margin-right:20px;" />
<br style="line-height:5px;" />
<div style="background:url(/images/team/bg_arena.jpg) no-repeat;width:290px;height:190px;padding:10px 0 0 10px;margin-bottom:0px;">
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<?php if($equipe[$id_equipe]['sys_arena_data']['photo'] != ''){ ?>
<img src="<?php echo $equipe[$id_equipe]['sys_arena_data']['photo']; ?>" border="0" style="border:1px solid #4d4d4d;" />
<?php } ?>
</td>
</tr>
</table>
</div>
<div style=""><p class="blackText11px">Rink Dimensions: <?php echo $equipe[$id_equipe]['sys_arena_data'][dimension]; ?><br>
Seating Capacity: <?php echo $equipe[$id_equipe]['sys_arena_data'][capacite_assise]; ?><br>
Total Capacity: <?php echo $equipe[$id_equipe]['sys_arena_data'][capacite_totale]; ?></p></div>
</td>
</tr>
</table>
</div>
<div style="background-color:#ececec; height:500px;"> </div>
<?php
$footer_top_margin = 0;
$footer_background_color = '#ececec';
?>
|