// Date de creation : 09/10/2011 // Fichier : GestionCategorieVue.php // // Description : Gestion des catégories de produit // //**************************************************************** // Vérification de la bonne connexion de l'adherent dans le cas contraire redirection vers le formulaire de connexion if (isset($_SESSION[DROIT_ID]) && (isset($_SESSION[MOD_GESTION_PRODUIT]) || isset($_SESSION[DROIT_SUPER_ZEYBU]))) { if (isset($_POST['pParam'])) { $lParam = json_decode($_POST["pParam"], true); if (isset($lParam["fonction"])) { include_once CHEMIN_CLASSES_CONTROLEURS . MOD_GESTION_PRODUIT . "/GestionCategorieControleur.php"; $lControleur = new GestionCategorieControleur(); switch ($lParam["fonction"]) { case "afficher": echo $lControleur->getCategorie($lParam)->exportToJson(); $lLogger->log("Affichage de la vue GestionCategorie par l'Adhérent : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO); // Maj des logs break; case "detailCategorie": echo $lControleur->getDetailCategorie($lParam)->exportToJson(); $lLogger->log("Affichage de la vue DetailCategorie par l'Adhérent : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO); // Maj des logs break; case "ajouter": echo $lControleur->ajouterCategorie($lParam)->exportToJson(); $lLogger->log("Ajoout d'une categorie par l'Adhérent : " . $_SESSION[ID_CONNEXION], PEAR_LOG_INFO); // Maj des logs break; case "modifier": echo $lControleur->modifierCategorie($lParam)->exportToJson();