$rang = $item['rang']; $logo = $item['logo']; $pj = $item['pj']; $wins = $item['wins']; $losses = $item['losses']; $ties = $item['ties']; $pts = $item['pts']; $gf = $item['pts_pour']; $ga = $item['pts_contre']; $id_team = $item['id_team']; $siteWeb = $item['siteWeb']; $special_mark = $item['special_mark']; $magic_number = $item['magic_number']; $id_player = $item['id_player']; $fiche = "{$wins}-{$losses}-{$ties}"; $last10_streak = $pool->getTOIequipe($id_saison, $id_player, $id_team); list($last_10, $streak_tmp) = split("\\(", $last10_streak); list($streak, $toto) = split("\\)", $streak_tmp); $owner = $pool->getOwnerNHLTeam($id_pool, $id_saison, $id_team); if ($owner == "") { $owner = "pas de propriétaire..."; } if ($rang == 9) { echo "<tr><td class=\"tableCell9\" colspan=10><hr width=\"98%\"></hr></td></tr>\n"; } echo "<tr>\n"; echo "<TD class=\"tableCell4\" align=\"center\">{$rang}</TD>\n"; echo "<TD align=\"left\">"; echo "<font style=\"vertical-align:50%;padding-right:4px;\">{$special_mark}</font>"; if ($siteWeb == "") { echo "<img src=\"{$logo}\" width=23 height=23 onmouseover=\"ddrivetip('{$owner}','100');\" onmouseout=\"hideddrivetip();\">";
$hot = $valueA[33]; $cold = $valueA[34]; $hot_comment = $valueA[35]; $cold_comment = $valueA[36]; $team_logo2 = $valueA[37]; echo "<INPUT TYPE=\"HIDDEN\" ID=\"idPlayerRang{$rank}\" VALUE=\"{$id_player}\"/>"; echo "<INPUT TYPE=\"HIDDEN\" ID=\"teamLogoActif{$rank}\" VALUE=\"{$team_logo}\"/>"; echo "<INPUT TYPE=\"HIDDEN\" ID=\"teamLogoInactif{$rank}\" VALUE=\"{$team_logo2}\"/>"; // prédictions $prediction_pts = $pool->predictionPtsJoueur2($id_pool, $id_saison, $periode, $periode_sel2, $id_player, $team_id); if ($actif == "Y") { $total_pts_prediction += $prediction_pts; } // Time On Ice if ($pos == "TM" || $periode_sel2 < $periode) { $fiche = $pool->getTOIequipe($id_saison, $id_player, $team_id); // pour la compatibilité du code... $toi_moy = $fiche; } elseif ($pos == "G") { $nbre_departs = 0; $toiA = $pool->getTOIgardien($id_saison, $id_player, $team_id); if (count($toiA) > 0) { foreach ($toiA as $toi_date => $value) { if ($value != "Pas joué") { $nbre_departs++; } } $toi_moy = "{$nbre_departs} / 5"; } else { $toi_moy = "-"; }