Ejemplo n.º 1
0
 public static function Terminer()
 {
     if (self::$startSession === 1) {
         GReferentiel::Sauvegarder();
         GContexte::Sauvegarder();
         self::EcrireSession('libellesMemorises', self::$listeLibMem);
     }
 }
Ejemplo n.º 2
0
 public static function Initialiser()
 {
     if (self::$initialise !== true) {
         self::$referentiels = array();
         self::$referentiels[REF_TYPE_FICHIERS] = array();
         self::$referentiels[REF_TYPE_DONNEES] = array();
         self::$initialise = true;
     }
 }
Ejemplo n.º 3
0
        $form->FusionnerCelluleCadre(2, 3, 0, 3);
        $form->FusionnerCelluleCadre(3, 1, 0, 1);
        $form->FusionnerCelluleCadre(3, 3, 0, 1);
        $form->FusionnerCelluleCadre(3, 5, 0, 1);
        $form->FusionnerCelluleCadre(4, 1, 0, 5);
        $form->FusionnerCelluleCadre(5, 1, 0, 5);
        $img = $form->AjouterInputImage(1, 1, GSession::Libelle(LIB_GPE_ICONE), '', false, GContexte::FormaterVariable($nomContexte, COL_ICONE), PATH_IMAGES . 'Jeu/', '', GSession::Libelle(LIB_GPE_ICONEINFO), '', TYPEFICHIER_IMAGEGLOBALE_JEU, $nomContexte);
        $img->AjouterElementsFromListe(COL_ICONE);
        $form->AjouterInputText(1, 3, GSession::Libelle(LIB_GPE_NOM), '', true, GContexte::FormaterVariable($nomContexte, COL_NOM), '', 1, 100, 50, false, '', GSession::Libelle(LIB_GPE_NOMINFO), GSession::Libelle(LIB_GPE_NOMERREUR), INPUTTEXT_REGEXP_TOUT_FV);
        $select = $form->AjouterInputSelect(2, 3, GSession::Libelle(LIB_GPE_JEU), INPUTSELECT_TYPE_FIND, true, GContexte::FormaterVariable($nomContexte, COL_JEU), GSession::Libelle(LIB_GPE_JEUINFO), GSession::Libelle(LIB_GPE_JEUERREUR), $nomContexte . COL_JEU, $nomContexte . COL_SERVEUR . ';' . $nomContexte . COL_TYPEGROUPE);
        $select->AjouterElementsFromListe(COL_JEU, COL_ID, array(COL_LIBELLE, COL_LIBELLE), '', $jeuId);
        $select = $form->AjouterInputSelect(3, 1, GSession::Libelle(LIB_GPE_SERVEUR), '', false, GContexte::FormaterVariable($nomContexte, COL_SERVEUR), '', '', $nomContexte . COL_SERVEUR, '', $nomContexte . COL_JEU, AJAXFONC_CHARGERREFERENTIELCONTEXTE, 'contexte=' . $nomContexte);
        $select->AjouterElementsFromListe(COL_SERVEUR, COL_ID, array(COL_LIBELLE, COL_LIBELLE));
        $select = $form->AjouterInputSelect(3, 3, GSession::Libelle(LIB_GPE_COMMUNAUTE), '', true, GContexte::FormaterVariable($nomContexte, COL_COMMUNAUTE), '', GSession::Libelle(LIB_GPE_COMMUNAUTEERREUR));
        $select->AjouterElementsFromListe(COL_COMMUNAUTE, COL_ID, array(COL_LIBELLE, COL_LIBELLE), '', GSession::Communaute(COL_ID));
        $select = $form->AjouterInputSelect(3, 5, GSession::Libelle(LIB_GPE_TYPEGROUPE), '', true, GContexte::FormaterVariable($nomContexte, COL_TYPEGROUPE), GSession::Libelle(LIB_GPE_TYPEGPEINFO), GSession::Libelle(LIB_GPE_TYPEGPEERREUR), $nomContexte . COL_TYPEGROUPE, '', $nomContexte . COL_JEU, AJAXFONC_CHARGERREFERENTIELCONTEXTE, 'contexte=' . $nomContexte);
        $select->AjouterElementsFromListe(COL_TYPEGROUPE, COL_ID, array(COL_LIBELLE, COL_LIBELLE));
        $form->AjouterInputText(4, 1, GSession::Libelle(LIB_GPE_DESCRIPTION), '', false, GContexte::FormaterVariable($nomContexte, COL_DESCRIPTION), '', 1, 250, -1, true, '', GSession::Libelle(LIB_GPE_DESCRIPTIONINFO));
        $form->AjouterInputText(5, 1, GSession::Libelle(LIB_GPE_HISTOIRE), '', false, GContexte::FormaterVariable($nomContexte, COL_HISTOIRE), '', 1, NULL, 5, true, '', GSession::Libelle(LIB_GPE_HISTOIREINFO));
        $form->SetCadreBoutons(2, 1, 1, 1);
        $form->AjouterInputButtonAjouterAuContexte(1, 1, $nomContexte, true, GSession::Libelle(LIB_GPE_CREERGROUPE));
        $org->AttacherCellule(2, 1, $form);
        // Cadre contenant le formulaire et son explication.
        $cadre = new SCadre($prefixIdClass, GSession::Libelle(LIB_GPE_CREATIONGPE), $org, true, true);
        GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $cadre);
    } else {
        // Rechargement des référentiels.
        GReferentiel::GetDifferentielReferentielFichiersForSelect(COL_ICONE);
        GReferentiel::GetDifferentielReferentielForSelect(COL_COMMUNAUTE, COL_ID, array(COL_LIBELLE, COL_LIBELLE));
    }
}
Ejemplo n.º 4
0
        $select = $form->AjouterInputSelect(2, 1, GSession::Libelle(LIB_JEU_TYPEJEU), '', true, GContexte::FormaterVariable($nomContexte, COL_TYPEJEU), GSession::Libelle(LIB_JEU_TYPEJEUINFO), GSession::Libelle(LIB_JEU_TYPEJEUERREUR), $nomContexte . COL_TYPEJEU);
        $select->AjouterElementsFromListe(COL_TYPEJEU, COL_ID, array(COL_LIBELLE, COL_LIBELLE), array(COL_DESCRIPTION, COL_LIBELLE));
        $form->AjouterInputCheckbox(3, 1, GSession::Libelle(LIB_JEU_NECBOSS), '', false, GContexte::FormaterVariable($nomContexte, COL_NECESSITEBOSS), GSession::Libelle(LIB_JEU_NECBOSSINFO));
        $form->AjouterInputCheckbox(4, 1, GSession::Libelle(LIB_JEU_NECCLASSE), '', false, GContexte::FormaterVariable($nomContexte, COL_NECESSITECLASSE), GSession::Libelle(LIB_JEU_NECCLASSEINFO));
        $form->AjouterInputCheckbox(5, 1, GSession::Libelle(LIB_JEU_NECMETIER), '', false, GContexte::FormaterVariable($nomContexte, COL_NECESSITEMETIER), GSession::Libelle(LIB_JEU_NECMETIERINFO));
        $form->AjouterInputCheckbox(6, 1, GSession::Libelle(LIB_JEU_NECNIVEAU), '', false, GContexte::FormaterVariable($nomContexte, COL_NECESSITENIVEAU), GSession::Libelle(LIB_JEU_NECNIVEAUINFO));
        $form->AjouterInputText(6, 2, GSession::Libelle(LIB_JEU_NIVEAUMAX), '', false, GContexte::FormaterVariable($nomContexte, COL_NIVEAUMAX), '', 1, 5, 5, false, '', GSession::Libelle(LIB_JEU_NIVEAUMAXINFO), '', INPUTTEXT_REGEXP_DECIMAL_FV);
        $form->AjouterInputCheckbox(7, 1, GSession::Libelle(LIB_JEU_NECOBJET), '', false, GContexte::FormaterVariable($nomContexte, COL_NECESSITEOBJET), GSession::Libelle(LIB_JEU_NECOBJETINFO));
        $form->AjouterInputCheckbox(8, 1, GSession::Libelle(LIB_JEU_NECROLE), '', false, GContexte::FormaterVariable($nomContexte, COL_NECESSITEROLE), GSession::Libelle(LIB_JEU_NECROLEINFO));
        $form->AjouterInputCheckbox(9, 1, GSession::Libelle(LIB_JEU_NECSERVEUR), '', false, GContexte::FormaterVariable($nomContexte, COL_NECESSITESERVEUR), GSession::Libelle(LIB_JEU_NECSERVEURINFO));
        $form->SetCadreInputs(2, 1, 1, 2, true, false);
        $form->SetLargeurCelluleCadre(1, 1, '50%');
        $form->SetLargeurCelluleCadre(1, 2, '50%');
        $form->AjouterPropCelluleCadre(1, 1, PROP_STYLE, 'vertical-align: top');
        $form->AjouterPropCelluleCadre(1, 2, PROP_STYLE, 'vertical-align: top');
        $liste = $form->AjouterInputListe(1, 1, GSession::Libelle(LIB_JEU_SERVEURS), '', false, GContexte::FormaterVariable($nomContexte, COL_SERVEUR), GSession::Libelle(LIB_JEU_SERVEURSINFO));
        $liste->AjouterListe($cListeJeuServeurs);
        $liste = $form->AjouterInputListe(1, 2, GSession::Libelle(LIB_JEU_TYPESGROUPES), '', true, GContexte::FormaterVariable($nomContexte, COL_TYPEGROUPE), GSession::Libelle(LIB_JEU_TYPESGROUPESINFO), GSession::Libelle(LIB_JEU_TYPESGROUPESERREUR));
        $liste->AjouterListe($cListeJeuTypesGroupes);
        $form->SetCadreBoutons(3, 1, 1, 1);
        $form->AjouterInputButtonAjouterAuContexte(1, 1, $nomContexte, true, GSession::Libelle(LIB_JEU_CREERJEU));
        $org->AttacherCellule(2, 1, $form);
        // Cadre contenant le formulaire et son explication.
        $cadre = new SCadre(PIC_NJEU, GSession::Libelle(LIB_JEU_CREATIONJEU), $org, true, true);
        GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $cadre);
    } else {
        // Rechargement des référentiels.
        GReferentiel::GetDifferentielReferentielFichiersForSelect(COL_ICONE);
        GReferentiel::GetDifferentielReferentielForSelect(COL_TYPEJEU, array(COL_ID, array(COL_LIBELLE, COL_LIBELLE), array(COL_DESCRIPTION, COL_LIBELLE)));
    }
}
Ejemplo n.º 5
0
<?php

