コード例 #1
0
<?php

require_once 'cst.php';
require_once PATH_METIER . 'mListeMonnaies.php';
require_once PATH_COMPOSANTS . 'cListeMonnaiesAdmin.php';
if (GDroit::ADroitPopErreur(DROIT_ADMIN) === true) {
    $prefixIdClass = PIC_ADM;
    $cListe = new CListeMonnaiesAdmin($prefixIdClass, 'MonnaiesAdmin', $nomContexte);
    $mListe = new MListeMonnaies();
    $mListe->AjouterColSelection(COL_ID);
    $mListe->AjouterColSelection(COL_LIBELLE);
    $mListe->AjouterColSelection(COL_SYMBOLE);
    $mListe->AjouterColSelection(COL_ACTIVE);
    $cListe->InjecterListeObjetsMetiers($mListe);
    if ($dejaCharge === false) {
        GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $cListe);
    } else {
        GContexte::AjouterListe($cListe);
    }
}
コード例 #2
0
<?php

require_once 'cst.php';
$bal = new SBalise(BAL_DIV);
$bal->SetText('accueil<br/><br/><br/><br/>');
GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $bal);
コード例 #3
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);
    }
}
コード例 #4
0
    $creerJoueurForm->AjouterInputText(1, 1, GSession::Libelle(LIB_CON_EMAIL), '', true, GContexte::FormaterVariable(CONT_CONNEXION, 'login'), '', 1, 70, 70, false, '', GSession::Libelle(LIB_CON_EMAILINFO), GSession::Libelle(LIB_CON_EMAILERREUR), INPUTTEXT_REGEXP_EMAIL_FV);
    $creerJoueurForm->AjouterInputText(2, 1, GSession::Libelle(LIB_CON_MOTDEPASSE), INPUTTEXT_TYPE_PASSWORD, true, GContexte::FormaterVariable(CONT_CONNEXION, 'motDePasse'), '', 5, 20, 20, false, '', GSession::Libelle(LIB_CON_MOTDEPASSEINFO), GSession::Libelle(LIB_CON_MOTDEPASSEERREUR));
    $creerJoueurForm->AjouterInputText(3, 1, GSession::Libelle(LIB_CON_PSEUDO), '', true, GContexte::FormaterVariable(CONT_CONNEXION, 'pseudo'), '', 1, 30, 30, false, '', GSession::Libelle(LIB_CON_PSEUDOINFO), GSession::Libelle(LIB_CON_PSEUDOERREUR));
    $label = $creerJoueurForm->AjouterInputLabel(6, 1, GSession::Libelle(LIB_CON_DATENAISSANCE));
    $label->AjouterInputText(GSession::Libelle(LIB_CON_ANNEE), '', false, GContexte::FormaterVariable(CONT_CONNEXION, 'annee'), '', 1, 4, 4, false, '', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 1900, intval(date('Y')));
    $label->AjouterInputText(GSession::Libelle(LIB_CON_MOIS), '', false, GContexte::FormaterVariable(CONT_CONNEXION, 'mois'), '', 1, 2, 2, false, '', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 1, 12);
    $label->AjouterInputText(GSession::Libelle(LIB_CON_JOUR), '', false, GContexte::FormaterVariable(CONT_CONNEXION, 'jour'), '', 1, 2, 2, false, '', '', '', INPUTTEXT_REGEXP_DECIMAL_FV, 1, 31);
    $creerJoueurForm->SetCadreBoutons(2, 1, 1, 2);
    $creerJoueurForm->AjouterInputButtonValiderAjaxContexte(1, 1, CONT_CONNEXION, 'CreerJoueur');
    $creerJoueurForm->AjouterInputButtonAnnuler(1, 2);
    $connexionForm = new SForm('connexion', 1, 2);
    $connexionForm->SetCadreInputs(1, 1, 1, 2);
    $select = $connexionForm->AjouterInputNewText(1, 1, GSession::Libelle(LIB_CON_EMAIL), true, GContexte::FormaterVariable(CONT_CONNEXION, 'login'), '', 1, 70, 20, false, '', '', '', INPUTTEXT_REGEXP_EMAIL_FV);
    $select->AjouterFormulaire(GSession::Libelle(LIB_CON_CREERCOMPTE), $creerJoueurForm);
    $connexionForm->AjouterInputText(1, 2, GSession::Libelle(LIB_CON_MOTDEPASSE), INPUTTEXT_TYPE_PASSWORD, true, GContexte::FormaterVariable(CONT_CONNEXION, 'motDePasse'), '', 5, 20, 10, false, '', '', '');
    $connexionForm->SetCadreBoutons(1, 2, 1, 1);
    $bouton = $connexionForm->AjouterInputButton(1, 1, '', GSession::Libelle(LIB_CON_CONNEXION), GSession::Libelle(LIB_CON_CONNEXION), true, AJAXFONC_CHARGERCONTEXTES, true, true);
    $bouton->AjouterParamRetour('contextes[0]', CONT_CONNEXION);
    GContexte::AjouterContenu(CADRE_INFO_JOUEUR, $connexionForm);
} else {
    if (GDroit::EstConnecte(false) === true && (GSession::Connecte() === false || $dejaCharge === false)) {
        GSession::Connecte(true);
        $connecteForm = new SForm('connecte', 1, 2);
        $connecteForm->SetCadreInputs(1, 1, 1, 1);
        $connecteForm->AjouterInputInfo(1, 1, GSession::Libelle(LIB_CON_PSEUDO), GSession::Joueur(COL_PSEUDO), true);
        $connecteForm->SetCadreBoutons(1, 2, 1, 1);
        $bouton = $connecteForm->AjouterInputButton(1, 1, '', GSession::Libelle(LIB_CON_DECONNEXION), GSession::Libelle(LIB_CON_DECONNEXION), true, AJAXFONC_CHARGERCONTEXTES, true, true);
        $bouton->AjouterParamRetour('contextes[0]', CONT_DECONNEXION);
        GContexte::AjouterContenu(CADRE_INFO_JOUEUR, $connecteForm);
    }
}
コード例 #5
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));
}
コード例 #6
0
<?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);
コード例 #7
0
     $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);
         }
     }
 }
