} } //$mes="La commande est modifiée !"; $pg_admin = "lister-com"; } else { if ($action == "annuler") { $pg_admin = "lister-com"; } } /* ************* Lister les commandes ********************* */ } else { if ($pg_admin == "lister-com") { if ($supcom) { $modifCom = new Commande(); $modifCom->numcom = $supcom; $modifCom->supprimerCommande(); $mes = "La commande est supprimée !"; $pg_admin = "lister-com"; } /* ************* Lister les inscriptions aux formations ********************* */ } else { if ($pg_admin == "lister-inscri") { if ($valide) { $laForma = new Formation(); $laForma->numpara = $valide; //N° de la formation $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();