-
Notifications
You must be signed in to change notification settings - Fork 0
/
ver_admin.php
61 lines (44 loc) · 1.7 KB
/
ver_admin.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
<?php
require_once __DIR__ . '/include/dao/DAO_Admin.php';
require_once __DIR__ . '/include/config.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Admin</title>
<link rel="stylesheet" type="text/css" href="css/admin.css">
<link rel="stylesheet" type="text/css" href="https://www.w3schools.com/w3css/4/w3.css">
</head>
<body>
<div class ="profesor">
<?php
include("include/comun/cabecera.php");
if($_SESSION['rol'] == 'admin'){
include("include/comun/sidebarIzqAdmin.php");
}
?>
<div class="contenido">
<?php
$admin = new Admin();
$dao_admin = new DAO_Admin();
if ($_SESSION['rol'] == "admin"){
$admin->setUsuario(htmlspecialchars(trim(strip_tags($_SESSION["name"]))));
}
//Nuevo Profesor
echo "<div class='flex-container'>
<div class='nuevoprofe'><a href=\"admin_profesor.php\"><img class='clase_imagen' src='./img/profenuevo.jpg' alt='logo' height='150' width='150'><a><br>
<a href = admin_profesor.php?><p>Nuevo Profesor</p></a></div>";
//nuevo alumno
echo "<div class='nuevoAlumno'><a href=\"admin_alumno.php\"><img class='clase_imagen' src='./img/alumnosnuevo.png' alt='logo' height='150' width='150'></a><br>
<a href= admin_alumnos.php?><p>Nuevo Alumno</p></a></div>";
echo "<div class='nuevoAlumno'><a href=\"admin_borrarP.php\"><img class='clase_imagen' src='./img/borrado.jpg' alt='logo' height='150' width='150'></a><br>
<a href= admin_borrarP.php?><p>Borrar alumno/profesor</p></a></div>";
?>
</div>
</div>
<?php
include("include/comun/pie.php");
?>
</body>
</html>