예제 #1
0
         $x++;
        }
}

 if ($action4=='supp')
        {
          mysql_query ("DELETE FROM phpl_buteurs WHERE id='$id_buteur_supp' ") or die ("probleme " .mysql_error());
        }

?>

<table class=phpl width="80%">
  <tr>
    <td class=phpl2 align="center" colspan="3"><? echo ADMIN_BUTEUR_TITRE." "; affich_champ ($champ); ?></td>
  </tr>
  <td align="center"><? journees ($champ, $numero, $action);?>
  </td></tr>
  <tr><td>

<?
//buteurs



 echo "<br />".ADMIN_JOUEURS_1;
 echo "<form method=\"post\" action=\"\">";
 echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" valign=\"bottom\" align=\"center\" width=\"100%\"><tr><td>";

 echo"<tr class=phpl4 align =\"left\"><td align=\"right\" class=phpl2>".DOMICILE."<td class=phpl2><td class=phpl2>".BUTEUR."<td class=phpl2><td class=phpl2><td class=phpl2>".BUTEUR."<td class=phpl2><td class=phpl2>".EXTERIEUR."</tr>";
 $query="SELECT phpl_clubs.nom, CLEXT.nom, phpl_matchs.buts_dom, phpl_matchs.buts_ext, phpl_matchs.id, phpl_equipes.id, EXT.id, date_reelle
         FROM phpl_clubs, phpl_clubs as CLEXT, phpl_matchs, phpl_journees, phpl_equipes, phpl_equipes as EXT
예제 #2
0
            
            <?
  $requete="SELECT id FROM phpl_journees WHERE id_champ='$champ'";
  $resultats=mysql_query($requete);
  $nb_equipes1=mysql_num_rows($resultats);
  $nb_equipes=nb_equipes ($champ);


  
  if ($nb_equipes1!==(($nb_equipes)*2-2))
  {
    echo "<td colspan=\"2\">".ADMIN_MATCHS_1." <a href=\"?page=championnat&action=dates&champ=$champ\">".DATE."</a></td></tr>";
  }
  else
  {       
            echo "<td align=\"center\" colspan=\"4\">";journees ($champ, $numero, $action); ?></td></tr>
            <tr><td align="center" colspan="4">

<?
// TEST EXISTENCE DE LA JOURNEE DANS LA TABLE matchs

$query = "SELECT id FROM phpl_journees WHERE id_champ='$champ' AND numero='$numero'";
$result=mysql_query ($query);
          while ($row=mysql_fetch_array($result))
          {
          $id_journee=$row[0] ;
          }

echo ADMIN_JOURNEES_MSG9;
echo " $numero</b> ";
$nb_rencontres = (nb_equipes ($champ))/2;