require_once 'cst.php';
require_once INC_GSESSION;
require_once INC_SFORM;
require_once PATH_METIER . 'mListeLangues.php';
$mListeLangues = new MListeLangues(false);
$mListeLangues->AjouterColSelection(COL_ID);
$mListeLangues->AjouterColSelection(COL_LIBELLE);
$mListeLangues->AjouterColOrdre(COL_LIBELLE);
GReferentiel::AjouterReferentiel(COL_LANGUE, $mListeLangues, array(COL_ID, array(COL_LIBELLE, COL_LIBELLE)));
if ($dejaCharge === false) {
    $selectLangue = new SForm('sellan', 1, 1);
    $selectLangue->SetCadreInputs(1, 1, 1, 1);
    $select = $selectLangue->AjouterInputSelect(1, 1, GSession::Libelle(LIB_CON_LANGUE), '', true, GContexte::FormaterVariable($nomContexte, 'langue'));
    $select->AjouterElementsFromListe(COL_LANGUE, COL_ID, array(COL_LIBELLE, COL_LIBELLE), '', GSession::Langue(COL_ID));
    GContexte::AjouterContenu(CADRE_INFO_LANGUE, $selectLangue);
} else {
    GReferentiel::GetDifferentielReferentielForSelect(COL_LANGUE, COL_ID, array(COL_LIBELLE, COL_LIBELLE));
}
<?php

