예제 #1
0
<?php

$datas = $dsp->var['param']['datas'];
$param = $dsp->var['param'];
?>

{{ openContent($param['titre']) }}

<?php 
// Open Form
Xform::form('route', 'player.create');
// Hidden
Xform::startRow('hidden');
Xform::addText('_token', 'x', Session::getToken(), 2);
Xform::addText('id', 'ID', $datas->id, 2);
Xform::addText('backUrl', '', $param['backUrl']);
Xform::addText('user_id', 'USER_ID', Auth::user()->id, 1);
Xform::endRow();
// Get Fields
Xform::startRow();
Xform::addText('nom', 'Nom', $datas->nom, 4);
Xform::addText('prenom', 'Prénom', $datas->prenom, 4);
Xform::addDate('naissance', 'Date de naissance', $datas->naissance, 4);
Xform::endRow();
Xform::startRow();
Xform::addSelect('nation_id', Nation::lists('libelle', 'id'), 'Nationalité', $datas->nation_id, 3);
Xform::addSelect('langue_id', Langue::lists('libelle', 'id'), 'Langue', $datas->langue_id, 3);
Xform::addText('Tel1', 'Téléphone', $datas->tel1, 3);
Xform::endRow();
Xform::startRow();
Xform::addSelect('selectNation_id', Nation::lists('libelle', 'id'), 'Pays', $datas->club->region->nation->id, 3);
예제 #2
0
<?php

$datas = $dsp->var['param']['datas'];
$param = $dsp->var['param'];
?>

{{ openContent($param['titre']) }}

<?php 
// Open Form
Xform::form('route', 'domaine.create');
// Hidden
Xform::startRow('hidden');
Xform::addText('_token', 'x', Session::getToken(), 2);
Xform::addText('id', 'ID', $datas->id, 2);
Xform::addText('backUrl', '', $param['backUrl']);
Xform::addText('user_id', 'USER_ID', Auth::user()->id, 1);
Xform::endRow();
// Get Fields
Xform::startRow();
Xform::addText('nom', 'Nom du domaine', $datas->nom, 5);
Xform::endRow();
Xform::startRow();
Xform::addText('url', 'Url', $datas->url, 5);
Xform::endRow();
Xform::startRow();
Xform::addSelect('typedomaine_id', Typedomaine::lists('libelle', 'id'), 'Type', $datas->typedomaine_id, 2);
Xform::endRow();
// Buttons
Xform::addSubmit();
Xform::addCancel($param['backUrl']);
예제 #3
0
                <span class="badge dark no-bold">{{ gl($datas->categorie->sexe->libelle) }}</span>
                {{ gl('Cat') }}
            </li>
            <li class="list-group-item">
                <span class="badge dark no-bold">{{ $datas->categorie->hcpmin }} | {{ $datas->categorie->hcpmax }}</span>
                {{ gl('Index (hcp)') }}
            </li>
            <li class="list-group-item">
                <span class="badge dark no-bold">{{ $datas->categorie->agemin }} | {{ $datas->categorie->agemax }}</span>
                {{ gl('Age') }}
            </li>
        </ul>
    </div>
<?php 
// Open Form
Xform::form('route', 'competcategorie.savetee');
// Hidden
Xform::startRow('hidden');
Xform::addText('_token', 'x', Session::getToken(), 2);
Xform::addText('id', 'ID', $datas->id, 2);
Xform::addText('backUrl', '', $param['backUrl']);
Xform::endRow();
// Get Fields
Xform::startRow();
Xform::addSelect('tee_id', Tee::lists('libelle', 'id'), 'Boites de départs', $datas->tee_id, 3);
Xform::endRow();
// Buttons
Xform::addSubmit();
Xform::addCancel($param['backUrl']);
// Message bottom
//Xform::addMessage('Ceci est un message');
예제 #4
0
<?php

$datas = $dsp->var['param']['datas'];
$param = $dsp->var['param'];
?>

{{ openContent($param['titre']) }}

