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 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;
 }
 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;
 }
 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;
 }
 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;
 }
Beispiel #7
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_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;
 }
 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;
 }
 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;
 }