if ($groupe !== NULL && GDroit::ADroitPopErreur(FONC_PRS_CREERMODIFIER) === true) { if (SListe::IsChargementEtage() === true) { $cListeModificationPresentation = new cListeModificationPresentation('', 'ModifPres', $nomContexte, -1, -1, false, '', true, '', '', '', '', '', '', '', AJAXFONC_RECHARGER); $libelle = GSession::Libelle(LIB_PRS_CHAMP, true, true); $cListeModificationPresentation->AjouterElement($libelle . '10', $libelle, '', $libelle, $libelle, $libelle); $cListeModificationPresentation->AjouterElement($libelle . '11', $libelle, '', $libelle, $libelle, $libelle); $cListeModificationPresentation->AjouterElement($libelle . '12', $libelle, '', $libelle, $libelle, $libelle); GContexte::AjouterListe($cListeModificationPresentation); } else { $presentationModif = GSession::PresentationModif(); $presentationModule = GSession::PresentationModule($module); if ($presentationModif !== $presentationModule || $dejaCharge === false) { GSession::PresentationModule($module, $presentationModif, true); $prefixIdClass = PIC_PRES; // Récupération du nom de fichier. $mPresentationModule = new MPresentationModule(); $mPresentationModule->TypePresentationModule($module); $mTypePresentationModule = $mPresentationModule->TypePresentationModule(); $mTypePresentationModule->AjouterColSelection(COL_NOMFICHIER); $mTypePresentationModule->Charger(); $nomFichier = $mTypePresentationModule->NomFichier(); /*********************************************/ $cListeCssParties = new CListeCssParties($nomFichier, $presentationModif, $prefixIdClass, 'CssParties', $nomContexte, -1); $vue = new SOrganiseur(4, 1, true); $org = new SOrganiseur(5, 1, true); $elem = new SElement(CLASSTEXTE_INFO); $elem->SetText(GSession::Libelle(LIB_PRS_TEXTEINFO)); $org->AttacherCellule(1, 1, $elem); $elem = new SElement(CLASSSEPARATEUR); $org->AttacherCellule(2, 1, $elem); $elem = new SElement(CLASSCADRE_INFO);
<?php require_once 'cst.php'; require_once INC_GCSS; require_once INC_GJS; require_once PATH_METIER . 'mPresentation.php'; require_once PATH_METIER . 'mPresentationModule.php'; require_once PATH_METIER . 'mTypePresentationModule.php'; $groupe = GSession::Groupe(COL_ID); if ($groupe !== NULL && GDroit::ADroitPopErreur(FONC_PRS_CREERMODIFIER) === true) { $presentationModif = GSession::PresentationModif(); if ($presentationModif != NULL) { // Récupération du nom de fichier que l'on va utiliser pour la sauvegarde. $mPresentationModule = new MPresentationModule(); $mPresentationModule->TypePresentationModule($module); $mTypePresentationModule = $mPresentationModule->TypePresentationModule(); $mTypePresentationModule->AjouterColSelection(COL_NOMFICHIER); $mTypePresentationModule->Charger(); $nomFichier = $mTypePresentationModule->NomFichier(); $cheminCss = GCss::GetCheminFichier($presentationModif); $cheminJs = GJs::GetCheminFichier($presentationModif); if ($cheminCss !== '' && $cheminJs !== '' && $nomFichier !== '') { $varPost = GContexte::LirePost(NULL); // Sauvegarde du Css. GCss::SauvegarderFichierCss($nomFichier, $presentationModif, $varPost); // Sauvegarde du JS. GJs::SauvegarderFichierJs($nomFichier, $presentationModif, $varPost); // Sauvegarde en base. $mPresentationModule->Presentation($presentationModif); $mPresentationModule->RessourceCSS($cheminCss . $nomFichier . '.css'); $mPresentationModule->RessourceJS($cheminJs . $nomFichier . '.js');