1
0
Fork 0

Compare commits

...

3 Commits

@ -63,8 +63,24 @@ 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" />
<link href="main.css" rel="stylesheet">
<title>LOGIN</title>
<title>Login</title>
<style>
#bottone_login {
font-size: 20px;
font-style: bold;
border-radius: 20px;
border-color: #1abc9c;
color: #fff;
background-image: linear-gradient(to right, rgba(26, 188, 156, 0.6), rgba(26, 188, 156, 0.6) 5%, #1abc9c 5%, #1abc9c 10%, rgba(26, 188, 156, 0.6) 10%, rgba(26, 188, 156, 0.6) 15%, #1abc9c 15%, #1abc9c 20%, rgba(26, 188, 156, 0.6) 20%, rgba(26, 188, 156, 0.6) 25%, #1abc9c 25%, #1abc9c 30%, rgba(26, 188, 156, 0.6) 30%, rgba(26, 188, 156, 0.6) 35%, #1abc9c 35%, #1abc9c 40%, rgba(26, 188, 156, 0.6) 40%, rgba(26, 188, 156, 0.6) 45%, #1abc9c 45%, #1abc9c 50%, rgba(26, 188, 156, 0.6) 50%, rgba(26, 188, 156, 0.6) 55%, #1abc9c 55%, #1abc9c 60%, rgba(26, 188, 156, 0.6) 60%, rgba(26, 188, 156, 0.6) 65%, #1abc9c 65%, #1abc9c 70%, rgba(26, 188, 156, 0.6) 70%, rgba(26, 188, 156, 0.6) 75%, #1abc9c 75%, #1abc9c 80%, rgba(26, 188, 156, 0.6) 80%, rgba(26, 188, 156, 0.6) 85%, #1abc9c 85%, #1abc9c 90%, rgba(26, 188, 156, 0.6) 90%, rgba(26, 188, 156, 0.6) 95%, #1abc9c 95%, #1abc9c 100%);
background-position: 0 0;
background-size: 100%;
transition: background 300ms ease-in-out;
}
#bottone_login:hover {
background-position: 100px;
}
</style>
</head>
<body class="bg-dark text-white">
<div class="container ">
@ -75,32 +91,29 @@ 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>
</div>
</body>
</html>
</html>

@ -1,14 +0,0 @@
#bottone_login {
font-size: 20px;
font-style: bold;
border-radius: 20px;
border-color: #1abc9c;
color: #fff;
background-image: linear-gradient(to right, rgba(26, 188, 156, 0.6), rgba(26, 188, 156, 0.6) 5%, #1abc9c 5%, #1abc9c 10%, rgba(26, 188, 156, 0.6) 10%, rgba(26, 188, 156, 0.6) 15%, #1abc9c 15%, #1abc9c 20%, rgba(26, 188, 156, 0.6) 20%, rgba(26, 188, 156, 0.6) 25%, #1abc9c 25%, #1abc9c 30%, rgba(26, 188, 156, 0.6) 30%, rgba(26, 188, 156, 0.6) 35%, #1abc9c 35%, #1abc9c 40%, rgba(26, 188, 156, 0.6) 40%, rgba(26, 188, 156, 0.6) 45%, #1abc9c 45%, #1abc9c 50%, rgba(26, 188, 156, 0.6) 50%, rgba(26, 188, 156, 0.6) 55%, #1abc9c 55%, #1abc9c 60%, rgba(26, 188, 156, 0.6) 60%, rgba(26, 188, 156, 0.6) 65%, #1abc9c 65%, #1abc9c 70%, rgba(26, 188, 156, 0.6) 70%, rgba(26, 188, 156, 0.6) 75%, #1abc9c 75%, #1abc9c 80%, rgba(26, 188, 156, 0.6) 80%, rgba(26, 188, 156, 0.6) 85%, #1abc9c 85%, #1abc9c 90%, rgba(26, 188, 156, 0.6) 90%, rgba(26, 188, 156, 0.6) 95%, #1abc9c 95%, #1abc9c 100%);
background-position: 0 0;
background-size: 100%;
transition: background 300ms ease-in-out;
}
#bottone_login:hover {
background-position: 100px;
}

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

@ -2,12 +2,6 @@
require('../../lib/common.php');
require('../../lib/database.php');
user_check([
'cliente' => true,
'rider' => false,
'ristorante' => false,
], 2);
$db = db_connect();
$result = db_execute($db,

Loading…
Cancel
Save