Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1343 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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