-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
439 lines (425 loc) · 16.9 KB
/
index.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<!DOCTYPE HTML>
<?php
include "php/conection.php";
session_start();
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Spinning Fit Web</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="" />
<!-- Facebook and Twitter integration -->
<meta property="og:title" content=""/>
<meta property="og:image" content=""/>
<meta property="og:url" content=""/>
<meta property="og:site_name" content=""/>
<meta property="og:description" content=""/>
<meta name="twitter:title" content="" />
<meta name="twitter:image" content="" />
<meta name="twitter:url" content="" />
<meta name="twitter:card" content="" />
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,700,900" rel="stylesheet">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/icomoon.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/flexslider.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">
<link rel="stylesheet" type="text/css" href="css/pushbar.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/fontello.css">
<link rel="shortcut icon" type="image/x-icon" href="images/LOGO.png">
<script src="js/modernizr-2.6.2.min.js"></script>
</head>
<body>
<?php if (isset($_GET["success"])){ ?>
<!--<script type="text/javascript">
window.onload = function(){ window.alert("bienvenido <?php echo $_SESSION["usuario"] ?>."); };
</script>-->
<?php } ?>
<?php if (isset($_GET["denied"])){ ?>
<script type="text/javascript">
window.onload = function(){ window.alert("No tiene autorización para entrar a esta ruta."); };
</script>
<?php } ?>
<?php if (isset($_GET["error"])){ ?>
<script type="text/javascript">
window.onload = function(){ window.alert("Ha ocurrido un error al intentar mandar notificaciones de esta acción a los usuarios."); };
</script>
<?php } ?>
<div class="colorlib-loader"></div>
<div id="page">
<nav class="colorlib-nav" role="navigation">
<div class="top-menu">
<div class="container">
<div class="row">
<div class="col-md-3">
<div id="colorlib-logo"><a href="index.php">Spinning Fit</a></div>
</div>
<div class="col-md-9 text-center menu-1">
<ul>
<li class="active"><a href="index.php">Inicio</a></li>
<li><a href="schedule.html">Horarios</a></li>
<li><a href="trainers.html">Instructores</a></li>
<li><a href="info.html">Acerca de</a></li>
<li><a href="contact.html">Contacto</a></li>
<?php include "php/SessionButtons.php"; ?>
</ul>
</div>
</div>
</div>
</div>
<?php include "php/UserMenus.php"; ?>
</nav>
<aside id="colorlib-hero">
<div class="flexslider">
<ul class="slides">
<li style="background-image: url(images/spinning_bg1.jpg);">
<div class="overlay"></div>
<div class="container-fluid">
<div class="row">
<div class="col-md-6 col-sm-12 col-md-offset-3 slider-text">
<div class="slider-text-inner text-center">
<h1>Esto es un estilo de vida , no hay una linea de meta </h1>
<p><a href="contact.html" class="btn btn-primary btn-lg btn-learn">Unete a la comunidad</a></p>
</div>
</div>
</div>
</div>
</li>
<li style="background-image: url(images/img_bg_5.jpg);">
<div class="overlay"></div>
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-sm-12 col-md-offset-2 slider-text">
<div class="slider-text-inner text-center">
<h1>No te detengas cuando duela, detente cuando hayas terminado</h1>
<p><a href="contact.html" class="btn btn-primary btn-lg btn-learn">Unete a la comunidad</a></p>
</div>
</div>
</div>
</div>
</li>
<li style="background-image: url(images/img_bg_6.jpg);">
<div class="overlay"></div>
<div class="container-fluid">
<div class="row">
<div class="col-md-6 col-sm-12 col-md-offset-3 slider-text">
<div class="slider-text-inner text-center">
<h1>Deja de desear, empieza a hacer</h1>
<p><a href="contact.html" class="btn btn-primary btn-lg btn-learn">Unete a la comunidad</a></p>
</div>
</div>
</div>
</div>
</li>
<li style="background-image: url(images/img_bg_7.jpg);">
<div class="overlay"></div>
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-sm-12 col-md-offset-2 slider-text">
<div class="slider-text-inner text-center">
<h1>Hacer ejercicio es una recompensa, no un castigo</h1>
<p><a href="contact.html" href="#ventanareg" class="btn btn-primary btn-lg btn-learn" data-toggle="modal">Unete a la comunidad</a></p>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
</aside>
<div id="colorlib-intro">
<div class="container">
<div class="row">
<div class="col-md-12 intro-wrap animate-box">
<div class="intro-flex">
<div class="one-third intro-img" style="background-image: url(images/intro-img-1.jpg)">
<div class="desc">
<h3>Fortalece y tonifica musculos</h3>
<span class="price text-center">$350.00<br><small>/mensual</small></span>
</div>
</div>
<div class="one-third intro-img" style="background-image: url(images/intro-img-2.jpg)">
<div class="desc">
<h3>Quema calorias y recude tú estrés</h3>
<p></p>
<span class="price text-center">$350.00<br><small>/mensual</small></span>
</div>
</div>
<div class="one-third intro-img" style="background-image: url(images/intro-img-3.jpg)">
<div class="desc">
<h3>Mejora cardiovascular</h3>
<p></p>
<span class="price text-center">$350.00<br><small>/mensual</small></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="colorlib-services">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-md-offset-2 text-center colorlib-heading animate-box">
<h2>Estar en forma es atractivo</h2>
<p>Con Spinning Fit te ayudaremos tonificar tus músculos sin aumentar tu volumen muscular, consiguiendo estilizar tu figura. Ven y visítanos</p>
</div>
</div>
</div>
</div>
<div id="colorlib-schedule" class="colorlib-light-grey">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-md-offset-2 text-center colorlib-heading animate-box">
<h2>Nuestros Horarios</h2>
<p>Revisa las horarios que ofrecemos en Spinning Fit de Lunes a Viernes</p>
</div>
</div>
<div class="row justify-content-center">
<div class="schedule text-center animate-box">
<div class="col-md-12">
</div>
<div class="schedule-flex">
<?php
$re2 = mysqli_query($mysqli, "SELECT hora_inicio, hora_fin, frecuencia, nombre_instructor, apellido_instructor FROM clases INNER JOIN instructor WHERE clases.Instructor_idInstructor = instructor.idinstructor");
while ($f2 = mysqli_fetch_array($re2)) {
?>
<div class="entry-forth">
<p class="icon"><span><i class="flaticon-gym"></i></span></p>
<p class="time"><span><?php echo $f2['hora_inicio']." - ".$f2['hora_fin']; ?></span></p>
Frecuencias: <span class="text-uppercase text-dark"><?php echo $f2['frecuencia']; ?></span>
<hr>
<h3>Instructor</h3>
<p class="trainer"><span><?php echo $f2['nombre_instructor']." ".$f2['apellido_instructor']; ?></span></p>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<!-- Agregar testimonios realistas -->
<div id="colorlib-testimony" class="testimony-img" style="background-image: url(images/img_bg_2.jpg);" data-stellar-background-ratio="0.5">
<div class="overlay"></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-md-offset-2 text-center colorlib-heading animate-box">
<h2>Que dice la gente</h2>
<h3>Historias de éxito</h3>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-8 col-md-offset-2 text-center">
<div class="row animate-box">
<div class="owl-carousel1">
<div class="item">
<div class="testimony-slide">
<div class="testimony-wrap">
<blockquote>
<span>Sophia Foster Loose 20 libras en solo 2 meses</span>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel amet deserunt architecto nulla maiores non ducimus eligendi consequuntur, tempore cupiditate.</p>
</blockquote>
<div class="figure-img" style="background-image: url(images/person1.jpg);"></div>
</div>
</div>
</div>
<div class="item">
<div class="testimony-slide">
<div class="testimony-wrap">
<blockquote>
<span>John Collins</span>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, incidunt laudantium, natus officia debitis odit.</p>
</blockquote>
<div class="figure-img" style="background-image: url(images/person2.jpg);"></div>
</div>
</div>
</div>
<div class="item">
<div class="testimony-slide">
<div class="testimony-wrap">
<blockquote>
<span>Adam Ross</span>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Porro commodi omnis suscipit cumque qui hic sequi tenetur, repellat sit. Eos suscipit eligendi rerum minus in.</p>
</blockquote>
<div class="figure-img" style="background-image: url(images/person3.jpg);"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Agregar dinamicamente div.trainers-entry por cada registro en la tabla instructores de la BDD -->
<div class="colorlib-trainers">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-md-offset-2 text-center colorlib-heading animate-box">
<h2>Nuestros entrenadores con experiencia</h2>
<p>Conoce a nuestros instructores certificados</p>
</div>
</div>
<div class="row">
<?php
$re3 = mysqli_query($mysqli, "SELECT * FROM instructor");
while ($f3 = mysqli_fetch_array($re3)) {
?>
<div class="col-md-3 col-sm-3 animate-box">
<div class="trainers-entry">
<div class="trainer-img" style="background-image: url(images/trainer-<?php echo $f3['idinstructor']; ?>.jpg)"></div>
<div class="desc">
<h3><?php echo $f3['nombre_instructor']." ".$f3['apellido_instructor']; ?></h3>
<span><?php echo $f3['correo_instructor']; ?></span>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- Agregar dinamicamente div.event-entry por cada registro en la tabla eventos de la BDD con fecha posterior a la actual -->
<div class="colorlib-event colorlib-light-grey">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-md-offset-2 text-center colorlib-heading animate-box">
<h2>Próximos Eventos</h2>
<p>Enterate y participa en las dinámicas que tenemos preparadas para próximas fechas.</p>
</div>
</div>
<div class="row row-pb-sm">
<?php
$re = mysqli_query($mysqli, "SELECT *, DATE_FORMAT(fecha_anuncio, '%d') AS day_F, DATE_FORMAT(fecha_anuncio, '%b') AS month_F FROM anuncios WHERE fecha_anuncio > DATE_FORMAT(NOW(), '%Y-%m-%d') ORDER BY fecha_anuncio ASC LIMIT 6");
while ($f = mysqli_fetch_array($re)) {
?>
<div class="col-md-4 animate-box">
<div class="event-entry">
<div class="desc">
<p class="meta"><span class="day"><?php echo $f['day_F']; ?></span><span class="text-uppercase month"><?php echo $f['month_F']; ?></span></p>
<h2><a href="event.html"><?php echo $f['titulo_anuncio']; ?></a></h2>
<p class="organizer"><span><?php echo $f['descripcion_anuncio']; ?></span></p>
</div>
<div class="location">
<img src="images/<?php echo $f['imagen_anuncio']; ?>" class="img-fluid img-thumbnail" alt="Responsive image">
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<div id="colorlib-subscribe" class="subs-img" style="background-image: url(images/img_bg_7.jpg);" data-stellar-background-ratio="0.5">
<div class="overlay"></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8 col-md-offset-2 text-center colorlib-heading animate-box">
</div>
</div>
<div class="row animate-box justify-content-center">
<div class="col-md-6 col-md-offset-3">
<div class="row">
<div class="col-md-12">
<form class="form-inline qbstp-header-subscribe">
<div class="col-three-forth">
<div class="form-group">
<input type="text" class="form-control" id="email" placeholder="Enter your email">
</div>
</div>
<div class="col-one-third">
<div class="form-group">
<button type="submit" class="btn btn-primary">Suscribete</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<footer id="colorlib-footer">
<div class="container">
<div class="row row-pb-md">
<div class="col-md-3 colorlib-widget">
<h4>Acerca de Spinning Fit </h4>
<!-- Cambiar el siguiente texto -->
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur minima nam soluta provident numquam. Aspernatur laborum aliquid, esse accusamus libero asperiores, nemo nobis excepturi quas veniam commodi at eaque quidem.</p>
<p>
<ul class="colorlib-social-icons">
<!-- Agregar enlaces a redes sociales, o dejar en blanco -->
<li><a href="#"><i class="icon-twitter"></i></a></li>
<li><a href="#"><i class="icon-facebook"></i></a></li>
<li><a href="#"><i class="icon-linkedin"></i></a></li>
<li><a href="#"><i class="icon-dribbble"></i></a></li>
</ul>
</p>
</div>
<div class="col-md-3 colorlib-widget">
<h4>Links</h4>
<p>
<ul class="colorlib-footer-links">
<li><a href="info.html"><i class="icon-check"></i> Acerca de</a></li>
<li><a href="schedule.html"><i class="icon-check"></i> Horarios</a></li>
<li><a href="trainers.html"><i class="icon-check"></i> Instructores</a></li>
<li><a href="contact.html"><i class="icon-check"></i> Contacto</a></li>
</ul>
</p>
</div>
<div class="col-md-3 colorlib-widget">
<h4>Info de contacto</h4>
<ul class="colorlib-footer-links">
<li>Calle Hidalgo #910-Col. concordia Santa Catarina<br> CP. 66168- Local #906 </li>
<li><a href="tel://1234567920"><i class="icon-phone"></i> + 1235 2355 98</a></li>
<!-- Agregar un correo de contacto -->
<li><a href="mailto:[email protected]"><i class="icon-envelope"></i> [email protected]</a></li>
<li><a href="http://luxehotel.com"><i class="icon-location4"></i> spinningfitweb.com</a></li>
</ul>
</div>
</div>
</div>
<div class="copy">
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<p>
<small class="block">©
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved
</p>
</div>
</div>
</div>
</div>
</footer>
</div>
<div class="gototop js-top">
<a href="#" class="js-gotop"><i class="icon-up-big"></i></a>
</div>
<?php include "php/UserMenus2.php"; ?>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.waypoints.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/jquery.flexslider-min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/magnific-popup-options.js"></script>
<script src="js/jquery.countTo.js"></script>
<script src="js/main.js"></script>
<script type="text/javascript" src="js/pushbar.js"></script>
<script type="text/javascript">
var pushbar = new Pushbar({
blur:true,
overlay:true,
});
</script>
</body>
</html>