Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 853 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 jpm 1
<!-- DEBUT FORM_NOM -->
110 aurelien 2
<script type="text/javascript">
3
<!--
457 jpm 4
	var AUTOCOMPLETION_ELEMENTS_NBRE = 50;
5
	var URL_SERVICE_AUTOCOMPLETION_NOM_SCI = "<?=$url_base_completion_noms_sci?>";
6
	var URL_SERVICE_AUTOCOMPLETION_NOM_VERNA = "<?=$url_base_completion_noms_verna?>";
7
	var VALEUR_DEFAUT_NOM_SCI = "<?= $i18n['valeur-form-nom-sci']; ?>";
8
	var VALEUR_DEFAUT_NOM_VERNA = "<?= $i18n['valeur-form-nom-verna']; ?>";
853 aurelien 9
	var VALEUR_DEFAUT_AU = "<?=$i18n['valeur-form-auteur']?>";
10
	var VALEUR_DEFAUT_BIB = "<?=$i18n['valeur-form-bib']?>";
11
	var VALEUR_DEFAUT_DATE = "<?=$i18n['valeur-form-date']?>";
726 mathilde 12
 
110 aurelien 13
 // -->
14
</script>
173 delphine 15
<form id="ef-form-nomenclature" name="ef-form-nomenclature" action="<?=$url_form;?>" method="get">
33 jpm 16
	<fieldset>
100 gduche 17
		<span class="zone-choix-type-nom">
18
			<?php if (isset($nom_verna)) { ?>
19
			    <span class="type-nom">
20
					<input id="type_nom_scientifique" name="type_nom" value="nom_scientifique" type="radio" <?=($type_nom == 'nom_scientifique') ? 'checked="checked"': '';?> />
21
					<label for="type_nom_scientifique"><?=$i18n['ns'];?></label>
22
				</span>
23
				<span class="type-nom">
24
					<input id="type_nom_vernaculaire" name="type_nom" value="nom_vernaculaire" type="radio" <?=($type_nom == 'nom_vernaculaire') ? 'checked="checked"': '';?> />
25
					<label for="type_nom_vernaculaire" title="(en français, allemand, anglais, catalan, espagnol, italien ou néerlandais)"><?=$i18n['nv'];?></label>
26
				</span>
27
			<?php } else {?>
28
				<input id="type-nom-scientifique" name="type_nom" type="hidden" value="nom_scientifique" />
29
				<?=$i18n['ns'];?>
30
			<?php } ?>
31
		</span>
427 delphine 32
		<input id="nom" name="nom" class="champ" size="30" maxlength="255" type="text" <?php if(isset($nom)) echo 'value="'.$nom.'"';?> />
100 gduche 33
		<span id="zone-liens-recherche">
193 delphine 34
			<input id="eflore_nomenclature_referentiel" name="referentiel" type="hidden" value="<?=Registre::get('parametres.referentiel')?>" />
35
			<input id="eflore_nomenclature_niveau" name="niveau" type="hidden" value="<?=Registre::get('parametres.niveau')?>" />
36
			<input id="eflore_nomenclature_module" name="module" type="hidden" value="recherche" />
37
			<input id="eflore_nomenclature_action" name="action" type="hidden" value="rechercheSimple" />
100 gduche 38
			<input id="eflore_nomenclature_submit" name="submit" type="submit" value="<?=$i18n['recherche'];?>" class="ok"/>
39
			<input id="eflore_nomenclature_fiche" name="submit" type="submit" value="<?=$i18n['fiche'];?>" />
40
		</span>
33 jpm 41
	</fieldset>
42
</form>
43 delphine 43
 
123 delphine 44
 
45
<?php if (isset($message)) : ?>
878 aurelien 46
	<p class="<?= (isset($message['attention'])) ? 'attention' : 'information'; ?>">
47
		<?= (isset($message['attention'])) ? $i18n[$message['attention']] : ''; ?>
48
		<?= (isset($message['nom_ss_corresp'])) ? $message['nom_ss_corresp']['nom'].$i18n['nom_ss_corresp'].
720 delphine 49
				'<a href="http://referentiels.tela-botanica.org/referentiel/index.php?ref=bdtfx&module=FicheTaxon&num_nom='.$message['nom_ss_corresp']['id'].'">'.
50
				$i18n['reftax'].'</a>' : ''; ?>
128 delphine 51
		<?php if (isset($message['nom_approche'])) : ?>
52
			<?=$i18n['orthographe'];?>
720 delphine 53
			<?php foreach ($message['nom_approche'] as $cle => $nom) :?>
128 delphine 54
				<a href="<?=$nom['url_nom_approche']?>"><?=$nom['nom'];?></a>
878 aurelien 55
				<?= (isset($message['nom_approche'][$cle+1]['nom'])) ? ' ou ' : ''; ?>
128 delphine 56
			<?php endforeach; ?>
57
		<?php endif; ?>
123 delphine 58
	</p>
33 jpm 59
<?php endif; ?>
726 mathilde 60
<!-- FIN FORM_NOM -->