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
| <table>
<tr>
<th>Désignation</th><th>Référence/Dimensions</th><th>Qte</th><th>prix Unité</th><th>Compte</th>
</tr>
<?php
for($i=0;$i<1;$i++){ ?>
<tr>
<td><input type="text" size="70" name="desig<?php echo $i ?>" /></td>
<td><input type="text" size="40" id="input2" name="ref<?php echo $i ?>" /></td>
<td><input type="text" size="15" id="input3" name="qte<?php echo $i ?>" /></td>
<td><input type="text" size="15" id="input4" name="prixUnite<?php echo $i ?>" /></td>
<td>
<!-- liste de choix du code comptabilite -->
<?php //On lit le fichier des comptes pour le choix du numéro de comptabilité
$compte = $compteManager->getList(); ?>
<!-- Construction de la liste -->
<SELECT >
<?php foreach($compte as $unCompte){ ?>
<option
<?php if($unCompte->id()==$_SESSION['codeCompte']) echo "selected"; ?>
class="nouvComCodeCompta" value="<?php echo $unCompte->id(); ?>">
<?php echo $unCompte->numCompte(),' | ', $unCompte->designation(); ?>
</option>
<?php } ?>
</select>
<!-- fin de liste de choix du code comptabilite -->
</td>
</tr>
<?php } ?>
</table> |