-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathayuda.php
More file actions
432 lines (349 loc) · 9.82 KB
/
Copy pathayuda.php
File metadata and controls
432 lines (349 loc) · 9.82 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
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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
<?php
session_start();
// Verifica si el usuario ha iniciado sesión
if (!isset($_SESSION['usuario']) || !isset($_SESSION['correo'])) {
echo "<!DOCTYPE html>
<html lang='es'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<script src='https://cdn.jsdelivr.net/npm/sweetalert2@11'></script>
</head>
<body>
<script>
Swal.fire({
icon: 'error',
title: 'Acceso denegado',
text: 'No puede acceder al sistema sin haber iniciado sesión',
confirmButtonText: 'Aceptar'
}).then(() => {
window.location.href = 'Login.php';
});
</script>
</body>
</html>";
exit;
}
// Obtén los datos del usuario desde la sesión
$usuario = $_SESSION['usuario'];
$correo = $_SESSION['correo'];
$nivel_usuario = $_SESSION['nivel_usuario'] ?? 'Invitado'; // Nivel de usuario desde la sesión
?>
<!DOCTYPE html>
<html lagn="es">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>KAM</title>
<style>
/*estilo de fondo*/
body{
background:url(FONDO3.jpg) no-repeat;
background-size: 110%;
margin:auto;
background-attachment: fixed;
background-repeat: no-repeat;
background-position: top center;
font-family: sans-serif;
}
.containe{
display: flex;
justify-content: space-around;
}
.logo{
position:absolute;
top:10px;
right:0px;
}
/*posicion logos*/
.container{
width:80%;
margin:auto;
}
.logo-container{
position:absolute;
top:20px;
left:20px;
}
.modules-container {
display: flex;
justify-content: center;
flex-wrap: wrap;
margin-top: 50px;
}
.module {
width: 250px;
height: 300px;
background-color: #fff;
border: 1px solid #ccc;
text-align: center;
padding: 20px;
margin: 20px;
border-radius: 20px;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.module:hover {
background-color: #B1D0E2;
}
.module i {
font-size: 30px;
color: #333;
margin-bottom: 15px;
}
.module h2 {
font-family: 'Arial', sans-serif;
font-size: 30px;
font-weight: bold;
color: #2378B2;
}
.module img {
width: 150px;
height: 150px;
}
button {
background-color: #ffffff;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
border-radius: 4px;
}
button:hover {
background-color: #B1D0E2;
}
</style>
<script>
document.querySelectorAll('.logo-container').forEach(container => {
const logo = container.querySelector('.logo');
const hoverMessage = container.querySelector('.hover-message');
logo.addEventListener('mouseenter', () => {
hoverMessage.style.display = 'block';
});
logo.addEventListener('mouseleave', () => {
hoverMessage.style.display = 'none';
});
});
</script>
<style>
.logo-container {
position: absolute;
top: 40px;
left: 8px;
display: flex;
align-items: center;
}
.fixed-message {
font-size: 12px;
background-color: rgba(51, 51, 51, 0.9);
color: white;
padding: 5px;
border-radius: 5px;
margin-left: 12px; /* Ajusta este valor según sea necesario */
display: inline-block; /* Asegura que se alinee adecuadamente */
}
h1 {
text-align: center;
color: #2378b2;
}
.letra {
margin-top: 5%;
}
</style>
<div class="logo-container">
<a href="principal.php">
<img src="inicio.png" width="40" height="30" alt="perfil"> </a>
<div class="fixed-message">Principal / Ayuda</div>
</div>
<div class="containe">
<div class="logo">
<img src="edupalcubo.png" width="120" height="85" alt="perfil">
</div>
</div>
<div class="container">
<div class="logos">
<div class="hover-container3">
<a href="#" id="userProfileButton">
<img src="usuario.png" alt="Perfil">
<div class="hover-message3">Perfil</div>
</a>
</div>
</div>
</div>
<br>
<div id="userProfileModal" class="modal">
<div class="modalt-contente">
<span class="close" id="closeProfile">×</span>
<div align="left">
<div class="p">
<h2>Perfil de Usuario</h2>
<p><strong>Nombre de Usuario:</strong> <?php echo htmlspecialchars($usuario); ?></p>
<p><strong>Correo Electrónico:</strong> <?php echo htmlspecialchars($correo); ?></p>
</div>
</div>
</div>
</div>
<div class="letra">
<h1>Gestión De Ayuda</h1>
</div>
<div class="modules-container">
<div class="module">
<button href= " " >
<img src="manual.png" alt="configuracion de usuario">
<h2>Manual de usuario</h2>
</button>
<style>
.hover-message3 {
display: none;
background-color: rgba(51, 51, 51, 0.6); /* Fondo #333 con opacidad de 60% */
color: white; /* Letras blancas */
font-size: 15px;
border-radius: 5px;
padding: 4px;
position: absolute;
top: 50px; /* Ajustar según sea necesario */
left: 40%;
transform: translateX(-50%);
z-index: 1;
opacity: 0.9;
}
.hover-container3:hover .hover-message3 {
display: block;
}
.container {
margin: 0em 0em 0em 0em;
}
.logos {
position: absolute;
margin-top:30px;
right: 110px;
display: flex;
gap: 20px; /* Espacio entre los logos */
}
.hover-container {
position: relative;
cursor: pointer;
z-index: 1;
}
.hover-container img {
width: 40px;
height: 40px;
transition: transform 0.3s ease;
}
.hover-container:hover img {
transform: scale(1.2);
z-index: 2;
}
.hover-container3 {
position: relative;
display: inline-block;
}
.menu-container {
display: none;
position: absolute;
top: 80px;
background-color: white;
border: 1px solid #ccc;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
z-index: 1;
padding: 10px;
}
.menu-option {
padding: 20px;
cursor: pointer;
}
.menu-option:hover {
background-color: #f0f0f0;
}
.logos a {
display: inline-block;
}
.logos img {
width: 40px;
height: 40px;
}
.modalt {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 1px;
width: 100%;
height: 100%;
overflow: auto;
padding-top: 20px;
}
.modalt-contente {
background-color: #fff;
opacity: 90%;
margin: 3% auto;
padding: 20px;
width: 70%;
max-width: 600px;
border-radius: 15px;
border: 1px solid #2378b6;
box-shadow: rgba(5, 2, 5, 0.5) 0px 2px 6px 0px;
animation: zoom 0.3s;
z-index: 10000; /* Más alto que otros elementos */
position: relative; /* Necesario para aplicar el z-index dentro del modal */
}
@keyframes zoom {
from {transform: scale(0)}
to {transform: scale(1)}
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
#userProfileModal {
display: none; /* Ocultar el modal por defecto */
position: fixed; /* Para posicionarlo sobre todo */
z-index: 9999; /* Asegúrate de que tenga el z-index más alto */
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
}
.p{
color:#2378b6;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script>
// Modal para el perfil de usuario
const userProfileButton = document.getElementById('userProfileButton');
const userProfileModal = document.getElementById('userProfileModal');
const closeProfile = document.getElementById('closeProfile');
// Mostrar modal solo cuando se hace clic en el botón (logo)
userProfileButton.onclick = function() {
userProfileModal.style.display = "block";
};
// Cerrar modal cuando se hace clic en el botón de cerrar
closeProfile.onclick = function() {
userProfileModal.style.display = "none";
};
// Cerrar modal si se hace clic fuera de él
window.onclick = function(event) {
if (event.target === userProfileModal) {
userProfileModal.style.display = "none";
}
};
</script>
</body>
</html>