$pos = $valueA[4]; $team_abbr = $valueA[5]; $total_pts = $valueA[6]; $pj_pool = $valueA[7]; $trading_block = $valueA[8]; $team_logo = $valueA[9]; $team_logo2 = $valueA[10]; $url_photo = $valueA[11]; $id_forecaster = $valueA[12]; $salaire_unformatted = $valueA[13]; $birthday = $valueA[14]; $salaire = number_format($salaire_unformatted, 0, ".", ","); $logo2show = "color"; $style_color = ""; // parties nhl et pts nhl du joueur (pas du rang...) $pj_nhl = $pool->getPartiesNHLJoueur($id_pool, $id_saison, $id_player); $pts_nhl = $pool->getPlayerPtsNHL($id_player, $date_debut_saison, $id_saison, $id_pool); // get pj restantes pour le joueur si nécessaire if ($salary_cap_enabled == "Y") { $pj_restantes = $pool->getPlayerPJRestantes($id_pool, $id_saison, $id_player, $periode); } // âge du joueur if ($pos == "TM") { $age = ""; } elseif ($birthday != "0000-00-00") { $_mydate = Datetime::createFromFormat('Y-m-d', $birthday, $pool->timeZone); $age = $_mydate->diff($pool->todayDate)->y; } else { $age = "???"; } if ($gerant_logged == $gerant) {
// GC - Équipes if (count($playersPropGerant_TM) == count($playersPropAdv_TM) && count($playersPropGerant_TM) > 0) { foreach ($playersPropGerant_TM as $index => $dataPlayerGerant) { $id_player_gerant = $dataPlayerGerant['id_player']; $pos_gerant = $dataPlayerGerant['pos']; $pj_gerant = $dataPlayerGerant['pj']; $pts_gerant = $dataPlayerGerant['pts']; $firstName_gerant = $dataPlayerGerant['first_name']; $lastName_gerant = $dataPlayerGerant['last_name']; $logo_gerant = $dataPlayerGerant['logo']; $id_forecaster_gerant = $dataPlayerGerant['id_forecaster']; $trading_block_gerant = $dataPlayerGerant['trading_block']; $salaire_unformatted = $dataPlayerGerant['salary_frozen']; $salaire_gerant = number_format($salaire_unformatted, 0, ".", ","); // parties nhl et pts nhl du joueur (pas du rang...) $pj_nhl = $pool->getPartiesNHLJoueur($id_pool, $id_saison, $id_player_gerant); $pts_nhl = $pool->getPlayerPtsNHL($id_player_gerant, $date_debut_saison, $id_saison, $id_pool); // get pj restantes pour le joueur si nécessaire if ($salary_cap_enabled == "Y") { $pj_restantes = $pool->getPlayerPJRestantes($id_pool, $id_saison, $id_player_gerant, $periode); } if ($pool->isPlayerInjured($id_player_gerant, $pool->today, $id_saison)) { $show_injury_gerant = "<img class=\"injury_icon\" id=\"{$id_player_gerant}\" src=\"/images/red-cross.png\" " . "border=0 width=20 height=20 style=\"padding-top:5px;padding-left:5px;\" /><br>"; } else { $show_injury_gerant = ""; } if ($id_forecaster_gerant > 0) { if ($id_forecaster_gerant < 10) { $id_forecaster_photo_gerant = "000{$id_forecaster_gerant}"; } elseif ($id_forecaster_gerant < 100) { $id_forecaster_photo_gerant = "00{$id_forecaster_gerant}";