modernize look
This commit is contained in:
@@ -23,8 +23,8 @@ foreach($lastAttendances as $a){
|
||||
array_push( $lastAttendancesAssocArray[ $a['date'] ], $a );
|
||||
}
|
||||
|
||||
$dateLastWendsday = new DateTime("wednesday this week");
|
||||
$dateLastFriday = new DateTime("friday this week");
|
||||
$dateLastWendsday = new DateTime("tomorrow last wednesday");
|
||||
$dateLastFriday = new DateTime("tomorrow last friday");
|
||||
$lastTrainingDay = max($dateLastWendsday, $dateLastFriday);
|
||||
|
||||
?>
|
||||
@@ -34,18 +34,43 @@ $lastTrainingDay = max($dateLastWendsday, $dateLastFriday);
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@materializecss/materialize@1.1.0-alpha/dist/css/materialize.min.css">
|
||||
<!-- Compiled and minified JavaScript -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/@materializecss/materialize@1.1.0-alpha/dist/js/materialize.min.js"></script>
|
||||
|
||||
<!-- Inits for materializecss-->
|
||||
<script>
|
||||
options={};
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var elems = document.querySelectorAll('select');
|
||||
var instances = M.FormSelect.init(elems);
|
||||
});
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var elems = document.querySelectorAll('.modal');
|
||||
var instances = M.Modal.init(elems, options);
|
||||
});
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var elems = document.querySelectorAll('.sidenav');
|
||||
var instances = M.Sidenav.init(elems, options);
|
||||
});
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var elems = document.querySelectorAll('.collapsible');
|
||||
var instances = M.Collapsible.init(elems, options);
|
||||
});
|
||||
</script>
|
||||
|
||||
<!--Let browser know website is optimized for mobile-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
|
||||
<title>Corona-Anwesenheitsliste der Judoka des Chemnitzer WSV</title>
|
||||
</header>
|
||||
<body>
|
||||
<h1>Corona-Anwesenheitsliste der Judoka des Chemnitzer WSV</h1>
|
||||
<h2>Anwesenheiten hinzufügen</h2>
|
||||
<ul id="slide-out" class="sidenav">
|
||||
<li><a href="#addAttendences">Anwesenheiten hinzufügen</a></li>
|
||||
<li><a href="#addCoronaUser">Trainee hinzufügen</a></li>
|
||||
<li><a href="#showAttendences">Anwesenheiten anzeigen</a></li>
|
||||
</ul>
|
||||
<a href="#" data-target="slide-out" class="sidenav-trigger" style="font-size: 2em;">☰ mams</a>
|
||||
|
||||
<h2 id="addAttendences">Anwesenheiten hinzufügen</h2>
|
||||
|
||||
<form action="./index.php" method="POST">
|
||||
<div class="input-field">
|
||||
<input id="giveAttendanceAction" name="action" value="giveAttendance" type="hidden" />
|
||||
@@ -56,7 +81,28 @@ $lastTrainingDay = max($dateLastWendsday, $dateLastFriday);
|
||||
<input type="submit" value="Submit">
|
||||
</div>
|
||||
</form>
|
||||
<h2>Anwesenheiten</h2>
|
||||
|
||||
<h2 id="addCoronaUser">Corona-Trainee hinzufügen</h2>
|
||||
<?php
|
||||
if( array_key_exists('addCoronaUserSuccess', $_GET) ){
|
||||
if($_GET['addCoronaUserSuccess'] == "true"){
|
||||
echo("<div>Added user.</div>");
|
||||
}else{
|
||||
echo("<div>ERROR</div>");
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form action="." method="POST">
|
||||
<input name="action" value="addCoronaUser" type="hidden" />
|
||||
<input placeholder="Name" name="name" type="text" />
|
||||
<input placeholder="Vorname" name="vorname" type="text" />
|
||||
<input placeholder="PLZ" name="corona_PLZ" type ="text" />
|
||||
<input placeholder="Telefon" name="corona_telephon" type="text" />
|
||||
<input placeholder="eMail" name="corona_eMail" type="text" />
|
||||
<input type="submit" value="Neuen Corona-User eintragen" />
|
||||
</form>
|
||||
|
||||
<h2 id="showAttendences">Anwesenheiten</h2>
|
||||
<h3>Sende Anwesenheitsliste an eMail</h3>
|
||||
<form method="POST" action="." >
|
||||
<input name="toEmail" type="text" placeholder="toEmail" />
|
||||
@@ -86,15 +132,5 @@ $lastTrainingDay = max($dateLastWendsday, $dateLastFriday);
|
||||
echo("</table>");
|
||||
}
|
||||
?>
|
||||
<h2>Trainee hinzufügen</h2>
|
||||
<form action="." method="POST">
|
||||
<input name="action" value="addCoronaUser" type="hidden" />
|
||||
<input placeholder="Name" name="name" type="text" />
|
||||
<input placeholder="Vorname" name="vorname" type="text" />
|
||||
<input placeholder="PLZ" name="corona_PLZ" type ="text" />
|
||||
<input placeholder="Telefon" name="corona_telephon" type="text" />
|
||||
<input placeholder="eMail" name="corona_eMail" type="text" />
|
||||
<input type="submit" value="Neuen Corona-User eintragen" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user