This repository was archived by the owner on Jan 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprincipal_alumno.php
More file actions
83 lines (66 loc) · 3.5 KB
/
principal_alumno.php
File metadata and controls
83 lines (66 loc) · 3.5 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
<?php
include_once 'session.php';
include_once '../../database_conn.php';
if (!isset($_SESSION['user'])) {
header('location : login.php');
}
if ($_SESSION['user']['categoryName'] == 'ONG') {
header('location : perfil.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Pantalla Principal Alumno</title>
<link rel="stylesheet" href="assetsPrincipalAlumno/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assetsPrincipalAlumno/css/Navegacin-APS.css">
<link rel="stylesheet" href="assetsPrincipalAlumno/css/styles.css">
<style media="screen">
#button {
border: 1px solid #103567;
width: 80%;
}
</style>
</head>
<body>
<?php include "_navbar.php"; ?>
<div style="margin-top: 30px">
<div class="container">
<div class="row">
<div class="col-md-6 text-center">
<?php
$conexion = conexion();
$query = "select nombre, apellido1, apellido2, picture from UMA where email='" . $_SESSION['user']['userEmail'] . "'";
if ($resultado = mysqli_query($conexion, $query)) {
$datos = mysqli_fetch_assoc($resultado);
echo "<form>";
echo "<div class='form-group'><img src='data:image/jpg; base64, " . base64_encode($datos['picture']) . "' style='width: 250px;height: 250px;' ></div>";
echo "</form>";
echo "<div class='form-group'><label>" . $datos['nombre'] . " " . $datos['apellido1'] . " " . $datos['apellido2'] . "</label></div>";
} else {
echo "error en la consulta";
}
?>
</div>
<div class="col-md-6 text-center">
<form>
<div class="form-group"><label>¿Qué te gustaría hacer?</label></div>
<div class="form-group"> <a id="button" class="btn btn-blue action-button" role="button" href="/modificar_datos_usuario.php"> Editar Información Personal</a></div>
<div class="form-group"><a id="button" class="btn btn-blue action-button" role="button" href="visualizar_organizaciones.php?option=todas">Organizaciones Colaboradoras</a></div>
<div class="form-group"><a id="button" class="btn btn-blue action-button" role="button" href="visualizar_actividades_usuario.php?option=todas">Catálogo de actividades</a></div>
<hr>
<p>Mi Área Personal</p>
<div class="form-group"><a id="button" class="btn btn-blue action-button" role="button" href="gestionar_solicitudes.php?option=todas">Gestión de Solicitudes</a></div>
<!--<div class="form-group"> <a id="button" class="btn btn-blue action-button" role="button" href="ver_evaluaciones.php">Actividades en curso</a></div>-->
<div class="form-group"> <a id="button" class="btn btn-blue action-button" role="button" href="valorar_act_completa_al.php">Actividades Completadas</a></div>
</form>
</div>
</div>
</div>
</div>
<script src="assetsPrincipalAlumno/js/jquery.min.js"></script>
<script src="assetsPrincipalAlumno/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>