|
|
|
@ -63,7 +63,7 @@ if (isset($_POST['accedi'])) {
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
<link href="res/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous" />
|
|
|
|
|
<title>LOGIN</title>
|
|
|
|
|
<title>Login</title>
|
|
|
|
|
<style>
|
|
|
|
|
#bottone_login {
|
|
|
|
|
font-size: 20px;
|
|
|
|
@ -91,29 +91,26 @@ if (isset($_POST['accedi'])) {
|
|
|
|
|
<form action="login.php" method="post">
|
|
|
|
|
<div class="form-group mb-4">
|
|
|
|
|
<label for="username" class="form-label">Username</label>
|
|
|
|
|
<input type="text" name="username" class="form-control" style=" height: 30px;" />
|
|
|
|
|
<input type="text" name="username" class="form-control" style=" height: 30px;" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group mb-4">
|
|
|
|
|
<label for="password" class="form-label">Password</label>
|
|
|
|
|
<input type="password" class="form-control" name="password" style=" height: 30px;" />
|
|
|
|
|
<input type="password" class="form-control" name="password" style=" height: 30px;" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d-grid text-center">
|
|
|
|
|
<button id="bottone_login" type="submit" style="margin-top: 20px;" class="btn" name="accedi">CLICK HERE TO LOGIN</button>
|
|
|
|
|
<button id="bottone_login" type="submit" style="margin-top: 20px;" class="btn" name="accedi">Login</button>
|
|
|
|
|
</div>
|
|
|
|
|
<?php if ($show_error) { ?>
|
|
|
|
|
<p class="alert alert-danger" id="error" style="margin-top: 10px;">Username o password non validi </p>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<script>
|
|
|
|
|
function scomparsa(id){
|
|
|
|
|
var errore = document.getElementById('error');
|
|
|
|
|
errore.style.display = "none";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<?php if($show_error)
|
|
|
|
|
echo('<p class="alert alert-danger" id="error" style="margin-top:10px;">Username o password non validi </p>')
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
function scomparsa(id){
|
|
|
|
|
const errore = document.getElementById(id)
|
|
|
|
|
errore.style.display = "none"
|
|
|
|
|
}
|
|
|
|
|
setTimeout('scomparsa("error")', 5000)
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(scomparsa, 5000);
|
|
|
|
|
</script>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<div class="col"></div>
|
|
|
|
|