Esempio n. 1
0
            $db->where("(equipe1 = {$id} or equipe2 = {$id})");
        }
        $res = $db->exec();
        if ($db->num_rows($res) == 1) {
            $match = $db->fetch($res);
            echo '<tr><td><img src="images/spacer.gif" height="30" alt=""></td></tr>';
            echo "<tr><td class=\"title\" align=\"center\">{$strGrandFinal}</td></tr>";
            echo '<tr><td align="center"><br>';
            $date = strftime(DATESTRING1, $match->date);
            if (!$match->date) {
                $date = '';
            }
            echo '<table cellspacing="0" cellpadding="1" border="0">';
            echo '<tr>';
            /*** info1 ***/
            //echo "<td class=info width=70>$date</td>";
            echo '<td class="info" align="right">';
            show_match_poule($match->id, $op);
            echo '</td>';
            /*** info2 ***/
            echo "<td class=info valign=top>&nbsp;&nbsp;";
            echo "{$date} ";
            echo "</td>";
            echo '</tr>';
            echo '</table>';
        }
    }
}
echo '</table>';
echo '</form>';
echo '<br><img src="images/back.gif" border="0" align="absmiddle"> <a href="javascript:back()" class="action">' . $strRetour . '</a><br>';
Esempio n. 2
0
 if ($db->num_rows($res) != 0) {
     echo '<table cellspacing="0" cellpadding="1" border="0">';
     while ($matchs = $db->fetch($res)) {
         $match = match($matchs->id);
         $date = strftime(DATESTRING1, $match->date);
         if (!$match->date) {
             $date = '';
         } else {
             $date = "- {$date}";
         }
         echo "<tr>";
         /*** info1 ***/
         echo "<td class=info width=70><img src=images/spacer.gif></td>";
         /*** match ***/
         echo "<td class=info align=center>";
         show_match_poule($match->id, 'report');
         echo "</td>";
         /*** info2 ***/
         echo "<td class=info>&nbsp;&nbsp;";
         if ($match->type == 'W' || $match->type == 'L') {
             if ($match->type == 'W') {
                 $type = $strWinner;
             } elseif ($match->type == 'L') {
                 $type = $strLooser;
             }
             if ($match->finale > 1) {
                 echo "1/{$match->finale} {$strFinale} {$type} #{$match->numero}";
             } elseif ($match->finale == 1) {
                 echo "{$strFinale} {$type} #{$match->numero}";
             } else {
                 echo "{$strGrandFinal}";
Esempio n. 3
0
 echo "<tr><td class=title colspan=5>" . show_tournois($tournois->id);
 if ($tournois->status == "F") {
     echo " - <span class=warning>{$strForfait}</span>";
 }
 if ($tournois->status == "D") {
     echo " - <span class=warning>{$strDisqualifie}</span>";
 }
 echo "</td></tr>";
 while ($matchs = $db->fetch($res2)) {
     $match = match($matchs->id);
     echo "<tr>";
     /*** info1 ***/
     echo "<td class=info><img src=images/spacer.gif></td>";
     /*** match ***/
     echo "<td class=info align=center>";
     show_match_poule($match->id);
     echo "</td>";
     /*** info2 ***/
     echo "<td class=info>&nbsp;&nbsp;";
     if ($match->type == 'W' || $match->type == 'L') {
         if ($match->finale > 1) {
             echo "1/{$match->finale} {$strFinale} {$match->type} {$strMatch} #{$match->numero}";
         } elseif ($match->finale == 1) {
             echo "{$strFinale} {$match->type} {$strMatch} #{$match->numero}";
         } else {
             echo "{$strGrandFinal} {$strMatch} #{$match->numero}";
         }
     } elseif ($match->type == 'P') {
         echo "{$strPoule} {$match->poule} - {$strTour} {$match->tour}";
     }
     echo "</td>";
Esempio n. 4
0
 echo '<tr><td align="center">';
 $nb_tours = nb_tours($p, $s_tournois);
 $last_tour = 0;
 $nb_matchs = 0;
 for ($t = 1; $t <= $nb_tours; $t++) {
     echo '<table cellspacing="0" cellpadding="1" border="0">';
     $tab_matchs_id = array();
     $tab_matchs_id = id_match_poule($p, $t, $s_tournois, $op, $status);
     /** si il y a des match pour la poule on affiche les tour**/
     if (count($tab_matchs_id) != 0) {
         echo '<tr><td><img src="images/spacer.gif" height="2" alt=""></td></tr>';
         echo "<tr><td class=\"title\"><u>{$strTour} {$t}</u></td></tr>";
         for ($j = 0; $j < count($tab_matchs_id); $j++) {
             echo '<tr>';
             echo '<td class="info" align="right">';
             show_match_poule($tab_matchs_id[$j], $op);
             echo '</td>';
             echo '</tr>';
             $nb_matchs++;
         }
     }
     echo '</table>';
 }
 /** si il n"y a pas de match pour la poules **/
 if ($nb_matchs == 0) {
     echo '<table cellspacing="0" cellpadding="0" border="0">';
     echo '<tr><td><img src="images/spacer.gif" height="2" alt=""></td></tr>';
     echo '<tr><td class="info" align="center" width="200">' . $strPasDeMatch . '</td></tr>';
     echo '</table>';
 }
 echo '</td></tr></table>';