Example #1
0
 public function Modifier()
 {
     $retour = false;
     $colCond = $this->bufferColCond;
     if ($this->Id() !== NULL || $colCond !== NULL) {
         if ($colCond === NULL) {
             $this->AjouterColCondition(COL_ID);
             $this->AjouterColCondition(COL_LANGUE);
         }
         if ($this->Langue()->Id() === NULL) {
             $this->Langue()->Id(GSession::Langue(COL_ID));
         }
         $this->LangueOriginelle()->Id($this->Langue()->Id());
         // On ne modifie le libellé que pour notre langue.
         $retour = parent::Modifier();
         if ($retour !== false) {
             // On modifie le libellé pour toutes les autres langues qui ont comme langue d'origine notre langue.
             $mListeLibelles = new MListeLibellesLibres();
             $mListeLibelles->AjouterColModification(COL_LIBELLE, $this->Libelle());
             $mListeLibelles->AjouterColModification(COL_TYPELIBELLE, $this->TypeLibelle()->Id());
             $mListeLibelles->AjouterFiltreEgal(COL_ID, $this->Id());
             $mListeLibelles->AjouterFiltreEgal(COL_LANGUEORIGINELLE, $this->Langue()->Id());
             $retour = $mListeLibelles->Modifier();
         }
     }
     return $retour;
 }
Example #2
0
 public function ListeMenusFonctionnalites($liste = NULL)
 {
     $oldId = NULL;
     if ($this->mListeMenusFonctionnalites !== NULL) {
         $oldId = $this->mListeMenusFonctionnalites->GetFiltreValeur(0, COL_MENU);
     }
     if ($this->Id() === NULL && $liste === NULL) {
         if ($this->mListeMenusFonctionnalites !== NULL && $this->Id() !== $oldId) {
             unset($this->mListeMenusFonctionnalites);
         }
     } else {
         if ($this->mListeMenusFonctionnalites === NULL || $this->Id() !== $oldId) {
             if ($this->mListeMenusFonctionnalites === NULL || $oldId !== NULL) {
                 $this->mListeMenusFonctionnalites = new MListeMenusFonctionnalites();
                 $numJointureFonc = $this->mListeMenusFonctionnalites->AjouterJointure(COL_FONCTIONNALITE, COL_ID);
                 $this->mListeMenusFonctionnalites->AjouterColSelectionPourJointure($numJointureFonc, COL_ID);
                 $numJointure = $this->mListeMenusFonctionnalites->AjouterJointure(COL_LIBELLE, COL_ID, $numJointureFonc);
                 $this->mListeMenusFonctionnalites->AjouterColSelectionPourJointure($numJointure, COL_LIBELLE, COL_LIBELLE . COL_LIBELLE);
                 $this->mListeMenusFonctionnalites->AjouterColOrdrePourJointure($numJointure, COL_LIBELLE);
                 $this->mListeMenusFonctionnalites->AjouterFiltreEgalPourJointure($numJointure, COL_LANGUE, GSession::Langue(COL_ID));
                 $numJointure = $this->mListeMenusFonctionnalites->AjouterJointure(COL_DESCRIPTION, COL_ID, $numJointureFonc);
                 $this->mListeMenusFonctionnalites->AjouterColSelectionPourJointure($numJointure, COL_LIBELLE, COL_DESCRIPTION . COL_LIBELLE);
                 $this->mListeMenusFonctionnalites->AjouterFiltreEgalPourJointure($numJointure, COL_LANGUE, GSession::Langue(COL_ID));
             }
             $this->mListeMenusFonctionnalites->AjouterFiltreEgal(COL_MENU, $this->Id());
         }
     }
     if ($this->mListeMenusFonctionnalites !== NULL && $liste !== NULL) {
         $this->mListeMenusFonctionnalites->SetListeFromTableau($liste, array(array(COL_ID, COL_FONCTIONNALITE), array(array(COL_LIBELLE, array(COL_FONCTIONNALITE, COL_LIBELLE, COL_LIBELLE)))));
     }
     return $this->mListeMenusFonctionnalites;
 }
Example #3
0
 public function __construct($prefixIdClass, $typeInput = '', $oblig = false, $niveau = '')
 {
     parent::__construct(BAL_DIV);
     GSession::PoidsJavascript(1);
     switch ($typeInput) {
         default:
             if ($typeInput === '') {
                 $typeInput = INPUTNEW_TYPE_SELECT;
             }
             break;
     }
     $this->prefixIdClass = $prefixIdClass;
     $this->niveau = $niveau;
     $this->AddClass(INPUTNEW_JQ);
     $this->AddClass('jq_fill');
     if ($oblig == true) {
         $this->AddClass('jq_input_form_oblig');
     }
     $elem = new SElement($this->prefixIdClass . INPUTNEW . $this->niveau);
     $elem->AjouterClasse(INPUTNEW . $this->niveau);
     $this->Attach($elem);
     $org = new SOrganiseur(1, 2);
     $elem->Attach($org);
     // Input.
     if ($typeInput == INPUTNEW_TYPE_SELECT && $this->select != NULL) {
         $org->AttacherCellule(1, 1, $this->select);
     } else {
         if ($typeInput == INPUTNEW_TYPE_TEXT && $this->text != NULL) {
             $org->AttacherCellule(1, 1, $this->text);
         }
     }
     $this->newTab = new STableau(true);
     $this->newTab->AddClass('jq_fill');
     $org->AttacherCellule(1, 2, $this->newTab);
 }