コード例 #8
0
        $menuCharge = GSession::MenuCharge($menuPrincipal->Id());
        // Si aucun sous-menu on n'affiche pas le menu principal.
        if ($nbSousMenus >= 1) {
            if ($menuCharge === false) {
                $cListe->AjouterElement($menuPrincipal->Id(), $menuPrincipal->Libelle(), $cListeSousMenus);
                GSession::AjouterMenu($menuPrincipal->Id());
            } else {
                $cListe->AjouterElement($menuPrincipal->Id(), $menuPrincipal->Libelle(), NULL);
                GContexte::AjouterListe($cListeSousMenus);
            }
        } else {
            if ($menuCharge === true) {
                GSession::SupprimerMenu($menuPrincipal->Id());
                GContexte::AjouterListe($cListeSousMenus);
            }
        }
    } else {
        if ($nbSousMenus >= 1) {
            $cListeSousMenus->InjecterListeObjetsMetiers($mListeSousMenus, true);
            $cListe->AjouterElement($menuPrincipal->Id(), $menuPrincipal->Libelle(), $cListeSousMenus);
            GSession::AjouterMenu($menuPrincipal->Id());
        } else {
            GSession::SupprimerMenu($menuPrincipal->Id());
        }
    }
}
if ($dejaCharge === false) {
    GContexte::AjouterContenu(CADRE_MENU_MENU, $cListe);
} else {
    GContexte::AjouterListe($cListe);
}
コード例 #9
0
<?php

require_once 'cst.php';
require_once INC_GSESSION;
require_once INC_SFORM;
require_once PATH_METIER . 'mListeCommunautes.php';
$mListeCommunautes = new MListeCommunautes(false);
$mListeCommunautes->AjouterColSelection(COL_ID);
$mListeCommunautes->AjouterColSelection(COL_LIBELLE);
$mListeCommunautes->AjouterColOrdre(COL_LIBELLE);
GReferentiel::AjouterReferentiel(COL_COMMUNAUTE, $mListeCommunautes, array(COL_ID, array(COL_LIBELLE, COL_LIBELLE)));
if ($dejaCharge === false) {
    $selectCommunaute = new SForm('selcom', 1, 1);
    $selectCommunaute->SetCadreInputs(1, 1, 1, 1);
    $select = $selectCommunaute->AjouterInputSelect(1, 1, GSession::Libelle(LIB_CON_COMMUNAUTE), '', true, GContexte::FormaterVariable($nomContexte, 'communaute'));
    $select->AjouterElementsFromListe(COL_COMMUNAUTE, COL_ID, array(COL_LIBELLE, COL_LIBELLE), '', GSession::Communaute(COL_ID));
    GContexte::AjouterContenu(CADRE_INFO_COMMUNAUTE, $selectCommunaute);
} else {
    GReferentiel::GetDifferentielReferentielForSelect(COL_COMMUNAUTE, COL_ID, array(COL_LIBELLE, COL_LIBELLE));
}
コード例 #10
0
<?php