<?php 
// Open Form
Xform::form('route', 'manager.create');
// Hidden
Xform::startRow('hidden');
Xform::addText('_token', 'x', Session::getToken(), 2);
Xform::addText('id', 'ID', $datas->id, 2);
Xform::addText('backUrl', '', $param['backUrl']);
Xform::addText('user_id', 'USER_ID', Auth::user()->id, 1);
Xform::endRow();
// Get Fields
Xform::startRow();
Xform::addText('nom', 'Nom', $datas->nom, 4);
Xform::addText('prenom', 'Prénom', $datas->prenom, 3);
Xform::addSelect('statussocial_id', Statussocial::lists('libelle', 'id'), 'Status', $datas->statussocial_id, 3);
Xform::addSelect('langue_id', Langue::lists('libelle', 'id'), 'Langue', $datas->langue_id, 2);
Xform::endRow();
Xform::startRow();
Xform::addText('societe', 'Société', $datas->societe, 4);
Xform::addText('numtva', 'N° de TVA', $datas->numtva, 3);
Xform::endRow();
Xform::startRow();
Xform::addText('adr1', 'Adresse', $datas->adr1, 4);
예제 #5
0
$nbJoueurDansFlight = gl("Nombre de joueurs dans un départ");
$nbJoueurDansFlightSelect = ['2' => 2, '3' => 3, '4' => 4];
if ($typeCompetNbJoueurs == 2) {
    $nbJoueurLibelle = gl("Nombre d'équipes dans un départ");
    $nbJoueurDansFlightSelect = ['2' => 2];
} elseif ($typeCompetNbJoueurs > 2) {
    $nbJoueurLibelle = gl("Nombre d'équipes dans un départ");
    $nbJoueurDansFlightSelect = ['1' => 1];
}
?>

{{ openContent($param['titre']) }}

<?php 
// Open Form
Xform::form('route', 'configdepart.create');
// Hidden
Xform::startRow('hidden');
Xform::addText('_token', 'x', Session::getToken(), 2);
Xform::addText('id', 'ID', $datas->id, 2);
Xform::addText('backUrl', '', $param['backUrl']);
Xform::addText('tour_id', 'TOUR_ID', MySession::getModel('tour')->id, 1);
Xform::endRow();
// Get Fields
Xform::startRow();
Xform::addSelect('parcour_id', Parcour::lists('nom', 'id'), 'Parcours', $datas->parcour_id, 4);
Xform::addSelect('typeconfigdepart_id', ['1' => 'En ligne', '2' => 'Shotgun'], 'Type de départs', $datas->typeconfigdepart_id, 3);
Xform::endRow();
Xform::startRow();
Xform::addText('nbjoueurs', $nbJoueurLibelle, $datas->nbjoueurs, 3);
Xform::addSelect('starttee', ['1' => 1, '10' => 10], 'Au Trou', $datas->starttee, 2);
예제 #6
0
<?php

$datas = $dsp->var['param']['datas'];
$param = $dsp->var['param'];
?>

{{ openContent($param['titre']) }}

<?php 
// Open Form
Xform::form('route', 'categorie.create');
// Hidden
Xform::startRow('hidden');
Xform::addText('_token', 'x', Session::getToken(), 2);
Xform::addText('id', 'ID', $datas->id, 2);
Xform::addText('backUrl', '', $param['backUrl']);
Xform::addText('user_id', 'USER_ID', Auth::user()->id, 1);
Xform::endRow();
// Get Fields
Xform::startRow();
Xform::addText('nom', 'Nom de la catégorie', $datas->nom, 5);
Xform::addText('nomcourt', 'Abbréviation', $datas->nomcourt, 3);
Xform::addSelect('sexe_id', Sexe::lists('libelle', 'id'), 'Cat', $datas->sexe_id, 3);
Xform::endRow();
Xform::startRow();
Xform::addText('hcpmin', 'Index (hcp) minimum', $datas->hcpmin, 3);
Xform::addText('hcpmax', 'Index (hcp) maximum', $datas->hcpmax, 3);
Xform::endRow();
Xform::startRow();
Xform::addSelect('agemin', Categorie::listAge(), 'Age minimum', $datas->agemin, 3);
Xform::addSelect('agemax', Categorie::listAge(), 'Age maximum', $datas->agemax, 3);
예제 #7
0
<?php

$datas = $dsp->var['param']['datas'];
$param = $dsp->var['param'];
?>

{{ openContent($param['titre']) }}

<?php 
// Open Form
Xform::form('route', 'tour.create');
// Hidden
Xform::startRow('hidden');
Xform::addText('_token', 'x', Session::getToken(), 2);
Xform::addText('id', 'ID', $datas->id, 2);
Xform::addText('backUrl', '', $param['backUrl']);
Xform::addText('compet_id', 'COMPET_ID', MySession::getModel('compet')->id, 1);
Xform::endRow();
// Get Fields
Xform::startRow();
Xform::addDate('datetour', 'Date', $datas->datetour, 2);
Xform::addSelect('formulecompet_id', $datas->compet->typecompet->listFormules(), 'Formule de jeu', $datas->formulecompet_id, 3);
Xform::endRow();
// Buttons
Xform::addSubmit();
Xform::addCancel($param['backUrl']);
// Message bottom
//Xform::addMessage('Ceci est un message');
?>

    <!-- Close Form -->
