Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1162 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1162 Rev 1163
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'])) : ?>
-
 
29
				<?= $texte['nom-commun']; ?>
28
				<? if ($nomsCommuns[0]['nom_vernaculaire'] != '') : ?>
30
				<? elseif ($nomsCommuns[0]['nom_vernaculaire'] != '') : ?>
29
					<?= $nomsCommuns[0]['nom_vernaculaire'] ?>
31
					<?= $nomsCommuns[0]['nom_vernaculaire'] ?>
30
				<? else : ?>
32
				<? else : ?>
31
					<? if ($texte['titre'][0] != '') : ?>
33
					<? if ($texte['titre'][0] != '') : ?>
32
						<?= $texte['titre'][0]; ?>
34
						<?= $texte['titre'][0]; ?>
33
					<? else : ?>
35
					<? else : ?>
34
						Aucun nom commun défini.
36
						Aucun nom commun défini.
35
					<? endif; ?>
37
					<? endif; ?>
36
				<? endif; ?>
38
				<? endif; ?>
37
			</div>
39
			</div>
38
		</div>
40
		</div>
39
	</header> 	   
41
	</header> 	   
40
		
42
		
41
	<div id="div-infos">
43
	<div id="div-infos">
42
		<div id="div-infos-latin" class="row-fluid">
44
		<div id="div-infos-latin" class="row-fluid">
43
			<div class="align-center">
45
			<div class="align-center">
44
				<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" 
45
						data-content="<?= $txt_latin; ?>" data-html="true" 
47
						data-content="<?= $txt_latin; ?>" data-html="true" 
46
						data-placement="bottom" data-toggle="popover" 
48
						data-placement="bottom" data-toggle="popover" 
47
						data-original-title="<div onclick='gestionPopover();'>Pourquoi un nom latin ?</div>"
49
						data-original-title="<div onclick='gestionPopover();'>Pourquoi un nom latin ?</div>"
48
						onclick="resetPopover();">
50
						onclick="resetPopover();">
49
							<? if ($nom_retenu != '') : ?>
51
							<? if ($nom_retenu != '') : ?>
50
								<?= $nom_retenu; ?>
52
								<?= $nom_retenu; ?>
51
							<? else : ?>
53
							<? else : ?>
52
								Aucun nom scientifique.
54
								Aucun nom scientifique.
53
							<? endif; ?>
55
							<? endif; ?>
54
				</a>
56
				</a>
55
			</div>
57
			</div>
56
		</div> 
58
		</div> 
57
				
59
				
58
		<div id="div-illustrations" class="row-fluid">
60
		<div id="div-illustrations" class="row-fluid">
59
			<? if (count($illustrations) != 0) : ?>
61
			<? if (count($illustrations) != 0) : ?>
60
				<div class="align-center" onclick="gestionSlider();">
62
				<div class="align-center" onclick="gestionSlider();">
61
					<a href="#btn-latin" class="" id="gstn-img">
63
					<a href="#btn-latin" class="" id="gstn-img">
62
						<img src="<?= $illustrations[0]['src'] ?>" alt="Miniature" class="pull-left">
64
						<img src="<?= $illustrations[0]['src'] ?>" alt="Miniature" class="pull-left">
63
						<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"/>
64
						<img src="<?= $illustrations[1]['src'] ?>" alt="Miniature" class="pull-left">
66
						<img src="<?= $illustrations[1]['src'] ?>" alt="Miniature" class="pull-left">
65
					</a>
67
					</a>
66
				</div>
68
				</div>
67
				<div id="slider-pictures" class="carousel slide margin-top-05em">
69
				<div id="slider-pictures" class="carousel slide margin-top-05em">
68
					<button class="btn btn-large" onclick="gestionSlider();">
70
					<button class="btn btn-large" onclick="gestionSlider();">
69
						<i class="icon-remove pull-left"></i>
71
						<i class="icon-remove pull-left"></i>
70
					</button>
72
					</button>
71
					<ol class="carousel-indicators">
73
					<ol class="carousel-indicators">
72
						<? for($i = 0; $i < count($illustrations); $i++) : ?>
74
						<? for($i = 0; $i < count($illustrations); $i++) : ?>
73
							<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>
74
						<? endfor; ?>
76
						<? endfor; ?>
75
					</ol>
77
					</ol>
76
					
78
					
77
					<div class="carousel-inner">		
79
					<div class="carousel-inner">		
78
						<? for($i = 0; $i < count($illustrations); $i++) : ?>
80
						<? for($i = 0; $i < count($illustrations); $i++) : ?>
79
							<div class="item <?= ($i == 0) ? ' active' : ''; ?>">
81
							<div class="item <?= ($i == 0) ? ' active' : ''; ?>">
80
								<img src="<?= $illustrations[$i]['src'] ?>" alt="Image_<?= $i ?>" >
82
								<img src="<?= $illustrations[$i]['src'] ?>" alt="Image_<?= $i ?>" >
81
								<div class="carousel-caption">
83
								<div class="carousel-caption">
