1
0
Fork 0

Sistemate alcune label

master
Emanuele HF 3 months ago
parent 3eeeab9057
commit 7340a567f7

@ -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>

@ -55,6 +55,6 @@ $result = db_execute($db,
<button class="btn btn-primary float-end" type="submit" name="invia_ordine">Conferma</button>
</form>
<hr />
<a class="btn btn-primary float-start" href="index.php">Indietro</a>
<a class="btn btn-primary float-start" href="index.php">< Indietro</a>
<script src="../../res/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>

@ -95,6 +95,6 @@ if (!$show_error) {
<?php } else { ?>
<h1>Errore nella creazione dell'ordine</h1>
<?php } ?>
<a class="btn btn-primary float-end" href="index.php">Indietro</a>
<a class="btn btn-primary float-end" href="index.php">< Indietro</a>
<script src="../../res/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>

Loading…
Cancel
Save