Example #4
0
 public function __construct($prefixIdClass, $typeInput = INPUTFILE_TYPE_IMAGE, $oblig = false, $retour = '', $chemin = '', $id = '', $info = '', $erreur = '', $type = '', $contexte = '', $niveau = '')
 {
     parent::__construct(2, 1, '', true);
     GSession::PoidsJavascript(1);
     if ($typeInput === '') {
         $typeInput = INPUTFILE_TYPE_IMAGE;
     }
     switch ($typeInput) {
         case INPUTFILE_TYPE_LISTEIMAGE:
             $this->AddClass(LISTEINPUTIMAGE_JQ);
             break;
         default:
             $this->AddClass(INPUTIMAGE_JQ);
     }
     $elemImage = new SElement($prefixIdClass . INPUTIMAGE_IMAGE . $niveau);
     $elemImage->AjouterClasse(INPUTIMAGE_IMAGE . $niveau);
     $image = new SImage('');
     $image->AddClass(INPUTIMAGE_JQ_IMAGE);
     $elemImage->Attach($image);
     $this->AttacherCellule(1, 1, $elemImage);
     $elemFile = new SElement($prefixIdClass . INPUTIMAGE_FILE . $niveau);
     //, true, '', '', false);
     $elemFile->AjouterClasse(INPUTIMAGE_FILE . $niveau);
     $this->inputFile = new SInputFile($prefixIdClass, $typeInput, $oblig, $retour, $chemin, REF_FICHIERSEXTENSIONS_IMAGES, $id, $info, $erreur, $type, $contexte, $niveau);
     $this->inputFile->AddClass(INPUTIMAGE_JQ_FILE);
     $elemFile->Attach($this->inputFile);
     $this->AttacherCellule(2, 1, $elemFile);
 }
Example #5
0
 protected function GetElemCreationListeMenus()
 {
     $menus = array();
     if ($this->HasDroitCreation()) {
         $this->AjouterMenuToListe($menus, 0, GSession::Libelle(LIB_LIS_AJOUTER, true, true), $this->foncAjaxCreation, 'contexte=' . $this->contexte . '&ref=' . $this->TypeSynchroPage(), true, LISTE_JQCADRE_ETAGE . '1', true);
     }
     return $menus;
 }
