-
Notifications
You must be signed in to change notification settings - Fork 0
/
clinica.php
77 lines (70 loc) · 2.2 KB
/
clinica.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
<?php
$aPacientes = [];
$aPacientes[] = [
"dni" => "33.765.012",
"nombre" => "Ana",
"apellido" => "Acuña",
"edad" => 45,
"peso" => 81.5
];
$aPacientes[] = [
"dni" => "21.684.385",
"nombre" => "Gonzalo",
"apellido" => "Bustamante",
"edad" => 66,
"peso" => 79
];
$aPacientes[] = [
"dni" => "31.418.734",
"nombre" => "Juan",
"apellido" => "Irraola",
"edad" => 28,
"peso" => 65.4
];
$aPacientes[] = [
"dni" => "25.205.123",
"nombre" => "Beatriz",
"apellido" => "Ocampo",
"edad" => 50,
"peso" => 84.2
];
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clínica</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha256-3gQJhtmj7YnV1fmtbVcnAV6eI4ws0Tr48bVZCThtCGQ=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha256-PI8n5gCcz9cQqQXm3PEtDuPG8qx9oFsFctPg0S5zb8g=" crossorigin="anonymous">
</head>
<body>
<main class="container">
<div class="row">
<div class="col-12 mb-3">
<h1 class="fw-semibold">Listado de Pacientes</h1>
</div>
<div class="col-12">
<table class="table table-hover">
<thead>
<th>DNI</th>
<th>Nombre y Apellido</th>
<th>Edad</th>
<th>Peso</th>
</thead>
<tbody>
<?php foreach ($aPacientes as $paciente) { ?>
<tr>
<td><?php echo $paciente["dni"]; ?></td>
<td><?php echo $paciente["nombre"] . " " . $paciente["apellido"]; ?></td>
<td><?php echo $paciente["edad"]; ?></td>
<td><?php echo $paciente["peso"]; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</main>
</body>
</html>