Login auf jquery geändert
This commit is contained in:
@ -1,18 +1,18 @@
|
||||
<?php
|
||||
/* Smarty version 3.1.39, created on 2023-03-23 13:57:21
|
||||
/* Smarty version 3.1.39, created on 2023-03-24 16:50:02
|
||||
from 'F:\git\survey\templates\modern\dashboard\index.html' */
|
||||
|
||||
/* @var Smarty_Internal_Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
'version' => '3.1.39',
|
||||
'unifunc' => 'content_641c4cb1cb5c45_23187818',
|
||||
'unifunc' => 'content_641dc6aa4376e5_36783062',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'bf479f21e7ad507ad2c2c30536bdf206de07b30e' =>
|
||||
array (
|
||||
0 => 'F:\\git\\survey\\templates\\modern\\dashboard\\index.html',
|
||||
1 => 1679569752,
|
||||
1 => 1679673000,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
@ -20,10 +20,10 @@ if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
||||
array (
|
||||
),
|
||||
),false)) {
|
||||
function content_641c4cb1cb5c45_23187818 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
function content_641dc6aa4376e5_36783062 (Smarty_Internal_Template $_smarty_tpl) {
|
||||
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
@ -58,6 +58,10 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
>
|
||||
$(function() {
|
||||
$("#mail").focus();
|
||||
});
|
||||
|
||||
$(function(){
|
||||
$("#footer").load("footer.php");
|
||||
});
|
||||
@ -67,12 +71,10 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<div id="layoutAuthentication">
|
||||
<div id="layoutAuthentication_content">
|
||||
<main>
|
||||
<?php if ($_smarty_tpl->tpl_vars['index_error']->value == '1') {?>
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<?php echo $_smarty_tpl->tpl_vars['index_error_text']->value;?>
|
||||
|
||||
</div>
|
||||
<?php }?>
|
||||
<!--Anwendung-->
|
||||
<?php echo '<script'; ?>
|
||||
src="../js/components/admin_login.js"><?php echo '</script'; ?>
|
||||
>
|
||||
<div class="lottie-container" id="lottie-container"></div>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
@ -82,13 +84,12 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<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">
|
||||
@ -99,14 +100,14 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<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>
|
||||
@ -123,6 +124,17 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
</main>
|
||||
|
||||
<?php echo '<script'; ?>
|
||||
type="text/javascript">
|
||||
function keysave(ele) {
|
||||
if(event.key === 'Enter') {
|
||||
login();
|
||||
}
|
||||
}
|
||||
<?php echo '</script'; ?>
|
||||
>
|
||||
|
||||
</div>
|
||||
<div id="layoutAuthentication_footer">
|
||||
<!-- footer -->
|
||||
@ -138,10 +150,5 @@ if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
|
||||
</body>
|
||||
</html>
|
||||
<?php }
|
||||
if ($_smarty_tpl->tpl_vars['action']->value == 'anmeld') {?>
|
||||
<?php if ($_smarty_tpl->tpl_vars['index_login']->value == '1') {?>
|
||||
<meta http-equiv="refresh" content="0; URL=startseite.php">
|
||||
<?php }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user