Example #1
0
 public function AjouterListeSel(SListe &$sListe, $label = '')
 {
     $sListe->Triable($this->typeLiaison, '', '', '');
     $elem = new SElement($this->prefixIdClass . INPUTLISTEDB_SEL . $this->niveau);
     $elem->AjouterClasse(INPUTLISTEDB_SEL . $this->niveau);
     $elem->AddClass(INPUTLISTEDB_JQ_SEL);
     if ($label === '') {
         $label = GSession::Libelle(LIB_FOR_SEL, true, true);
     }
     $input = new SInputLabel($this->prefixIdClass, $label, $sListe, INPUTLABELPLACE_HAUT, false, true, $this->niveau, true, false);
     $elem->Attach($input);
     $this->AttacherCellule(1, 2, $elem);
 }
 protected function ConstruireElemCreation($titre = '', $contenu = '')
 {
     $elem = parent::ConstruireElemCreation();
     if ($contenu != '') {
         $divTitre = new SBalise(BAL_DIV);
         $divTitre->AddClass(LISTE_JQ_ELEM_TITRE);
         $elemTitre = new SElement($this->prefixIdClass . LISTECLASS_ELEMTITRE . $this->Niveau());
         $elemTitre->AjouterClasse(LISTECLASS_ELEMTITRE . $this->Niveau());
         if ($titre === '' || is_string($titre)) {
             $elemTitreChamp = new SElement($this->prefixIdClass . LISTECLASS_ELEMTITRECHAMP . $this->Niveau());
             $elemTitreChamp->AjouterClasse(LISTECLASS_ELEMTITRECHAMP . $this->Niveau());
             $elemTitreChamp->SetText($titre);
             $elemTitre->Attach($elemTitreChamp);
         } else {
             $elemTitre->Attach($titre);
         }
         $divTitre->Attach($elemTitre);
         $elem->Attach($divTitre);
         $divContenu = new SBalise(BAL_DIV);
         $divContenu->AddClass(LISTE_JQ_ELEM_CONTENU);
         $elemContenu = new SElement($this->prefixIdClass . LISTECLASS_ELEMCONTENU . $this->Niveau());
         $elemContenu->AjouterClasse(LISTECLASS_ELEMCONTENU . $this->Niveau());
         $elemContenu->Attach($contenu);
         $divContenu->Attach($elemContenu);
         $elem->Attach($divContenu);
     }
     return $elem;
 }
 protected function ConstruireElemCreation()
 {
     $elem = parent::ConstruireElemCreation();
     $org = new SOrganiseur(1, 1, true);
     $org->AttacherCellule(1, 1, $this->ConstruireChamp(COL_NOM, LISTE_CHAMPTYPE_CREAT));
     $org->SetLargeurCellule(1, 1, '100%');
     $elem->Attach($org);
     return $elem;
 }
 protected function ConstruireElemConsultation()
 {
     $elem = parent::ConstruireElemConsultation();
     $org = new SOrganiseur(1, 1, true);
     $org->AttacherCellule(1, 1, $this->ConstruireChamp(array(COL_LIBELLE, COL_LIBELLE)));
     $org->SetLargeurCellule(1, 1, '100%');
     $elem->Attach($org);
     return $elem;
 }
 protected function ConstruireElemCreation()
 {
     $elem = parent::ConstruireElemCreation();
     $org = new SOrganiseur(1, 2, true);
     $org->AttacherCellule(1, 1, $this->ConstruireChamp(COL_ICONE, LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 2, $this->ConstruireChamp(array(COL_LIBELLE, COL_LIBELLE), LISTE_CHAMPTYPE_CREAT));
     $org->SetLargeurCellule(1, 1, '15%');
     $org->SetLargeurCellule(1, 2, '85%');
     $elem->Attach($org);
     return $elem;
 }
Example #6
0
 protected function ConstruireElemFonctionJSOnClick($elem, $element)
 {
     if ($this->foncJsOnClick === '') {
         $divFonc = new SBalise(BAL_DIV);
         $divFonc->AddClass(LISTE_JQ_ELEMENT_FONCTION);
         $divFonc->AddProp(PROP_STYLE, 'display:none');
         $divFonc->SetText(AJAXFONC_AJOUTERAUCONTEXTE);
         $elem->Attach($divFonc);
     } else {
         parent::ConstruireElemFonctionJSOnClick($elem, $element);
     }
 }
 protected function ConstruireElemCreation()
 {
     $elem = parent::ConstruireElemCreation();
     $org = new SOrganiseur(1, 3, true);
     $org->AttacherCellule(1, 1, $this->ConstruireChamp(COL_SYMBOLE, LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 2, $this->ConstruireChamp(COL_LIBELLE, LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 3, $this->ConstruireChamp(COL_ACTIVE, LISTE_CHAMPTYPE_CREAT));
     $org->SetLargeurCellule(1, 1, '20%');
     $org->SetLargeurCellule(1, 2, '70%');
     $org->SetLargeurCellule(1, 3, '10%');
     $elem->Attach($org);
     return $elem;
 }
require_once INC_SCADRE;
require_once INC_SFORM;
require_once INC_SVISUALISEUR;
require_once INC_SCLASSEUR;
require_once INC_GJS;
require_once PATH_COMPOSANTS . 'cListeCssParties.php';
require_once PATH_COMPOSANTS . 'cListeCssElements.php';
require_once PATH_COMPOSANTS . 'cListeModificationPresentation.php';
require_once PATH_METIER . 'mPresentation.php';
require_once PATH_METIER . 'mPresentationModule.php';
require_once PATH_METIER . 'mTypePresentationModule.php';
require_once PATH_METIER . 'mListePresentationsModules.php';
require_once PATH_METIER . 'mListeTypesPresentationsModules.php';
$groupe = GSession::Groupe(COL_ID);
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);
Example #9
0
} 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 !== '') {
                        SListe::SetChargementContenu($contenu);
                    }
                }
            }
            GContexte::ChargerContexte($contexte);
        }
    }
}
GReponse::Fin();
 protected function ConstruireElemCreation()
 {
     $elem = parent::ConstruireElemCreation();
     $org = new SOrganiseur(2, 1, true);
     $sousOrg1 = new SOrganiseur(1, 5, true);
     $sousOrg1->AttacherCellule(1, 1, $this->ConstruireChamp(COL_ICONE, LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->AttacherCellule(1, 2, $this->ConstruireChamp(COL_NOM, LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->AttacherCellule(1, 3, $this->ConstruireChamp(COL_DESCRIPTION, LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->AttacherCellule(1, 4, $this->ConstruireChamp(COL_NIVEAU, LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->AttacherCellule(1, 5, $this->ConstruireChamp(array(COL_SUPERGRADE, COL_ID), LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->SetLargeurCellule(1, 1, '10%');
     $sousOrg1->SetLargeurCellule(1, 2, '20%');
     $sousOrg1->SetLargeurCellule(1, 3, '40%');
     $sousOrg1->SetLargeurCellule(1, 4, '10%');
     $sousOrg1->SetLargeurCellule(1, 5, '20%');
     $sousOrg2 = new SOrganiseur(1, 1, true);
     $sousOrg2->AttacherCellule(1, 1, $this->ConstruireChamp(COL_JOUEUR, LISTE_CHAMPTYPE_CREAT));
     $sousOrg2->SetLargeurCellule(1, 1, '100%');
     $org->AttacherCellule(1, 1, $sousOrg1);
     $org->AttacherCellule(2, 1, $sousOrg2);
     $elem->Attach($org);
     return $elem;
 }
Example #11
0
 public function InjecterListeObjetsMetiers(MListeObjetsMetiers $mListeObjetsMetiers, $dejaChargee = false)
 {
     // Si on est dans le cas d'un changement de page, on vérifie que c'est bien cette liste qui est visée.
     if (self::$changementPage !== NULL && self::$changementPage !== '') {
         if (array_key_exists($this->TypeSynchro(), self::$changementPage) && array_key_exists($this->numero, self::$changementPage[$this->TypeSynchro()])) {
             // Si on change effectivement de page.
             if ($this->numPageCourante != self::$changementPage[$this->TypeSynchro()][$this->numero] && $this->statique !== true) {
                 $this->numPageCourante = self::$changementPage[$this->TypeSynchro()][$this->numero];
                 GContexte::ListePageCourante($this->contexte, $this->TypeSynchro(), $this->numero, $this->numPageCourante);
                 GContexte::ListeActive($this->contexte, $this->AncienTypeSynchroPage(), true);
             } else {
                 $this->chargement = false;
             }
         } else {
             $this->chargement = false;
         }
     } else {
         if (self::$chargementEtage !== NULL && self::$chargementEtage !== '') {
             $this->chargement = $this->ChargementEtageListeParente();
         } else {
             if (self::$chargementContenu !== NULL && self::$chargementContenu !== '') {
                 $this->chargement = $this->ChargementContenuListeParente();
             }
         }
     }
     if ($this->chargement === true) {
         // Récupération des informations complémentaires sur les champs.
         // Pour que cela fonctionne, il faut que le nom du champ défini dans InitialisationChamps soit le même que
         // celui auquel il est lié dans l'objet métier de la liste.
         $mObjetMetier = $mListeObjetsMetiers->GetObjetMetierReference();
         foreach ($this->champs as $nomChamp => &$champ) {
             $noms = $nomChamp;
             if (strpos($nomChamp, ',') !== false) {
                 $noms = explode(',', $nomChamp);
             }
             $nomPremChamp = $noms;
             if (is_array($noms)) {
                 $nomPremChamp = $noms[0];
             }
             if ($mObjetMetier->IsChampExiste($nomPremChamp) === true) {
                 $champ[LISTE_CHAMPLISTE_MIN] = $mObjetMetier->GetChampMinFromTableau($noms);
                 $champ[LISTE_CHAMPLISTE_MAX] = $mObjetMetier->GetChampMaxFromTableau($noms);
                 $champ[LISTE_CHAMPLISTE_LONGUEURMIN] = $mObjetMetier->GetChampLongueurMinFromTableau($noms);
                 $champ[LISTE_CHAMPLISTE_LONGUEURMAX] = $mObjetMetier->GetChampLongueurMaxFromTableau($noms);
                 $champ[LISTE_CHAMPLISTE_REGEXP] = $mObjetMetier->GetChampRegExpFromTableau($noms);
                 if ($champ[LISTE_CHAMPLISTE_VALEURPARDEFAUT] === NULL) {
                     $champ[LISTE_CHAMPLISTE_VALEURPARDEFAUT] = $mObjetMetier->GetChampValeurParDefautFromTableau($noms);
                 }
                 $champ[LISTE_CHAMPLISTE_NONNUL] = $mObjetMetier->IsChampNonNulFromTableau($noms);
             }
         }
         // Récupération du nombre total d'éléments.
         if ($this->nbElementsTotal < 0 && $this->nbElementsParPage >= 1) {
             $this->nbElementsTotal = $mListeObjetsMetiers->GetNbElementsFromBase();
         }
         // On vérifie que le contenu de la liste n'a pas déjà été chargé par une autre liste de même type.
         $listeElem = NULL;
         if (array_key_exists($this->TypeSynchroPage(), self::$listeElemChargee)) {
             $listeElem = self::$listeElemChargee[$this->TypeSynchroPage()];
             $dejaChargee = true;
         }
         if ($dejaChargee === false) {
             // Si le nombre total d'éléments est supérieur au nombre d'éléments qu'on affiche dans une page de la liste.
             if ($this->nbElementsParPage >= 1 && $this->nbElementsParPage < $this->nbElementsTotal) {
                 // Si la liste est triable, on affiche l'élément de la page d'avant afin qu'on puisse faire changer l'élément de page.
                 if ($this->triable === true && $this->numPageCourante >= 2) {
                     $mListeObjetsMetiers->Charger($this->nbElementsParPage + 1, ($this->numPageCourante - 1) * $this->nbElementsParPage - 1);
                 } else {
                     $mListeObjetsMetiers->Charger($this->nbElementsParPage, ($this->numPageCourante - 1) * $this->nbElementsParPage);
                 }
             } else {
                 $mListeObjetsMetiers->Charger();
             }
             // On enregistre le contenu de la liste dans une variable globale aux listes, notamment pour éviter
             // de recharger 2 fois le contenu pour 2 listes identiques.
             if (self::$listeElemChargee === NULL) {
                 self::$listeElemChargee = array();
             }
             self::$listeElemChargee[$this->TypeSynchroPage()] = $mListeObjetsMetiers->GetListe();
         }
         if ($listeElem === NULL) {
             $listeElem = $mListeObjetsMetiers->GetListe();
         }
         // Récupération des éléments de la liste métier et injection dans la liste graphique.
         foreach ($listeElem as $mObjetMetier) {
             $element = array();
             foreach ($this->champs as $nomChamp => &$champ) {
                 $noms = $nomChamp;
                 if (strpos($nomChamp, ',') !== false) {
                     $noms = explode(',', $nomChamp);
                 }
                 if ($mObjetMetier->IsChampExiste($noms) === true) {
                     $champValeur = $mObjetMetier->GetChampSQLFromTableau($noms);
                     $element[LISTE_ELEMENT_OBJET] = $mObjetMetier;
                     if ($champValeur !== NULL) {
                         $element[$nomChamp][LISTE_ELEMENT_VALEURCONSULT] = $champValeur;
                     } else {
                         $element[$nomChamp][LISTE_ELEMENT_VALEURCONSULT] = $this->ChampValeurParDefaut($nomChamp);
                     }
                 } else {
                     $this->SetElemValeurChampSpec($element, $nomChamp);
                 }
             }
             $this->elements[] = $element;
         }
     }
 }
Example #12
0
 protected function ConstruireElemCreation()
 {
     $elem = parent::ConstruireElemCreation();
     $org = new SOrganiseur(2, 1, true);
     $sousOrg1 = new SOrganiseur(1, 4, true);
     $sousOrg1->AttacherCellule(1, 1, $this->ConstruireChamp(COL_ID, LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->AttacherCellule(1, 2, $this->ConstruireChamp(array(COL_LIBELLE, COL_LIBELLE), LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->AttacherCellule(1, 3, $this->ConstruireChamp(array(COL_MENU, COL_ID), LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->AttacherCellule(1, 4, $this->ConstruireChamp(COL_DEPENDFONCTIONNALITE, LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->SetLargeurCellule(1, 1, '5%');
     $sousOrg1->SetLargeurCellule(1, 2, '45%');
     $sousOrg1->SetLargeurCellule(1, 3, '30%');
     $sousOrg1->SetLargeurCellule(1, 4, '20%');
     $sousOrg2 = new SOrganiseur(1, 2, true);
     $sousOrg2->AttacherCellule(1, 1, $this->ConstruireChamp(COL_CONTEXTE, LISTE_CHAMPTYPE_CREAT));
     $sousOrg2->AttacherCellule(1, 2, $this->ConstruireChamp(COL_FONCTIONNALITE, LISTE_CHAMPTYPE_CREAT));
     $sousOrg2->SetLargeurCellule(1, 1, '50%');
     $sousOrg2->SetLargeurCellule(1, 2, '50%');
     $org->AttacherCellule(1, 1, $sousOrg1);
     $org->AttacherCellule(2, 1, $sousOrg2);
     $elem->Attach($org);
     return $elem;
 }
 protected function ConstruireElemCreation()
 {
     $elem = parent::ConstruireElemCreation();
     $org = new SOrganiseur(2, 1, true);
     $sousOrg1 = new SOrganiseur(1, 5, true);
     $sousOrg1->AttacherCellule(1, 1, $this->ConstruireChamp(COL_ICONE, LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->AttacherCellule(1, 2, $this->ConstruireChamp(array(COL_LIBELLE, COL_LIBELLE), LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->AttacherCellule(1, 3, $this->ConstruireChamp(array(COL_DESCRIPTION, COL_LIBELLE), LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->AttacherCellule(1, 4, $this->ConstruireChamp(COL_NIVEAU, LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->AttacherCellule(1, 5, $this->ConstruireChamp(COL_POIDSVOTERECRUTEMENT, LISTE_CHAMPTYPE_CREAT));
     $sousOrg1->SetLargeurCellule(1, 1, '10%');
     $sousOrg1->SetLargeurCellule(1, 2, '30%');
     $sousOrg1->SetLargeurCellule(1, 3, '40%');
     $sousOrg1->SetLargeurCellule(1, 4, '10%');
     $sousOrg1->SetLargeurCellule(1, 5, '10%');
     $sousOrg2 = new SOrganiseur(1, 1, true);
     $sousOrg2->AttacherCellule(1, 1, $this->ConstruireChamp(COL_FONCTIONNALITE, LISTE_CHAMPTYPE_CREAT));
     $sousOrg2->SetLargeurCellule(1, 1, '100%');
     $org->AttacherCellule(1, 1, $sousOrg1);
     $org->AttacherCellule(2, 1, $sousOrg2);
     $elem->Attach($org);
     return $elem;
 }
Example #14
0
 public function __construct($prefixIdClass, $typeSynchro, $contexte, $nbElementsParPage = -1, $nbElementsTotal = -1, $triable = false, $typeLiaison = '', $chargementModifDiffere = true, $foncJsOnClick = '', $foncAjaxTriCreation = '', $foncAjaxTriModification = AJAXFONC_MODIFIERDANSCONTEXTE, $foncAjaxTriSuppression = '', $foncAjaxCreation = AJAXFONC_AJOUTERAUREFERENTIEL, $foncAjaxModification = '', $foncAjaxSuppression = AJAXFONC_SUPPRIMERDUREFERENTIEL, $foncAjaxRechargement = AJAXFONC_RECHARGER)
 {
     parent::__construct($prefixIdClass, $typeSynchro, $contexte, $nbElementsParPage, $nbElementsTotal, $triable, $typeLiaison, $chargementModifDiffere, $foncJsOnClick, $foncAjaxTriCreation, $foncAjaxTriModification, $foncAjaxTriSuppression, $foncAjaxCreation, $foncAjaxModification, $foncAjaxSuppression, $foncAjaxRechargement);
 }
Example #15
0
 protected function ConstruireElemCreation()
 {
     $elem = parent::ConstruireElemCreation();
     $org = new SOrganiseur(4, 4, true);
     $org->FusionnerCellule(1, 1, 1, 0);
     $org->FusionnerCellule(1, 2, 0, 1);
     $org->FusionnerCellule(2, 2, 0, 2);
     $org->FusionnerCellule(3, 1, 0, 3);
     $org->FusionnerCellule(4, 1, 0, 3);
     $org->AttacherCellule(1, 1, $this->ConstruireChamp(COL_ICONE, LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 2, $this->ConstruireChamp(COL_NOM, LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 4, $this->ConstruireChamp(array(COL_JEU, COL_ID), LISTE_CHAMPTYPE_CREAT));
     $org1 = new SOrganiseur(1, 3, true);
     $org1->AttacherCellule(1, 1, $this->ConstruireChamp(array(COL_SERVEUR, COL_ID), LISTE_CHAMPTYPE_CREAT));
     $org1->AttacherCellule(1, 2, $this->ConstruireChamp(array(COL_COMMUNAUTE, COL_ID), LISTE_CHAMPTYPE_CREAT));
     $org1->AttacherCellule(1, 3, $this->ConstruireChamp(array(COL_TYPEGROUPE, COL_ID), LISTE_CHAMPTYPE_CREAT));
     $org1->SetLargeurCellule(1, 1, '33%');
     $org1->SetLargeurCellule(1, 2, '33%');
     $org1->SetLargeurCellule(1, 3, '34%');
     $org->AttacherCellule(2, 2, $org1);
     $org->AttacherCellule(3, 1, $this->ConstruireChamp(COL_DESCRIPTION, LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(4, 1, $this->ConstruireChamp(COL_HISTOIRE, LISTE_CHAMPTYPE_CREAT));
     $org->SetLargeurCellule(1, 1, '16%');
     $org->SetLargeurCellule(1, 2, '56%');
     $org->SetLargeurCellule(1, 4, '28%');
     $org->SetLargeurCellule(3, 1, '100%');
     $org->SetLargeurCellule(4, 1, '100%');
     $elem->Attach($org);
     return $elem;
 }
 protected function ConstruireElemCreation()
 {
     $elem = parent::ConstruireElemCreation();
     $org = new SOrganiseur(1, 5, true);
     $org->AttacherCellule(1, 1, $this->ConstruireChamp(COL_ID, LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 2, $this->ConstruireChamp(array(COL_LIBELLE, COL_LIBELLE), LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 3, $this->ConstruireChamp(array(COL_DESCRIPTION, COL_LIBELLE), LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 4, $this->ConstruireChamp(COL_NOMFICHIER, LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 5, $this->ConstruireChamp(COL_ACTIF, LISTE_CHAMPTYPE_CREAT));
     $org->SetLargeurCellule(1, 1, '5%');
     $org->SetLargeurCellule(1, 2, '15%');
     $org->SetLargeurCellule(1, 3, '40%');
     $org->SetLargeurCellule(1, 4, '30%');
     $org->SetLargeurCellule(1, 5, '10%');
     $elem->Attach($org);
     return $elem;
 }
 protected function ConstruireElemCreation()
 {
     $elem = parent::ConstruireElemCreation();
     $org = new SOrganiseur(1, 5, true);
     $org->AttacherCellule(1, 1, $this->ConstruireChamp(COL_ID, LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 2, $this->ConstruireChamp(array(COL_LIBELLE, COL_LIBELLE), LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 3, $this->ConstruireChamp(array(COL_DESCRIPTION, COL_LIBELLE), LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 4, $this->ConstruireChamp(COL_NIVEAUGRADEMINIMUM, LISTE_CHAMPTYPE_CREAT));
     $org->AttacherCellule(1, 5, $this->ConstruireChamp(COL_PARAMETRABLE, LISTE_CHAMPTYPE_CREAT));
     $org->SetLargeurCellule(1, 1, '5%');
     $org->SetLargeurCellule(1, 2, '20%');
     $org->SetLargeurCellule(1, 3, '50%');
     $org->SetLargeurCellule(1, 4, '15%');
     $org->SetLargeurCellule(1, 5, '10%');
     $elem->Attach($org);
     return $elem;
 }