Пример #1
0
$id_saison = $_GET["id_saison"];
$type = $_GET["type"];
$gerant = $_GET["gerant"];
$gerant_sel = $gerant;
$poolName = $_GET["poolName"];
$pool->dbConnect(strtolower($poolName));
// pour les accents français
header("Content-Type:application/xhtml+xml; charset=ISO-8859-1");
echo "<table cellpadding=0 cellspacing=0 border=0 width=100%>\n";
echo "<tr>\n";
echo "<td class=\"tableCellBold1\" style=\"padding-top:3px;padding-bottom:3px;\">Rg</td>\n";
echo "<td class=\"tableCellBold3\" style=\"padding-top:3px;padding-bottom:3px;\">Joueur</td>\n";
echo "<td class=\"tableCellBold3\" style=\"padding-top:3px;padding-bottom:3px;\">Pts</td>\n";
echo "<td class=\"tableCellBold4\" style=\"padding-top:3px;padding-bottom:3px;padding-left:10px;\">À</td>\n";
echo "</tr>\n";
$dataTop15SeriesA = $playoffs2->getTop15($id_pool, $id_saison, "{$type}", 15, $pool);
$rang = 1;
if (count($dataTop15SeriesA) > 0) {
    foreach ($dataTop15SeriesA as $itemA) {
        $first_name = $itemA["first_name"];
        $last_name = $itemA["last_name"];
        $pts = $itemA["pts"];
        $id_player = $itemA["id_player"];
        $pos = $itemA["pos"];
        $logo = $itemA["logo"];
        $nickname = $itemA["nickname"];
        $id_gerant = $itemA["id_gerant"];
        $actif = $itemA["actif"];
        $style = "";
        if ($id_gerant == $gerant_sel) {
            $style = "font-weight:bold;";