Example #1
0
 } else {
     if ($pg_admin == "lister-actu") {
         if ($supactu) {
             $supActu = new Actualite();
             $supActu->numpara = $supactu;
             $supActu->supprimerActu();
             $mes = "La brève d\\'actualité est supprimée !";
         }
         /* ************* Ajouter ou modifier un article ********************* */
     } else {
         if ($pg_admin == "ajouter-arti") {
             if ($textLibelle) {
                 $newArti = new Article();
                 $newArti->libelle = $textLibelle;
                 if (!$numarticle) {
                     $newArti->creerArti();
                     $cree = 1;
                 } else {
                     $newArti->numarticle = $numarticle;
                     $newArti->modifierArti();
                 }
                 if ($cree) {
                     $mes = "L\\'article est créé !";
                 } else {
                     $mes = "L\\'article est modifié !";
                 }
                 $pg_admin = "lister-arti";
             }
             /* ************* Lister les articles ********************* */
         } else {
             if ($pg_admin == "lister-arti") {