Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 991 | Go to most recent revision | Details | 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
?>
19
		<div id="up" 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">
28
						<? if ($nomsCommuns[0]['nom_vernaculaire'] != '') : ?>
29
							<?= $nomsCommuns[0]['nom_vernaculaire'] ?>
30
						<? else : ?>
31
							<? if ($texte['titre'][0] != '') : ?>
32
								<?= $texte['titre'][0]; ?>
33
							<? else : ?>
34
								Aucun nom commun défini.
35
							<? endif; ?>
36
						<? endif; ?>
37
					</div>
38
				</div>
39
			</header>
40
 
41
			<div id="div-infos">
42
				<div id="div-infos-latin" class="row-fluid">
43
					<div class="align-center">
44
						<a href="#div-infos-latin" class="btn btn-large btn-pop"
45
								data-content="<?= $txt_latin; ?>" data-html="true"
46
								data-placement="bottom" data-toggle="popover"
47
								data-original-title="<div onclick='gestionPopover();'>Pourquoi un nom latin ?</div>"
48
								onclick="resetPopover();">
49
									<? if ($nom_retenu != '') : ?>
50
										<?= $nom_retenu; ?>
51
									<? else : ?>
52
										Aucun nom scientifique.
53
									<? endif; ?>
54
						</a>
55
					</div>
56
				</div>
57
 
58
 
59
				<div id="div-illustrations" class="row-fluid">
60
					<? if (count($illustrations) != 0) : ?>
61
						<div class="align-center" onclick="gestionSlider();">
62
							<a href="#btn-latin" class="" id="gstn-img">
63
								<img src="<?= $illustrations[0]['src'] ?>" alt="Miniature" class="pull-left">
64
								<img src="modules/mobile/presentations/icones/zoom.png" class="zoom pull-left"/>
65
								<img src="<?= $illustrations[1]['src'] ?>" alt="Miniature" class="pull-left">
66
							</a>
67
						</div>
68
						<div id="slider-pictures" class="carousel slide margin-top-05em">
69
							<button class="btn btn-large" onclick="gestionSlider();">
70
								<i class="icon-remove pull-left"></i>
71
							</button>
72
							<ol class="carousel-indicators">
73
								<? for($i = 0; $i < count($illustrations); $i++) : ?>
74
									<li data-target="#slider-pictures" data-slide-to="<?= $i ?>" class="<?= ($i == 0) ? 'active' : ''; ?>"></li>
75
								<? endfor; ?>
76
							</ol>
77
 
78
							<div class="carousel-inner">
79
								<? for($i = 0; $i < count($illustrations); $i++) : ?>
80
									<div class="item <?= ($i == 0) ? ' active' : ''; ?>">
81
										<img src="<?= $illustrations[$i]['src'] ?>" alt="Image_<?= $i ?>" >
82
										<div class="carousel-caption">
83
											<h4><?= $illustrations[$i]['legende']['titre'] ?></h4>
84
											<p><?= $illustrations[$i]['legende']['texte'] ?></p>
85
										</div>
86
									</div>
87
								<? endfor; ?>
88
							</div>
89
 
90
							<a class="left carousel-control" href="#slider-pictures" data-slide="prev">&lsaquo;</a>
91
							<a class="right carousel-control" href="#slider-pictures" data-slide="next">&rsaquo;</a>
92
						</div>
93
					<? endif; ?>
94
				</div>
95
 
96
 
97
				<div id="div-infos-famille" class="row-fluid">
98
					<div class="align-center">
99
						<a href="#div-infos-famille" class="btn btn-large btn-pop" data-content="<?= $txt_famille; ?>"
100
								data-placement="bottom" data-toggle="popover" data-html="true"
101
								data-original-title="<div onclick='gestionPopover();'>Pourquoi une famille de plante ?</div>"
102
								onclick="resetPopover();">
103
									<? if ($famille != '') : ?>
104
											Famille des <span class="small-caps"><?= $famille; ?></span>
105
									<? else : ?>
106
										<span class="none">En savoir plus sur les familles de plante</span>
107
									<? endif; ?>
108
						</a>
109
					</div>
110
				</div>
111
			</div>
112
			<span class="gradient-bas"></span>
113
			<?= $floraison['coste']['texte']; ?>
114
 
115
			<div class="resume">
116
			<? if (count($texte['corps']) > 1) : ?>
117
					<?= $texte['corps'][2]; ?>
118
				</div>
119
 
120
				<? for($index = 3; $index < count($texte['corps'])-1; $index+=2) : ?>
121
					<? if (isset($texte['corps'][$c+1])) :
122
						$nb_onglets++;
123
						$class = ($nb_onglets % 2 == 0) ? "couleur1-bg" : "couleur2-bg";
124
					?>
125
						<div class="row-fluid infos">
126
							<div class="btn btn-block <?= $class ?>" data-toggle="collapse" data-target="#c<?= $index ?>">
127
								<h4 class="padding-left-1em">
128
									<i class="<?= $icones[$index_icones++]; ?> pull-left"></i>
129
									<?= $texte['corps'][$index]; ?>
130
								</h4>
131
							</div>
132
							<div id="c<?= $index ?>" class="collapse">
133
								<div class="bg <?= $class ?>">
134
									<div class="textes">
135
										<? if ($index == 9) : ?>
136
											<div class="span6 margin-right-05em">
137
												Carte de répartition <br />
138
												<ul id="galerie_carte" class="gallery style-none margin-center">
139
													<li>
140
														<a href="<?= $repartition['chorodep'] ?>" rel="external">
141
															<img src="<?= $repartition['chorodep'] ?>" class="" title="Carte de répartition" alt="Carte de répartition" />
142
														</a>
143
													</li>
144
												</ul>
145
											</div>
146
											<div class="">
147
												<?= $texte['corps'][$index+1]; ?>
148
											</div>
149
											<div class="clearfix"></div>
150
										<? else : ?>
151
											<?= $texte['corps'][$index+1]; ?>
152
										<? endif; ?>
153
									</div>		<!-- Fin de la zone de texte -->
154
								</div>
155
							</div>		<!-- Fin de la zone déroulante -->
156
						</div>		<!-- Fin du bloc infos -->
157
					<? endif; ?>
158
				<? endfor; ?>
159
			<? else : ?>
160
				<? if ($floraison['coste']['description']['texte'] != '') : ?>
161
					<?= $floraison['coste']['description']['texte']; ?>
162
				<? else : ?>
163
					<? if (count($floraison['baseflor']) > 1) : ?>
164
						<? foreach ($floraison['baseflor'] as $index => $texte) : ?>
165
							<? if ($floraison['baseflor'][$index] != '') : ?>
166
								<?= $index.' : '.$texte; ?> <br />
167
							<? endif; ?>
168
						<? endforeach; ?>
169
					<? else : ?>
170
						<?= $txt_vide; ?>
171
					<? endif; ?>
172
				<? endif; ?>
173
				</div>
174
			<? endif; ?>