-
Notifications
You must be signed in to change notification settings - Fork 0
/
tiendas.php
executable file
·172 lines (153 loc) · 5.91 KB
/
tiendas.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
<?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']);
}
if(isset($_GET['ss'])&&!empty($_GET['ss'])){
include(MODELS_PATH.'model.Subsecciones.php');
$subsecciones_model = new Subsecciones();
$subseccion = $subsecciones_model->fetchById($_GET['ss']);
$tiendas = $tiendas_model->fetchAllBySubseccion($_GET['s'],$_GET['ss']);
}
?>
<!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="bodyTiendas">
<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/tiendas.jpg" alt="">
<?php if (!isset($_GET['s'])) { ?>
<section id="tiendas">
<a href="tiendas.php?s=1"><article class="accesorios">
<section class="text">
<h3>Accesorios</h3>
</section>
</article></a>
<a href="tiendas.php?s=2"><article class="artesania">
<section class="text">
<h3>Artesanía</h3>
</section>
</article></a>
<a href="tiendas.php?s=3"><article class="calzado last">
<section class="text">
<h3>Calzados</h3>
</section>
</article></a>
<a href="tiendas.php?s=4"><article class="deportes">
<section class="text">
<h3>Deportes</h3>
</section>
</article></a>
<a href="tiendas.php?s=5"><article class="electrodomesticos">
<section class="text">
<h3>Electrodomésticos</h3>
</section>
</article></a>
<a href="tiendas.php?s=6"><article class="jugueteria last">
<section class="text">
<h3>Juguetería</h3>
</section>
</article></a>
<a href="tiendas.php?s=7"><article class="multitiendas">
<section class="text">
<h3>Multitiendas</h3>
</section>
</article></a>
<a href="tiendas.php?s=8"><article class="musica">
<section class="text">
<h3>Música y Libros</h3>
</section>
</article></a>
<a href="tiendas.php?s=9"><article class="perfumeria last">
<section class="text">
<h3>Perfumería</h3>
</section>
</article></a>
<a href="tiendas.php?s=10"><article class="vestimenta">
<section class="text">
<h3>Vestimenta</h3>
</section>
</article></a>
</section>
<?php }else{?>
<section id="listadotiendas">
<h1><a href="tiendas.php">Tiendas</a> » <a href="tiendas.php?s=<?php echo $seccion['seccion_id']; ?>"><span><?php echo htmlentities($seccion['seccion_nombre'], ENT_IGNORE & ENT_HTML5, "ISO-8859-15"); ?></span></a><?php if(isset($_GET['ss'])&&!empty($_GET['ss'])){?> » <span><?php echo htmlentities($subseccion['subseccion_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>