Gestion des clients Gestion des produits Gestion des commandes


Commandes non validees Commandes en cours Commandes traitees


".mysql_error()."..."); while ($ligne5=mysql_fetch_row($result5)) { $idcli=$ligne5[0]; $nomcli=$ligne5[1]; $prenomcli=$ligne5[2]; $telfixe=$ligne5[3]; $telport=$ligne5[4]; $fax=$ligne5[5]; $email=$ligne5[6]; $typecli=$ligne5[7]; $societe=$ligne5[8]; $coordbanc=$ligne5[9]; $totalcom=$ligne5[10]; ?>

Information sur le client

Nom :   Prenom :
Tel Fixe :   Tel Port :   email :
Type de client :   societe :
coord.Bancaire :
total des commandes :
".mysql_error()."..."); ?>

Information sur la commande

date : montant :
Mode paiement :
Inserer un msg pour le client :
Etat de la commande :
".mysql_error()."..."); $i=0; $j=0; while ($ligne3=mysql_fetch_row($result3)) { $i++; $idcmde=$ligne3[0]; $idcomp=$ligne3[1]; $idprod=$ligne3[2]; $qtecmde=$ligne3[3]; $requete4 = "select idprod,denomination,prixht1,prixht2,prixht3,qteprod1,qteprod2,qteprod3,poidsprod1,poidsprod2,poidsprod3 from produit where idprod='$idprod'"; $result4=mysql_query($requete4) or die ("Erreur SQL :$requete2
".mysql_error()."..."); while ($ligne4=mysql_fetch_row($result4)) { $idprod=$ligne4[0]; $denomination=$ligne4[1]; $prixht1=$ligne4[2]; $prixht2=$ligne4[3]; $prixht3=$ligne4[4]; $qteprod1=$ligne4[5]; $qteprod2=$ligne4[6]; $qteprod3=$ligne4[7]; $poidsprod1=$ligne4[8]; $poidsprod2=$ligne4[9]; $poidsprod3=$ligne4[10]; } ?>

Produits commandes

Produit Colisage Quantite commandee Prix Total (HT)
Quantite
Prix
Poids (pour ports)
= $qteprod2) { do { $qtecmde = $qtecmde - $qteprod3; $prixtot+=$prixht3; print "$prixtot
"; } while ($qtecmde >= $qteprod3); } } if($qteprod2) { if ($qtecmde >= $qteprod2) { do { $qtecmde = $qtecmde - $qteprod2; $prixtot+=$prixht2; print "$prixtot
"; } while ($qtecmde >= $qteprod2); } } if($qtecmde>0) { do { $qtecmde-=$qteprod1; $prixtot+=$prixht1; print $prixtot; print "
qtecmde:$qtecmde
"; } while ($qtecmde != 0); } ?>

Total de la commande : $prixtot


"; ?>
Retour