132 lines
2.7 KiB
PHP
Executable File
132 lines
2.7 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
|
|
<html lang="it">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport"
|
|
content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Delivery - Login</title>
|
|
|
|
<link rel="stylesheet" href="css/bootstrap.min.css">
|
|
|
|
</head>
|
|
|
|
|
|
<body class="bg-light">
|
|
|
|
|
|
<div class="container mt-5">
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<h2 class="mb-4">
|
|
Delivery
|
|
</h2>
|
|
|
|
|
|
<?php if (isset($_GET["registrazione"])): ?>
|
|
|
|
<div class="alert alert-success">
|
|
Registrazione completata. Ora puoi effettuare il login.
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php if (isset($_GET["errore"])): ?>
|
|
|
|
<div class="alert alert-danger">
|
|
<?= $_GET["errore"] === "accesso" ? "Effettua il login per continuare." : "Email o password errati." ?>
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
<div class="card p-4 shadow-sm">
|
|
|
|
<form
|
|
action="login_action.php"
|
|
method="post"
|
|
>
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<label
|
|
class="form-label"
|
|
for="email"
|
|
>
|
|
Email
|
|
</label>
|
|
|
|
<input
|
|
class="form-control"
|
|
type="email"
|
|
id="email"
|
|
name="email"
|
|
required
|
|
>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<label
|
|
class="form-label"
|
|
for="password"
|
|
>
|
|
Password
|
|
</label>
|
|
|
|
<input
|
|
class="form-control"
|
|
type="password"
|
|
id="password"
|
|
name="password"
|
|
required
|
|
>
|
|
|
|
</div>
|
|
|
|
|
|
<button
|
|
class="btn btn-primary w-100"
|
|
type="submit"
|
|
>
|
|
Login
|
|
</button>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
<div class="text-center mt-3">
|
|
|
|
Non hai un account?
|
|
|
|
<a href="registrazione.php">
|
|
Registrati
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|