} if (!$numcontact) { $mes = "Le contact est créé"; } else { $mes = "Le contact est modifié!"; } $pg_admin = "lister-contact"; } /* ************* Lister les formations ********************* */ } else { if ($pg_admin == "lister-formation") { if ($supform) { $supForm = new Formation(); $supForm->numpara = $supform; $supForm->numparafichier = $numparafichier; $supForm->supprimerFormation(); $mes = "La formation est supprimée !"; } /* ************* Ajouter ou modifier une formation ********************* */ } else { if ($pg_admin == "ajouter-forma") { if ($textTitre) { $cree = 0; $newForma = new Formation(); $newForma->titrePara = $textTitre; $newForma->contenuPara = $textCont; $newForma->datedeb_admin = $textDateDeb; $newForma->datefin_admin = $textDateFin; $newForma->surMesure = $radioMesure; $newForma->enligne = $radioEnligne; $newForma->numpara = $numpara;