82
									<h4><?= $illustrations[$i]['legende']['titre'] ?></h4>
84
									<h4><?= $illustrations[$i]['legende']['titre'] ?></h4>
83
									<p><?= $illustrations[$i]['legende']['texte'] ?></p>
85
									<p><?= $illustrations[$i]['legende']['texte'] ?></p>
84
								</div>
86
								</div>
85
							</div>
87
							</div>
86
						<? endfor; ?>
88
						<? endfor; ?>
87
					</div>
89
					</div>
88
					
90
					
89
					<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>
90
					<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>
91
				</div>		
93
				</div>		
92
			<? endif; ?>					
94
			<? endif; ?>					
93
		</div>
95
		</div>
94
				
96
				
95
						
97
						
96
		<div id="div-infos-famille" class="row-fluid">
98
		<div id="div-infos-famille" class="row-fluid">
97
			<div class="align-center">
99
			<div class="align-center">
98
				<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; ?>" 
99
						data-placement="bottom" data-toggle="popover" data-html="true" 
101
						data-placement="bottom" data-toggle="popover" data-html="true" 
100
						data-original-title="<div onclick='gestionPopover();'>Pourquoi une famille de plante ?</div>"
102
						data-original-title="<div onclick='gestionPopover();'>Pourquoi une famille de plante ?</div>"
101
						onclick="resetPopover();">
103
						onclick="resetPopover();">
102
							<? if ($famille != '') : ?>
104
							<? if ($famille != '') : ?>
103
									Famille des <span class="small-caps"><?= $famille; ?></span>
105
									Famille des <span class="small-caps"><?= $famille; ?></span>
104
							<? else : ?>
106
							<? else : ?>
105
								<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>
106
							<? endif; ?>
108
							<? endif; ?>
107
				</a>
109
				</a>
108
			</div>
110
			</div>
109
		</div>
111
		</div>
110
	</div>
112
	</div>
111
	<span class="gradient-bas"></span>
113
	<span class="gradient-bas"></span>
112
	<?= $floraison['coste']['texte']; ?>
114
	<?= $floraison['coste']['texte']; ?>
113
 
115
 
114
	<div class="resume">
116
	<div class="resume">
115
		<? if (count($texte['corps']) > 1) : ?>
117
		<? if (count($texte['corps']) > 1) : ?>
116
			<?= $texte['corps'][2]; ?>
118
			<?= $texte['corps'][2]; ?>
117
	</div>
119
	</div>
118
				
120
				
119
			<? for($index = 3; $index < count($texte['corps'])-1; $index+=2) : ?>
121
			<? for($index = 3; $index < count($texte['corps'])-1; $index+=2) : ?>
120
				<? if (isset($texte['corps'][$c+1])) : 
122
				<? if (isset($texte['corps'][$c+1])) : 
121
						$nb_onglets++;
123
						$nb_onglets++;
122
						$class = ($nb_onglets % 2 == 0) ? "couleur1-bg" : "couleur2-bg";
124
						$class = ($nb_onglets % 2 == 0) ? "couleur1-bg" : "couleur2-bg";
123
					?>	
125
					?>	
124
					<div class="row-fluid infos">
126
					<div class="row-fluid infos">
125
						<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 ?>"> 
126
							<h4 class="padding-left-1em">
128
							<h4 class="padding-left-1em">
127
								<i class="<?= $icones[$index_icones++]; ?> pull-left"></i>
129
								<i class="<?= $icones[$index_icones++]; ?> pull-left"></i>
128
								<?= $texte['corps'][$index]; ?>
130
								<?= $texte['corps'][$index]; ?>
129
							</h4>
131
							</h4>
130
						</div>
132
						</div>
131
						<div id="c<?= $index ?>" class="collapse">
133
						<div id="c<?= $index ?>" class="collapse">
132
							<div class="bg <?= $class ?>">
134
							<div class="bg <?= $class ?>">
133
								<div class="textes">
135
								<div class="textes">
134
									<? 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) : ?>
135
										<div class="span6 margin-right-05em">
137
										<div class="span6 margin-right-05em">
136
											Carte de répartition <br />
138
											Carte de répartition <br />
137
											<ul id="galerie_carte" class="gallery style-none margin-center">
139
											<ul id="galerie_carte" class="gallery style-none margin-center">
138
												<li>
140
												<li>
139
													<a href="<?= $repartition['chorodep'] ?>" rel="external">
141
													<a href="<?= $repartition['chorodep'] ?>" rel="external">
140
														<img style="width:190px; height:178px" src="<?= $repartition['chorodep'] ?>" class="" title="Carte de répartition" alt="Carte de répartition" />
142
														<img style="width:190px; height:178px" src="<?= $repartition['chorodep'] ?>" class="" title="Carte de répartition" alt="Carte de répartition" />
141
													</a>
143
													</a>
142
												</li>
144
												</li>
143
											</ul>
145
											</ul>
144
										</div>
146
										</div>
145
										<div class="">
147
										<div class="">
146
											<?= $texte['corps'][$index+1]; ?>
148
											<?= $texte['corps'][$index+1]; ?>
