$cListeModificationPresentation->AjouterElement($libelle . '12', $libelle, '', $libelle, $libelle, $libelle); $cadre = new SCadre('', GSession::Libelle(LIB_PRS_LISTES), $cListeModificationPresentation, true, false); $vue->AttacherCellule(3, 1, $cadre); $classeur = new SClasseur('', 'presex', true, true); GContexte::AjouterOnglet('presex', GSession::Libelle(LIB_PRS_ONGLET), '', '', '', true, false); GContexte::AjouterOnglet('presex', GSession::Libelle(LIB_PRS_ONGLET), '', '', '', true, false); GContexte::AjouterOnglet('presex', GSession::Libelle(LIB_PRS_ONGLET), '', '', '', true, false); $cadre = new SCadre('', GSession::Libelle(LIB_PRS_TABONGLETS), $classeur, true, false); $vue->AttacherCellule(4, 1, $cadre); $cListeCssParties->AjouterElement(GSession::Libelle(LIB_PRS_PRESGEN, false, true), $vue); /*********************************************/ $form = new SForm($prefixIdClass, 2, 1, true, false); $form->SetCadreInputs(1, 1, 1, 1); $form->AjouterInput(1, 1, '', $cListeCssParties, false); $form->SetCadreBoutons(2, 1, 1, 1); $form->AjouterInputButtonModifierDansContexte(1, 1, $nomContexte, false, GSession::Libelle(LIB_PRS_SAUVEGARDER)); GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $form); $mListePresentationsModules = new mListePresentationsModules(); $mListePresentationsModules->AjouterColSelection(COL_RESSOURCEJS); $mListePresentationsModules->AjouterFiltreEgal(COL_PRESENTATION, $presentationModif); $numJointure = $mListePresentationsModules->AjouterJointure(COL_TYPEPRESENTATIONMODULE, COL_ID, 0, SQL_RIGHT_JOIN); $mListePresentationsModules->AjouterColSelectionPourJointure($numJointure, COL_ID); $mListePresentationsModules->AjouterFiltreEgalPourJointure($numJointure, COL_ACTIF, true); $mListePresentationsModules->Charger(); foreach ($mListePresentationsModules->GetListe() as $mPresentationModule) { if ($mPresentationModule->RessourceJS() != NULL) { GReponse::AjouterElementJS($mPresentationModule->TypePresentationModule()->Id(), PATH_SERVER_HTTP . $mPresentationModule->RessourceJS(), true); } else { GReponse::AjouterElementJS($mPresentationModule->TypePresentationModule()->Id(), '', true); } }
$checkbox->AjouterCheckbox('', GSession::Libelle(LIB_JEU_NECMETIERINFO), $mJeu->NecessiteMetier()); $checkbox = $form->AjouterInputCheckbox(6, 1, GSession::Libelle(LIB_JEU_NECNIVEAU), '', false, GContexte::FormaterVariable($nomContexte, COL_NECESSITENIVEAU), GSession::Libelle(LIB_JEU_NECNIVEAUINFO)); $checkbox->AjouterCheckbox('', GSession::Libelle(LIB_JEU_NECNIVEAUINFO), $mJeu->NecessiteNiveau()); $form->AjouterInputText(6, 2, GSession::Libelle(LIB_JEU_NIVEAUMAX), '', false, GContexte::FormaterVariable($nomContexte, COL_NIVEAUMAX), $mJeu->NiveauMax(), 1, 5, 5, false, '', GSession::Libelle(LIB_JEU_NIVEAUMAXINFO), '', INPUTTEXT_REGEXP_DECIMAL_FV); $checkbox = $form->AjouterInputCheckbox(7, 1, GSession::Libelle(LIB_JEU_NECOBJET), '', false, GContexte::FormaterVariable($nomContexte, COL_NECESSITEOBJET), GSession::Libelle(LIB_JEU_NECOBJETINFO)); $checkbox->AjouterCheckbox('', GSession::Libelle(LIB_JEU_NECOBJETINFO), $mJeu->NecessiteObjet()); $checkbox = $form->AjouterInputCheckbox(8, 1, GSession::Libelle(LIB_JEU_NECROLE), '', false, GContexte::FormaterVariable($nomContexte, COL_NECESSITEROLE), GSession::Libelle(LIB_JEU_NECROLEINFO)); $checkbox->AjouterCheckbox('', GSession::Libelle(LIB_JEU_NECROLEINFO), $mJeu->NecessiteRole()); $checkbox = $form->AjouterInputCheckbox(9, 1, GSession::Libelle(LIB_JEU_NECSERVEUR), '', false, GContexte::FormaterVariable($nomContexte, COL_NECESSITESERVEUR), GSession::Libelle(LIB_JEU_NECSERVEURINFO)); $checkbox->AjouterCheckbox('', GSession::Libelle(LIB_JEU_NECSERVEURINFO), $mJeu->NecessiteServeur()); $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), '', false, GContexte::FormaterVariable($nomContexte, COL_TYPEGROUPE), GSession::Libelle(LIB_JEU_TYPESGROUPESINFO)); $liste->AjouterListe($cListeJeuTypesGroupes); $form->SetCadreBoutons(3, 1, 1, 1); $bouton = $form->AjouterInputButtonModifierDansContexte(1, 1, $nomContexte, true, GSession::Libelle(LIB_JEU_MODIFIERJEU)); $bouton->AjouterParamRetour(GContexte::FormaterVariable($nomContexte, COL_ID), $mJeu->Id()); // Cadre contenant le formulaire et son explication. $cadre = new SCadre(PIC_JEU, GSession::Libelle(LIB_JEU_ADMINISTRATIONJEU), $form, 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))); } }
<?php require_once 'cst.php'; require_once INC_GSESSION; require_once INC_SFORM; require_once INC_SCADRE; $activationInfo = new SElement(CLASSTEXTE_INFO); $activationInfo->SetText(GSession::Libelle(LIB_ACT_INFOACTIVATION)); $activationForm = new SForm('activation', 2, 1, false); $activationForm->SetCadreInputs(1, 1, 1, 1, false); $activationForm->AjouterInputText(1, 1, GSession::Libelle(LIB_ACT_CODEACTIVATION), '', true, GContexte::FormaterVariable($nomContexte, 'codeActivation'), '', 1, 40, 40, false, '', GSession::Libelle(LIB_ACT_CODEACTIVATIONINFO)); $activationForm->SetCadreBoutons(2, 1, 1, 1); $activationForm->AjouterInputButtonModifierDansContexte(1, 1, CONT_ACTIVATION, true); $activationOrg = new SOrganiseur(2, 1); $activationOrg->AttacherCellule(1, 1, $activationInfo); $activationOrg->AttacherCellule(2, 1, $activationForm); $activationCadre = new SCadre('activation', GSession::Libelle(LIB_ACT_ACTIVATIONCOMPTE), $activationOrg, true, true); GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $activationCadre);