Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev Author Line No. Line
990 isa 1
<?
2
$txt_latin = "<div onclick='gestionPopover();'>
3
				Le nom latin est utilisé en sciences pour nommer un être vivant,
4
			  	ou un groupe d'êtres vivants. On l'appelle aussi nom scientifique ou encore
5
			  	nom savant, car il n'est pas employé couramment et parfois difficile à retenir.
6
			  </div>";
7
$txt_famille = "<div onclick='gestionPopover();'>
8
					Une famille rassemble des êtres vivants proches, qui se ressemblent, malgré leurs
9
					différences. Les familles botaniques sont ainsi utilisées pour classer les végétaux et pour
10
					estimer les similitudes ou affinités qu'il peut y avoir entre différentes plantes.
11
				</div>";
12
 
13
$icones = array('icon-eye-open', 'icon-book', 'icon-certificate', 'icon-home', 'icon-flag');
14
$index_icones = 0;
15
 
16
$txt_vide = "Aucune donnée disponible.";
17
$nb_onglets = 0;
18
?>
991 isa 19
<div onclick="gestionPopover();">
20
	<header class="row-fluid">
21
		<div class="padding-05em">
22
			<div class="tela pull-left">
23
				<a href="http://tela-botanica.org" rel="external" title="Retour à Tela-Botanica.org">
24
					<img src="modules/mobile/presentations/logos/tela.png" alt="Logo Tela" />
25
				</a>
26
			</div>
27
			<div class="text-center titre">
1163 raphael 28
				<? if (isset($texte['nom-commun'])) : ?>
29
				<?= $texte['nom-commun']; ?>
30
				<? elseif ($nomsCommuns[0]['nom_vernaculaire'] != '') : ?>
991 isa 31
					<?= $nomsCommuns[0]['nom_vernaculaire'] ?>
32
				<? else : ?>
33
					<? if ($texte['titre'][0] != '') : ?>
34
						<?= $texte['titre'][0]; ?>
35
					<? else : ?>
36
						Aucun nom commun défini.
37
					<? endif; ?>
38
				<? endif; ?>
39
			</div>
40
		</div>
41
	</header>
42
 
43
	<div id="div-infos">
44
		<div id="div-infos-latin" class="row-fluid">
45
			<div class="align-center">
1035 isa 46
				<a href="<?= $url_absolue ?>#div-infos-latin" class="btn btn-large btn-pop"
991 isa 47
						data-content="<?= $txt_latin; ?>" data-html="true"
48
						data-placement="bottom" data-toggle="popover"
49
						data-original-title="<div onclick='gestionPopover();'>Pourquoi un nom latin ?</div>"
50
						onclick="resetPopover();">
51
							<? if ($nom_retenu != '') : ?>
52
								<?= $nom_retenu; ?>
990 isa 53
							<? else : ?>
991 isa 54
								Aucun nom scientifique.
990 isa 55
							<? endif; ?>
991 isa 56
				</a>
57
			</div>
58
		</div>
59
 
60
		<div id="div-illustrations" class="row-fluid">
61
			<? if (count($illustrations) != 0) : ?>
62
				<div class="align-center" onclick="gestionSlider();">
63
					<a href="#btn-latin" class="" id="gstn-img">
64
						<img src="<?= $illustrations[0]['src'] ?>" alt="Miniature" class="pull-left">
65
						<img src="modules/mobile/presentations/icones/zoom.png" class="zoom pull-left"/>
66
						<img src="<?= $illustrations[1]['src'] ?>" alt="Miniature" class="pull-left">
67
					</a>
990 isa 68
				</div>
991 isa 69
				<div id="slider-pictures" class="carousel slide margin-top-05em">
70
					<button class="btn btn-large" onclick="gestionSlider();">
71
						<i class="icon-remove pull-left"></i>
72
					</button>
73
					<ol class="carousel-indicators">
74
						<? for($i = 0; $i < count($illustrations); $i++) : ?>
75
							<li data-target="#slider-pictures" data-slide-to="<?= $i ?>" class="<?= ($i == 0) ? 'active' : ''; ?>"></li>
76
						<? endfor; ?>
77
					</ol>
78
 
79
					<div class="carousel-inner">
80
						<? for($i = 0; $i < count($illustrations); $i++) : ?>
81
							<div class="item <?= ($i == 0) ? ' active' : ''; ?>">
82
								<img src="<?= $illustrations[$i]['src'] ?>" alt="Image_<?= $i ?>" >
83
								<div class="carousel-caption">
84
									<h4><?= $illustrations[$i]['legende']['titre'] ?></h4>
85
									<p><?= $illustrations[$i]['legende']['texte'] ?></p>
86
								</div>
87
							</div>
88
						<? endfor; ?>
990 isa 89
					</div>
991 isa 90
 
91
					<a class="left carousel-control" href="#slider-pictures" data-slide="prev">&lsaquo;</a>
92
					<a class="right carousel-control" href="#slider-pictures" data-slide="next">&rsaquo;</a>
93
				</div>
94
			<? endif; ?>
95
		</div>
990 isa 96
 
97
 
991 isa 98
		<div id="div-infos-famille" class="row-fluid">
99
			<div class="align-center">
100
				<a href="#div-infos-famille" class="btn btn-large btn-pop" data-content="<?= $txt_famille; ?>"
