-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.php
More file actions
165 lines (154 loc) · 7.13 KB
/
Copy pathmap.php
File metadata and controls
165 lines (154 loc) · 7.13 KB
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
<?php
session_start();
if(isset($_SESSION['nombreUsuario']) || isset($_SESSION['correo'])){
$nombreUsuario = $_SESSION['nombreUsuario'];
$correo = $_SESSION['correo'];
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="img/icon.png">
<link rel="stylesheet" href="node_modules/bulma/css/bulma.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css">
<link rel="stylesheet" href="css/alertify.min.css">
<link rel="stylesheet" href="css/themes/semantic.min.css">
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" type="text/JavaScript"></script>
<script src="js/alertify.min.js" type="text/JavaScript"></script>
<script src="js/scripts.js" type="text/JavaScript"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=default%22%3E"></script>
<title>Mapa - Mi Super</title>
</head>
<body>
<nav class="navbar is-primary" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<div class="navbar-item py-0" href="https://bulma.io">
<a href="index.php"><img src="./img/generico_blanco.png" class="image is-480x600" style="max-height: 50px" title="Mi Super"></a>
</div>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="map.php">
Mapa
</a>
<a class="navbar-item" href="./productList.php">
Productos
</a>
<div class="navbar-item" >
<div class="field has-addons ">
<div class="control ">
<input class="input has-text-black pr-6" type="text" placeholder="Buscar Producto...">
</div>
<div class="control">
<a href="#" class="button is-dark px-5">
<span class="icon">
<i class="fas fa-search"></i>
</span>
</a>
</div>
</div>
</div>
</div>
<div class="navbar-end">
<div id="carrito" class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link" id="mostrarUsuario">
<span class="icon">
<i class="fas fa-shopping-cart"></i>
</span>
<span> Mi Cesta</span>
</a>
<div class="navbar-dropdown is-right" id="displayUser">
<!--JS-->
<table class="table is-narrow is-size-7-mobile">
<thead>
<tr>
<th>Nombre</th>
<th>Precio Unitario</th>
<th>Imagen</th>
<th>Cantidad</th>
<th>Supermercado</th>
<th>Precio</th>
<th></th>
</tr>
</thead>
<tbody class="lista-carrito"></tbody>
</table>
</div>
</div>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link" id="mostrarUsuario">
<span class="icon">
<i class="fas fa-user"></i>
</span>
<span> Mi Cuenta</span>
</a>
<div class="navbar-dropdown is-right" id="displayUser">
<?php
if (isset($correo)){
?>
<div class="navbar-item">
<p class="is-size-6">Sesión iniciada como: <br> <strong> <?php echo $nombreUsuario ?> </strong></p>
</div>
<hr class="navbar-divider">
<a href="./logout.php" class="navbar-item">
<p class="is-size-6"><strong>Cerrar sesión</strong></p>
</a>
<?php }else{
?>
<a href="./login.php" class="navbar-item">
<p class="is-size-6"><strong>Iniciar Sesión</strong></p>
</a>
<hr class="navbar-divider">
<a href="./user.php" class="navbar-item">
<p class="is-size-6"><strong>Registrarse</strong></p>
</a>
<?php } ?>
</div>
</div>
</div>
</div>
</nav>
<section class="hero is-fullheight">
<div class="hero-body m-6" id="map"></div>
</section>
<footer class="footer has-background-black-ter">
<div class="columns is-centered is-mobile">
<figure class="imagen is-16x16">
<img src="img/otroEstilo_blanco.png" alt="Logo Misuper" title="Mi Super" width="200px">
</figure>
</div>
<div class="columns is-centered">
<div class="column is-size-4 is-one-fifth has-text-centered">
<a class=" has-text-white" id="acerca">
Acerca de
</a>
</div>
<div class="column is-size-4 is-one-fifth has-text-centered">
<a class="has-text-white" id="tiendas">
Tiendas Asociadas
</a>
</div>
<div class="column is-size-4 is-one-fifth has-text-centered">
<a class="has-text-white" id="about-us">
Quienes Somos
</a>
</div>
</div>
<div class="content has-text-centered has-text-white has-">
<strong class="has-text-white">©</strong> Mi Super 2021
</div>
</footer>
<script src="js/map.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBCrZX3RJyDcvARXCDvYAHLIzWArH6WSRw&libraries=places&callback=initMap&v=weekly" async></script>
<script src="js/cesta.js"></script>
</body>
</html>