Exemplo n.º 1
0
             			2. Envoyer un mail au client - le mail peut être envoyé directement dans la méthode validerCommandeCB() de l'objet Commande ou bien dans l'objet Client (méthode à créer)
             			3. Envoyer un mail à l'admin IFIP
             			4. unset($_SESSION['numcom']);
             			* */
         }
         //fin if ($prix)
     }
     /* ***************** ETAPE 3 ******************************************************************** */
 } else {
     if ($action == "validerLivraison") {
         // Valide les infos sur la livraison et la Facturation
         $laCom = new Commande();
         $laCom->numclient = $_SESSION['numclient'];
         $laCom->numcom = $_SESSION['numcom'];
         $numpays = $laCom->getNumPays();
         $laCom->modifierCommande();
         //association de la commande au client
         $leClient = new Client();
         $leClient->numclient = $_SESSION['numclient'];
         $laCom->nom_f = $textNom_f;
         $laCom->prenom_f = $textPrenom_f;
         $laCom->tel_f = $textTel_f;
         $laCom->fax_f = $textFax_f;
         $laCom->raison_f = $textSociete_f;
         $laCom->adr1_f = $textAdr1_f;
         $laCom->adr2_f = $textAdr2_f;
         $laCom->cp_f = $textCp_f;
         $laCom->ville_f = $textVille_f;
         $laCom->pays_f = $selectPays_f;
         /* On ne met plus à jour les infos du client a partir des infos de facturation
         		$leClient->nom=$textNom_f;