Пример #1
0
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;\">Gérant</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;\">Hier</td>\n";
echo "</tr>\n";
$dataA = $playoffs2->getClassement($id_pool, $id_saison, $pool);
if (count($dataA) > 0) {
    $rang = 1;
    foreach ($dataA as $valueA) {
        $my_id_gerant = $valueA["gerant"];
        $nickname = $valueA["nickname"];
        $pts = $valueA["pts"];
        $logo = $valueA["logo"];
        $pts_yest = $playoffs2->getPtsYesterday_tab_accueil($id_pool, $id_saison, $pool, $my_id_gerant);
        if ($pts_yest == "") {
            $pts_yest = 0;
        }
        $style = "";
        if ($my_id_gerant == $gerant_sel) {
            $style = "font-weight:bold;";
        }
        echo "<TR>\n";
        echo "<TD align=\"left\" class=\"tableCell4\" style=\"{$style};padding-left:3px;\">{$rang})</TD>\n";
        echo "<TD align=\"left\" style=\"{$style};padding-left:3px;\">\r\n\t\t          <IMG SRC=\"{$logo}\" style=\"margin-right:5px;\"/>\r\n\t\t          <FONT style=\"vertical-align:60%;margin-right:3px;\">\r\n\t\t          {$nickname}</FONT></TD>\n";
        echo "<TD align=\"center\" style=\"{$style};color:blue;\"><a href=\"/src/series2/equipes.php?tab=live\">{$pts}</a></TD>\n";
        echo "<TD class=\"tableCell5\" align=\"center\" style=\"{$style}\"><a href=\"/src/series2/equipes.php?tab=quick_view\">{$pts_yest}</a></TD>\n";
        echo "</TR>\n";
        $rang++;
    }