require_once 'cst.php';
require_once PATH_METIER . 'mListeJoueurs.php';
require_once PATH_COMPOSANTS . 'cListeJoueursPseudos.php';
if (GDroit::ADroitPopErreur(DROIT_ADMIN) === true) {
    $prefixIdClass = PIC_ADM;
    switch (GReferentiel::NomReferentielGeneral($nomReferentiel)) {
        case 'GradesGlobauxAdmin' . COL_JOUEUR:
            $mObjet = new MJoueur();
            $mObjet->SetObjetFromTableau(GSession::LirePost($nomContexte));
            $mObjet->ChargerFromPseudo();
            $mListe = new MListeJoueurs();
            $mListe->AjouterElement($mObjet);
            $cListe = new CListeJoueursPseudos($prefixIdClass, $nomReferentiel, $nomContexte);
            $cListe->SupprimerListeObjetsMetiersFromExistante($mListe);
            GContexte::AjouterListe($cListe);
            break;
    }
}
        if ($valeur != NULL) {
            $mListe->Charger(20);
        }
        GReferentiel::AjouterReferentiel($nomReferentiel, $mListe, array(COL_ID, array(COL_LIBELLE, COL_LIBELLE)), true);
        GReferentiel::GetDifferentielReferentielForSelect($nomReferentiel, COL_ID, array(COL_LIBELLE, COL_LIBELLE));
        break;
    case COL_GROUPE:
        $valeur = GSession::LirePost('valeur');
        if ($valeur !== GSession::Groupe(COL_NOM)) {
            $jeuId = GSession::Jeu(COL_ID);
            $mListe = new MListeGroupes();
            $mListe->AjouterColSelection(COL_ID);
            $mListe->AjouterColSelection(COL_NOM);
            $mListe->AjouterColSelection(COL_DESCRIPTION);
            $mListe->AjouterColSelection(COL_JEU);
            $mListe->AjouterFiltreLike(COL_NOM, '%' . $valeur . '%');
            if ($jeuId != NULL) {
                $mListe->AjouterFiltreEgal(COL_JEU, $jeuId);
            }
            $numJointure = $mListe->AjouterJointure(COL_JEU, COL_ID);
            $numJointure = $mListe->AjouterJointure(COL_LIBELLE, COL_ID, $numJointure);
            $mListe->AjouterColSelectionPourJointure($numJointure, COL_LIBELLE);
            $mListe->AjouterColOrdre(COL_NOM);
            if ($valeur != NULL) {
                $mListe->Charger(20);
            }
            GReferentiel::AjouterReferentiel($nomReferentiel, $mListe, array(COL_ID, COL_NOM, COL_DESCRIPTION, COL_JEU), true);
            GReferentiel::GetDifferentielReferentielForSelect($nomReferentiel, COL_ID, COL_NOM, COL_DESCRIPTION, NULL, COL_JEU, array(COL_JEU, COL_LIBELLE, COL_LIBELLE));
        }
        break;
}
<?php