Example #6
0
 public function Supprimer()
 {
     $id = $this->Id();
     if ($id != NULL) {
         $bCategorie = new BCategorie();
         $bCategorie->Supprimer($id);
     } else {
         GSession::LeverException(EXM_0012, 'MCategorie::Supprimer, pas d\'id categorie.');
     }
 }
 protected function ConstruireElemCreation()
 {
     //$elem = parent::ConstruireElemCreation();
     $org = new SOrganiseur(4, 1, true, true);
     $org->AttacherCellule(1, 1, $this->ConstruireChamp('champ_1', LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(2, 1, $this->ConstruireChamp('champ_2', LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(3, 1, $this->ConstruireChamp('champ_3', LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(4, 1, $this->ConstruireChamp('champ_4', LISTE_CHAMPTYPE_CREAT));
     $elem = parent::ConstruireElemCreation(GSession::Libelle(LIB_PRS_TITRE, true, true), $org);
     //$elem->Attach($org);
     return $elem;
 }
Example #8
0
 public function Ajouter()
 {
     // Ouverture de la transaction si on ne l'ai pas déjà.
     $retour = parent::Ajouter();
     if ($retour !== false) {
         // On copie les libellés pour la nouvelle langue.
         $mListeLibelles = new MListeLibelles();
         $mListeLibelles->AjouterJointure(COL_LANGUE, COL_ID, 0, SQL_CROSS_JOIN);
         $mListeLibelles->AjouterColInsertionExt(0, COL_ID, COL_ID);
         $mListeLibelles->AjouterColInsertionExt(0, COL_LIBELLE, COL_LIBELLE);
         $mListeLibelles->AjouterColInsertionExt(0, COL_TYPELIBELLE, COL_TYPELIBELLE);
         $mListeLibelles->AjouterColInsertionExt(0, COL_LANGUEORIGINELLE, COL_LANGUEORIGINELLE);
         $mListeLibelles->AjouterColInsertionExt(1, COL_LANGUE, COL_ID);
         $mListeLibelles->AjouterFiltreEgal(COL_LANGUE, GSession::Langue(COL_ID));
         $mListeLibelles->AjouterFiltreEgalPourJointure(1, COL_ID, $this->Id());
         $mListeLibelles->Ajouter();
         $mListeLibelles = new MListeLibellesLibres();
         $mListeLibelles->AjouterJointure(COL_LANGUE, COL_ID, 0, SQL_CROSS_JOIN);
         $mListeLibelles->AjouterColInsertionExt(0, COL_ID, COL_ID);
         $mListeLibelles->AjouterColInsertionExt(0, COL_LIBELLE, COL_LIBELLE);
         $mListeLibelles->AjouterColInsertionExt(0, COL_TYPELIBELLE, COL_TYPELIBELLE);
         $mListeLibelles->AjouterColInsertionExt(0, COL_LANGUEORIGINELLE, COL_LANGUEORIGINELLE);
         $mListeLibelles->AjouterColInsertionExt(1, COL_LANGUE, COL_ID);
         $mListeLibelles->AjouterFiltreEgal(COL_LANGUE, GSession::Langue(COL_ID));
         $mListeLibelles->AjouterFiltreEgalPourJointure(1, COL_ID, $this->Id());
         $mListeLibelles->Ajouter();
         $mListeLibelles = new MListeLibellesTextes();
         $mListeLibelles->AjouterJointure(COL_LANGUE, COL_ID, 0, SQL_CROSS_JOIN);
         $mListeLibelles->AjouterColInsertionExt(0, COL_ID, COL_ID);
         $mListeLibelles->AjouterColInsertionExt(0, COL_LIBELLE, COL_LIBELLE);
         $mListeLibelles->AjouterColInsertionExt(0, COL_TYPELIBELLE, COL_TYPELIBELLE);
         $mListeLibelles->AjouterColInsertionExt(0, COL_LANGUEORIGINELLE, COL_LANGUEORIGINELLE);
         $mListeLibelles->AjouterColInsertionExt(1, COL_LANGUE, COL_ID);
         $mListeLibelles->AjouterFiltreEgal(COL_LANGUE, GSession::Langue(COL_ID));
         $mListeLibelles->AjouterFiltreEgalPourJointure(1, COL_ID, $this->Id());
         $mListeLibelles->Ajouter();
         $mListeLibelles = new MListeLibellesTextesLibres();
         $mListeLibelles->AjouterJointure(COL_LANGUE, COL_ID, 0, SQL_CROSS_JOIN);
         $mListeLibelles->AjouterColInsertionExt(0, COL_ID, COL_ID);
         $mListeLibelles->AjouterColInsertionExt(0, COL_LIBELLE, COL_LIBELLE);
         $mListeLibelles->AjouterColInsertionExt(0, COL_TYPELIBELLE, COL_TYPELIBELLE);
         $mListeLibelles->AjouterColInsertionExt(0, COL_LANGUEORIGINELLE, COL_LANGUEORIGINELLE);
         $mListeLibelles->AjouterColInsertionExt(1, COL_LANGUE, COL_ID);
         $mListeLibelles->AjouterFiltreEgal(COL_LANGUE, GSession::Langue(COL_ID));
         $mListeLibelles->AjouterFiltreEgalPourJointure(1, COL_ID, $this->Id());
         $mListeLibelles->Ajouter();
     }
     return $retour;
 }
Example #9
0
 public static function LeverWarning($code, $libelle, $affichageJoueur = false, $logFichier = true)
 {
     if ($affichageJoueur === true) {
         GReponse::AjouterElementWarning(strval($code), $libelle);
     }
     if ($logFichier === true) {
         if (is_int($libelle)) {
             $libelle = GSession::Libelle($libelle, false, true);
         }
         $fichier = fopen(PATH_SERVER_LOCAL . 'log/warnings' . date('Y-m-d') . '.txt', 'a+');
         $remoteHost = '';
         if (array_key_exists('REMOTE_HOST', $_SERVER)) {
             $remoteHost = $_SERVER['REMOTE_HOST'];
         }
         fwrite($fichier, date('H:i:s') . ' - ' . $_SERVER['REMOTE_ADDR'] . ' - ' . $remoteHost . ' - ' . $code . ': ' . $libelle . "\r\n");
         fclose($fichier);
     }
 }
Example #10
0
 protected function ConstruireElemRetourInvisible(&$element)
 {
     $retourInvisible = 'contexte=' . CONT_ORIENTATION . '&cf=' . GSession::NumCheckFormulaire();
     foreach ($this->champs as $nomChamp => $champ) {
         if ($champ[LISTE_CHAMPLISTE_RETOURINVISIBLE] === true) {
             if ($retourInvisible !== '') {
                 $retourInvisible .= '&';
             }
             $retourInvisible .= GContexte::FormaterVariable(CONT_ORIENTATION, $nomChamp) . '=' . $element[$nomChamp][LISTE_ELEMENT_VALEURCONSULT];
         }
     }
     // On enregistre ce retour pour l'élément.
     $element[LISTE_ELEMENT_RETOUR] = to_html($retourInvisible);
     $divRetInv = new SBalise(BAL_DIV);
     $divRetInv->AddClass(LISTE_JQ_ELEMENT_PARAM);
     $divRetInv->SetText($element[LISTE_ELEMENT_RETOUR]);
     return $divRetInv;
 }
 public function InitializePage()
 {
     $this->Base()->InitializePage();
     self::Langue(COL_ID);
     $communauteId = self::Communaute(COL_ID);
     require_once PATH_METIER . 'mGroupe.php';
     $mGroupe = new MGroupe();
     $mGroupe->AjouterColSelection(COL_ID);
     $mGroupe->AjouterColSelection(COL_NOM);
     $mGroupe->AjouterColSelection(COL_DESCRIPTION);
     $mGroupe->AjouterColCondition(COL_TYPEGROUPE, TYPEGROUPE_COMMUNAUTE);
     $mGroupe->AjouterColCondition(COL_COMMUNAUTE, $communauteId);
     $mGroupe->Charger();
     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, TYPEGROUPE_COMMUNAUTE, true);
 }
 protected function ConstruireElemConsultation(&$element)
 {
     $elem = parent::ConstruireElemConsultation($element, $this->GetElemChampValeurConsultation($element, COL_LIBELLE), $this->GetElemChampValeurConsultation($element, COL_CONTENU));
     if ($this->GetElemChampValeurConsultation($element, 'cligno') === true) {
         $elem->AddClass(VISUALISEUR_JQ_CLIGNOTEMENT);
         $div = new SBalise(BAL_DIV);
         $div->AddClass(VISUALISEUR_JQ_CLIGNOTEMENT_INFOPP);
         $div->AddStyle('display:none;');
         $div->SetText(GSession::Libelle(LIB_PRS_SEPREMIERPLAN, true, true));
         $elem->Attach($div);
         $div = new SBalise(BAL_DIV);
         $div->AddClass(BAL_DIV);
         $div->AddClass(VISUALISEUR_JQ_CLIGNOTEMENT_INFOAP);
         $div->AddStyle('display:none;');
         $div->SetText(GSession::Libelle(LIB_PRS_SESECONDPLAN, true, true));
         $elem->Attach($div);
         $div = new SBalise(BAL_DIV);
         $div->AddClass(VISUALISEUR_JQ_CLIGNOTEMENT_INFO . '20');
         $div->AddStyle('display:none;');
         $div->SetText(GSession::Libelle(LIB_PRS_CLIGNO20, true, true));
         $elem->Attach($div);
         $div = new SBalise(BAL_DIV);
         $div->AddClass(VISUALISEUR_JQ_CLIGNOTEMENT_INFO . '30');
         $div->AddStyle('display:none;');
         $div->SetText(GSession::Libelle(LIB_PRS_CLIGNO30, true, true));
         $elem->Attach($div);
         $div = new SBalise(BAL_DIV);
         $div->AddClass(VISUALISEUR_JQ_CLIGNOTEMENT_INFO . '40');
         $div->AddStyle('display:none;');
         $div->SetText(GSession::Libelle(LIB_PRS_CLIGNO40, true, true));
         $elem->Attach($div);
         $div = new SBalise(BAL_DIV);
         $div->AddClass(VISUALISEUR_JQ_CLIGNOTEMENT_INFO . '45');
         $div->AddStyle('display:none;');
         $div->SetText(GSession::Libelle(LIB_PRS_CLIGNO45, true, true));
         $elem->Attach($div);
     }
     return $elem;
 }
Example #13
0
 protected function InitialiserChamps()
 {
     $this->AjouterChamp(COL_ID, '-1', true, true);
     $autresDonnees = array();
     $autresDonnees[LISTE_AUTRESDONNEES_CHAMPLABEL] = GSession::Libelle(LIB_GPE_NOM);
     $this->AjouterChamp(COL_NOM, '', false, false, LISTE_INPUTTYPE_TEXT, LISTE_INPUTTYPE_TEXT, NULL, NULL, $autresDonnees);
     $autresDonnees = array();
     $autresDonnees[LISTE_AUTRESDONNEES_CHAMPLABEL] = GSession::Libelle(LIB_GPE_DESCRIPTION);
     $this->AjouterChamp(COL_DESCRIPTION, '', false, false, LISTE_INPUTTYPE_TEXT, LISTE_INPUTTYPE_TEXT, NULL, NULL, $autresDonnees);
     $autresDonnees = array();
     $autresDonnees[LISTE_AUTRESDONNEES_CHAMPLABEL] = GSession::Libelle(LIB_GPE_HISTOIRE);
     $this->AjouterChamp(COL_HISTOIRE, '', false, false, LISTE_INPUTTYPE_TEXT, LISTE_INPUTTYPE_TEXT, NULL, NULL, $autresDonnees);
     $autresDonnees = array();
     $autresDonnees[LISTE_AUTRESDONNEES_IMAGEVISUALISEUR] = true;
     $autresDonnees[LISTE_AUTRESDONNEES_IMAGETYPE] = TYPEFICHIER_IMAGEGLOBALE_COMMUNAUTE;
     $autresDonnees[LISTE_AUTRESDONNEES_CHAMPLABEL] = GSession::Libelle(LIB_GPE_ICONE);
     $this->AjouterChamp(COL_ICONE, '', false, false, LISTE_INPUTTYPE_IMAGE, LISTE_INPUTTYPE_IMAGE, NULL, NULL, $autresDonnees);
     $autresDonnees = array();
     $autresDonnees[LISTE_AUTRESDONNEES_CHAMPLABEL] = GSession::Libelle(LIB_GPE_COMMUNAUTE);
     $this->AjouterChamp(array(COL_COMMUNAUTE, COL_ID), '', false, false, LISTE_INPUTTYPE_SELECT, LISTE_INPUTTYPE_SELECT, NULL, NULL, $autresDonnees);
     $this->AjouterChamp(array(COL_COMMUNAUTE, COL_LIBELLE, COL_LIBELLE), '', false, false);
     $autresDonnees = array();
     $autresDonnees[LISTE_AUTRESDONNEES_SELECTIMPACT] = array(array(COL_SERVEUR, COL_ID), array(COL_TYPEGROUPE, COL_ID));
     $autresDonnees[LISTE_AUTRESDONNEES_CHAMPLABEL] = GSession::Libelle(LIB_GPE_JEU);
     $this->AjouterChamp(array(COL_JEU, COL_ID), '', false, false, LISTE_INPUTTYPE_FIND, LISTE_INPUTTYPE_FIND, NULL, NULL, $autresDonnees);
     $this->AjouterChamp(array(COL_JEU, COL_LIBELLE, COL_LIBELLE), '', false, false);
     $autresDonnees = array();
     $autresDonnees[LISTE_AUTRESDONNEES_SELECTDEPENDANCE] = array(array(COL_JEU, COL_ID));
     $autresDonnees[LISTE_AUTRESDONNEES_CHAMPLABEL] = GSession::Libelle(LIB_GPE_SERVEUR);
     $this->AjouterChamp(array(COL_SERVEUR, COL_ID), '', false, false, LISTE_INPUTTYPE_SELECT, LISTE_INPUTTYPE_SELECT, NULL, NULL, $autresDonnees);
     $this->AjouterChamp(array(COL_SERVEUR, COL_LIBELLE, COL_LIBELLE), '', false, false);
     $autresDonnees = array();
     $autresDonnees[LISTE_AUTRESDONNEES_SELECTDEPENDANCE] = array(array(COL_JEU, COL_ID));
     $autresDonnees[LISTE_AUTRESDONNEES_CHAMPLABEL] = GSession::Libelle(LIB_GPE_TYPEGROUPE);
     $this->AjouterChamp(array(COL_TYPEGROUPE, COL_ID), '', false, false, LISTE_INPUTTYPE_SELECT, LISTE_INPUTTYPE_SELECT, NULL, NULL, $autresDonnees);
     $this->AjouterChamp(array(COL_TYPEGROUPE, COL_LIBELLE, COL_LIBELLE), '', false, false);
 }
Example #14
0
    $mListe->AjouterColSelection(COL_DESCRIPTION);
    $mListe->AjouterColSelection(COL_HISTOIRE);
    $mListe->AjouterColSelection(COL_JEU);
    $numJointure = $mListe->AjouterJointure(COL_JEU, COL_ID);
    $numJointure = $mListe->AjouterJointure(COL_LIBELLE, COL_ID, $numJointure);
    $mListe->AjouterColSelectionPourJointure($numJointure, COL_LIBELLE, COL_JEU . COL_LIBELLE);
    $mListe->AjouterFiltreEgalPourJointure($numJointure, COL_LANGUE, GSession::Langue(COL_ID));
    $mListe->AjouterColSelection(COL_SERVEUR);
    $numJointure = $mListe->AjouterJointure(COL_SERVEUR, COL_ID);
    $numJointure = $mListe->AjouterJointure(COL_LIBELLE, COL_ID, $numJointure);
    $mListe->AjouterColSelectionPourJointure($numJointure, COL_LIBELLE, COL_SERVEUR . COL_LIBELLE);
    $mListe->AjouterFiltreEgalPourJointure($numJointure, COL_LANGUE, GSession::Langue(COL_ID));
    $mListe->AjouterColSelection(COL_COMMUNAUTE);
    $numJointure = $mListe->AjouterJointure(COL_COMMUNAUTE, COL_ID);
    $numJointure = $mListe->AjouterJointure(COL_LIBELLE, COL_ID, $numJointure);
    $mListe->AjouterColSelectionPourJointure($numJointure, COL_LIBELLE, COL_COMMUNAUTE . COL_LIBELLE);
    $mListe->AjouterFiltreEgalPourJointure($numJointure, COL_LANGUE, GSession::Langue(COL_ID));
    $mListe->AjouterColSelection(COL_TYPEGROUPE);
    $numJointure = $mListe->AjouterJointure(COL_TYPEGROUPE, COL_ID);
    $numJointure = $mListe->AjouterJointure(COL_LIBELLE, COL_ID, $numJointure);
    $mListe->AjouterColSelectionPourJointure($numJointure, COL_LIBELLE, COL_TYPEGROUPE . COL_LIBELLE);
    $mListe->AjouterFiltreEgalPourJointure($numJointure, COL_LANGUE, GSession::Langue(COL_ID));
    $mListe->AjouterColOrdre(COL_NOM);
    $cListe->InjecterListeObjetsMetiers($mListe);
    if ($dejaCharge === false) {
        $cadre = new SCadre($prefixIdClass, GSession::Libelle(LIB_GPE_LISTEGROUPESJOUEUR), $cListe, true, false);
        GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $cadre);
    } else {
        GContexte::AjouterListe($cListe);
    }
}
<?php

require_once 'cst.php';
require_once PATH_METIER . 'mSuperGrade.php';
require_once PATH_METIER . 'mFonctionnalite.php';
if (GDroit::ADroitPopErreur(DROIT_ADMIN) === true) {
    $varPost = GSession::LirePost($nomContexte);
    $listeFonctionnalites = NULL;
    if (array_key_exists(COL_FONCTIONNALITE, $varPost)) {
        $listeFonctionnalites = $varPost[COL_FONCTIONNALITE];
        unset($varPost[COL_FONCTIONNALITE]);
    }
    $mObjet = new MSuperGrade();
    $mObjet->SetObjetFromTableau($varPost);
    $mObjet->ListeDroitsSuperGrades($listeFonctionnalites);
    $mObjet->Modifier();
}
Example #16
0
<?php

require_once 'cst.php';
require_once PATH_CLASSES . 'bCategorie.php';
require_once 'GuildPortail/Outils/include.php';
require_once INC_GSESSION;
$categorie = GSession::LireVariableContexte('CreatCategorie', 'CATEGORIE');
$typeCategorie = GSession::LireVariableContexte('TypeCategorie', 'CATEGORIE');
$bCategorie = new BCategorie();
$groupe = NULL;
if ($categorie == -1 || $categorie == NULL) {
    $groupe = GSession::LireSession('idGroupe');
} else {
    $groupe = $bCategorie->RecupererGroupeCategorie($categorie);
}
if (GSession::HasDroit(FONC_CREER_FORUM, $groupe)) {
    $titre = GSession::LireVariableContexte('Titre', 'CATEGORIE');
    $description = GSession::LireVariableContexte('Description', 'CATEGORIE');
    if ($typeCategorie === NULL || $typeCategorie === '' || intval($typeCategorie) === 0) {
        $typeCategorie = 1;
    }
    if ($groupe != NULL && $titre != NULL && $titre != '' && $description != NULL && $categorie != NULL && intval($categorie) != 0) {
        $bCategorie->AjouterCategorie($titre, $description, intval($categorie), $groupe, intval($typeCategorie));
    }
}
Example #17
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));
    }
}
Example #18
0
<?php