147
										</div>
149
										</div>
148
										<div class="clearfix"></div>
150
										<div class="clearfix"></div>
149
									<? else : ?>
151
									<? else : ?>
150
										<?= $texte['corps'][$index+1]; ?>
152
										<?= $texte['corps'][$index+1]; ?>
151
									<? endif; ?>
153
									<? endif; ?>
152
								</div>		<!-- Fin de la zone de texte -->
154
								</div>		<!-- Fin de la zone de texte -->
153
							</div>
155
							</div>
154
						</div>		<!-- Fin de la zone déroulante -->
156
						</div>		<!-- Fin de la zone déroulante -->
155
					</div>		<!-- Fin du bloc infos -->
157
					</div>		<!-- Fin du bloc infos -->
156
				<? endif; ?>
158
				<? endif; ?>
157
			<? endfor; ?>			
159
			<? endfor; ?>			
158
		<? else : ?>
160
		<? else : ?>
159
 
161
 
160
		<? if (isset($repartition['chorodep'])) /* affichage de la chorologie quand même, en l'absence de fiche Smartflore */ : ?>
162
		<? if (isset($repartition['chorodep'])) /* affichage de la chorologie quand même, en l'absence de fiche Smartflore */ : ?>
161
		<div class="row-fluid infos">
163
		<div class="row-fluid infos">
162
		  <div data-target="#c9" data-toggle="collapse" class="btn btn-block couleur1-bg"> 
164
		  <div data-target="#c9" data-toggle="collapse" class="btn btn-block couleur1-bg"> 
163
		    <h4 class="padding-left-1em">
165
		    <h4 class="padding-left-1em">
164
		      <i class="icon-home pull-left"></i>
166
		      <i class="icon-home pull-left"></i>
165
		      Écologie &amp; habitat</h4>
167
		      Écologie &amp; habitat</h4>
166
		  </div>
168
		  </div>
167
		  <div class="in collapse" id="c9" style="height: auto;">
169
		  <div class="in collapse" id="c9" style="height: auto;">
168
		    <div class="bg couleur1-bg">
170
		    <div class="bg couleur1-bg">
169
		      <div class="textes">
171
		      <div class="textes">
170
			<div class="span6 margin-right-05em"> Carte de répartition <br>
172
			<div class="span6 margin-right-05em"> Carte de répartition <br>
171
			  <ul class="gallery style-none margin-center" id="galerie_carte">
173
			  <ul class="gallery style-none margin-center" id="galerie_carte">
172
			    <li>
174
			    <li>
173
			      <a href="<?= $repartition['chorodep'] ?>" rel="external">
175
			      <a href="<?= $repartition['chorodep'] ?>" rel="external">
174
				<img style="width:190px; height:178px" src="<?= $repartition['chorodep'] ?>" class="" title="Carte de répartition" alt="Carte de répartition" />
176
				<img style="width:190px; height:178px" src="<?= $repartition['chorodep'] ?>" class="" title="Carte de répartition" alt="Carte de répartition" />
175
			      </a>
177
			      </a>
176
			    </li>
178
			    </li>
177
			  </ul>
179
			  </ul>
178
			</div>
180
			</div>
179
			<div class="clearfix"></div>
181
			<div class="clearfix"></div>
180
		      </div><!-- Fin de la zone de texte -->
182
		      </div><!-- Fin de la zone de texte -->
181
		    </div>
183
		    </div>
182
		  </div><!-- Fin de la zone déroulante -->
184
		  </div><!-- Fin de la zone déroulante -->
183
		</div>
185
		</div>
184
		<? endif; ?>
186
		<? endif; ?>
185
 
187
 
186
			<? if ($floraison['coste']['description']['texte'] != '') : ?>
188
			<? if ($floraison['coste']['description']['texte'] != '') : ?>
187
				<?= $floraison['coste']['description']['texte']; ?>
189
				<?= $floraison['coste']['description']['texte']; ?>
188
			<? else : ?>
190
			<? else : ?>
189
				<? if (count($floraison['baseflor']) > 1) : ?>
191
				<? if (count($floraison['baseflor']) > 1) : ?>
190
					<? foreach ($floraison['baseflor'] as $index => $texte) : ?>
192
					<? foreach ($floraison['baseflor'] as $index => $texte) : ?>
191
						<? if ($floraison['baseflor'][$index] != '') : ?>
193
						<? if ($floraison['baseflor'][$index] != '') : ?>
192
							<?= $index.' : '.$texte; ?> <br />
194
							<?= $index.' : '.$texte; ?> <br />
193
						<? endif; ?>
195
						<? endif; ?>
194
					<? endforeach; ?>
196
					<? endforeach; ?>
195
				<? else : ?>
197
				<? else : ?>
196
					<?= $txt_vide; ?>
198
					<?= $txt_vide; ?>
197
				<? endif; ?>
199
				<? endif; ?>
198
			<? endif; ?>
200
			<? endif; ?>
199
			</div>
201
			</div>
200
		<? endif; ?>
202
		<? endif; ?>