require_once 'cst.php';
require_once PATH_METIER . 'mListeJoueurs.php';
if (GDroit::ADroitPopErreur(DROIT_ADMIN) === true) {
    switch (GReferentiel::NomReferentielGeneral($nomReferentiel)) {
        case 'GradesGlobauxAdmin' . COL_ICONE:
            GReferentiel::AjouterReferentielFichiers($nomReferentiel, PATH_IMAGES . 'Grade/', REF_FICHIERSEXTENSIONS_IMAGES);
            GReferentiel::GetDifferentielReferentielFichiersForSelect($nomReferentiel);
            break;
        case 'GradesGlobauxAdmin' . COL_JOUEUR . COL_PSEUDO:
            $valeur = GSession::LirePost('valeur');
            $mListe = new MListeJoueurs();
            $mListe->AjouterColSelection(COL_PSEUDO);
            $mListe->AjouterColOrdre(COL_PSEUDO);
            $mListe->AjouterFiltreLike(COL_PSEUDO, '%' . $valeur . '%');
            if ($valeur != NULL) {
                $mListe->Charger(20);
            }
            GReferentiel::AjouterReferentiel($nomReferentiel, $mListe, array(COL_PSEUDO), true);
            GReferentiel::GetDifferentielReferentielForSelect($nomReferentiel, COL_PSEUDO, COL_PSEUDO);
            break;
    }
}
Ejemplo n.º 9
0
        $mListe = new MListeTypesPresentationsModules();
        $mListe->AjouterColSelection(COL_ID);
        $mListe->AjouterColSelection(COL_LIBELLE);
        $mListe->AjouterFiltreEgal(COL_ACTIF, true);
        $mListe->Charger();
        $liste = $mListe->GetListe();
        foreach ($liste as $mObjet) {
            GContexte::AjouterOnglet('pres', $mObjet->Libelle(), '', AJAXFONC_AJOUTERAUCONTEXTE, 'contexte=' . CONT_PRESENTATION . '&' . GContexte::FormaterVariable(CONT_PRESENTATION, 'ongletContexte') . '=' . CONT_PRESENTATIONMODULE . '_' . $mObjet->Id(), false, GContexte::IsContexteExiste(CONT_PRESENTATIONMODULE . '_' . $mObjet->Id(), true));
        }
        $org->AttacherCellule(1, 1, $elemInfo);
        $org->AttacherCellule(2, 1, new SSeparateur($prefixIdClass));
        $org->AttacherCellule(3, 1, $elemInfoPresActive);
        $org->AttacherCellule(4, 1, $elemPresActive);
        $org->AttacherCellule(5, 1, new SSeparateur($prefixIdClass));
        $org->AttacherCellule(6, 1, $elemInfoPresModif);
        $org->AttacherCellule(7, 1, $elemPresModif);
        $org->AttacherCellule(8, 1, $classeurPres);
        $cadre = new SCadre($prefixIdClass, GSession::Libelle(LIB_PRS_PRESENTATION), $org, true, false);
        $palette = new SPalette($prefixIdClass, GSession::Libelle(LIB_PRS_PALETTE));
        GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $palette);
        $div = new SBalise(BAL_DIV);
        $div->Attach($palette);
        $div->Attach($cadre);
        GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $div);
    } else {
        GReferentiel::GetDifferentielReferentielForSelect(COL_PRESENTATION . 'active', COL_ID, COL_NOM, '');
        //, GSession::PresentationActive());
        GReferentiel::GetDifferentielReferentielForSelect(COL_PRESENTATION . 'modif', COL_ID, COL_NOM, '');
        //, GSession::PresentationModif());
    }
}
Ejemplo n.º 10
0
 protected function ConstruireElemConsultationContenu(&$element)
 {
     $cListeCssSousElements = new CListeCssSousElements($this->prefixIdClass, 'CssSousElements', $this->contexte, -1);
     $cListeCssSousElements->SetListeParente($this);
     $niveau = $cListeCssSousElements->Niveau();
     $premierPlan = $this->GetElemChampValeurConsultation($element, 'premierPlan');
     $secondPlan = $this->GetElemChampValeurConsultation($element, 'secondPlan');
     $cadre = $this->GetElemChampValeurConsultation($element, 'cadre');
     $texte = $this->GetElemChampValeurConsultation($element, 'texte');
     $classe = $this->GetElemChampValeurConsultation($element, COL_CLASSE);
     $classeTab = $classe . '_tab';
     if ($secondPlan !== true) {
         $classeTab = $classe;
     }
     // Premier Plan.
     if ($premierPlan === true) {
         $org1 = new SOrganiseur(2, 1, true, true);
         $org2 = new SOrganiseur(1, 4, true, true);
         // Couleur du fond.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BACKGROUNDCOLOR);
         $color = new SInputColor($this->prefixIdClass, COLOR_TYPE_LISTE, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BACKGROUNDCOLOR), $valeur);
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_PPCOULEURFOND, true, true), $color, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 1, $inputLabel);
         // Image de fond.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BACKGROUNDIMAGE);
         $valeur = substr($valeur, 4, strlen($valeur) - 1);
         $img = new SInputImage($this->prefixIdClass, INPUTFILE_TYPE_LISTEIMAGE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BACKGROUNDIMAGE), '', GSession::Groupe(COL_ID), '', '', TYPEFICHIER_IMAGEGROUPE, $this->contexte, $niveau);
         GReferentiel::AjouterReferentielFichiers('images', GCss::GetCheminFichiersImages(), REF_FICHIERSEXTENSIONS_IMAGES);
         $img->AjouterElementsFromListe('images', false, $valeur);
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_PPIMAGE, true, true), $img, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 2, $inputLabel);
         // Répétition de l'image de fond.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BACKGROUNDREPEAT);
         $select = new SInputSelect($this->prefixIdClass, INPUTSELECT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BACKGROUNDREPEAT), '', '', '', '', '', '', '', '', '', $niveau);
         $select->AjouterElement('repeat', 'repeat', '', $valeur === 'repeat');
         $select->AjouterElement('repeat-x', 'repeat-x', '', $valeur === 'repeat-x');
         $select->AjouterElement('repeat-y', 'repeat-y', '', $valeur === 'repeat-y');
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_PPREPETITION, true, true), $select, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 3, $inputLabel);
         // Transparence.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_OPACITY);
         if ($valeur === '') {
             $valeur = '100';
         }
         $text = new SInputText($this->prefixIdClass, INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_OPACITY), $valeur, 0, 0, 3, false, '%', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 100, $niveau);
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_PPTRANSPARENCE, true, true), $text, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 4, $inputLabel);
         $org1->AttacherCellule(1, 1, $org2);
         $cListeCssSousElements->AjouterElement(GSession::Libelle(LIB_PRS_SEPREMIERPLAN, true, true), $org1);
     }
     /*****************************************************/
     // Second Plan.
     if ($secondPlan === true) {
         $org1 = new SOrganiseur(2, 1, true, true);
         $org2 = new SOrganiseur(1, 4, true, true);
         // Couleur du fond.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classe, CSSATT_BACKGROUNDCOLOR);
         $color = new SInputColor($this->prefixIdClass, COLOR_TYPE_LISTE, GContexte::FormaterVariable($this->contexte, $classe . '][' . CSSATT_BACKGROUNDCOLOR), $valeur);
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_PPCOULEURFOND, true, true), $color, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 1, $inputLabel);
         // Image de fond.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classe, CSSATT_BACKGROUNDIMAGE);
         $valeur = substr($valeur, 4, strlen($valeur) - 1);
         $img = new SInputImage($this->prefixIdClass, INPUTFILE_TYPE_LISTEIMAGE, false, GContexte::FormaterVariable($this->contexte, $classe . '][' . CSSATT_BACKGROUNDIMAGE), '', GSession::Groupe(COL_ID), '', '', TYPEFICHIER_IMAGEGROUPE, $this->contexte, $niveau);
         GReferentiel::AjouterReferentielFichiers('images', GCss::GetCheminFichiersImages(), REF_FICHIERSEXTENSIONS_IMAGES);
         $img->AjouterElementsFromListe('images', false, $valeur);
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_PPIMAGE, true, true), $img, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 2, $inputLabel);
         // Répétition de l'image de fond.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classe, CSSATT_BACKGROUNDREPEAT);
         $select = new SInputSelect($this->prefixIdClass, INPUTSELECT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classe . '][' . CSSATT_BACKGROUNDREPEAT), '', '', '', '', '', '', '', '', '', $niveau);
         $select->AjouterElement('repeat', 'repeat', '', $valeur === 'repeat');
         $select->AjouterElement('repeat-x', 'repeat-x', '', $valeur === 'repeat-x');
         $select->AjouterElement('repeat-y', 'repeat-y', '', $valeur === 'repeat-y');
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_PPREPETITION, true, true), $select, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 3, $inputLabel);
         // Transparence.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classe, CSSATT_OPACITY);
         if ($valeur === '') {
             $valeur = '100';
         }
         $text = new SInputText($this->prefixIdClass, INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classe . '][' . CSSATT_OPACITY), $valeur, 0, 0, 3, false, '%', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 100, $niveau);
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_PPTRANSPARENCE, true, true), $text, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 4, $inputLabel);
         $org1->AttacherCellule(1, 1, $org2);
         $cListeCssSousElements->AjouterElement(GSession::Libelle(LIB_PRS_SESECONDPLAN, true, true), $org1);
     }
     /*****************************************************/
     // Cadre.
     if ($cadre === true) {
         $org1 = new SOrganiseur(2, 1, true, true);
         $org2 = new SOrganiseur(2, 1, true, true);
         $org1->AttacherCellule(1, 1, $org2);
         $org3 = new SOrganiseur(4, 1, true, true);
         $org1->AttacherCellule(2, 1, $org3);
         // Marge intérieure.
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_CMARGEINT, true, true), $text, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true, true);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_PADDINGTOP);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CHAUT), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_PADDINGTOP), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_PADDINGLEFT);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CGAUCHE), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_PADDINGLEFT), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_PADDINGBOTTOM);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CBAS), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_PADDINGBOTTOM), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_PADDINGRIGHT);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CDROIT), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_PADDINGRIGHT), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $org2->AttacherCellule(1, 1, $inputLabel);
         //Marge extérieure.
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_CMARGEEXT, true, true), $text, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true, true);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_MARGINTOP);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CHAUT), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_MARGINTOP), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_MARGINLEFT);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CGAUCHE), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_MARGINLEFT), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_MARGINBOTTOM);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CBAS), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_MARGINBOTTOM), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_MARGINRIGHT);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CDROIT), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_MARGINRIGHT), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $org2->AttacherCellule(2, 1, $inputLabel);
         //Bord haut.
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_CBORDHAUT, true, true), $text, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true, true);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERTOPCOLOR);
         $inputLabel->AjouterInputColor(GSession::Libelle(LIB_PRS_TCOULEUR), COLOR_TYPE_LISTE, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERTOPCOLOR), $valeur);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERTOPWIDTH);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CEPAISSEUR), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERTOPWIDTH), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERTOPSTYLE);
         $select = $inputLabel->AjouterInputSelect(GSession::Libelle(LIB_PRS_TSTYLE), INPUTSELECT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERTOPSTYLE));
         $select->AjouterElement('none', 'none', '', $valeur === 'none');
         $select->AjouterElement('dotted', 'dotted', '', $valeur === 'dotted');
         $select->AjouterElement('dashed', 'dashed', '', $valeur === 'dashed');
         $select->AjouterElement('solid', 'solid', '', $valeur === 'solid');
         $select->AjouterElement('double', 'double', '', $valeur === 'double');
         $select->AjouterElement('groove', 'groove', '', $valeur === 'groove');
         $select->AjouterElement('ridge', 'ridge', '', $valeur === 'ridge');
         $select->AjouterElement('inset', 'inset', '', $valeur === 'inset');
         $select->AjouterElement('outset', 'outset', '', $valeur === 'outset');
         $org3->AttacherCellule(1, 1, $inputLabel);
         //Bord gauche.
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_CBORDGAUCHE, true, true), $text, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true, true);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERLEFTCOLOR);
         $inputLabel->AjouterInputColor(GSession::Libelle(LIB_PRS_TCOULEUR), COLOR_TYPE_LISTE, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERLEFTCOLOR), $valeur);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERLEFTWIDTH);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CEPAISSEUR), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERLEFTWIDTH), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERLEFTSTYLE);
         $select = $inputLabel->AjouterInputSelect(GSession::Libelle(LIB_PRS_TSTYLE), INPUTSELECT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERLEFTSTYLE));
         $select->AjouterElement('none', 'none', '', $valeur === 'none');
         $select->AjouterElement('dotted', 'dotted', '', $valeur === 'dotted');
         $select->AjouterElement('dashed', 'dashed', '', $valeur === 'dashed');
         $select->AjouterElement('solid', 'solid', '', $valeur === 'solid');
         $select->AjouterElement('double', 'double', '', $valeur === 'double');
         $select->AjouterElement('groove', 'groove', '', $valeur === 'groove');
         $select->AjouterElement('ridge', 'ridge', '', $valeur === 'ridge');
         $select->AjouterElement('inset', 'inset', '', $valeur === 'inset');
         $select->AjouterElement('outset', 'outset', '', $valeur === 'outset');
         $org3->AttacherCellule(2, 1, $inputLabel);
         //Bord bas.
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_CBORDBAS, true, true), $text, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true, true);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERBOTTOMCOLOR);
         $inputLabel->AjouterInputColor(GSession::Libelle(LIB_PRS_TCOULEUR), COLOR_TYPE_LISTE, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERBOTTOMCOLOR), $valeur);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERBOTTOMWIDTH);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CEPAISSEUR), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERBOTTOMWIDTH), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERBOTTOMSTYLE);
         $select = $inputLabel->AjouterInputSelect(GSession::Libelle(LIB_PRS_TSTYLE), INPUTSELECT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERBOTTOMSTYLE));
         $select->AjouterElement('none', 'none', '', $valeur === 'none');
         $select->AjouterElement('dotted', 'dotted', '', $valeur === 'dotted');
         $select->AjouterElement('dashed', 'dashed', '', $valeur === 'dashed');
         $select->AjouterElement('solid', 'solid', '', $valeur === 'solid');
         $select->AjouterElement('double', 'double', '', $valeur === 'double');
         $select->AjouterElement('groove', 'groove', '', $valeur === 'groove');
         $select->AjouterElement('ridge', 'ridge', '', $valeur === 'ridge');
         $select->AjouterElement('inset', 'inset', '', $valeur === 'inset');
         $select->AjouterElement('outset', 'outset', '', $valeur === 'outset');
         $org3->AttacherCellule(3, 1, $inputLabel);
         //Bord droit.
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_CBORDDROIT, true, true), $text, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true, true);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERRIGHTCOLOR);
         $inputLabel->AjouterInputColor(GSession::Libelle(LIB_PRS_TCOULEUR), COLOR_TYPE_LISTE, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERRIGHTCOLOR), $valeur);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERRIGHTWIDTH);
         $inputLabel->AjouterInputText(GSession::Libelle(LIB_PRS_CEPAISSEUR), INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERRIGHTWIDTH), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 30);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_BORDERRIGHTSTYLE);
         $select = $inputLabel->AjouterInputSelect(GSession::Libelle(LIB_PRS_TSTYLE), INPUTSELECT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_BORDERRIGHTSTYLE));
         $select->AjouterElement('none', 'none', '', $valeur === 'none');
         $select->AjouterElement('dotted', 'dotted', '', $valeur === 'dotted');
         $select->AjouterElement('dashed', 'dashed', '', $valeur === 'dashed');
         $select->AjouterElement('solid', 'solid', '', $valeur === 'solid');
         $select->AjouterElement('double', 'double', '', $valeur === 'double');
         $select->AjouterElement('groove', 'groove', '', $valeur === 'groove');
         $select->AjouterElement('ridge', 'ridge', '', $valeur === 'ridge');
         $select->AjouterElement('inset', 'inset', '', $valeur === 'inset');
         $select->AjouterElement('outset', 'outset', '', $valeur === 'outset');
         $org3->AttacherCellule(4, 1, $inputLabel);
         $cListeCssSousElements->AjouterElement(GSession::Libelle(LIB_PRS_SECADRE, true, true), $org1);
     }
     /*****************************************************/
     // Alignement.
     //$cListeCssSousElements->AjouterElement(GSession::Libelle(LIB_PRS_SEALIGNEMENT, true, true), 'gnu testa');
     /*****************************************************/
     // Texte.
     if ($texte === true) {
         $org1 = new SOrganiseur(2, 1, true, true);
         $org2 = new SOrganiseur(1, 4, true, true);
         // Couleur.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_COLOR);
         $color = new SInputColor($this->prefixIdClass, COLOR_TYPE_LISTE, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_COLOR), $valeur);
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_TCOULEUR, true, true), $color, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 1, $inputLabel);
         // Police.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_FONTFAMILY);
         $select = new SInputSelect($this->prefixIdClass, INPUTSELECT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_FONTFAMILY), '', '', '', '', '', '', '', '', '', $niveau);
         $select->AjouterElement('Arial sans serif', 'Arial', '', $valeur === 'Arial sans serif');
         $select->AjouterElement('Helvetica sans serif', 'Helvetica', '', $valeur === 'Helvetica sans serif');
         $select->AjouterElement('MS sans serif', 'MS', '', $valeur === 'MS sans serif');
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_TPOLICE, true, true), $select, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 2, $inputLabel);
         // Taille.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_FONTSIZE);
         $text = new SInputText($this->prefixIdClass, INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_FONTSIZE), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 40, $niveau);
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_TTAILLE, true, true), $text, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 3, $inputLabel);
         // Indentation.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_TEXTINDENT);
         $text = new SInputText($this->prefixIdClass, INPUTTEXT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_TEXTINDENT), str_replace('px', '', $valeur), 0, 2, 2, false, 'px', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 0, 40, $niveau);
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_TINDENTATION, true, true), $text, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org2->AttacherCellule(1, 4, $inputLabel);
         $org1->AttacherCellule(1, 1, $org2);
         // Style.
         $org3 = new SOrganiseur(1, 4, true, true);
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_FONTSTYLE);
         $select = new SInputSelect($this->prefixIdClass, INPUTSELECT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_FONTSTYLE), '', '', '', '', '', '', '', '', '', $niveau);
         $select->AjouterElement('normal', 'normal', '', $valeur === 'normal');
         $select->AjouterElement('italic', 'italique', '', $valeur === 'italic');
         $select->AjouterElement('oblique', 'oblique', '', $valeur === 'oblique');
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_TSTYLE, true, true), $select, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org3->AttacherCellule(1, 1, $inputLabel);
         // Poids.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_FONTWEIGHT);
         $select = new SInputSelect($this->prefixIdClass, INPUTSELECT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_FONTWEIGHT), '', '', '', '', '', '', '', '', '', $niveau);
         $select->AjouterElement('lighter', 'léger', '', $valeur === 'lighter');
         $select->AjouterElement('normal', 'normal', '', $valeur === 'normal');
         $select->AjouterElement('bold', 'gras', '', $valeur === 'bold');
         $select->AjouterElement('bolder', 'très gras', '', $valeur === 'bolder');
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_TPOIDS, true, true), $select, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org3->AttacherCellule(1, 2, $inputLabel);
         // Décoration.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_TEXTDECORATION);
         $select = new SInputSelect($this->prefixIdClass, INPUTSELECT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_TEXTDECORATION), '', '', '', '', '', '', '', '', '', $niveau);
         $select->AjouterElement('underline', 'souligné', '', $valeur === 'underline');
         $select->AjouterElement('overline', 'surligné', '', $valeur === 'overline');
         $select->AjouterElement('line-through', 'barré', '', $valeur === 'line-through');
         $select->AjouterElement('none', 'aucune', '', $valeur === 'none');
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_TDECORATION, true, true), $select, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org3->AttacherCellule(1, 3, $inputLabel);
         // Casse.
         $valeur = GCss::GetValeurAttributCss($this->nomFichier, $this->presentation, $classeTab, CSSATT_FONTVARIANT);
         $select = new SInputSelect($this->prefixIdClass, INPUTSELECT_TYPE_LISTE, false, GContexte::FormaterVariable($this->contexte, $classeTab . '][' . CSSATT_FONTVARIANT), '', '', '', '', '', '', '', '', '', $niveau);
         $select->AjouterElement('normal', 'normal', '', $valeur === 'normal');
         $select->AjouterElement('small-caps', 'petites capitales', '', $valeur === 'small-caps');
         $inputLabel = new SInputLabel($this->prefixIdClass, GSession::Libelle(LIB_PRS_TCASSE, true, true), $select, INPUTLABELPLACE_GAUCHE, false, false, $niveau, true, true);
         $org3->AttacherCellule(1, 4, $inputLabel);
         $org1->AttacherCellule(2, 1, $org3);
         $cListeCssSousElements->AjouterElement(GSession::Libelle(LIB_PRS_SETEXTE, true, true), $org1);
     }
     return $cListeCssSousElements;
 }
