예제 #1
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)));
    }
}
예제 #2
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));
    }
}
예제 #3
0
 $changeFonc = AJAXFONC_MODIFIERDANSCONTEXTE;
 $changeParam = 'cf=' . GSession::NumCheckFormulaire() . '&contexte=' . $nomContexte;
 $selectPresActive = new SForm($prefixIdClass, 1, 2, true, false);
 $selectPresActive->SetCadreInputs(1, 1, 1, 1);
 $select = $selectPresActive->AjouterInputSelect(1, 1, GSession::Libelle(LIB_PRS_PRESACTIVE), '', true, GContexte::FormaterVariable($nomContexte, COL_PRESENTATION . 'active'), '', '', '', '', '', '', '', $changeFonc, $changeParam);
 $select->AjouterElementsFromListe(COL_PRESENTATION . 'active', COL_ID, COL_NOM, '', GSession::PresentationActive());
 $selectPresActive->SetCadreBoutonsCache(1, 2);
 $elemPresActive = new SCentreur($selectPresActive);
 $selectPresModif = new SForm($prefixIdClass, 1, 2, false, false);
 $selectPresModif->SetCadreInputs(1, 1, 1, 1);
 $select = $selectPresModif->AjouterInputNewSelect(1, 1, GSession::Libelle(LIB_PRS_PRESMODIF), true, GContexte::FormaterVariable($nomContexte, COL_PRESENTATION . 'modif'), '', '', '', '', '', '', '', $changeFonc, $changeParam);
 $formCreerPres = new SForm($prefixIdClass, 2, 1);
 $formCreerPres->SetCadreInputs(1, 1, 1, 1);
 $formCreerPres->AjouterInputText(1, 1, GSession::Libelle(LIB_PRS_NOM), '', true, GContexte::FormaterVariable($nomContexte, COL_NOM), '', 1, 200, 40);
 $formCreerPres->SetCadreBoutons(2, 1, 1, 2);
 $bouton = $formCreerPres->AjouterInputButtonAjouterAuContexte(1, 1, $nomContexte);
 $bouton->AjouterParamRetour('nouvPres', '1');
 $formCreerPres->AjouterInputButtonAnnuler(1, 2);
 $select->AjouterFormulaire(GSession::Libelle(LIB_PRS_CREERPRES), $formCreerPres);
 $select->AjouterElementsFromListe(COL_PRESENTATION . 'modif', COL_ID, COL_NOM, '', GSession::PresentationModif());
 $selectPresModif->SetCadreBoutonsCache(1, 2);
 $elemPresModif = new SCentreur($selectPresModif);
 $classeurPres = new SClasseur($prefixIdClass, 'pres', true, true);
 $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));