Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev Author Line No. Line
641 mathilde 1
<!-- NOMENCLATURE -->
671 mathilde 2
<div class="bloc <?if ($premier == 'nomenclature') : echo 'allow-break'; else : echo 'no-break'; endif; ?>">
641 mathilde 3
	<div class="categorie"> Nomenclature </div>
4
	<!-- NOM RETENU -->
5
	<?php if(!empty($nomenclature['basionyme_nom_retenu']) || !empty($nomenclature['nom_selectionne'])
6
	 || !empty($nomenclature['nom_retenu'])   || !empty($nomenclature['nom_retenu_formate'])) :?>
7
	 	<div class="no-break">
8
			<h2>Nom retenu</h2>
9
			<span class="citation"><?= $nomenclature['synonymes']['meta']['titre']?></span>
10
			<div style="float:right">
11
				<div class="legende">
12
					<b>Légende</b><br />
13
					<span class="legende_nom_retenu couleur_legende" style="margin:8px 5px 0 0"></span><span>Nom sélectionné</span>
14
				</div>
15
			</div>
16
			<div class="onglet_marge_gauche">
17
				<span class="nom retenu <?= ($nomenclature['nom_selectionne'] == $nomenclature['nom_retenu']) ? 'surlignage' : '' ?>">
18
					<?= $nomenclature['nom_retenu_formate'] ?>
19
				</span>
20
			</div>
21
			<div class="nom onglet_marge_gauche basionyme_complet">
22
				Basionyme :
23
					<?= $nomenclature['basionyme_nom_retenu'] ?>
24
			</div>
25
 
26
		<div class="onglet_marge_gauche"> Dernière date de modification du nom : <?= $nomenclature['date_maj'] ?> </div>
27
		</div>
28
		<hr class="nettoyage" />
29
	<?php endif; ?>
30
 
31
	<!-- WIKI -->
32
	<? if (!empty($nomenclature['wikini']['nomenclature'])) :?>
33
		<div class="no-break">
34
			<span> Données collaboratives sur ce nom. </span>
669 mathilde 35
			<div  title="statuts de protection" class="wiki allow-break">
641 mathilde 36
				<?=$nomenclature['wikini']['nomenclature']?>
37
			</div>
38
		</div>
39
	<? endif; ?>
40
 
41
	<!-- SYNONYMES -->
42
	<?php if(is_array($nomenclature['synonymes']['noms']) && count($nomenclature['synonymes']['noms']) > 0) { ?>
43
		<div class="no-break">
44
			<h2>Synonymes</h2>
45
			<span class="citation"><?= $nomenclature['synonymes']['meta']['titre']?></span>
46
			<?php foreach ($nomenclature['synonymes']['noms'] as $id => $synonyme) : ?>
47
				<ul class="allow-break">
48
					<li class="item_nomenclature">
49
						<span class="nom <?= ($nomenclature['nom_selectionne'] == $synonyme['nom_sci']) ? 'surlignage' : '' ?>">
50
							<?= $synonyme['nom_sci_complet']  ?>
51
						</span>
52
						<span class="nom basionyme_complet">
53
							<?= ($synonyme['basionyme_html_complet']) ? "Basionyme : ".$synonyme['basionyme_html_complet'] : ''; ?>
54
						</span>
55
					</li>
56
				</ul>
57
			<?php endforeach; ?>
58
		<hr class="nettoyage" />
59
		</div>
60
	<?php } ?>
845 delphine 61
 
62
	<div class="no-break">
63
		<?php if ($nomenclature['taxons_sup'] != array()) : ?>
64
		<h2> Place du taxon dans la classification </h2>
65
		<span class="citation"><?= $nomenclature['meta']['titre']?></span>
66
		<table class="allow-break">
67
			<tr>
68
				<th>Rang</th><th>Nom Scientifique</th><th>Num Nom</th>
69
			</tr>
70
 
847 delphine 71
				<?php foreach ($nomenclature['taxons_sup']  as $taxon) : ?>
845 delphine 72
					<tr>
73
						<td><?= $taxon['rang.libelle'] ?></td>
74
						<td><?= $taxon['nom_sci'] ?></td>
75
						<td><?= $taxon['num_nom'] ?></td>
76
					</tr>
77
				<?php endforeach; ?>
78
 
79
			<tr class="surlignage">
80
				<td><?= $nomenclature['taxon_courant']['rang.libelle'] ?></td>
81
				<td><?= $nomenclature['taxon_courant']['nom_sci'] ?></td>
82
				<td><?= $nomenclature['taxon_courant']['num_nom'] ?></td>
83
			</tr>
84
 
85
			<?php if ($nomenclature['taxons_inf'] != array()) : ?>
86
				<?php foreach($nomenclature['taxons_inf'] as $taxon) : ?>
87
					<tr>
88
						<td><?= $taxon['rang.libelle'] ?></td>
89
						<td><?= $taxon['nom_sci'] ?></td>
90
						<td><?= $taxon['num_nom'] ?></td>
91
					</tr>
92
				<?php endforeach; ?>
93
			<?php endif; ?>
94
		</table>
95
		<?php endif; ?>
96
		</div>
641 mathilde 97
 
845 delphine 98
		<!-- VIDE DE DONNEES -->
852 mathilde 99
	<?php if ( empty($nomenclature['taxons_sup']) && empty($nomenclature['taxon_inf'] ) ) : ?>
845 delphine 100
	Aucune donnée.
101
	<?php endif; ?>
102
	<br/>
641 mathilde 103
 
104
	<!-- FLORES -->
105
	<?php if(is_array($nomenclature['flores_synonymes']) && count($nomenclature['flores_synonymes']) > 0) { ?>
106
	<div class="no-break">
107
		<h2>Flores</h2>
108
		<span class="citation"><?= $nomenclature['synonymes']['meta']['titre']?></span>
109
 
110
		<?php foreach ($nomenclature['flores_synonymes'] as $num_nom_syn => $infos_flore) : ?>
111
			<?php foreach ($infos_flore as $code => $flore) : ?>
112
				<ul class="allow-break">
113
					<li class="item_nomenclature">
114
						<div class="nom">
115
							Dans la flore <em><?= $flore['nom_flore'] ?></em>,
116
							ce taxon porte le nom de <em><?= $flore['nom_sci']  ?></em>
117
							et le code <b><?= $flore['id'] ?></b><br />
118
						</div>
119
					</li>
120
				</ul>
121
			<?php endforeach; ?>
122
		<?php endforeach; ?>
123
	</div>
124
	<hr class="nettoyage" />
125
	<?php } ?>
126
 
127
	<!-- num type -->
128
	<?php if($nomenclature['num_type'] != null) { ?>
129
		<h3> Autres </h3>
130
		<ul>
131
			<li class="item_nomenclature">
132
				<span class="nom">Numéro du type : <?= $nomenclature['num_type'] ?></span>
133
			</li>
134
		</ul>
135
	<?php } ?>
136
 
137
	<!-- VIDE DE DONNEES -->
138
	<?php if ( empty($nomenclature['basionyme_nom_retenu']) && empty($nomenclature['nom_retenu_formate'] )
139
	&& empty($nomenclature['nom_selectionne'] ) && empty($nomenclature['synonymes']['noms'] )
140
	&& empty($nomenclature['nom_retenu']) && empty($nomenclature['flores_synonymes'])
141
	&& empty($nomenclature['num_type'])) : ?>
142
	Aucune donnée.
143
	<?php endif; ?>
144
</div>
145
<br/>
146
<br/>