Ejemplo n.º 11
0
        $mTypeGroupe = new MTypeGroupe(TYPEGROUPE_JEU);
        $mTypeGroupe->AjouterColSelection(COL_LIBELLE);
        $mTypeGroupe->Charger();
        $select->AjouterElement(-2, $mTypeGroupe->Libelle(), '', GSession::Groupe(COL_TYPEGROUPE) === TYPEGROUPE_JEU, false);
    }
    if ($mJeu != NULL && $mGroupe != NULL) {
        $select->AjouterCategorie($mJeu->Id(), $mJeu->Libelle());
        $select->AjouterElement($mGroupe->Id(), $mGroupe->Nom(), $mGroupe->Description(), true, false);
    }
    $selectGroupe->SetCadreBoutonsCache(1, 2);
    GContexte::AjouterContenu(CADRE_INFO_GROUPE, $selectGroupe);
} else {
    if (GSession::Groupe('change') == 1) {
        GReferentiel::AjouterReferentiel(COL_JEU, $mListeJeux, array(COL_ID, array(COL_LIBELLE, COL_LIBELLE)), true);
        GReferentiel::GetDifferentielReferentielForSelect(COL_JEU, COL_ID, array(COL_LIBELLE, COL_LIBELLE), '', $jeuId);
        $typeGroupe = GSession::Groupe(COL_TYPEGROUPE);
        if ($typeGroupe == TYPEGROUPE_COMMUNAUTE) {
            GReponse::AjouterElementSelect(COL_GROUPE);
            GReponse::AjouterElementSelectSelection(-1);
        } else {
            if ($typeGroupe == TYPEGROUPE_JEU) {
                GReponse::AjouterElementSelect(COL_GROUPE);
                GReponse::AjouterElementSelectSelection(-2);
            } else {
                GReferentiel::AjouterReferentiel(COL_GROUPE, $mListeGroupes, array(COL_ID, COL_NOM, COL_DESCRIPTION, COL_JEU), true);
                GReferentiel::GetDifferentielReferentielForSelect(COL_GROUPE, COL_ID, COL_NOM, COL_DESCRIPTION, $groupeId, COL_JEU, array(COL_JEU, COL_LIBELLE, COL_LIBELLE));
            }
        }
        GSession::Groupe('change', NULL, true);
    }
}
Ejemplo n.º 12
0
 public function AjouterElementsFromListe($nomRef, $colId = COL_ID, $colLibelle = array(COL_LIBELLE, COL_LIBELLE), $colDescription = '', $idParDefaut = NULL)
 {
     foreach (GReferentiel::GetReferentiel($nomRef) as $mObjet) {
         $valParDefaut = false;
         $id = $mObjet->GetChampSQLFromTableau($colId);
         if ($idParDefaut !== NULL && $id == $idParDefaut) {
             $valParDefaut = true;
         }
         if ($colDescription !== '') {
             $this->AjouterElement($id, $mObjet->GetChampSQLFromTableau($colLibelle), $mObjet->GetChampSQLFromTableau($colDescription), $valParDefaut);
         } else {
             $this->AjouterElement($id, $mObjet->GetChampSQLFromTableau($colLibelle), '', $valParDefaut);
         }
     }
     $this->AjouterReference($nomRef);
 }
