$laForma->datedeb_admin = $textDateDeb; $laForma->datefin_admin = $textDateFin; $laForma->validerForma($if_site["url"]); //Mise à jour des montants HT et TTC (IFIP => montantHT=montantTTC) $list_inscrits = $laForma->listerInscrits(); for ($i = 0; $i < count($list_inscrits); $i++) { $list_detail = $list_inscrits[$i]; $sesArticles = $list_detail[1]; for ($j = 0; $j < count($sesArticles); $j++) { $sonDetail = $sesArticles[$j]; $tarif = "textTarif" . $sonDetail["numcom"]; $laCom = new Commande(); $laCom->numcom = $sonDetail["numcom"]; $laCom->montantHT = ${$tarif}; $laCom->montantTTC = ${$tarif}; $laCom->modifierCommandeForma(); } } $mes = "La formation est validée !"; } /* ************* On se déconnecte **************************************************************** */ } else { if ($decon) { $uti->deconnecte(); mysql_close(); header("Location: admin/index.php"); } } } } }