Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 177 → Rev 178

/trunk/modules/niveau/Niveau.php
New file
0,0 → 1,27
<?php
class Niveau extends aControleur {
public function executerActionParDefaut() {
$this->afficherMoteurNiveau();
}
public function afficherMoteurNiveau() {
$this->setSortie(self::RENDU_CORPS, $this->afficherNiveau());
}
public function afficherNiveau() {
$donnees['url_form'] = $this->urls->obtenirUrlBase();
$donnees['i18n'] = I18n::get('Niveau');
$donnees['niveau'] = Registre::get('parametres.niveau');
return $this->getVue('niveau', $donnees);
}
private function capturerParametres() {
//referentiel=bdtfx&module=recherche&action=rechercheSimple&submit=Rechercher&type_nom=nom_scientifique&nom=Triraphis&resultat=decompo
 
if (isset($_GET['niveau'])) {
Registre::set('parametres.niveau', $_GET['niveau']);
}
}
}
?>
/trunk/modules/niveau/squelettes/niveau.tpl.html
New file
0,0 → 1,30
<!-- DEBUT FORM_NIVEAU -->
<form id="ef-form-niveau" name="ef-form-niveau" action="<?=$url_form;?>" method="get">
<fieldset>
<span class="zone-choix-niveau">
<span class="choix-niveau">
<input id="niveau_1" name="niveau" value="1" type="radio" <?=($niveau == '1') ? 'checked="checked"': '';?> />
<label for="niveau_1"><?=$i18n['niveau-1'];?></label>
</span>
<span class="choix-niveau">
<input id="niveau_2" name="niveau" value="2" type="radio" <?=($niveau == '2') ? 'checked="checked"': '';?> />
<label for="niveau_2"><?=$i18n['niveau-2'];?></label>
</span>
<span class="choix-niveau">
<input id="niveau_3" name="niveau" value="3" type="radio" <?=($niveau == '3') ? 'checked="checked"': '';?> />
<label for="niveau_3"><?=$i18n['niveau-3'];?></label>
</span>
</span>
<span id="zone-liens-niveau">
<input id="referentiel" name="referentiel" type="hidden" value="<?=Registre::get('parametres.referentiel')?>" />
<input id="module" name="module" type="hidden" value="recherche" />
<input id="action" name="action" type="hidden" value="Niveau" />
<input id="eflore_niveau_submit" name="submit" type="submit" value="<?=$i18n['ok'];?>" class="ok"/>
</span>
</fieldset>
</form>
 
 
 
<!-- FIN FORM_NOM -->