Documentos de Académico
Documentos de Profesional
Documentos de Cultura
<?php
session_start();
if (!isset($_SESSION['estudiantes'])) {
$_SESSION['estudiantes'] = [];
$matricula = $_POST['matricula'];
$asistencia = $_POST['asistencia'];
$primer_parcial = $_POST['primer_parcial'];
$practicas = $_POST['practicas'];
$examen_final = $_POST['examen_final'];
$nota_literal = 'A';
$nota_literal = 'B';
$nota_literal = 'C';
$nota_literal = 'D';
} else {
$nota_literal = 'F';
$estudiante = array(
'matricula' => $matricula,
);
$_SESSION['estudiantes'][] = $estudiante;
exit();
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Formulario de Calificaciones</title>
<style>
body {
text-align: center;
background-color: #f4f4f4;
h2 {
font-weight: bold;
color: #333;
form {
display: inline-block;
text-align: left;
background-color: #fff;
padding: 20px;
border-radius: 8px;
margin: 20px;
label {
display: block;
margin: 10px 0;
color: #333;
input {
width: 100%;
padding: 8px;
margin-bottom: 10px;
box-sizing: border-box;
input[type="submit"] {
background-color: #3EC4F6;
color: #black;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #6AF08F;
a{
text-decoration: none;
color: #4caf50;
margin-top: 10px;
display: inline-block;
button {
background-color: #3EC4F6;
color: #black;
padding: 10px;
border: none;
cursor: pointer;
button:hover {
background-color: #6AF08F;
</style>
</head>
<body>
<h2>Formulario de Calificaciones</h2>
<?php
if (isset($_GET['mensaje'])) {
}
?>
<label for="matricula">Matrícula:</label>
<br>
<label for="asistencia">Asistencia:</label>
<br>
<br>
<label for="practicas">Prácticas:</label>
<br>
<br>
<br>
</form>
</body>
</html>
Reporte.php
<?php
session_start();
$_SESSION['estudiantes'] = [];
header('Location: ' . $_SERVER['PHP_SELF'] . '?mensaje=Reporte reiniciado con éxito');
exit();
$cantidad_estudiantes = count($lista_estudiantes);
$nota_mayor = 0;
$nota_menor = PHP_INT_MAX;
$suma_notas = 0;
$suma_notas += $estudiante['nota_final'];
unset($_SESSION['estudiantes']);
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Reporte de Calificaciones</title>
<style>
body {
text-align: center;
font-family: Arial, sans-serif;
h2, p {
font-weight: bold;
table {
margin: auto;
width: 80%;
border-collapse: collapse;
border-spacing: 0;
margin-top: 20px;
overflow: hidden;
border-radius: 10px;
th, td {
padding: 12px;
text-align: center;
th {
background-color: #4CAF50;
color: Black;
td:first-child, th:first-child {
text-align: center;
}
tr:nth-child(even) {
background-color: #f2f2f2;
.report-info {
margin-top: 20px;
</style>
</head>
<body>
<p>Reporte de Calificaciones</p>
<hr>
<p>Sección: 0833</p>
</div>
<hr>
<hr>
<?php
if (isset($_GET['mensaje'])) {
}
?>
<table>
<thead>
<tr>
<th>Matrícula</th>
<th>Asistencia</th>
<th>Primer Parcial</th>
<th>Prácticas</th>
<th>Examen Final</th>
<th>Nota Final</th>
<th>Nota Literal</th>
</tr>
</thead>
<tbody>
<tr>
</tr>
</tbody>
</table>
<br>
<hr>
<hr>
<div class="report-info">
</div>
</body>
</html>