-
Notifications
You must be signed in to change notification settings - Fork 0
/
buscar.php
executable file
·114 lines (94 loc) · 3.76 KB
/
buscar.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
<?php
include 'includes/conf.inc.php';
if (isset($_GET['s'])) {
include(MODELS_PATH.'model.Tiendas.php');
$tiendas_model = new Tiendas();
$tiendas = $tiendas_model->fetchBySearch($_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="bodyBuscar">
<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/busqueda.jpg" alt="">
<?php if (!isset($_GET['s'])) { ?>
<?php }else{?>
<?php if (!empty($tiendas)) { ?>
<section id="listadotiendas">
<h1><a href="index.php">Busqueda</a> » <span> Tiendas </span> » <span><?php echo $_GET['s']?></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 } ?>
<?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>