require_once 'cst.php';
require_once INC_SLISTEFORUMS;
require_once INC_GSESSION;
require_once PATH_CLASSES . 'bCategorie.php';
require_once PATH_CLASSES . 'bTypeCategorie.php';
if (GSession::HasDroit(FONC_VOIR_FORUM)) {
    $groupe = GSession::LireSession('idGroupe');
    $cat = GSession::LireVariableContexte('Categorie', 'CATEGORIE');
    if (intval($cat) <= 0) {
        $cat = NULL;
    }
    $bCategorie = new BCategorie();
    $categories = $bCategorie->ChargerListeCategorieFromCategorie($groupe, $cat);
    $bTypeCategorie = new BTypeCategorie();
    $typesCategorie = $bTypeCategorie->RecupererTypesCategorie();
    $liste = new SListeForums('Liste des forums', $cat, 'categorie', 'CreerCategorie', 'ModifierCategorie', 'SupprimerCategorie', 'ChargerCategoriesEtSujets', $typesCategorie);
    while (list($i, $categorie) = each($categories)) {
        if ($categorie[COL_CATEGORIE] == $cat) {
            $liste->AjouterElement($categorie[COL_ID], $categorie[COL_NOM], $categorie[COL_COMMENTAIRE], LISTE_CHAMPLISTE_VALEURPARDEFAUT, $categorie[COL_MESSAGES], $categorie[COL_SUJETS], $categorie[COL_VERSION]);
        }
    }
}
Example #19
0
require_once INC_GSESSION;
require_once PATH_METIER . 'mJoueur.php';
$login = GContexte::LireVariablePost($nomContexte, 'login');
$motDePasse = GContexte::LireVariablePost($nomContexte, 'motDePasse');
$mJoueur = new MJoueur(NULL, $login, $motDePasse);
$formulaireValide = true;
// On vérifie qu'un compte existe pour cette adresse email.
$mJoueur->ChargerFromLoginEtMotDePasse();
if ($mJoueur->Id() === NULL || $mJoueur->Supprime() === true) {
    GLog::LeverException(EXF_0020, GSession::Libelle(LIB_CON_COMPTENONEXISTANT), true, false);
    $formulaireValide = false;
} else {
    if ($mJoueur->Banni() === true) {
        GLog::LeverException(EXF_0021, GSession::Libelle(LIB_CON_COMPTEBANNI), true, false);
        $formulaireValide = false;
    }
}
if ($formulaireValide === true) {
    GSession::Joueur(COL_ID, $mJoueur->Id());
    GSession::Joueur(COL_PSEUDO, $mJoueur->Pseudo());
    GSession::Joueur(COL_SUPERADMIN, $mJoueur->SuperAdmin());
    // On vérifie si le compte a été activé ou non.
    if ($mJoueur->Actif() === false) {
        GContexte::SetContexte(CONT_ACTIVATION);
    } else {
        GContexte::SetContexte(CONT_ADMINISTRATION, false);
    }
} else {
    GContexte::SupprimerContexte(CONT_CONNEXION);
}
$pasDeRechargement = true;
Example #20
0
require_once 'cst.php';
require_once PATH_METIER . 'mListeForumsCategories.php';
require_once PATH_COMPOSANTS . 'cListeCategories.php';
if (GDroit::ADroitPopErreur(DROIT_ADMIN) === true) {
    $prefixIdClass = PIC_FOR;
    $cListe = new CListeCategories($prefixIdClass, 'Categories', $nomContexte);
    $mListeForums = new MListeForums();
    $mListeForums->AjouterColSelection(COL_ID);
    $mListeForums->AjouterColSelection(COL_NOM);
    $mListeForums->AjouterColSelection(COL_DESCRIPTION);
    $mListeForums->AjouterColSelection(COL_CATEGORIE);
    $numJointure = $mListeForums->AjouterJointure(COL_CATEGORIE, COL_ID);
    $mListeForums->AjouterColSelectionPourJointure($numJointure, COL_NOM);
    $mListeForums->AjouterColSelectionPourJointure($numJointure, COL_ICONE);
    $mListeForums->AjouterFiltreEgal(COL_FORUM, SQL_NULL);
    $mListeForums->AjouterFiltreEgal(COL_GROUPE, GSession::Groupe(COL_ID));
    $mListeCategories = $mListeForums->ExtraireListe(COL_CATEGORIE);
    foreach ($mListeCategories->GetListe() as $mCategorie) {
        $mListeForumsPourCategorie = new MListeForums();
        foreach ($mListeForums->GetListe() as $mForum) {
            if ($mCategorie->Id() === $mForum->Categorie()->Id()) {
                $mListeForumsPourCategorie->AjouterElement($mForum);
            }
        }
        $mCategorie->ListeForums($mListeForumsPourCategorie);
    }
    $cListe->InjecterListeObjetsMetiers($mListeCategories);
    if ($dejaCharge === false) {
        GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $cListe);
    } else {
        GContexte::AjouterListe($cListe);
Example #21
0
<?php

require_once 'cst.php';
require_once INC_GSESSION;
// Recharge les droits de l'utilisateur.
require INC_FRECHARGERDROITS;
// Recharge en fonction du contexte de la session.
GSession::ChargerContextes();
<?php

require_once 'cst.php';
require_once PATH_METIER . 'mListeJeux.php';
require_once PATH_METIER . 'mListeServeurs.php';
require_once PATH_METIER . 'mListeTypesGroupes.php';
if (GDroit::ADroitPopErreur(DROIT_ADMIN) === true) {
    switch (GReferentiel::NomReferentielGeneral($nomReferentiel)) {
        case 'Groupes' . COL_JEU . ',' . COL_ID:
            $valeur = GSession::LirePost('valeur');
            $mListe = new MListeJeux();
            $mListe->AjouterColSelection(COL_ID);
            $mListe->AjouterColSelection(COL_LIBELLE);
            $mListe->AjouterColOrdre(COL_LIBELLE);
            $mListe->AjouterFiltreLike(COL_LIBELLE, '%' . $valeur . '%');
            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 '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();
            }
Example #23
0
$suite = GSession::LirePost('suite');
// Cas du chargement de la suite d'un ou plusieurs contextes trop gros à charger en une seule fois.
if ($suite !== NULL && $suite !== '') {
    $contextes = GSession::LirePost('contextes');
    if ($contextes !== NULL && $contextes !== '') {
        foreach ($contextes as $contexte) {
            GContexte::ChargerContexte($contexte, true);
        }
    }
} else {
    $auto = GSession::LirePost('auto');
    // Cas du rechargement automatique.
    if ($auto !== NULL && $auto !== '') {
        GContexte::ChargerContextes(true);
    } else {
        $contexte = GSession::LirePost('contexte');
        // Cas du rechargement de tous les contextes.
        if ($contexte === NULL || $contexte === '') {
            GContexte::ChargerContextes();
        } else {
            $page = GContexte::LireVariablePost($contexte, 'page');
            $etage = GContexte::LireVariablePost($contexte, 'etage');
            $contenu = GContexte::LireVariablePost($contexte, 'contenu');
            // Cas du changement de page pour une liste.
            if ($contexte !== NULL && $page !== NULL && $page !== '') {
                SListe::SetChangementPage($page);
            } else {
                if ($contexte !== NULL && $etage !== NULL && $etage !== '') {
                    SListe::SetChargementEtage($etage);
                } else {
                    if ($contexte !== NULL && $contenu !== NULL && $contenu !== '') {
Example #24
0
<?php

require_once 'cst.php';
require_once PATH_CLASSES . 'bMessage.php';
$message = GSession::LireVariableContexte('SupprMessage', 'MESSAGE');
$bMessage = new BMessage();
$groupe = $bMessage->RecupererGroupeMessage($message);
if (GSession::HasDroit(FONC_SUPPRIMER_MESSAGE, $groupe)) {
    if (intval($message) > 0) {
        $bMessage->SupprimerMessage(intval($message));
    }
}
Example #25
0
 public function AjouterInputButtonAnnuler($ligne, $colonne, $libelle = '')
 {
     if ($libelle === '') {
         $libelle = GSession::Libelle(LIB_FOR_ANNULER);
     }
     $bouton = $this->AjouterInputButton($ligne, $colonne, '', $libelle, '', '', '$(this).trigger', false, true);
     $bouton->AjouterParamRetour('inputNewFormFermer');
     return $bouton;
 }
<?php

require_once 'cst.php';
require_once PATH_METIER . 'mMenu.php';
require_once PATH_METIER . 'mContexte.php';
require_once PATH_METIER . 'mMenuContexte.php';
// Chargement spécifique lors d'un get.
if (GSession::IsRequeteGet() === true) {
    // TO DO..
} else {
    $menuId = GContexte::LireVariablePost($nomContexte, COL_ID, false);
    if ($menuId === NULL) {
        $menuId = GContexte::LireVariableSession($nomContexte, COL_ID, false);
    }
    if ($menuId !== NULL) {
        $mMenu = new MMenu($menuId);
        $mListeMenusContextes = $mMenu->ListeMenusContextes();
        $mListeMenusContextes->Charger();
        $listeMenusContextes = $mListeMenusContextes->GetListe();
        if (count($listeMenusContextes) === 0) {
            GContexte::SetContexte(CONT_VIDE);
        } else {
            GContexte::ResetContextes();
            foreach ($listeMenusContextes as $mMenuContexte) {
                $nom = $mMenuContexte->Contexte()->Nom();
                $rechargement = true;
                switch ($nom) {
                    case CONT_ADMINISTRATION:
                        $rechargement = false;
                        break;
                }
Example #27
0
 public function AjouterBaseColSelection($bObjetBase, $col, $as)
 {
     switch ($this->GetChampComportement($col)) {
         case COL_LIBELLE:
             $bObjetBase->AjouterJointure(COL_LIBELLE, $this->LibelleObj()->GetObjetBase(), COL_ID);
             $bObjetBase->AjouterColSelect(COL_ID, $this->LibelleObj()->GetAsCol($col));
             $bObjetBase->AjouterColSelect(COL_LIBELLE, $this->LibelleObj()->GetAsCol($col));
             $bObjetBase->AjouterColWhere(COL_LANGUE, GSession::Langue(COL_ID));
             break;
         default:
             $bObjetBase->AjouterColSelect($col, $this->GetAsCol($col));
     }
     self::$numChamp++;
 }
Example #28
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 . 'mFonctionnalite.php';
if (GDroit::ADroitPopErreur(DROIT_ADMIN) === true) {
    $mObjet = new MFonctionnalite();
    $mObjet->SetObjetFromTableau(GSession::LirePost($nomContexte));
    $mObjet->Ajouter();
}
Example #30
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)));
    }
}