Ejemplo n.º 13
0
 protected function GetDifferentielReferentielForSelectElement($element, $nom, $colId, $colLib, $colDesc)
 {
     GReferentiel::GetDifferentielReferentielForSelect($this->NomRefFormate($nom) . '_' . $element[LISTE_ELEMENT_ID], $colId, $colLib, $colDesc);
 }
Ejemplo n.º 14
0
 public function AjouterElementsFromListe($nomRef, $listeVide = false, $fichierParDefaut = NULL)
 {
     if ($listeVide !== true) {
         $chemin = GReferentiel::GetCheminReferentielFichiers($nomRef);
         foreach (GReferentiel::GetReferentielFichiers($nomRef) as $fichier) {
             $valParDefaut = false;
             if ($fichierParDefaut !== NULL && $chemin . $fichier === $fichierParDefaut) {
                 $valParDefaut = true;
             }
             $this->AjouterElement($chemin . $fichier, $fichier, PATH_SERVER_HTTP . $chemin . $fichier, $valParDefaut);
         }
     }
     // Référentiel.
     $divRef = new SBalise(BAL_DIV);
     $divRef->SetText($nomRef);
     $divRef->AddClass(INPUTSELECT_JQ_REF);
     $divRef->AddStyle('display:none;');
     $this->select->Attach($divRef);
 }
            GReferentiel::AjouterReferentiel($nomReferentiel, $mListe, array(COL_ID, array(COL_LIBELLE, COL_LIBELLE)), true);
            GReferentiel::GetDifferentielReferentielForSelect($nomReferentiel, COL_ID, array(COL_LIBELLE, COL_LIBELLE));
            break;
        case 'Groupes' . COL_SERVEUR . ',' . COL_ID:
            $jeu = GContexte::LireVariablePost($nomContexte, COL_JEU . ',' . COL_ID);
            $mListe = new MListeServeurs();
            if ($jeu !== NULL) {
                $mListe->AjouterColSelection(COL_ID);
                $mListe->AjouterColSelection(COL_LIBELLE);
                $mListe->AjouterColOrdre(COL_LIBELLE);
                $mListe->AjouterFiltreEgal(COL_JEU, $jeu);
                $mListe->Charger();
            }
            GReferentiel::AjouterReferentiel($nomReferentiel, $mListe, array(COL_ID, array(COL_LIBELLE, COL_LIBELLE)), true);
            GReferentiel::GetDifferentielReferentielForSelect($nomReferentiel, COL_ID, array(COL_LIBELLE, COL_LIBELLE));
            break;
        case 'Groupes' . COL_TYPEGROUPE . ',' . COL_ID:
            $jeu = GContexte::LireVariablePost($nomContexte, COL_JEU . ',' . COL_ID);
            $mListe = new MListeTypesGroupes();
            if ($jeu !== NULL) {
                $mListe->AjouterColSelection(COL_ID);
                $mListe->AjouterColSelection(COL_LIBELLE);
                $mListe->AjouterColOrdre(COL_LIBELLE);
                $mListe->AjouterFiltreEgal(COL_JEU, $jeu);
                $mListe->Charger();
            }
            GReferentiel::AjouterReferentiel($nomReferentiel, $mListe, array(COL_ID, array(COL_LIBELLE, COL_LIBELLE)), true);
            GReferentiel::GetDifferentielReferentielForSelect($nomReferentiel, COL_ID, array(COL_LIBELLE, COL_LIBELLE));
            break;
    }
}
<?php

