-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (44 loc) · 1.64 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>
<body>
<div id="container">
<div id="header">
<div id="toolbar-start">
<h1>Gestión del Centro Educativo</h1>
</div>
<div id="toolbar-end">
<button onclick="alta()" class="btn">Alta de Usuario</button>
<button onclick="baja()" class="btn">Baja de Usuario</button>
<button onclick="imprimirInformacion()" class="btn">Imprimir Información</button>
</div>
</div>
<div id="contenido">
</div>
</div>
<script src="./main.js"></script>
<script>
const centroEducativo = new CentroEducativo();
function alta() {
const nombre = prompt("Ingrese el nombre:");
const apellidos = prompt("Ingrese el apellido:");
const numeroIdentificacion = prompt("Ingrese el número de identificación:");
const estadoCivil = prompt("Ingrese el estado civil:");
const persona = new Persona(nombre, apellidos, numeroIdentificacion, estadoCivil);
centroEducativo.alta(persona);
}
function baja() {
const numeroIdentificacion = prompt("Ingrese el número de identificación de la persona para dar de baja:");
centroEducativo.baja(numeroIdentificacion);
}
function imprimirInformacion() {
centroEducativo.imprimirInformacion();
}
</script>
</body>
</html>