예제 #8
0
<?php

$datas = $dsp->var['param']['datas'];
$param = $dsp->var['param'];
?>

{{ openContent($param['titre']) }}

<?php 
// Open Form
Xform::form('route', 'compet.create');
// Hidden
Xform::startRow('hidden');
Xform::addText('_token', 'x', Session::getToken(), 2);
Xform::addText('id', 'ID', $datas->id, 2);
Xform::addText('backUrl', '', $param['backUrl']);
Xform::addText('domaine_id', 'DOMAINE_ID', MySession::getModel('domaine', 'domaine')->id, 1);
Xform::endRow();
// Get Fields
Xform::startRow();
Xform::addText('nom', 'Nom de la compétition', $datas->nom, 5);
Xform::addDate('date', 'Date', $datas->date, 2);
Xform::addSelect('nbtours', ['1' => 1, '2' => 2, '3' => 3, '4' => 4], 'Nombre de tours', $datas->nbtours, 3);
Xform::endRow();
Xform::startRow();
Xform::addSelect('genrecompet_id', Genrecompet::lists('libelle', 'id'), 'Genre', $datas->genrecompet_id, 3);
Xform::addSelect('typecompet_id', Typecompet::lists('libelle', 'id'), 'Type', $datas->typecompet_id, 3);
Xform::addSelect('modecompet_id', Modecompet::lists('libelle', 'id'), 'Type', $datas->modecompet_id, 3);
Xform::endRow();
Xform::startRow();
Xform::addText('maxplayers', 'Nombre de joueurs max', $datas->maxplayers, 4);
예제 #9
0
{{ openContent($param['titre']) }}

    <?php 
if ($datas->modeEdition() == 'new') {
    $titre = "Création d'un nouveau test";
} else {
    $titre = "Edition de {$datas->nom}";
}
?>

    {{ showBlocTitre($titre) }}

    <?php 
// Open Form
Xform::form('route', 'test.create');
// Hidden
Xform::startRow('hidden');
Xform::addText('_token', 'x', Session::getToken(), 2);
Xform::addText('id', 'ID', $datas->id, 2);
Xform::addText('backUrl', '', $param['backUrl']);
Xform::endRow();
// Get Fields
Xform::startRow();
Xform::addText('nom', 'Nom', $datas->nom, 8);
Xform::endRow();
Xform::startRow();
Xform::addDate('birthday', 'Date de naissance', $datas->birthday, 6);
Xform::addText('valeur', 'Valeur', $datas->valeur, 3);
Xform::addCheckBox('actif', 'Présent', $datas->actif, 2);
Xform::endRow();
예제 #10
0
<?php

$param = $dsp->var['param'];
$tours = Tour::where('compet_id', '=', $param['compet_id'])->get();
?>

{{ openContent($param['titre']) }}

    <?php 
// Open Form
Xform::form('route', 'tour.formule');
// Hidden
Xform::startRow('hidden');
Xform::addText('_token', 'x', Session::getToken(), 2);
Xform::addText('backUrl', '', $param['backUrl']);
Xform::addText('compet_id', 'COMPET_ID', $param['compet_id'], 1);
Xform::endRow();
?>

    @foreach($tours as $tour)

        <?php 
$t = $tour->num;
// Hidden
Xform::startRow('hidden');
Xform::addText('id[' . $t . ']', 'ID', $tour->id, 2);
Xform::endRow();
// Get Fields
Xform::startRow();
Xform::addDate('datetour[' . $t . ']', 'Date', $tour->datetour, 2);
Xform::addSelect('formulecompet_id[' . $t . ']', $tour->compet->typecompet->listFormules(), 'Formule de jeu', $tour->formulecompet_id, 3);
예제 #11
0
<?php

$datas = $dsp->var['param']['datas'];
$param = $dsp->var['param'];
?>

{{ openContent($param['titre']) }}

    <?php 
// Open Form
Xform::form('route', 'traduction.create');
// Hidden
Xform::startRow('hidden');
Xform::addText('id', 'ID', $datas->id, 2);
Xform::addText('backUrl', '', $param['backUrl']);
Xform::endRow();
// Get Fields
Xform::startRow();
Xform::addText('en', 'Anglais', $datas->en, 10);
Xform::endRow();
Xform::startRow();
Xform::addText('nl', 'Néerlandais', $datas->en, 10);
Xform::endRow();
// Buttons
Xform::addSubmit();
Xform::addCancel($param['backUrl']);
// Message bottom
//Xform::addMessage('Ceci est un message');
?>

        <!-- Close Form -->