require_once 'cst.php';
if (GDroit::ADroitPopErreur(DROIT_ADMIN) === true) {
    switch (GReferentiel::NomReferentielGeneral($nomReferentiel)) {
        case 'LanguesAdmin' . COL_ICONE:
            GReferentiel::AjouterReferentielFichiers($nomReferentiel, PATH_IMAGES . 'Langue/', REF_FICHIERSEXTENSIONS_IMAGES);
            GReferentiel::GetDifferentielReferentielFichiersForSelect($nomReferentiel);
            break;
    }
}
Ejemplo n.º 17
0
                $mGroupe->AjouterColSelection(COL_JEU);
                $mJeu = $mGroupe->AjouterJointure(COL_JEU, COL_ID);
                $mJeu->AjouterColSelection(COL_LIBELLE);
                $mGroupe->Charger();
                $mListeGroupes->AjouterElement($mGroupe);
            }
            // On stocke en session les informations du groupe.
            GSession::Groupe(COL_ID, $mGroupe->Id(), true);
            GSession::Groupe(COL_NOM, $mGroupe->Nom(), true);
            GSession::Groupe(COL_DESCRIPTION, $mGroupe->Description(), true);
            GSession::Groupe(COL_TYPEGROUPE, $mGroupe->TypeGroupe()->Id(), true);
            GSession::Groupe(COL_JEU, $mGroupe->Jeu()->Id(), true);
            // On reset la liste des groupes en fonction du jeu.
            GReferentiel::AjouterReferentiel(COL_GROUPE, $mListeGroupes, array(COL_ID, COL_NOM, COL_DESCRIPTION, COL_JEU), true);
            GReferentiel::GetDifferentielReferentielForSelect(COL_GROUPE, COL_ID, COL_NOM, COL_DESCRIPTION, NULL, COL_JEU, array(COL_JEU, COL_LIBELLE, COL_LIBELLE));
            if ($mJeu !== NULL) {
                $ancienJeu = GSession::Jeu(COL_ID);
                // Si le jeu à changé.
                if ($ancienJeu != $mJeu->Id()) {
                    $mListe = new MListeJeux();
                    $mListe->AjouterElement($mJeu);
                    GReferentiel::AjouterReferentiel(COL_JEU, $mListe, array(COL_ID, array(COL_LIBELLE, COL_LIBELLE)), true);
                    GReferentiel::GetDifferentielReferentielForSelect(COL_JEU, COL_ID, array(COL_LIBELLE, COL_LIBELLE), '', $mJeu->Id());
                    GSession::Jeu(COL_ID, $mJeu->Id(), true);
                    GSession::Jeu(COL_LIBELLE, $mJeu->Libelle(), true);
                }
            }
        }
    }
}
GContexte::SetContexte(CONT_ACCUEIL, true);