<form name="circuit">
<table height="380" width="100%">
<tr valign="top">
<td>
<table width="100%">
      <tr>
            <td align='left'>NOM</td>
            <td align='center'>LOGO</td>
            <td align="center">MODIFIER</td>
            <td align="center">SUPPRIMER</td>
      </tr>
      
<?php
      include("config.php");
      $req="select num_circuit, nom_circuit, logo_circuit from circuit order by nom_circuit;";      
      $res=mysql_query($req);
      $i=0;
      while($row=mysql_fetch_array($res))
      {
                  $nbform=0;
                  echo("<tr bgcolor=".($i % 2 == 0 ? '#99CCFF' : '#EFEFEF' ).">");
                  $i++;
                  $nbform ++;
                  
                  ?>
      
            <td align='left'>
<?php echo $row[1] ?></td>
            <td align='center'>
<?php echo $row[2] ?></td>
            <td align='center'><a href='modification_circuit1.php&id=
<?php echo $row[0]?>'><img src='image/editer.gif' width='37px' height='37px' alt='editer' border='0'></td>
            <td align='center'><a href='suppression_circuit1&id=
<?php echo $row[0]?>' onClick='return confirm(\"Le circuit a bien été supprimée\");'><img src='image/supprimer.gif' width='37px' height='37px' alt='supprimer' border='0'></td>
      </tr>
      
<?php
      }
      ?>
      </table>
</td>
</tr></table></form>
Partager