require_once 'cst.php';
require_once INC_SCADRE;
require_once INC_SCLASSEUR;
if (GDroit::ADroitPopErreur(DROIT_ADMIN) === true) {
    $classeurAdministration = new SClasseur(PIC_ADM, 'admin', true, true);
    $cadreAdministration = new SCadre(PIC_ADM, GSession::Libelle(LIB_ADM_ADMINISTRATION), $classeurAdministration, true, false);
    GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $cadreAdministration);
    GContexte::AjouterOnglet('admin', TABLE_VERSION, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_VERSION, false, GContexte::IsContexteExiste(CONT_VERSION, true));
    GContexte::AjouterOnglet('admin', TABLE_MONNAIE, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_MONNAIE, false, GContexte::IsContexteExiste(CONT_MONNAIE, true));
    GContexte::AjouterOnglet('admin', TABLE_COMMUNAUTE, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_COMMUNAUTE, false, GContexte::IsContexteExiste(CONT_COMMUNAUTE, true));
    GContexte::AjouterOnglet('admin', TABLE_LANGUE, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_LANGUE, false, GContexte::IsContexteExiste(CONT_LANGUE, true));
    GContexte::AjouterOnglet('admin', TABLE_TYPELIBELLE, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_TYPELIBELLE, false, GContexte::IsContexteExiste(CONT_TYPELIBELLE, true));
    GContexte::AjouterOnglet('admin', TABLE_LIBELLELIBRE, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_LIBELLELIBRE, false, GContexte::IsContexteExiste(CONT_LIBELLELIBRE, true));
    GContexte::AjouterOnglet('admin', TABLE_LIBELLETEXTELIBRE, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_LIBELLETEXTELIBRE, false, GContexte::IsContexteExiste(CONT_LIBELLETEXTELIBRE, true));
    GContexte::AjouterOnglet('admin', TABLE_TYPEPRESENTATIONMODULE, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_TYPEPRESENTATIONMODULE, false, GContexte::IsContexteExiste(CONT_TYPEPRESENTATIONMODULE, true));
    GContexte::AjouterOnglet('admin', TABLE_MENU, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_MENU, false, GContexte::IsContexteExiste(CONT_MENU, true));
    GContexte::AjouterOnglet('admin', TABLE_CONTEXTE, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_CONTEXTE, false, GContexte::IsContexteExiste(CONT_CONTEXTE, true));
    GContexte::AjouterOnglet('admin', TABLE_FONCTIONNALITE, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_FONCTIONNALITE, false, GContexte::IsContexteExiste(CONT_FONCTIONNALITE, true));
    GContexte::AjouterOnglet('admin', TABLE_SUPERGRADE, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_SUPERGRADE, false, GContexte::IsContexteExiste(CONT_SUPERGRADE, true));
    //GContexte::AjouterOnglet('admin', TABLE_GRADECOMMUNAUTEJEU, '', 'AjouterAuContexte', 'contexte='.CONT_ADMINISTRATION.'&'.GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte').'='.CONT_GRADECOMMUNAUTEJEU, false, GContexte::IsContexteExiste(CONT_GRADECOMMUNAUTEJEU, true));
    //GContexte::AjouterOnglet('admin', TABLE_GRADEJEU, '', 'AjouterAuContexte', 'contexte='.CONT_ADMINISTRATION.'&'.GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte').'='.CONT_GRADEJEU, false, GContexte::IsContexteExiste(CONT_GRADEJEU, true));
    //GContexte::AjouterOnglet('admin', TABLE_GRADECOMMUNAUTE, '', 'AjouterAuContexte', 'contexte='.CONT_ADMINISTRATION.'&'.GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte').'='.CONT_GRADECOMMUNAUTE, false, GContexte::IsContexteExiste(CONT_GRADECOMMUNAUTE, true));
    GContexte::AjouterOnglet('admin', TABLE_GRADEGLOBAL, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_GRADEGLOBAL, false, GContexte::IsContexteExiste(CONT_GRADEGLOBAL, true));
    GContexte::AjouterOnglet('admin', TABLE_TYPEJEU, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_TYPEJEU, false, GContexte::IsContexteExiste(CONT_TYPEJEU, true));
    GContexte::AjouterOnglet('admin', TABLE_ETATRECRUTEMENT, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_ETATRECRUTEMENT, false, GContexte::IsContexteExiste(CONT_ETATRECRUTEMENT, true));
    GContexte::AjouterOnglet('admin', TABLE_TYPEGROUPE, '', 'AjouterAuContexte', 'contexte=' . CONT_ADMINISTRATION . '&' . GContexte::FormaterVariable(CONT_ADMINISTRATION, 'ongletContexte') . '=' . CONT_TYPEGROUPE, false, GContexte::IsContexteExiste(CONT_TYPEGROUPE, true));
}
コード例 #11
0
        $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));
        }
        $org->AttacherCellule(1, 1, $elemInfo);
        $org->AttacherCellule(2, 1, new SSeparateur($prefixIdClass));
        $org->AttacherCellule(3, 1, $elemInfoPresActive);
        $org->AttacherCellule(4, 1, $elemPresActive);
        $org->AttacherCellule(5, 1, new SSeparateur($prefixIdClass));
        $org->AttacherCellule(6, 1, $elemInfoPresModif);
        $org->AttacherCellule(7, 1, $elemPresModif);
        $org->AttacherCellule(8, 1, $classeurPres);
        $cadre = new SCadre($prefixIdClass, GSession::Libelle(LIB_PRS_PRESENTATION), $org, true, false);
        $palette = new SPalette($prefixIdClass, GSession::Libelle(LIB_PRS_PALETTE));
        GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $palette);
        $div = new SBalise(BAL_DIV);
        $div->Attach($palette);
        $div->Attach($cadre);
        GContexte::AjouterContenu(CADRE_CONTENU_CONTENU, $div);
    } else {
        GReferentiel::GetDifferentielReferentielForSelect(COL_PRESENTATION . 'active', COL_ID, COL_NOM, '');
        //, GSession::PresentationActive());
        GReferentiel::GetDifferentielReferentielForSelect(COL_PRESENTATION . 'modif', COL_ID, COL_NOM, '');
        //, GSession::PresentationModif());
    }
}
コード例 #12
0
    $mTypeGroupe = new MTypeGroupe(TYPEGROUPE_COMMUNAUTE);
    $mTypeGroupe->AjouterColSelection(COL_LIBELLE);
    $mTypeGroupe->Charger();
    $select->AjouterElement(-1, $mTypeGroupe->Libelle(), '', GSession::Groupe(COL_TYPEGROUPE) === TYPEGROUPE_COMMUNAUTE, false);
    if (GSession::Jeu(COL_ID) != NULL) {
        $mTypeGroupe = new MTypeGroupe(TYPEGROUPE_JEU);
        $mTypeGroupe->AjouterColSelection(COL_LIBELLE);
        $mTypeGroupe->Charger();
        $select->AjouterElement(-2, $mTypeGroupe->Libelle(), '', GSession::Groupe(COL_TYPEGROUPE) === TYPEGROUPE_JEU, false);
    }
    if ($mJeu != NULL && $mGroupe != NULL) {
        $select->AjouterCategorie($mJeu->Id(), $mJeu->Libelle());
        $select->AjouterElement($mGroupe->Id(), $mGroupe->Nom(), $mGroupe->Description(), true, false);
    }
    $selectGroupe->SetCadreBoutonsCache(1, 2);
    GContexte::AjouterContenu(CADRE_INFO_GROUPE, $selectGroupe);
} else {
    if (GSession::Groupe('change') == 1) {
        GReferentiel::AjouterReferentiel(COL_JEU, $mListeJeux, array(COL_ID, array(COL_LIBELLE, COL_LIBELLE)), true);
        GReferentiel::GetDifferentielReferentielForSelect(COL_JEU, COL_ID, array(COL_LIBELLE, COL_LIBELLE), '', $jeuId);
        $typeGroupe = GSession::Groupe(COL_TYPEGROUPE);
        if ($typeGroupe == TYPEGROUPE_COMMUNAUTE) {
            GReponse::AjouterElementSelect(COL_GROUPE);
            GReponse::AjouterElementSelectSelection(-1);
        } else {
            if ($typeGroupe == TYPEGROUPE_JEU) {
                GReponse::AjouterElementSelect(COL_GROUPE);
                GReponse::AjouterElementSelectSelection(-2);
            } else {
                GReferentiel::AjouterReferentiel(COL_GROUPE, $mListeGroupes, array(COL_ID, COL_NOM, COL_DESCRIPTION, COL_JEU), true);
                GReferentiel::GetDifferentielReferentielForSelect(COL_GROUPE, COL_ID, COL_NOM, COL_DESCRIPTION, $groupeId, COL_JEU, array(COL_JEU, COL_LIBELLE, COL_LIBELLE));