1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
<table border="1"; id=matable width= "382"; name="liste" >
<tr>
<th>Description</th>
<th>N° Lot</th>
<th>Quantité</th>
<th> </th>
</tr>
<?php
$connect_db = connect();
$req=mysql_query("SELECT lot.* FROM lot JOIN production ON production.Lot = lot.numero where production.OF='F100601369';");
$count=0;
$i = 0;
while($p=mysql_fetch_assoc($req))
{
$couleurs = array('#9E9E9E', '#1E80CC ');
$nombre = count($couleurs);
echo '<tr style="background-color : ' . $couleurs[ $i % $nombre] . '">
<td>'.$p['description'].'</td>
<td>'.$p['numero'].'</td>
<td>'.$p['Quantité'].'</td>
<td> <input type=checkbox name=check'.$i.' onClick="changecolor(this,\''.$i.'\');" /> Validé </td>
<td> <input type=button onClick="Manquant('.$i.',this);" value="Manquant" />
<input type=button onClick="Annuler('.$i.',this);" value="Annuler" />
<input type=button value="+" onClick="???????" />
</td>
</tr>';
$i++;
}
$connect_db = close();
?>
</table> |
Partager