-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathranking.php
More file actions
80 lines (69 loc) · 3.03 KB
/
ranking.php
File metadata and controls
80 lines (69 loc) · 3.03 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
<?php
include './php/sesion.php';
?>
<html>
<head>
<title>Profesores Con Clase</title>
<meta charset="utf-8"/>
<meta name="author" content="SWTeam"/>
<meta name="description" content="Ranking de profesores"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Last-Modified" content="0">
<meta http-equiv="Cache-Control" content="no-cache, mustrevalidate">
<meta http-equiv="Pragma" content="no-cache">
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/reset.css"/>
<link rel="stylesheet" type="text/css" href="css/estructura.css"/>
<link rel="stylesheet" type="text/css" href="css/interfaz.css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script src="js/ranking.js"></script>
</head>
<body class="ranking_body">
<?php
$_SESSION["volverIndex"] = 1;
require_once('./php/header.php');
?>
<div id="ranking_principal">
<?php //COLOREAMOS LA BARRA DEL TITULO DEPENDIENDO EL COLOR DEL USUARIO
if ($_SESSION["type"] == "alumno") { //Alumno
$color = "green";
}
elseif ($_SESSION["type"] == "profesor") { //Profesor
$color = "blue";
}
elseif ($_SESSION["type"] == "administrador") { //Admin
$color = "purple";
}
?>
<!-- ________________ CABECERA DEL RANKING ________________ -->
<?php //COLOREAMOS LA BARRA DEL TITULO DEPENDIENDO EL COLOR DEL USUARIO
echo '<div id="ranking_titulo" class="'.$color.'">';
?>
<h1>TOP PROFESORES</h1>
<h2>¿Podrás llegar a lo más alto? </h2>
</div>
<!-- ________________ BARRA DE BUSCADOR ________________ -->
<?php //COLOREAMOS LA BARRA DE BUSQUEDA DEPENDIENDO EL COLOR DEL USUARIO
echo '<div id="busca_rank" class="'.$color.'">';
echo '<form id="buscador_rank" action="" class="'.$color.'">';
?>
<p id="etq_filter">Filtrar por: </p>
<select id="select_filter">
<option value="asignaturas" selected>Asignaturas</option>
<option value="total">Valoracion Total</option>
</select>
<?php //COLOREAMOS EL BOTON DE BUSCAR DEPENDIENDO EL COLOR DEL USUARIO
echo '</form>';
echo '</div>';
?>
<!-- ________________ DATOS DE LOS PROFESORES ________________ -->
<div id="rank">
<?php
include "php/ranking_info.php";
?>
</div>
<?php require_once('./php/footer.php'); ?>
</body>
</html>