-
Notifications
You must be signed in to change notification settings - Fork 0
/
profe_vis_alu.php
80 lines (68 loc) · 2.28 KB
/
profe_vis_alu.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<?php
session_start();
if(!isset($_SESSION['profesor']))
{
header("location:login_error.html");
}
else{
?>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="all.css">
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="profe_home.php">Profesor</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="profe_notas.php">Poner Notas</a></li>
<li><a href="profe_vis_alu.php">Ver Notas</a></li>
<li><a href="profe_altas.php">Dar de Alta</a></li>
<li><a href="profe_bajas.php">Dar de Baja</a></li>
<li><a href="logout.php" style="color: red">Cerrar Sesión</a></li>
</ul>
</div>
</div>
</nav>
<br>
<br>
<br>
<br>
<br>
<?php
$conexion=new mysqli('localhost','root','','asix2m') or die ("sin conexion db");
#echo "SELECT * FROM notas WHERE alu_login='".$_SESSION['alumno']."'";
$tabla_not=$conexion->query("SELECT * FROM notas order by alu_login asc ");
echo "<table>
<tr>
<th>Asignaturas</th>
<th>Alumne</th>
<th>Nota Trimestre 1</th>
<th>Nota Trimestre 2</th>
<th>Nota Trimestre Final</th>
</tr>";
while($fila_not=$tabla_not->fetch_object())
{
echo '<td>M' .$fila_not->id_asignaturas. '</td>';
echo '<td>' .$fila_not->alu_login. '</td>';
echo '<td>' .$fila_not->nota_1. '</td>';
echo '<td>' .$fila_not->nota_2. '</td>';
echo '<td>' .$fila_not->nota_Final. '</td></tr>';
}
echo "</table>";
?>
</body>
</html>
<?php }?>