echo "<TD class=\"tableCellRidge1\" NOWRAP align='center'>-</TD>\n"; echo "<TD class=\"tableCellRidge2\" NOWRAP align='center'>-</TD>\n"; echo "</TR>\n"; } if ($pool->isEven($row_compteur)) { echo "<TR onmouseover=\"setPointer3(this,'over','#266494','transparent','white');\" " . "onmouseout=\"setPointer3(this,'out','#266494','transparent','black','');\">\n"; } else { echo "<TR onmouseover=\"setPointer3(this,'over','#266494','transparent','white');\" " . "onmouseout=\"setPointer3(this,'out','#266494','transparent','black','');\">\n"; } if ($nbre_fois_dans_boucle == 1) { echo "<TD class=\"tableCellRidge1\" NOWRAP align='center'>{$rank}</TD>\n"; } else { echo "<TD class=\"tableCellRidge1\" NOWRAP align='center'>-</TD>\n"; } if ($pool->isPlayerInjured($id_player, $date_injury, $id_saison)) { $data = $pool->getInjuredPlayerDetail($id_player, $date_injury, $id_saison); $str = explode(":", $data); $tip = "En date du " . $str[3] . "<br/><br/><B>Blessure</B>: " . $str[0] . "<br/><B>Status</B>: " . $str[1] . "<br/><B>Retour au jeu</B>: " . $str[2]; $tip = str_replace("'", "\\'", $tip); echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;color:red;\">" . "<a class=\"player\" id=\"{$id_player}\" >" . "<font style=\"vertical-align:40%;\">{$playerInfoA['first_name']} {$playerInfoA['last_name']}</font></a>" . "<img class=\"injury_icon\" id=\"{$id_player}\" src=\"/images/red-cross.png\" border=0 width=20 height=20 />"; echo "</TD>\n"; } else { $dataA = $pool->isPlayerInjuredForce($id_pool, $periode_sel, $periode, $gerant_sel, $rank, $id_saison, $id_player); $force_injury = $dataA["force_injury"]; $force_injury_raison = $dataA["force_injury_raison"]; if ($force_injury == "Y") { $tip = $force_injury_raison; echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;color:red;\">" . "<a class=\"player\" id=\"{$id_player}\">" . "<font style=\"vertical-align:40%;\">{$playerInfoA['first_name']} {$playerInfoA['last_name']}</font></a>" . "<img class=\"injury_icon\" id=\"{$id_player}\" src=\"/images/red-cross.png\" border=0 width=20 height=20 />"; echo "</TD>\n"; } else { if ($playerInfoA['pos'] != "TM") {
foreach ($liste_joueurs_gerant1A as $key => $value) { if ($value == "") { continue; } $playerInfoA = $pool->getPlayerInfoForTrade($value, $periode, $id_pool, $id_saison, $id_gerant1); $first_name = $playerInfoA["first_name"]; $last_name = $playerInfoA["last_name"]; $pos = $playerInfoA["pos"]; $city = $playerInfoA["city"]; $team_name = $playerInfoA["name"]; $team_logo = $playerInfoA["image"]; $team_link = $playerInfoA["team_link"]; $points = $playerInfoA["points"]; echo "<tr>\n"; if ($pool->isPlayerInjured($value, $pool->today, $id_saison)) { $data = $pool->getInjuredPlayerDetail($value, $pool->today, $id_saison); $str = explode(":", $data); $tip = "En date du " . $str[3] . "<br/><br/><B>Blessure</B>: " . $str[0] . "<br/><B>Status</B>: " . $str[1] . "<br/><B>Retour au jeu</B>: " . $str[2]; $tip = str_replace("'", "\\'", $tip); echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;color:red;\">" . "<FONT onmouseover=\"ddrivetip('" . $tip . "','200','');\" onmouseout=\"hideddrivetip()\">" . "{$first_name} {$last_name}</FONT>"; } else { echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">" . "{$first_name} {$last_name}"; } echo "</td>\n"; echo "<td class=\"tableCellRidge1\" style=\"padding-left:5px;padding-right:5px;\">{$pos}</td>\n"; echo "<TD class=\"tableCellRidge1\" align='center' width=65 height=35 NOWRAP>" . "<A href=\"{$team_link}\" TARGET=\"_BLANK\">" . "<IMG src=\"{$team_logo}\" BORDER=0 style=\"{$vertical_align}\"/></A></TD>\n"; echo "<td class=\"tableCellRidge2\" align='center' style=\"padding-left:5px;padding-right:5px;\">{$points}</td>\n"; echo "</tr>\n"; } echo "<tr><td class=\"tableCellRidge7\" colspan=50> </td></tr>\n"; echo "</TABLE>\n";
echo "<th nowrap class=\"face2face_2\"></th>\n"; echo "<th nowrap class=\"face2face_2\">Tot.</th>\n"; echo "<th nowrap class=\"face2face_2\"></th>\n"; echo "<th nowrap class=\"face2face_2\">Pts</th>\n"; echo "<th nowrap class=\"face2face_2\"></th>\n"; echo "</tr>\n"; $nbre_rows = count($dataGerant1); for ($index = 0; $index < $nbre_rows; $index++) { $my_data_gerant1 = $dataGerant1[$index]; list($id_player_ger1, $first_name_ger1, $last_name_ger1, $pos_ger1, $logo_ger1, $team_url_ger1, $injured_ger1, $force_injury_ger1, $force_injury_raison_ger1, $play_tonight_ger1, $played_yest_ger1, $match_no_ger1, $pts_match1_ger1, $pts_match2_ger1, $pts_match3_ger1, $pts_match4_ger1, $pts_match5_ger1, $pts_match6_ger1, $pts_match7_ger1) = split(";", $my_data_gerant1); $str_live_pts = $pool->playoffs_getLivePts($id_player_ger1); list($id_team, $live_pts, $en_cours, $gm_finished, $team_goals, $adv_goals, $temps_ecoule) = split(";", $str_live_pts); echo "<tr class=\"face2face_Even\">\n"; // Gérant 1 if ($injured_ger1 == "Y") { $data = $pool->getInjuredPlayerDetail($id_player_ger1, $pool->today, $id_saison); $str = explode(":", $data); $tip = "En date du " . $str[3] . "<br/><br/><B>Blessure</B>: " . $str[0] . "<br/><B>Status</B>: " . $str[1] . "<br/><B>Retour au jeu</B>: " . $str[2]; echo "<TD NOWRAP style=\"padding-left:5px;padding-right:5px;color:red;\">" . "<FONT onmouseover=\"ddrivetip('" . $tip . "','200','')\" onmouseout=\"hideddrivetip()\">" . "{$first_name_ger1} {$last_name_ger1}</FONT>"; } else { if ($force_injury == "Y") { $tip = $force_injury_raison; echo "<TD NOWRAP style=\"padding-left:5px;padding-right:5px;color:red;\">" . "<FONT onmouseover=\"ddrivetip('" . $tip . "','200','')\" onmouseout=\"hideddrivetip()\">" . "{$first_name_ger1} {$last_name_ger1}</FONT>"; } else { if ($pos_ger1 != "TM") { echo "<TD NOWRAP style=\"padding-left:5px;padding-right:5px;{$style_color_play_tonight_ger1};\">{$first_name_ger1} {$last_name_ger1}"; } else { echo "<TD NOWRAP style=\"padding-left:5px;padding-right:5px;{$style_color_play_tonight_ger1};\">{$last_name_ger1} {$first_name_ger1}"; } } }
<?php require_once '../../class.interpool.php'; $pool = new interPool(); $pool->dbConnect(); $id_player = $_GET["id_player"]; // pour les accents français //header("Content-Type:application/xhtml+xml; charset=ISO-8859-1"); $data = $pool->getInjuredPlayerDetail($id_player, $pool->today, 0); $str = explode(":", $data); echo "<table border=0 cellpadding=3 cellspacing=0>\n"; echo "<tr>\n"; echo "<td><img src=\"/interPool/images/red-cross.png\" border=0 width=75px height=75px /></td>\n"; echo "<td style=\"vertical-align:top;\">\n"; echo "<table border=0 cellpadding=3 cellspacing=0>\n"; echo "<tr>\n"; echo "<td align='left'><strong>Date</strong>: " . $str[3] . "</td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td><strong>Blessure</strong>: " . $str[0] . "</td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td><strong>Status</strong>: " . $str[1] . "</td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td><strong>Retour</strong>: " . $str[2] . "</td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td><strong>Commentaire</strong>: " . $str[4] . "</td>\n"; echo "</tr>\n"; echo "</table>\n";
// je n'affiche pas l'alert box de la case à cocher 'réactiver'. if ($player_IRA[6] < $pool->today) { echo "<INPUT TYPE=\"checkbox\" id=\"reactiverBox\" NAME=\"reactiver[]\" value=\"" . $player_IRA[0] . "-" . $player_remplacantA[0] . "\" " . "{$disabled_reactiver} onClick=\"if (this.checked) {alert('{$str_message}');}\"/>"; } else { echo "<INPUT TYPE=\"checkbox\" id=\"reactiverBox\" NAME=\"reactiver[]\" value=\"" . $player_IRA[0] . "-" . $player_remplacantA[0] . "\" " . "{$disabled_reactiver} />"; } echo "</TD>\n"; echo "<TD class=\"tableCellRidge1\" style=\"padding:0 0 0 0;\"> </TD>\n"; // Joueur remplaçant // latest news du joueur unset($latestNewsA); if ($pos != "TM") { $latestNewsA = $pool->getPlayerLatestNews($id_pool, $id_saison, $gerant, $player_remplacantA[0]); } if ($pool->isPlayerInjured($player_remplacantA[0], $date_injury, $id_saison)) { $data = $pool->getInjuredPlayerDetail($player_remplacantA[0], $date_injury, $id_saison); $str = explode(":", $data); $tip = "En date du " . $str[3] . "<br/><br/><B>Blessure</B>: " . $str[0] . "<br/><B>Status</B>: " . $str[1] . "<br/><B>Retour au jeu</B>: " . $str[2]; $tip = str_replace("'", "\\'", $tip); echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">\n\t\t\t\t\t <a href=\"a\" class=\"playerIR\" id=\"player{$player_remplacantA['0']}\" style=\"color:red;\">\n\t\t\t\t\t <FONT onmouseover=\"ddrivetip('" . $tip . "','200','');this.style.cursor='pointer';\"\n\t\t\t\t\t onmouseout=\"hideddrivetip();\">\n\t\t\t\t\t\t {$player_remplacantA['1']}</FONT></a>"; } else { $dataA = $pool->isPlayerInjuredForce($id_pool, $periode_sel, $periode, $gerant_sel, $player_remplacantA[6], $id_saison, $player_remplacantA[0]); $force_injury = $dataA[0]; $force_injury_raison = $dataA[1]; if ($force_injury == "Y") { $tip = $force_injury_raison; echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">\n\t\t\t\t\t\t <a href=\"a\" class=\"playerIR\" id=\"player{$player_remplacantA['0']}\" style=\"color:red;\">\n\t\t\t\t\t\t <FONT onmouseover=\"ddrivetip('" . $tip . "','200','');this.style.cursor='pointer';\"\n\t\t\t\t\t\t onmouseout=\"hideddrivetip();\">\n\t\t\t\t\t\t {$player_remplacantA['1']}</FONT></a>"; } else { echo "<TD class=\"tableCellRidge1\" NOWRAP style=\"padding-left:5px;padding-right:5px;\">\n\t\t\t\t\t\t <a href=\"a\" class=\"playerIR\" id=\"player{$player_remplacantA['0']}\">\n\t\t\t\t\t\t {$player_remplacantA['1']}</a>"; } }