Login auf jquery geändert
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{if $action == ''}
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
@ -28,6 +28,10 @@
|
||||
<div id="navtop"></div>
|
||||
{literal}
|
||||
<script>
|
||||
$(function() {
|
||||
$("#mail").focus();
|
||||
});
|
||||
|
||||
$(function(){
|
||||
$("#footer").load("footer.php");
|
||||
});
|
||||
@ -36,11 +40,8 @@
|
||||
<div id="layoutAuthentication">
|
||||
<div id="layoutAuthentication_content">
|
||||
<main>
|
||||
{if $index_error == '1'}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
{$index_error_text}
|
||||
</div>
|
||||
{/if}
|
||||
<!--Anwendung-->
|
||||
<script src="../js/components/admin_login.js"></script>
|
||||
<div class="lottie-container" id="lottie-container"></div>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
@ -50,13 +51,12 @@
|
||||
<h3 class="text-center font-weight-light my-4">Login</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form action=?action=anmeld method="POST" name="login">
|
||||
<div class="form-floating mb-3">
|
||||
<input class="form-control" id="inputEmail" name="mail" type="email" placeholder="Mailadresse" />
|
||||
<input class="form-control" name="mail" id="mail" type="email" onkeydown="keysave(this)" placeholder="Mailadresse" />
|
||||
<label for="inputEmail">Mailadresse</label>
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
<input class="form-control" id="inputPassword" name="password" type="password" placeholder="Passwort" />
|
||||
<input class="form-control" name="password" id="password" type="password" onkeydown="keysave(this)" placeholder="Passwort" />
|
||||
<label for="inputPassword">Passwort</label>
|
||||
</div>
|
||||
<!--<div class="form-check mb-3">
|
||||
@ -67,14 +67,14 @@
|
||||
<div class="d-flex align-items-center justify-content-between mt-4 mb-0">
|
||||
<!--<a class="small" href="password.html">Forgot Password?</a>-->
|
||||
|
||||
<input type='submit' class="btn btn-primary" name='senden' value="Login">
|
||||
<input type='submit' class="btn btn-primary" onclick="login();" name='senden' value="Login">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="card-footer text-center py-3">
|
||||
<!--<div class="small"><a href="register.html">Need an account? Sign up!</a></div>-->
|
||||
</div>
|
||||
</div>
|
||||
<div id="msg"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -89,6 +89,15 @@
|
||||
});
|
||||
</script>
|
||||
</main>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
function keysave(ele) {
|
||||
if(event.key === 'Enter') {
|
||||
login();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
</div>
|
||||
<div id="layoutAuthentication_footer">
|
||||
<!-- footer -->
|
||||
@ -100,8 +109,3 @@
|
||||
</body>
|
||||
</html>
|
||||
{/if}
|
||||
{if $action == 'anmeld'}
|
||||
{if $index_login == '1'}
|
||||
<meta http-equiv="refresh" content="0; URL=startseite.php">
|
||||
{/if}
|
||||
{/if}
|
Reference in New Issue
Block a user