-
Notifications
You must be signed in to change notification settings - Fork 0
/
selva-seca.php
217 lines (200 loc) · 7.07 KB
/
selva-seca.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<?php $nombrePagina = 'Selva Seca'; ?>
<?php
include 'includes/conexion.php';
?>
<!-- header -->
<?php
include 'includes/header.php';
?>
<!-- fin header -->
<!-- barra de navegacion -->
<?php
include 'includes/navegacion.php';
?>
<!-- fin de barra de navegacion -->
<?php
$consulta = "SELECT nombre, descripcion, clima, flora, fauna, distribucion FROM ecosistema WHERE id='10'";
$resecosistema = mysqli_query($bd, $consulta);
$mostrardatos = mysqli_fetch_array($resecosistema);
?>
<!-- inicio header -->
<div class="selva-seca text-center">
<div class="container">
<div class="titulo-bgimagen my-5">
<h1 class="animated wow zoomIn"><?php echo $mostrardatos['nombre'] ?></h1>
</div>
</div>
</div>
<!-- fin header -->
<!-- CONTENIDO PRINCIPAL -->
<div class="container perro">
<div class="my-5 text-center px-5 animated wow bounceInLeft slow" data-wow-delay="200ms">
<i class="fas fa-home fa-3x pt-3" style="color: #02E301;"></i>
<h2>descripción</h2>
<p><?php echo $mostrardatos['descripcion'] ?></p>
</div>
<div class="my-5 text-center px-5 animated wow bounceInRight slow" data-wow-delay="400ms">
<i class="fas fa-cloud-showers-heavy fa-3x pt-3" style="color: #02E301;"></i>
<h2>clima</h2>
<p><?php echo $mostrardatos['clima'] ?></p>
</div>
<div class="my-5 text-center px-5 animated wow bounceInLeft slow" data-wow-delay="600ms">
<i class="fab fa-canadian-maple-leaf fa-3x pt-3" style="color: #02E301;"></i>
<h2>flora</h2>
<p><?php echo $mostrardatos['flora'] ?></p>
</div>
<div class="my-5 text-center px-5 animated wow bounceInRight slow" data-wow-delay="800ms">
<i class="fab fa-wolf-pack-battalion fa-3x pt-3" style="color: #02E301;"></i>
<h2>fauna</h2>
<p><?php echo $mostrardatos['fauna'] ?></p>
</div>
<div class="my-5 text-center px-5 animated wow bounceInLeft slow" data-wow-delay="1000ms">
<i class="fas fa-mountain fa-3x pt-3" style="color: #02E301;"></i>
<h2>distribución geografica</h2>
<p><?php echo $mostrardatos['distribucion'] ?></p>
</div>
</div>
<!-- FIN DEL CONTENIDO PRINCIPAL -->
<div class="container animated wow bounceIn slow" data-wow-delay="900ms">
<h2 class="graficaSseca">Variación de flora, fauna y Temperatura</h2>
<!-- GRAFICA de ecosistemas -->
<script>
$(document).ready(function() {
new Chart(document.getElementById("graficaSseca"), {
type: 'line',
data: {
labels: ["Sonora", "Chihuahua", "Chiapas"],
datasets: [{
data: [60, 80, 40],
label: "Flora",
borderColor: "#02E301",
fill: false,
backgroundColor: "#02E301",
lineTension: 0,
pointRadius: 5
}, {
data: [28, 32, 30],
label: "Fauna",
borderColor: "#2d2d2d",
fill: false,
backgroundColor: "#2d2d2d",
lineTension: 0,
pointRadius: 5
}, {
data: [25, 25, 40],
label: "Temperatura",
borderColor: "#ff8000",
fill: false,
backgroundColor: "#ff8000",
lineTension: 0,
pointRadius: 5
}, ]
},
options: {
responsive: true,
title: {
display: true,
position: "top",
fontSize: 15,
},
scales: {
yAxes: [{
ticks: {
max: 100,
min: 0,
stepSize: 5
}
}]
},
}
});
});
</script>
<div class="mb-4">
<canvas id="graficaSseca" width="100%"></canvas>
</div>
</div>
<!-- inicio de asociaciones protectoras -->
<?php
include 'includes/asociaciones.php';
?>
<!-- fin de asociaciones protectoras -->
<!-- inicio de la galeria -->
<div class="container galeria">
<h2>galeria de imagenes</h2>
<div class="row mt-4 text-center">
<div class="col-md-2">
<a href="#" data-toggle="modal" data-target="#imagen1"> <img src="img/selva-seca-pic/selva-seca.jpg" class="img-fluid mb-4 img-thumbnail" alt=""> </a>
<div id="imagen1" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<img src="img/selva-seca.jpg" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="col-md-2">
<a href="#" data-toggle="modal" data-target="#imagen2"> <img src="img/selva-seca-pic/selva-seca2.jpg" class="img-fluid mb-4 img-thumbnail" alt=""> </a>
<div id="imagen2" class="modal fade" tabindex="-2" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<img src="img/selva-seca2.jpg" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="col-md-2">
<a href="#" data-toggle="modal" data-target="#imagen3"> <img src="img/selva-seca-pic/selva-seca3.jpg" class="img-fluid mb-4 img-thumbnail" alt=""> </a>
<div id="imagen3" class="modal fade" tabindex="-3" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<img src="img/selva-seca3.jpg" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="col-md-2">
<a href="#" data-toggle="modal" data-target="#imagen4"> <img src="img/selva-seca-pic/selva-seca4.jpg" class="img-fluid mb-4 img-thumbnail" alt=""> </a>
<div id="imagen4" class="modal fade" tabindex="-4" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<img src="img/selva-seca4.jpg" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="col-md-2">
<a href="#" data-toggle="modal" data-target="#imagen5"> <img src="img/selva-seca-pic/selva-seca5.jpg" class="img-fluid mb-4 img-thumbnail" alt=""> </a>
<div id="imagen5" class="modal fade" tabindex="-5" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<img src="img/selva-seca5.jpg" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
<div class="col-md-2">
<a href="#" data-toggle="modal" data-target="#imagen6"> <img src="img/selva-seca-pic/selva-seca6.jpg" class="img-fluid mb-4 img-thumbnail" alt=""> </a>
<div id="imagen6" class="modal fade" tabindex="-6" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<img src="img/selva-seca6.jpg" class="img-fluid" alt="">
</div>
</div>
</div>
</div>
</div>
</div>
<!-- fin de galeria de imagenes -->
<!-- inicio footer -->
<?php
include 'includes/footer.php';
?>
<!-- fin footer -->
<!-- archivos js -->
<?php
include 'includes/scripts.php';
?>
<!-- fin archivos js -->
</body>
</html>