-
Notifications
You must be signed in to change notification settings - Fork 0
/
envios.html
285 lines (252 loc) · 12.3 KB
/
envios.html
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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Envios</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Signika:wght@300..700&family=Titan+One&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="shortcut icon" href="./Img/caja.png">
<link href="https://fonts.googleapis.com/css2?family=Signika+Negative:wght@300..700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap" rel="stylesheet">
</head>
<script>
// Verificación de sesión
function checkLogin() {
const savedTimestamp = localStorage.getItem('loginTimestamp');
const isExpired = !savedTimestamp || (Date.now() - savedTimestamp) > 10800000; // 3 horas
if (isExpired) {
window.location.href = 'logipaq.html'; // Redirige al login si la sesión ha expirado
}
}
// Ejecutar la verificación al cargar la página
checkLogin();
</script>
<body class="envios-body">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand" href="#">
<img src="./Img/Novogar N.png" alt="Logo" class="navbar-logo">
<span class="navbar-brand-text">L<span class="navbar-brand-text4">gi</span><span class="navbar-brand-text2">Paq</span> <img class="blackCat" src="./Img/Location.gif" alt="LogiPaq" srcset=""> </span>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item"><a href="./index.html" class="nav-link">Etiquetas</a></li>
<li class="nav-item"><a href="./envios.html" class="nav-link active">Andesmar</a></li>
<li class="nav-item"><a href="./despachos.html" class="nav-link">Logistica</a></li>
<li class="nav-item"><a href="./facturacionMl.html" class="nav-link">Fact.</a></li>
<li class="nav-item"><a href="./meliAr.html" class="nav-link"><img id="meli-logo" src="./Img/meli.png">MeLi</a></li>
<li class="nav-item"><a href="./controlMeli.html" class="nav-link">Colecta</a></li>
<li class="nav-item"><a href="./bna.html" class="nav-link"><img id="meli-logo" src="./Img/bna-logo.png" alt="BNA Logo" /></a></li>
</ul>
</div>
</div>
</nav>
<div class="container mt-4">
<div class="row justify-content-between align-items-center search-filter-container">
<div class="col-md-6 mb-3">
<!-- Buscador -->
<div class="input-group">
<input type="text" class="form-control" id="search" placeholder="Buscar por nombre, dirección, remito...">
<div class="input-group-append">
<button class="btn btn-outline-secondary" type="button">
<i class="fas fa-search"></i>
</button>
</div>
</div>
</div>
<div class="col-md-3 mb-3 d-flex align-items-center">
<!-- Filtro -->
<select class="custom-select" id="filter" style="flex: 1; margin-right: 10px;">
<option value="nuevo" selected>Más nuevos</option>
<option value="antiguo">Más antiguos</option>
</select>
<button class="btn btn-secondary simbel" id="filter-labels">Etiquetas <img id="simbel" src="./Img/simbel.png"></button>
</div>
</div>
</div>
<div class="container mt-5" id="cards-container">
<div class="spinner-border" role="status" id="spinner">
<span class="sr-only">Cargando...</span>
</div>
<!-- Modal -->
<div class="modal fade" id="trackingModal" tabindex="-1" aria-labelledby="trackingModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="trackingModalLabel">Seguimiento de Pedido</h5>
<button type="button" class="btn-close btn-danger" data-bs-dismiss="modal" aria-label="Close"><i class="bi bi-x-lg"></i></button>
</div>
<div class="modal-body d-flex justify-content-center align-items-center" style="height: auto;">
<div id="trackingContent">
<!-- Aca van los datos Cargados -->
</div>
</div>
</div>
</div>
</div>
<!-- Fin Modal -->
<div class="row" id="meli-cards">
</div>
<nav aria-label="Page navigation">
<ul class="pagination justify-content-center" id="pagination"></ul>
</nav>
</div>
<!-- Botón de flecha hacia arriba -->
<a href="#" id="scrollToTop" class="btn btn-warning" style="display: none;">
<i class="fas fa-arrow-up"></i>
</a>
<!-- Modal de Envío de Email -->
<div class="modal fade" id="emailModal" tabindex="-1" aria-labelledby="emailModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header-crimson">
<h5 class="modal-title" id="emailModalLabel">Enviar Email</h5>
</div>
<div class="modal-body">
<form id="formularioEmail">
<div class="mb-3 idModalDiv">
<label for="idModal" class="form-label">Id de Operacion</label>
<input type="email" class="form-control input-email" id="idModal" readonly>
</div>
<div class="mb-3">
<label for="destinatario" class="form-label">Destinatario</label>
<input type="email" class="form-control input-email" id="destinatario" value="genarosuarez@andesmar.com.ar" readonly>
</div>
<div class="mb-3">
<label for="origen" class="form-label">Origen</label>
<input type="email" class="form-control input-email" id="origen" value="posventa@novogar.com.ar" readonly>
</div>
<div class="mb-3">
<label for="asunto" class="form-label">Asunto</label>
<input type="text" class="form-control input-email" id="asunto" readonly>
</div>
<div class="mb-3">
<label for="cuerpo" class="form-label">Cuerpo del Email</label>
<textarea class="form-control input-email" id="cuerpo" rows="3">Estimados, nos contactamos para realizar un reclamo por el envío en asunto.</textarea>
</div>
</form>
<div id="mensajeReclamo" class="alert alert-info" style="display: none;"></div>
</div>
<div class="alert-modal text-center">
<i class="bi bi-exclamation-circle me-2" style="font-size: 1.5rem;"></i>
<span> Para cerrar haga click fuera de la ventana.</span>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="botonEnviarEmail">Enviar Email</button>
<button id="reclamarButton">Reclamar</button>
</div>
</div>
</div>
</div>
<!-- Estilos CSS -->
<style>
.modal-content {
border-radius: 15px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.modal-header-crimson {
padding: 20px;
background-color: crimson;
color: white;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
}
.modal-title {
font-weight: bold;
}
.alert-modal {
margin-top: -50px !important;
text-align: center;
font-weight: 400 !important;
background-color: crimson;
color: whitesmoke;
border: 1px solid orangered;
border-radius: 10px;
padding: 10px;
margin: 15px auto;
}
.alert-modal2 {
text-align: center;
font-weight: 400 !important;
background-color: crimson;
color: whitesmoke;
border: 1px solid orangered;
border-radius: 10px;
padding: 10px;
margin: 15px auto;
}
.input-email {
border-radius: 10px;
border: 1px solid #ced4da;
padding: 10px;
transition: border-color 0.3s;
}
.input-email:focus {
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
#formularioEmail{
border: crimson solid 1px;
}
</style>
<!-- Fin Modal de Envío de Email -->
<!-- Modal Detalle de reclamo-->
<div class="modal fade" id="reclamoModal" tabindex="-1" aria-labelledby="reclamoModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header-crimson">
<h5 class="modal-title" id="reclamoModalLabel">Detalles del Reclamo</h5>
</div>
<div class="modal-body">
<div class="div-mini-email">
<small id="modalFecha"></small>
<h6 id="modalAsunto"></h6>
<p id="modalCuerpo"></p>
</div>
</div>
<div class="modal-footer">
<div class="alert-modal2 text-center">
<i class="bi bi-exclamation-circle me-2" style="font-size: 1.5rem;"></i>
<span>Para cerrar haga click fuera de la ventana.</span>
</div>
</div>
</div>
</div>
</div>
<!-- Fin Modal Detalle de reclamo-->
<footer class="center">
<img class="logo-foot" src="./Img/Novogar N.png" alt="Logo Novogar">
<a class="www" href="https://novogar.com.ar/" target="_blank">NOVOGAR</a>
<a href="https://novogar.com.ar/info/empresa" target="_blank">Quienes somos</a>
<a href="https://novogar.com.ar/info/Sucursales" target="_blank">Sucursales</a>
<a href="https://novogar.com.ar/info/ventaTelefonica" target="_blank">Atención al cliente</a>
</footer>
<!-- Scripts Firebase-->
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-database.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<!-- SweetAlert2 CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">
<!-- SweetAlert2 JS -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- Scripts Bootstrap-->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.3/html2pdf.bundle.min.js"></script>
<script src="./js/enviosCards.js"></script>
<script src="./js/features.js"></script>
</body>
</html>