-
Notifications
You must be signed in to change notification settings - Fork 0
/
patio.php
executable file
·139 lines (122 loc) · 4.63 KB
/
patio.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
<?php
include 'includes/conf.inc.php';
if (isset($_GET['s'])) {
include(MODELS_PATH.'model.Secciones.php');
$secciones_model = new Secciones();
$seccion = $secciones_model->fetchById($_GET['s']);
include(MODELS_PATH.'model.Tiendas.php');
$tiendas_model = new Tiendas();
$tiendas = $tiendas_model->fetchAllBySeccion($_GET['s']);
}
?>
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title><?php echo TITLE ?></title>
<link rel="stylesheet" href="<?php echo CSS_PATH?>styles.css">
<link rel="stylesheet" href="<?php echo CSS_PATH?>supersized.css">
<script type="text/javascript" src="<?php echo JS_PATH?>modernizr.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-40183931-1', 'multiplaza.com.py');
ga('send', 'pageview');
</script>
<script src="<?php echo JS_PATH?>jquery-1.9.1.min.js"></script>
<script src="<?php echo JS_PATH?>supersized.3.2.7.min.js"></script>
<script src="<?php echo JS_PATH?>bgscript.js"></script>
</head>
<body class="bodyPatio">
<div class="contenedorslider"></div>
<?php include('includes/inc.secondarynav.php');?>
<header>
<?php include('includes/inc.header.php');?>
</header>
<section id="contenedor">
<img class="" src="<?php echo IMAGE_PATH?>header/comidas.jpg" alt="">
<?php if (!isset($_GET['s'])) { ?>
<section id="tiendas">
<a href="patio.php?s=28"><article class="buffet">
<section class="text">
<h3>Buffet</h3>
</section>
</article></a>
<a href="patio.php?s=29"><article class="heladeria">
<section class="text">
<h3>Cafetería y Heladería</h3>
</section>
</article></a>
<a href="patio.php?s=30"><article class="fast last">
<section class="text">
<h3>Fast Food</h3>
</section>
</article></a>
<a href="patio.php?s=31"><article class="pastas">
<section class="text">
<h3>Pastas</h3>
</section>
</article></a>
<a href="patio.php?s=32"><article class="picadas">
<section class="text">
<h3>Picadas</h3>
</section>
</article></a>
</section>
<?php }else{?>
<section id="listadotiendas">
<h1><a href="patio.php">Patio de Comidas</a> » <span><?php echo htmlentities($seccion['seccion_nombre'], ENT_IGNORE & ENT_HTML5, "ISO-8859-15"); ?></span></h1>
<?php $i=0; foreach ($tiendas as $tienda) { ?>
<?php if($i==0) { echo "<div class='tienda_fila_container' style='float:left;'>"; }?>
<article class="tienda <?php if($i==3) {echo "last"; echo $i;}?>">
<h1><?php echo htmlentities($tienda['tienda_nombre'], ENT_IGNORE & ENT_HTML5, "ISO-8859-15"); ?></h1>
<?php if (!empty($tienda['tienda_informacion'])) { ?>
<h3>Información:</h3>
<p><?php echo htmlentities($tienda['tienda_informacion'], ENT_IGNORE & ENT_HTML5, "ISO-8859-15"); ?></p>
<?php } ?>
<h3>Ubicación:</h3>
<p>Nivel <?php echo htmlentities($tienda['tienda_planta'], ENT_IGNORE & ENT_HTML5, "ISO-8859-15"); ?></p>
<p>Bloque <?php echo htmlentities($tienda['tienda_bloque'], ENT_IGNORE & ENT_HTML5, "ISO-8859-15"); ?></p>
<?php if (!empty($tienda['tienda_telefono'])) { ?>
<h3 class="telefono">Teléfono: </h3>
<p class="telefono"><?php echo htmlentities($tienda['tienda_telefono'], ENT_IGNORE & ENT_HTML5, "ISO-8859-15"); ?></p>
<?php } ?>
</article>
<?php if($i==3) { echo "</div>"; $i=0; }else{ $i++; }?>
<?php } ?>
</section>
<?php } ?>
<section id="publicidad">
<a href="solicitud.php"></a>
</section>
<div class="push"></div>
</section>
<footer>
<?php include('includes/inc.footer.php');?>
</footer>
<script>
$(document).ready(function(){
$('#tiendas article').hover(function() {
//alert($(this).children());
$(this).children('.text').animate({height: 30, opacity:0.9}, 500);
}, function() {
$(this).children('.text').animate({height: 0, opacity: 0}, 500);
});
$('#navBuscar a').click(function(event) {
event.preventDefault();
//alert("hola");
if ($("#searchbox").hasClass('open')) {
$('#searchbox').animate({width:'0px'}, 500);
$('#searchbox').removeClass('open');
}else{
$('#searchbox').animate({width:'150px'}, 500);
$( "#searchbox" ).focus();
$( "#searchbox" ).addClass('open');
};
});
});
</script>
</body>
</html>