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
| <body>
<?php
if(isset($_GET['vente'])){
include'scripts/php/includes/connexiondb.php';
$sql="SELECT * FROM produits";
$execution=mysql_query($sql);
$erreur=mysql_error(); print $erreur;
?>
<div id="nav">
<div class='affichage'>
</div>
<div class='positionimp'>
<a href="#" onClick="window.print();" class="positionimp"><img src="/mapharmacie/images/imprimante.png"></a>
</div>
<div class='fermer'>
<button style="float:right; margin-right:10px;" onclick="window.close();">Fermer</button>
</div>
</div>
<div id="boite">
<fieldset><legend>Formulaire de vente</legend>
<form name="formvente" method="POST" action="verifformvente.php">
<select name="listeproduit">
<option>-- Choisissez un produit --</option>
<?php
while($resultat=mysql_fetch_assoc($execution)){
echo"<option>".$resultat['nom_prod']."</option>";
}
?>
</select>
<input type="button" name="b" onclick="ch();" value="Ajouter">
<table border='1' width="100%">
<tr>
<th>Produits</th><th>Prix</th><th>Stock</th><th>Quantite demande</th>
</tr>
</table>
</form>
</fieldset>
</div>
<?php }
?>
</body> |
Partager