manipulation premiere ligne
Bonjour à tous !
voila j'ai un souci, je créer un tableau à partir d'une table, mon problème c'est que je peux manipuler toutes les autres lignes sauf la première.Voici le code mon tableau:
Code:
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
<table border='0' class = 'tab_cadrehov'>
<tr class = 'tab_bg_1'>
<th> Marque </th>
<th> Modèle </th>
<th> Type Equipement </th>
<th> Type Consommable </th>
<th> Référence </th>
<th> Quantité Disponible </th>
<th> Fournisseur </th>
<th> Incrémenter/Décrémenter </th>
<th> Supprimer </th>
</tr>
<?php
WHILE ($row=mysql_fetch_array($rep)) {
?>
<?php
print "<tr class = 'tab_bg_2'>
<td> $row[marque] </td>
<td> $row[model] </td>
<td> $row[typeq] </td>
<td> $row[typecons] </td>
<td> $row[ref] </td>
<td align='center'> $row[nbr] </td>
<td align='center'> $row[fournisseur] </td>";
?>
<form action='incr_decr.php' method='POST'>
<?php
print "<input type =\"hidden\" name=\"incrementer\" value=\"$row[0]\">";
print "<input type =\"hidden\" name=\"decrementer\" value=\"$row[0]\">";
print "<input type =\"hidden\" name=\"supprimer\" value=\"$row[0]\">";
?>
<!-- COLONNE D'INCREMENTATION / DECREMENTATION -->
<td align='center'>
<input type ="hidden" name="submission" value="<?php $action ?>">
<input type ="image" src='/golprinters/images/plus.png' onclick="submission.value='I'">
<input type ="image" src='/golprinters/images/moins.png' onclick="submission.value='D'">
</td>
<!-- COLONNE SUPPRESSION -->
<td align='center'>
<input type="image" src='/golprinters/images/delete.png' onclick="submission.value='S'">
</td>
<?php
echo "</tr>";
?>
</form>
<?php
}
?>
</table> |
Merci de votre aide !!!