69 lines
2.9 KiB
PHP
69 lines
2.9 KiB
PHP
<?php require_once 'model/register.php'; ?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Registro de Usuario</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
|
|
|
|
<style>
|
|
body {
|
|
display: flex;
|
|
}
|
|
.sidebar {
|
|
min-width: 250px;
|
|
height: 400vh;
|
|
background: rgb(19, 61, 213);
|
|
color: white;
|
|
}
|
|
.sidebar a {
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-light">
|
|
<nav class="sidebar p-3">
|
|
<h4 class="text-center mb-4">LANIA</h4>
|
|
<ul class="nav flex-column">
|
|
<li class="nav-item"><a class="nav-link" href="Estadisticas.php"><i class="fas fa-tachometer-alt"></i> Estadísticas</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="FormularioInicial.php"><i class="fas fa-user"></i> Formulario de Ingreso</a></li>
|
|
<li class="nav-item"><a class="nav-link" href="FormularioSalida.php"><i class="fas fa-user"></i> Formulario de Salida</a></li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<div class="container py-5">
|
|
<div class="text-center mb-4">
|
|
<h1 class="display-5">Registro de Usuario</h1>
|
|
</div>
|
|
|
|
<div class="card shadow p-4 mx-auto" style="max-width: 500px;">
|
|
<form method="post">
|
|
<label for="nombre" class="form-label">Nombre:</label>
|
|
<input type="text" class="form-control" id="nombre" name="nombre" required><br>
|
|
|
|
<label for="password" class="form-label">Contraseña:</label>
|
|
<input type="password" class="form-control" id="password" name="password" required><br>
|
|
|
|
<div class="mt-4 d-flex justify-content-center gap-3">
|
|
<button type="submit" class="btn btn-primary">Registrar</button>
|
|
<a href="sesion.php"><button type="button" class="btn btn-primary">Ir al Login</button></a>
|
|
</div>
|
|
</form>
|
|
|
|
<?php if (isset($success)): ?>
|
|
<div class="alert alert-success mt-3"><?php echo $success; ?></div>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($error)): ?>
|
|
<div class="alert alert-danger mt-3"><?php echo $error; ?></div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html>
|