M5 A1 6)
This commit is contained in:
11
M5/emensa/views/m5_a1/abmeldung.blade.php
Normal file
11
M5/emensa/views/m5_a1/abmeldung.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
@extends("m5_a1.layout_anmeldung")
|
||||
|
||||
@section("main")
|
||||
|
||||
@if(!isset($_SESSION['name']))
|
||||
|
||||
<meta http-equiv="refresh" content="0;url=/werbeseite" />
|
||||
|
||||
@endif
|
||||
|
||||
@endsection
|
||||
23
M5/emensa/views/m5_a1/anmeldung.blade.php
Normal file
23
M5/emensa/views/m5_a1/anmeldung.blade.php
Normal file
@@ -0,0 +1,23 @@
|
||||
@extends("m5_a1.layout_anmeldung")
|
||||
|
||||
@section("main")
|
||||
|
||||
<form action="/anmeldung_verifizieren" method="post">
|
||||
|
||||
<label for="email">E-Mail</label>
|
||||
<input id="email" name="email" type="email" placeholder="email" required maxlength="100">
|
||||
|
||||
<label for="passwort">Passwort</label>
|
||||
<input id="passwort" name="passwort" type="password" placeholder="passwort" required maxlength="200">
|
||||
|
||||
<button type="submit" >Anmelden</button>
|
||||
</form>
|
||||
|
||||
@if(!isset($anmeldung)) Bitte anmelden!
|
||||
@elseif ($anmeldung == 1)
|
||||
{{ session_start() }}
|
||||
Anmeldung erlaubt!
|
||||
@else Anmeldung nicht erlaubt!
|
||||
@endif
|
||||
|
||||
@endsection
|
||||
50
M5/emensa/views/m5_a1/anmeldung_verifizieren.blade.php
Normal file
50
M5/emensa/views/m5_a1/anmeldung_verifizieren.blade.php
Normal file
@@ -0,0 +1,50 @@
|
||||
@extends("m5_a1.layout_anmeldung")
|
||||
|
||||
@section("main")
|
||||
|
||||
@if($anmeldung == 1)
|
||||
<meta http-equiv="refresh" content="/main"/>
|
||||
<form id="form_ok" action="/main"></form>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function formAutoSubmit() {
|
||||
|
||||
var frm = document.getElementById("form_ok");
|
||||
|
||||
frm.submit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
window.onload = formAutoSubmit;
|
||||
|
||||
</script>
|
||||
@else
|
||||
|
||||
<form method="post" id="auto_form" action="/anmeldung_nichtkorrekt">
|
||||
<input type="hidden" name="email" value={{ $email}}>
|
||||
<input type="hidden" name="passwort" value={{$passwort}}>
|
||||
<input type="hidden" name="anmeldung" value={{$anmeldung }}>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function formAutoSubmit() {
|
||||
|
||||
var frm = document.getElementById("auto_form");
|
||||
|
||||
frm.submit();
|
||||
|
||||
}
|
||||
|
||||
window.onload = formAutoSubmit;
|
||||
|
||||
</script>
|
||||
@endif
|
||||
|
||||
<img src="https://upload.wikimedia.org/wikipedia/commons/b/b1/Loading_icon.gif?20151024034921" alt="loading">
|
||||
<br>
|
||||
Bitte warten!
|
||||
|
||||
@endsection
|
||||
21
M5/emensa/views/m5_a1/layout_anmeldung.blade.php
Normal file
21
M5/emensa/views/m5_a1/layout_anmeldung.blade.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="DE">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Layout-m5-a1</title>
|
||||
</head>
|
||||
<body>
|
||||
<header class="header_7d">
|
||||
@yield("header")
|
||||
</header>
|
||||
|
||||
<main class="main">
|
||||
@yield("main")
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
@yield("footer")
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user