-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (84 loc) · 4.2 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
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
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Importacion de Css y Icono de web-page -->
<link rel="stylesheet" href="./Style/estilo.css">
<link rel="shortCut icon" href="./Img/web-icono.png" class="img/x-icon">
<title>Formulario de registro</title>
<!-- Importación de libreria boostrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
</head>
<body>
<br><br><br>
<!-- Creacion del formulario -->
<center>
<div class="container-fluid">
<div class="card border-dark m-3" style="max-width: 40rem;">
<div class="card-header">Registro</div>
<div class="card-body float-center">
<div class="row">
<div class="col-8">
<input id="nombre" class="m-1 float-left" type="text" placeholder="Ingrese nombre">
<input id="apellido" class="m-1 float-left" type="text" placeholder="Ingrese apellido">
<br>
<select id="tdoc" class="m-1 float-left">
<option value="1">Tipo de Documento</option>
<option value="2">Tarjeta de Identidad</option>
<option value="3">Cédula de Ciudadania</option>
<option value="4">Cedula de Extranjeria</option>
</select>
<br>
<input id="documento" class="m-1 float-left" type="number" placeholder="Ingrese # documento">
<input id="ciudad" class="m-1 float-left" type="text" placeholder="Ciudad">
<input id="correo" class="m-1 float-left" type="email" placeholder="Ingrese su correo">
<input id="direccion" class="m-1 float-left" type="text" placeholder="Ingrese dirección">
<input id="telefono" class="m-1 float-left" type="number" placeholder="Ingrese telefono">
<input id="edad" class="m-1 float-left" type="number" placeholder="Edad"><br><br>
<button class="btn btn-outline-success" onclick="registrar()">Registrar</button>
<button class="btn btn-outline-light" onclick="listar()">Listar</button>
</div>
</div>
</div>
</div>
<!-- Creación de tabla de registro de usuarios -->
<div class="row">
<div class="col-md-3 my-2">
<table class="table table-fluid table-hover table-dark">
<thead>
<tr>
<th>Nombre</th>
<th>Apellido</th>
<th>Tipo</th>
<th>Documento</th>
<th>Ciudad</th>
</tr>
</thead>
<tbody id="usuarios">
</tbody>
</table>
</div>
<div class="col-md-3 my-2">
<table class="table table-fluid table-hover table-dark">
<thead>
<tr>
<th>Correo</th>
<th>Direccion</th>
<th>Telefono</th>
<th>Edad</th>
</tr>
</thead>
<tbody id="datos">
</tbody>
</table>
</div>
</div>
</div>
</div>
</center>
<script src="p1.js"></script>
</body>
</html>