101
						data-placement="bottom" data-toggle="popover" data-html="true"
1357 mathias 102
						data-original-title="<div onclick='gestionPopover();'>Pourquoi une famille de plantes ?</div>"
991 isa 103
						onclick="resetPopover();">
104
							<? if ($famille != '') : ?>
105
									Famille des <span class="small-caps"><?= $famille; ?></span>
106
							<? else : ?>
107
								<span class="none">En savoir plus sur les familles de plante</span>
108
							<? endif; ?>
109
				</a>
990 isa 110
			</div>
991 isa 111
		</div>
112
	</div>
113
	<span class="gradient-bas"></span>
114
	<?= $floraison['coste']['texte']; ?>
1161 raphael 115
 
991 isa 116
	<div class="resume">
117
		<? if (count($texte['corps']) > 1) : ?>
118
			<?= $texte['corps'][2]; ?>
119
	</div>
990 isa 120
 
991 isa 121
			<? for($index = 3; $index < count($texte['corps'])-1; $index+=2) : ?>
122
				<? if (isset($texte['corps'][$c+1])) :
990 isa 123
						$nb_onglets++;
124
						$class = ($nb_onglets % 2 == 0) ? "couleur1-bg" : "couleur2-bg";
125
					?>
991 isa 126
					<div class="row-fluid infos">
127
						<div class="btn btn-block <?= $class ?>" data-toggle="collapse" data-target="#c<?= $index ?>">
128
							<h4 class="padding-left-1em">
129
								<i class="<?= $icones[$index_icones++]; ?> pull-left"></i>
130
								<?= $texte['corps'][$index]; ?>
131
							</h4>
132
						</div>
133
						<div id="c<?= $index ?>" class="collapse">
134
							<div class="bg <?= $class ?>">
135
								<div class="textes">
1102 isa 136
									<? if (stristr($texte['corps'][$index], 'cologie') != false || stristr($texte['corps'][$index], 'cologie') != false) : ?>
1329 aurelien 137
										<? if ($repartition['carte'] != null) : ?>
138
											<div class="span6 margin-right-05em">
139
												Carte de répartition <br />
140
												<ul id="galerie_carte" class="gallery style-none margin-center">
141
													<li>
142
														<a href="<?= $repartition['carte'] ?>" rel="external">
143
															<img style="width:190px; height:178px" src="<?= $repartition['carte'] ?>" class="" title="Carte de répartition" alt="Carte de répartition" />
144
														</a>
145
													</li>
146
												</ul>
147
											</div>
148
										<? endif; ?>
991 isa 149
										<div class="">
150
											<?= $texte['corps'][$index+1]; ?>
151
										</div>
152
										<div class="clearfix"></div>
153
									<? else : ?>
154
										<?= $texte['corps'][$index+1]; ?>
155
									<? endif; ?>
156
								</div>		<!-- Fin de la zone de texte -->
990 isa 157
							</div>
991 isa 158
						</div>		<!-- Fin de la zone déroulante -->
159
					</div>		<!-- Fin du bloc infos -->
160
				<? endif; ?>
161
			<? endfor; ?>
162
		<? else : ?>
1161 raphael 163
 
1329 aurelien 164
		<? if ($repartition['carte'] != null) /* affichage de la chorologie quand même, en l'absence de fiche Smartflore */ : ?>
1161 raphael 165
		<div class="row-fluid infos">
166
		  <div data-target="#c9" data-toggle="collapse" class="btn btn-block couleur1-bg">
167
		    <h4 class="padding-left-1em">
168
		      <i class="icon-home pull-left"></i>
169
		      Écologie &amp; habitat</h4>
170
		  </div>
171
		  <div class="in collapse" id="c9" style="height: auto;">
172
		    <div class="bg couleur1-bg">
173
		      <div class="textes">
174
			<div class="span6 margin-right-05em"> Carte de répartition <br>
175
			  <ul class="gallery style-none margin-center" id="galerie_carte">
176
			    <li>
1329 aurelien 177
			      <a href="<?= $repartition['carte'] ?>" rel="external">
178
				<img style="width:190px; height:178px" src="<?= $repartition['carte'] ?>" class="" title="Carte de répartition" alt="Carte de répartition" />
1161 raphael 179
			      </a>
180
			    </li>
181
			  </ul>
182
			</div>
183
			<div class="clearfix"></div>
184
		      </div><!-- Fin de la zone de texte -->
185
		    </div>
186
		  </div><!-- Fin de la zone déroulante -->
187
		</div>
188
		<? endif; ?>
189
 
991 isa 190
			<? if ($floraison['coste']['description']['texte'] != '') : ?>
191
				<?= $floraison['coste']['description']['texte']; ?>
990 isa 192
			<? else : ?>
991 isa 193
				<? if (count($floraison['baseflor']) > 1) : ?>
194
					<? foreach ($floraison['baseflor'] as $index => $texte) : ?>
195
						<? if ($floraison['baseflor'][$index] != '') : ?>
196
							<?= $index.' : '.$texte; ?> <br />
197
						<? endif; ?>
198
					<? endforeach; ?>
990 isa 199
				<? else : ?>
991 isa 200
					<?= $txt_vide; ?>
990 isa 201
				<? endif; ?>
991 isa 202
			<? endif; ?>
203
			</div>
1329 aurelien 204
		<? endif; ?>