html tidy + php css fixer afterwards

This commit is contained in:
Florian Pesth 2023-10-14 06:53:57 +02:00
parent 8256946c5f
commit 0972b25816
22 changed files with 2206 additions and 2156 deletions

View File

@ -12,18 +12,20 @@ if($AdminStatus != 1) {
exit; exit;
} }
?> ?>
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See</title> <title>Admin Drop am See</title>
<link rel="stylesheet" href="css/style_common.css"/> <link rel="stylesheet" href="css/style_common.css">
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> <link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media=
<meta name="viewport" content="width=480" /> "screen and (max-width:780px)">
<meta name="viewport" content="width=480">
</head> </head>
<body> <body>
<?php <?php
DatenbankAufDeutsch($db_link); DatenbankAufDeutsch($db_link);
@ -54,34 +56,54 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
} }
?> ?>
<div style="width: 100%;"> <div style="width: 100%;">
<table class="commontable"> <table class="commontable">
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button> &nbsp; <b>Admin HelferDB</b>
</th>
<tr> <tr>
<th><button name="BackHelferdaten" value="1"
onclick=
"window.location.href = 'index.php';"><b></b></button>
&nbsp; <b>Admin HelferDB</b></th>
</tr>
<tr>
<td></td>
</tr>
<tr onclick="window.location.href='AdminDienste.php';"> <tr onclick="window.location.href='AdminDienste.php';">
<td> <td>
<a class="fallbacklink" href='AdminDienste.php'><img src="Bilder/PfeilRunter.jpeg" style="width:30px;height:30px;"><b> Dienste und Schichten verwalten</b></a> <a class="fallbacklink" href=
'AdminDienste.php'><img src=
"Bilder/PfeilRunter.jpeg" style=
"width:30px;height:30px;"> <b>Dienste und
Schichten verwalten</b></a>
</td> </td>
</tr> </tr>
<tr onclick="window.location.href='CreateHelfer.php';"> <td> <tr onclick="window.location.href='CreateHelfer.php';">
<img src="Bilder/More.jpeg" style="width:30px;height:30px;"><b>Seite zur Helfer selbst-Registrierung</b> <td><img src="Bilder/More.jpeg" style=
</td> </tr> "width:30px;height:30px;"><b>Seite zur Helfer
selbst-Registrierung</b></td>
<tr onclick="window.location.href='EmailZuToken.php';"> <td> </tr>
<img src="Bilder/PfeilRunter.jpeg" style="width:30px;height:30px;"><b>Helfer per Link einladen</b> <tr onclick="window.location.href='EmailZuToken.php';">
</td> </tr> <td><img src="Bilder/PfeilRunter.jpeg" style=
<tr onclick="window.location.href='AdminHelferUebersicht.php';"> "width:30px;height:30px;"><b>Helfer per Link
einladen</b></td>
</tr>
<tr onclick=
"window.location.href='AdminHelferUebersicht.php';">
<td> <td>
<a class="fallbacklink" href='AdminHelferUebersicht.php'><img src="Bilder/PfeilRunter.jpeg" style="width:30px;height:30px;"><b>Helfer&uuml;bersicht</b></a> <a class="fallbacklink" href=
'AdminHelferUebersicht.php'><img src=
"Bilder/PfeilRunter.jpeg" style=
"width:30px;height:30px;"><b>Helferübersicht</b></a>
</td> </td>
</tr> </tr>
<tr>
<th><b>Helfer als Admin &auml;ndern:<b> <form style="display:inline-block;" method=post><select style="height:33px;width:350px;font-size:20" name="AliasHelfer" id="AliasHelfer" onchange="submit()"> <th>
<b>Helfer als Admin ändern:</b>
<form style="display:inline-block;" method=
"post">
<select style=
"height:33px;width:350px;font-size:20"
name="AliasHelfer" id="AliasHelfer"
onchange="submit()">
<?php <?php
$db_erg = HelferListe($db_link); $db_erg = HelferListe($db_link);
while($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) { while($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
@ -94,37 +116,61 @@ while($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
?> ?>
</select></form> </select>
</b> </form>
</td>
</th> </th>
<tr><!--td--> </tr>
<tr>
<!--td-->
<!--<table class="innertable" style="padding:15px"><!- <!--<table class="innertable" style="padding:15px"><!-
- inner table for indent--> - inner table for indent-->
<tr onclick="window.location.href='AdminUserdaten.php';"> </tr>
<tr onclick=
"window.location.href='AdminUserdaten.php';">
<!--td class="invis"></td--> <!--td class="invis"></td-->
<td><img src="Bilder/dot.png" width="30px" height="2px"><img src="Bilder/PfeilRunter.jpeg" style="width:30px;height:30px;"><b> Helferdaten &auml;ndern</b></td> <td><img src="Bilder/dot.png" width="30px" height=
"2px"><img src="Bilder/PfeilRunter.jpeg" style=
"width:30px;height:30px;"> <b>Helferdaten
ändern</b></td>
</tr> </tr>
<tr onclick="window.location.href='AdminMeineSchichten.php';"> <tr onclick=
<td><img src="Bilder/dot.png" width="30px" height="2px"><img src="Bilder/PfeilRunter.jpeg" style="width:30px;height:30px;"><b> Schichten Anzeigen/Löschen</b></td> "window.location.href='AdminMeineSchichten.php';">
<td><img src="Bilder/dot.png" width="30px" height=
"2px"><img src="Bilder/PfeilRunter.jpeg" style=
"width:30px;height:30px;"> <b>Schichten
Anzeigen/Löschen</b></td>
</tr> </tr>
<tr onclick="window.location.href='AdminAlleSchichten.php';"> <tr onclick=
<td><img src="Bilder/dot.png" width="30px" height="2px"><img src="Bilder/PfeilRunter.jpeg" style="width:30px;height:30px;"><b> Schichten Hinzufügen</b></td> "window.location.href='AdminAlleSchichten.php';">
<td><img src="Bilder/dot.png" width="30px" height=
"2px"><img src="Bilder/PfeilRunter.jpeg" style=
"width:30px;height:30px;"> <b>Schichten
Hinzufügen</b></td>
</tr> </tr>
<!--</table></td> </tr> inner table for indent end--> <!--</table></td> </tr> inner table for indent end-->
<!--<tr><th>Weiteres</th></tr>--> <!--<tr><th>Weiteres</th></tr>-->
<tr onclick="window.location.href='Kalender-all.html';"> <tr onclick=
<td><img src="Bilder/More.jpeg" style="width:30px;height:30px"><b> Admin Kalenderansicht</b> </td> "window.location.href='Kalender-all.html';">
<td><img src="Bilder/More.jpeg" style=
"width:30px;height:30px"> <b>Admin
Kalenderansicht</b></td>
</tr> </tr>
<tr onclick="window.location.href='Ausdrucke.php';"> <tr onclick="window.location.href='Ausdrucke.php';">
<td > <img src="Bilder/More.jpeg" style="width:30px;height:30px;"> <b>Ausdrucke</b> </td> <td><img src="Bilder/More.jpeg" style=
"width:30px;height:30px;"> <b>Ausdrucke</b></td>
</tr> </tr>
<tr onclick="window.location.href='TeilnehmerSchichtenAusdruck.php';"> <tr onclick=
<td > <img src="Bilder/More.jpeg" style="width:30px;height:30px;"> <b>Ausdruck Schichten</b> </td> "window.location.href='TeilnehmerSchichtenAusdruck.php';">
<td><img src="Bilder/More.jpeg" style=
"width:30px;height:30px;"> <b>Ausdruck
Schichten</b></td>
</tr> </tr>
</table> </table>
<p> <img src="Bilder/Info.jpeg" width="25px" height="25px"> Dienst: z.B. Badgekontrolle Eingang A. Schicht: ein Dienst zu einer bestimmten Zeit zB 9-12 Uhr <p><img src="Bilder/Info.jpeg" width="25px" height="25px">
</p> Dienst: z.B. Badgekontrolle Eingang A. Schicht: ein Dienst
<button class=back name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button> zu einer bestimmten Zeit zB 9-12 Uhr</p><button class=
"back" name="BackHelferdaten" value="1" onclick=
"window.location.href = 'index.php';"><b></b></button>
</div>
</body> </body>
</html> </html>

View File

@ -12,22 +12,27 @@ if($AdminStatus != 1) {
exit; exit;
} }
?> ?>
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Helfer Drop am See Alle Schichten</title> <title>Helfer Drop am See Alle Schichten</title>
<link rel="stylesheet" href="css/style_desktop.css" media=
"screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> <link rel="stylesheet" href="css/style_mobile.css" media=
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> "screen and (max-width:780px)">
<meta name="viewport" content="width=480" /> <meta name="viewport" content="width=480">
<script src="js/jquery-3.7.1.min.js" type="text/javascript"></script> <script src="js/jquery-3.7.1.min.js" type=
"text/javascript"></script>
<script src="js/helferdb.js" type="text/javascript"></script> <script src="js/helferdb.js" type="text/javascript"></script>
<script> collapse_table_rows(); <script>
collapse_table_rows();
</script> </script>
</head> </head>
<body> <body>
<button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> <button name="BackHelferdaten" value="1" onclick=
"window.location.href = 'Admin.php';"><b></b></button>
<div style="width: 100%;"> <div style="width: 100%;">
<?php <?php
@ -130,10 +135,6 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
?> ?>
<form method="post" action="AdminAlleSchichten.php#Info"> <form method="post" action="AdminAlleSchichten.php#Info">
<?php <?php
@ -431,9 +432,7 @@ mysqli_free_result($db_erg);
?> ?>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@ -12,15 +12,17 @@ if($AdminStatus != 1) {
exit; exit;
} }
?> ?>
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See</title> <title>Admin Drop am See</title>
<link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> <link rel="stylesheet" href="css/style_mobile.css" media=
"screen and (max-width:780px)">
<meta name="viewport" content="width=480" /> <meta name="viewport" content="width=480">
</head> </head>
<body> <body>
<div style="width: 100%;"> <div style="width: 100%;">
@ -136,11 +138,15 @@ if(isset($_POST['DienstSearch'])) {
// Dienste Anzeigen // Dienste Anzeigen
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
?> ?><button class="back" name="BackHelferdaten" value="1"
<button class=back name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> onclick=
"window.location.href = 'Admin.php';"><b></b></button>
<form method="post"> <form method="post">
<table border="0" id='customers'> <table border="0" id='customers'>
<tr><th> Dienst</th><th><select name="DienstSearch" id="DienstSearch" onchange="submit()"> <tr>
<th>Dienst</th>
<th><select name="DienstSearch" id=
"DienstSearch" onchange="submit()">
<?php <?php
@ -179,29 +185,6 @@ echo "<p><noscript><button name='ShowSchichten' value='1'>Schichten Anzeigen</bu
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
?> ?>
<table border="0" id="customers">
<tr>
<td style="border: 0px solid black;">Was</td></tr><tr><td style="border: 0px solid black;">
<input name="Dienst-Was" type="text" value="<?=htmlspecialchars($Was ?? '')?>">
</td>
</tr>
<tr>
<td style="border: 0px solid black;">Wo</td></tr><tr><td style="border: 0px solid black;">
<input name="Dienst-Wo" type="text " value="<?=htmlspecialchars($Wo ?? '')?>">
</td>
</tr>
</tr>
<td style="border: 0px solid black;">Info</td></tr><tr><td style="border: 0px solid black;">
<input name="Dienst-Info" type="text" value="<?=htmlspecialchars($Info ?? '')?>" >
</td>
</tr>
<tr>
<td style="border: 0px solid black;">Leiter</td></tr><tr><td style="border: 0px solid black;">
<!-- <input name="Dienst-Leiter" type="text" value="<?=htmlspecialchars($Leiter ?? '')?>" > --> <!-- <input name="Dienst-Leiter" type="text" value="<?=htmlspecialchars($Leiter ?? '')?>" > -->
<?php <?php
echo "<select name='Dienst-Leiter'>"; echo "<select name='Dienst-Leiter'>";
@ -216,13 +199,7 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
} }
} }
echo "</select>"; echo "</select>";
?> ?><?php
</td>
</tr>
<tr>
<td style="border: 0px solid black;">Gruppe</td></tr><tr><td style="border: 0px solid black;">
<?php
//echo "#####".$Gruppe."#####"; //echo "#####".$Gruppe."#####";
echo "<select name='Dienst-Gruppe'>"; echo "<select name='Dienst-Gruppe'>";
$db_erg = GetDiensteChilds($db_link, 0); $db_erg = GetDiensteChilds($db_link, 0);
@ -238,35 +215,32 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
} }
echo "</select>"; echo "</select>";
?> ?>
</td> <option value=
</td> "1" <?php if($HelferLevel == 1) {
echo "selected";
};?>>
Dauerhelfer
</option>
<option value=
"2" <?php if($HelferLevel == 2) {
echo "selected";
};?>>
Teilnehmer
</option><?php //todo: Name aus HelferLevel-Tabelle erhalten?>
</select></th>
</tr> </tr>
<tr><td style="border: 0px solid black;">HelferLevel</td></tr>
<tr><td style="border: 0px solid black;">
<select name="HelferLevel">
<option value="1" <?php if($HelferLevel == 1) {
echo "selected";
};?> >Dauerhelfer</option>
<option value="2" <?php if($HelferLevel == 2) {
echo "selected";
};?> >Teilnehmer</option>
<?php //todo: Name aus HelferLevel-Tabelle erhalten?>
</select>
</td></tr>
</table> </table>
<p><button name="ChangeDienst" value=
<p><button name="ChangeDienst" value="1">Ändern</button><button name="NewDienst" value="1">Neue</button><button name='DeleteDienst' value='1'>Löschen</button></p> "1">Ändern</button><button name="NewDienst" value=
"1">Neue</button><button name='DeleteDienst' value=
'1'>Löschen</button></p>
</form> </form>
<form method="post"> <form method="post">
<table border="0" id='customers'"> <table border="0" id='customers'>
<tr><th>Schicht</th><th><select name="SchichtSearch" id="SchichtSearch" onchange="submit()"> <tr>
<th>Schicht</th>
<th><select name="SchichtSearch" id=
"SchichtSearch" onchange="submit()">
<?php <?php
@ -294,36 +268,7 @@ echo "<p><noscript><button name='ShowSchicht' value='1'>Schicht Anzeigen</button
//echo "<button name='DeleteSchicht' value='1'>Schicht löschen</button>"; //echo "<button name='DeleteSchicht' value='1'>Schicht löschen</button>";
?> ?>
<!-- <table border="0" style="border: 0px solid black;"> --> <!-- <table border="0" style="border: 0px solid black;"> -->
<table border="0" id='customers'">
<tr>
<td style="border: 0px solid black;">Von</td></tr><tr><td style="border: 0px solid black;">
<input name="Schicht-Von" type="datetime-local" value="<?=htmlspecialchars($Von ?? '')?>" required>
</td>
<tr>
</tr>
<td style="border: 0px solid black;">Bis</td></tr><tr><td style="border: 0px solid black;">
<input name="Schicht-Bis" type="datetime-local" value="<?=htmlspecialchars($Bis ?? '')?>" required>
</td>
<tr>
</tr>
<td style="border: 0px solid black;">Soll</td></tr><tr><td style="border: 0px solid black;">
<input name="Schicht-Soll" type="number" min=1 value="<?=htmlspecialchars((int)$Soll ?? '')?>" required>
</td>
<tr>
</tr>
</table>
<p><button name="ChangeSchicht" value="1">Ändern</button><button name="NewSchicht" value="1">Neue</button><button name='DeleteSchicht' value='1'>Löschen</button></p>
</form>
<button class=back name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b><b>&larrhk;</b></b></button>
<?php <?php
@ -335,9 +280,10 @@ $_SESSION["SchichtID"] = $SchichtID;
?> ?>
</select></th>
</tr>
</table>
</form>
</div> </div>
</body> </body>
</html> </html>

View File

@ -12,16 +12,20 @@ if($AdminStatus != 1) {
exit; exit;
} }
?> ?>
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See</title> <title>Admin Drop am See</title>
<link rel="stylesheet" href="css/style_common.css">
<link rel="stylesheet" href="css/style_common.css"/> <link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> <link rel="stylesheet" href="css/style_mobile.css" media=
<meta name="viewport" content="width=480" /> "screen and (max-width:780px)">
<script src="js/jquery-3.7.1.min.js" type="text/javascript"></script> <meta name="viewport" content="width=480">
<script src="js/jquery-3.7.1.min.js" type=
"text/javascript"></script>
<script src="js/helferdb.js" type="text/javascript"></script> <script src="js/helferdb.js" type="text/javascript"></script>
<script> <script>
collapse_table_rows(); collapse_table_rows();
@ -67,8 +71,13 @@ if(isset($_POST['DienstSearch'])) {
echo "<br><br><table class='commontable' style='page-break-before:always'>"; echo "<br><br><table class='commontable' style='page-break-before:always'>";
?> ?>
<table>
<tr class="header"> <tr class="header">
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> &nbsp; <b>&Uuml;bersicht Helfer und Ihre Schichten</b></th> <th><button name="BackHelferdaten" value="1"
onclick=
"window.location.href = 'Admin.php';"><b></b></button>
&nbsp; <b>Übersicht Helfer und Ihre
Schichten</b></th>
</tr> </tr>
</table> </table>
<table class="commontable"> <table class="commontable">
@ -114,9 +123,7 @@ echo "$EinzelDienstStunden";
echo "</table>"; echo "</table>";
?> ?>
</table>
</div> </div>
</body> </body>
</html> </html>

View File

@ -12,18 +12,24 @@ if($AdminStatus != 1) {
exit; exit;
} }
?> ?>
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See - Schichten editieren</title> <title>Admin Drop am See - Schichten editieren</title>
<link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> <link rel="stylesheet" href="css/style_mobile.css" media=
"screen and (max-width:780px)">
<meta name="viewport" content="width=480" /> <meta name="viewport" content="width=480">
</head> </head>
<body> <body>
<div><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> <h4 style="display: inline;">Admin: Schichten editieren</h4> <div>
<button name="BackHelferdaten" value="1" onclick=
"window.location.href = 'Admin.php';"><b></b></button>
<h4 style="display: inline;">Admin: Schichten
editieren</h4>
<div style="width: 100%;"> <div style="width: 100%;">
<?php <?php
@ -160,10 +166,8 @@ if(isset($_POST['Del'])) {
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
?> ?>
<form method="post" action=
"AdminMeineSchichten.php#Info">
<form method="post" action="AdminMeineSchichten.php#Info">
<?php <?php
@ -266,9 +270,8 @@ mysqli_free_result($db_erg);
?> ?>
</form> </form>
</div> </div>
</div>
</body> </body>
</html> </html>

View File

@ -48,17 +48,19 @@ echo "Alias=$AliasHelferID<br>";
?> ?>
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Drop am See Helferdaten ändern</title> <title>Drop am See Helferdaten ändern</title>
<link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> <link rel="stylesheet" href="css/style_mobile.css" media=
<meta name="viewport" content="width=480" /> "screen and (max-width:780px)">
<meta name="viewport" content="width=480">
</head> </head>
<body> <body>
<?php <?php
@ -127,55 +129,66 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
} }
?> ?>
<form method="post"></form>
<table id="customers"> <table id="customers">
<tr> <tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> Helferdaten</th> <th><button name="BackHelferdaten" value="1" onclick=
</tr> "window.location.href = 'Admin.php';"><b></b></button>
<form method="post"> Helferdaten</th>
<tr>
<td>Name</td></tr><tr><td>
<input name="helfer-name" type="text" value="<?=htmlspecialchars($HelferName ?? '')?>" required>
</td>
</tr> </tr>
<tr> <tr>
<td>Email</td></tr><tr><td> <td>Name</td>
<input name="helfer-email" type="email " value="<?=htmlspecialchars($HelferEmail ?? '')?>" required>
</td>
</tr> </tr>
<tr> <tr>
<td>Handy</td></tr><tr><td> <td><input name="helfer-name" type="text" value=
<input name="helfer-handy" type="tel" value="<?=htmlspecialchars($HelferHandy ?? '')?>" > "&lt;?=htmlspecialchars($HelferName ?? '')?&gt;"
</td> required=""></td>
</tr> </tr>
<tr> <tr>
<td>Admin Passwort</td></tr><tr><td> <td>Email</td>
<input name="helfer-passwort" type="password" value="<?=htmlspecialchars($HelferPasswort ?? '')?>" >
</td>
</tr> </tr>
<tr> <tr>
<td>Neues Helfer Passwort</td></tr><tr><td> <td><input name="helfer-email" type="email" value=
<input name="helfer-newpasswort" type="text" value="<?=htmlspecialchars($HelferPasswort ?? '')?>" > "&lt;?=htmlspecialchars($HelferEmail ?? '')?&gt;"
</td> required=""></td>
</tr>
<tr>
<td>Handy</td>
</tr>
<tr>
<td><input name="helfer-handy" type="tel" value=
"&lt;?=htmlspecialchars($HelferHandy ?? '')?&gt;"></td>
</tr>
<tr>
<td>Admin Passwort</td>
</tr>
<tr>
<td><input name="helfer-passwort" type="password"
value="&lt;?=htmlspecialchars($HelferPasswort ?? '')?&gt;"></td>
</tr>
<tr>
<td>Neues Helfer Passwort</td>
</tr>
<tr>
<td><input name="helfer-newpasswort" type="text" value=
"&lt;?=htmlspecialchars($HelferPasswort ?? '')?&gt;"></td>
</tr> </tr>
</table> </table>
<table id="customers"> <table id="customers">
<col style="width:20px"> <col style="width:20px">
<tr> <tr>
<td><input type="checkbox" name="IsAdmin" value=1 align="right" <?php if($HelferIsAdmin == 1) { <td><input type="checkbox" name="IsAdmin" value="1"
align="right" <?php if($HelferIsAdmin == 1) {
echo" checked"; echo" checked";
}?>></td> }?>></td>
<td>ist Admin</td> <td>ist Admin</td>
</tr> </tr>
</table> </table>
<p><button name="change" style="width:150px !important" value="1">&Auml;ndern</button></p> <p><button name="change" style="width:150px !important" value=
<p><button name="del" style="width:150px !important" value="1">Helfer L&ouml;schen</button></p> "1">Ändern</button></p>
</form> <p><button name="del" style="width:150px !important" value=
<button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> "1">Helfer Löschen</button></p><button name="BackHelferdaten"
value="1" onclick=
"window.location.href = 'Admin.php';"><b></b></button>
</body> </body>
</html> </html>

View File

@ -1,21 +1,25 @@
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Helfer Drop am See Alle Schichten</title> <title>Helfer Drop am See Alle Schichten</title>
<link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> <link rel="stylesheet" href="css/style_mobile.css" media=
<meta name="viewport" content="width=480" /> "screen and (max-width:780px)">
<meta name="viewport" content="width=480">
<script src="js/jquery-3.7.1.min.js" type="text/javascript"></script> <script src="js/jquery-3.7.1.min.js" type=
"text/javascript"></script>
<script src="js/helferdb.js" type="text/javascript"></script> <script src="js/helferdb.js" type="text/javascript"></script>
<script> collapse_table_rows(); <script>
collapse_table_rows();
</script> </script>
</head> </head>
<body> <body>
<button name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button> <button name="BackHelferdaten" value="1" onclick=
<h1> Alle Schichten / Schichten hinzuf&uuml;gen </h1> "window.location.href = 'index.php';"><b></b></button>
<h1>Alle Schichten / Schichten hinzufügen</h1>
<div style="width: 100%;"> <div style="width: 100%;">
<?php <?php
@ -104,8 +108,6 @@ if(isset($_GET['ZeitBereich'])) {
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
?> ?>
<form method="post" action="AlleSchichten.php#Info"> <form method="post" action="AlleSchichten.php#Info">
<?php <?php
@ -395,9 +397,7 @@ mysqli_free_result($db_erg);
?> ?>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@ -1,19 +1,19 @@
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See</title> <title>Admin Drop am See</title>
<link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> <link rel="stylesheet" href="css/style_mobile.css" media=
<link rel="stylesheet" href="css/style_print.css" media="print"/> "screen and (max-width:780px)">
<link rel="stylesheet" href="css/style_print.css" media=
<meta name="viewport" content="width=480" /> "print">
<meta name="viewport" content="width=480">
</head> </head>
<body> <body>
<div style="width: 100%;"> <div style="width: 100%;">
<?php <?php
SESSION_START(); SESSION_START();
@ -33,15 +33,14 @@ include '_login.php';
?> ?>
<table id="customers"> <table id="customers">
<tr> <tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> &nbsp; <b>Übersicht Dienst DAS 2023</b></th> <th><button name="BackHelferdaten" value="1"
onclick=
"window.location.href = 'Admin.php';"><b></b></button>
&nbsp; <b>Übersicht Dienst DAS 2023</b></th>
</tr> </tr>
</table> </table><?php
<?php
echo '<table id="customers" >'; echo '<table id="customers" >';
@ -70,10 +69,14 @@ $db_erg = AlleSchichtenImZeitbereich($db_link, "2000-05-18 00:00:00", "2200-05-1
$OldWas = ""; $OldWas = "";
echo "<br><br><table id='customers' style='page-break-before:always'>"; echo "<br><br><table id='customers' style='page-break-before:always'>";
?> ?>
<table>
<tr> <tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> &nbsp; <b>Übersicht Schichten der Dienste DAS 2023</b></th> <th><button name="BackHelferdaten" value="1"
</tr> onclick=
<?php "window.location.href = 'Admin.php';"><b></b></button>
&nbsp; <b>Übersicht Schichten der Dienste DAS
2023</b></th>
</tr><?php
while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) { while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
$Was = $zeile["Was"]; $Was = $zeile["Was"];
@ -115,9 +118,12 @@ $OldHelferName = "";
echo "<br><br><table id='customers' style='page-break-before:always'>"; echo "<br><br><table id='customers' style='page-break-before:always'>";
?> ?>
<tr> <tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button> &nbsp; <b>Übersicht Helfer und Ihre Schichten DAS 2023</b></th> <th><button name="BackHelferdaten" value="1"
</tr> onclick=
<?php "window.location.href = 'Admin.php';"><b></b></button>
&nbsp; <b>Übersicht Helfer und Ihre Schichten DAS
2023</b></th>
</tr><?php
$db_erg = AlleHelferSchichtenUebersicht($db_link); $db_erg = AlleHelferSchichtenUebersicht($db_link);
while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) { while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
$HelferName = $zeile["Name"]; $HelferName = $zeile["Name"];
@ -146,15 +152,11 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
echo "</table>"; echo "</table>";
?> ?><?php
<?php
mysqli_free_result($db_erg); mysqli_free_result($db_erg);
?> ?>
</table>
</div>
</body> </body>
</html> </html>

View File

@ -1,16 +1,16 @@
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Drop Am See 2023</title> <title>Drop Am See 2023</title>
<link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> <link rel="stylesheet" href="css/style_mobile.css" media=
"screen and (max-width:780px)">
<meta name="viewport" content="width=480">
<meta name="viewport" content="width=480" />
</head> </head>
<body> <body>
<?php <?php
SESSION_START(); SESSION_START();
//$HelferID = $_SESSION["HelferId"]; //$HelferID = $_SESSION["HelferId"];
@ -100,10 +100,9 @@ if(isset($_POST['sent'])) {
?> ?>
<p>Hier können Sie sich selbst einen Account als Helfer
<p>Hier k&ouml;nnen Sie sich selbst einen Account als Helfer anlegen.</p> anlegen.</p>
<form method="post"> <form method="post">
<table id="customers"> <table id="customers">
<tr> <tr>
<th>Helferdaten</th> <th>Helferdaten</th>
@ -111,36 +110,49 @@ if(isset($_POST['sent'])) {
<tr> <tr>
<td>Name</td> <td>Name</td>
</tr> </tr>
<tr><td> <tr>
<input name="helfer-name" type="text" value="<?=htmlspecialchars($HelferName ?? '')?>" required> <td><input name="helfer-name" type="text" value=
</td></tr> "&lt;?=htmlspecialchars($HelferName ?? '')?&gt;"
required=""></td>
</tr>
<tr> <tr>
<td>Email</td> <td>Email</td>
</tr> </tr>
<tr><td> <tr>
<input name="helfer-email" type="email " value="<?=htmlspecialchars($HelferEmail ?? '')?>" required> <td><input name="helfer-email" type="email" value=
</td></tr> "&lt;?=htmlspecialchars($HelferEmail ?? '')?&gt;"
required=""></td>
</tr>
<tr> <tr>
<td>Handy</td> <td>Handy</td>
</tr> </tr>
<tr><td> <tr>
<input name="helfer-handy" type="tel" value="<?=htmlspecialchars($HelferHandy ?? '')?>" > <td><input name="helfer-handy" type="tel" value=
</td> "&lt;?=htmlspecialchars($HelferHandy ?? '')?&gt;"></td>
</tr> </tr>
<tr> <tr>
<td>Passwort</td></tr> <td>Passwort</td>
<tr><td>
<input name="helfer-passwort" type="password" value="<?=htmlspecialchars($HelferPasswort ?? '')?>" required>
</td>
</tr> </tr>
<tr><td>Passwort wiederholen </td></tr> <tr>
<tr><td> <td><input name="helfer-passwort" type="password"
<input name="helfer-passwort2" type="password" value="<?=htmlspecialchars($HelferPasswort2 ?? '')?>" required> value=
</td> "&lt;?=htmlspecialchars($HelferPasswort ?? '')?&gt;"
required=""></td>
</tr> </tr>
<tr><td>Helferlevel </td></tr> <tr>
<tr><td> <td>Passwort wiederholen</td>
<select name="helfer-level"> </tr>
<tr>
<td><input name="helfer-passwort2" type="password"
value=
"&lt;?=htmlspecialchars($HelferPasswort2 ?? '')?&gt;"
required=""></td>
</tr>
<tr>
<td>Helferlevel</td>
</tr>
<tr>
<td><select name="helfer-level">
<?php <?php
$db_erg = HelferLevel($db_link); $db_erg = HelferLevel($db_link);
$selected = ""; $selected = "";
@ -154,23 +166,13 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
$selected = ""; $selected = "";
} }
?> ?>
</select> </select></td>
</td>
</tr> </tr>
</table> </table><br>
<br>
<button name="sent" value="1">Helfer Anlegen</button> <button name="sent" value="1">Helfer Anlegen</button>
</form><?php
</form>
<?php
mysqli_free_result($db_erg); mysqli_free_result($db_erg);
?> ?>
</body> </body>
</html> </html>

View File

@ -1,8 +1,11 @@
<!doctype html> <!DOCTYPE html>
<html> <html>
<head></head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title></title>
</head>
<body> <body>
<?php <?php
require_once('konfiguration.php'); require_once('konfiguration.php');
@ -43,4 +46,5 @@ if(isset($_GET['token'])) {
} }
?> ?>
</body></html> </body>
</html>

View File

@ -82,70 +82,78 @@ if(isset($_POST['sendmail'])) {
?> ?>
<!doctype html> <!DOCTYPE html>
<html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Helfer Drop am See: Email Tokens generieren</title> <title>Helfer Drop am See: Email Tokens generieren</title>
<link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> <link rel="stylesheet" href="css/style_mobile.css" media=
<meta name="viewport" content="width=480" /> "screen and (max-width:780px)">
<meta name="viewport" content="width=480">
</head> </head>
<body> <body>
<?php <?php
?> ?><button name="BackHelferdaten" value="1" onclick=
"window.location.href = 'Admin.php';"><b></b></button>
<button name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button>
<div style="width: 100%;"> <div style="width: 100%;">
<p> <h2>Emails mit Login-Link zur HelferDB
<h2> Emails mit Login-Link zur HelferDB generieren </h2> generieren</h2>Generiert Tokens (bzw URLs mit Token) aus
Generiert Tokens (bzw URLs mit Token) aus einer Liste von Email-Addressen. <br> einer Liste von Email-Addressen.<br>
Bei Klick auf den generierten Link wird sofort ein Account zur Email angelegt. <br> Bei Klick auf den generierten Link wird sofort ein Account
Als Passwort wird das Token gesetzt. Man kann sich mit dem Link danach wieder in den selben Account einloggen. zur Email angelegt.<br>
</p> Als Passwort wird das Token gesetzt. Man kann sich mit dem
<p> Link danach wieder in den selben Account einloggen.
!! Emails werden erst verschickt, wenn die Checkbox unten angeklickt ist <p>!! Emails werden erst verschickt, wenn die Checkbox
</p> unten angeklickt ist</p>
<form method="post" action="EmailZuToken.php">
<form method="POST" action="EmailZuToken.php"> <p><label for="helfer-status">Status des Accounts, den
<p> der Link erstellt:</label> <select style="width:260px"
<label for="helfer-status">Status des Accounts, den der Link erstellt:</label> id="helfer-status" name="helfer-status">
<select style="width:260px" id="helfer-status" name="helfer-status">
<!-- TODO: aus DB abfragen --> <!-- TODO: aus DB abfragen -->
<option value="2" <?php if($level == 2) { <option value="2" <?php if($level == 2) {
echo "selected"; echo "selected";
}?>>Teilnehmer</option> }?>>
Teilnehmer
</option>
<option value="1" <?php if($level == 1) { <option value="1" <?php if($level == 1) {
echo "selected"; echo "selected";
}?>>Dauerhelfer</option> }?>>
</select> Dauerhelfer
</p><p> </option>
Subject der Email: <br> </select></p>
<input id="email-subject" name="email-subject" type="textbox" value="<?=htmlspecialchars($email_subject ?? '');?>"> <p>Subject der Email:<br>
</p><p> <input id="email-subject" name="email-subject" type=
CC (Kopie) der Email geht an: <br> "textbox" value=
<input id="email-cc" name="email-cc" type="textbox" value="drophelfer@gmail.com"> "&lt;?=htmlspecialchars($email_subject ?? '');?&gt;"></p>
</p><p> <p>CC (Kopie) der Email geht an:<br>
Emailtext (XXtokenXX an die Stelle schreiben, an der der Link im Emailtext stehen soll): <input id="email-cc" name="email-cc" type="textbox"
</p><p> value="drophelfer@gmail.com"></p>
<textarea id="email-text" name="email-text" rows="20" cols="80"> <p>Emailtext (XXtokenXX an die Stelle schreiben, an der
<?=htmlspecialchars($email_text ?? '');?> der Link im Emailtext stehen soll):</p>
</textarea>
</p>
<p> <p>
Liste von Emails, an die Anschreiben verschickt wird (Eine Email pro Zeile, nur die Email xxx@yyy.zz, keine Leerzeichen):<br> <textarea id="email-text" name="email-text" rows="20"
<textarea id="helfer-email-liste" name="helfer-email-liste" rows="20" cols="80"></textarea> <br> cols="80"><?=htmlspecialchars($email_text ?? '');?>
</p>
</textarea></p>
<p>Liste von Emails, an die Anschreiben verschickt wird
(Eine Email pro Zeile, nur die Email xxx@yyy.zz, keine
Leerzeichen):<br>
<textarea id="helfer-email-liste" name=
"helfer-email-liste" rows="20" cols=
"80"></textarea><br></p>
<div> <div>
<input type="checkbox" id="sendmail" name="sendmail" value="1" style="align:left;width:40px;!important"> <input type="checkbox" id="sendmail" name=
<label for="sendmail">Emails verschicken</label> "sendmail" value="1" style=
</div> "align:left;width:40px;!important"> <label for=
<br> "sendmail">Emails verschicken</label>
<button name="email-liste" value="1">Token generieren</button> </div><br>
</form> <button name="email-liste" value="1">Token
</p> generieren</button>
<?php </form><?php
if(isset($_POST['email-liste'])) { if(isset($_POST['email-liste'])) {
// TODO: check if email-text contains tokentext to substitute // TODO: check if email-text contains tokentext to substitute
@ -192,13 +200,7 @@ if(isset($_POST['email-liste'])) {
} }
?> ?><!--Einzelne Email
</body>
</html>
<!--Einzelne Email
<p> <p>
<form method="GET"> <form method="GET">
<input id="helfer-email" name="helfer-email" type="textbox" value="<?=htmlspecialchars($HelferEmail ?? '')?>"> <input id="helfer-email" name="helfer-email" type="textbox" value="<?=htmlspecialchars($HelferEmail ?? '')?>">
@ -206,7 +208,6 @@ if(isset($_POST['email-liste'])) {
</form> </form>
</p> </p>
--> -->
<?php <?php
//single email //single email
#if(isset($_GET['helfer-email'])) { #if(isset($_GET['helfer-email'])) {
@ -221,3 +222,6 @@ if(isset($_POST['email-liste'])) {
#} #}
?> ?>
</div>
</body>
</html>

View File

@ -1,12 +1,16 @@
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Helfer Drop am See Home</title> <title>Helfer Drop am See Home</title>
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> <link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> "screen and (min-width:781px)">
<meta http-equiv="Refresh" content="0; url=<?php require_once('konfiguration.php'); <link rel="stylesheet" href="css/style_mobile.css" media=
echo INFORMATIONS_URL;?>" /> "screen and (max-width:780px)">
<meta name="viewport" content="width=480" /> <meta http-equiv="Refresh" content=
"0; url=&lt;?php require_once('konfiguration.php'); echo INFORMATIONS_URL;?&gt;">
<meta name="viewport" content="width=480">
</head> </head>
<body> <body>
<!-- hier Infos zur eigenen Con oder Helferdiensten allgemein angeben --> <!-- hier Infos zur eigenen Con oder Helferdiensten allgemein angeben -->

View File

@ -1,13 +1,18 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Helferdienste</title> <title>Helferdienste</title>
<meta charset="utf-8"> <meta charset="utf-8">
<!--meta name="viewport" content="width=device-width, initial-scale=1 ,user-scalable=1"--> <!--meta name="viewport" content="width=device-width, initial-scale=1 ,user-scalable=1"-->
<script src="scheduler/codebase/dhtmlxscheduler.js"></script> <script src="scheduler/codebase/dhtmlxscheduler.js"></script>
<!-- link href="scheduler/codebase/dhtmlxscheduler_contrast_black.css" rel="stylesheet" type="text/css" charset="utf-8"--> <!-- link href="scheduler/codebase/dhtmlxscheduler_contrast_black.css" rel="stylesheet" type="text/css" charset="utf-8"-->
<link href="scheduler/codebase/dhtmlxscheduler.css" rel="stylesheet" type="text/css" charset="utf-8"> <link href="scheduler/codebase/dhtmlxscheduler.css" rel=
<link rel="stylesheet" href="../scheduler/samples/common/controls_styles.css"> "stylesheet" type="text/css" charset="utf-8">
<link rel="stylesheet" href=
"../scheduler/samples/common/controls_styles.css">
<style> <style>
html, body{ html, body{
@ -18,8 +23,7 @@
} }
</style> </style><!-- darkstyle
<!-- darkstyle
style type="text/css" > style type="text/css" >
.filters_wrapper { .filters_wrapper {
background-color: black; background-color: black;
@ -39,31 +43,38 @@
padding-right: 15px; padding-right: 15px;
} }
</style--> </style-->
</head> </head>
<body> <body>
<button name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button><br> <button name="BackHelferdaten" value="1" onclick=
"window.location.href = 'index.php';"><b></b></button><br>
<div class="filters_wrapper" id="filters_wrapper"> <div class="filters_wrapper" id="filters_wrapper">
&nbsp; &nbsp; Mehrtagesdienste anzeigen: <input id="multidaycheck"
Mehrtagesdienste anzeigen: <input id="multidaycheck" class="sch_radio" type="checkbox" checked onchange="toggleMultiday(this)"> class="sch_radio" type="checkbox" checked onchange=
Einfärben: <input type="text" id="colorize"> <!--onchange="markEntries(this.value);" onpaste = "this.onchange();" onsubmit="markEntries(this.value);"--> "toggleMultiday(this)"> Einfärben: <input type="text" id=
Filtern: <input type="text" id="filterWrap"> "colorize">
<br/> <!--onchange="markEntries(this.value);" onpaste = "this.onchange();" onsubmit="markEntries(this.value);"-->
Achtung: Ende Nachtdienste wird falsch angezeigt (immer Mitternacht) - Popup-Fenster zeigt richtige Zeiten Filtern: <input type="text" id="filterWrap"><br>
Achtung: Ende Nachtdienste wird falsch angezeigt (immer
Mitternacht) - Popup-Fenster zeigt richtige Zeiten
</div> </div>
<div id="scheduler_here" class="dhx_cal_container" style=
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'> 'width:100%; height:100%;'>
<div class="dhx_cal_navline"> <div class="dhx_cal_navline">
<div class="dhx_cal_prev_button">&nbsp;</div> <div class="dhx_cal_prev_button">
<div class="dhx_cal_next_button">&nbsp;</div> &nbsp;
</div>
<div class="dhx_cal_next_button">
&nbsp;
</div>
<div class="dhx_cal_today_button"></div> <div class="dhx_cal_today_button"></div>
<div class="dhx_cal_date"></div> <div class="dhx_cal_date"></div>
<div class="dhx_cal_tab" name="day_tab"></div> <div class="dhx_cal_tab" name="day_tab"></div>
<div class="dhx_cal_tab" name="week_tab"></div> <div class="dhx_cal_tab" name="week_tab"></div>
<div class="dhx_cal_tab" name="month_tab"></div> <div class="dhx_cal_tab" name="month_tab"></div>
<div class="dhx_cal_tab" data-tab="con" style="right:280px;"></div> <div class="dhx_cal_tab" data-tab="con" style=
<div class="dhx_cal_tab" data-tab="prep" style="right:280px;" ></div> "right:280px;"></div>
<div class="dhx_cal_tab" data-tab="prep" style=
"right:280px;"></div>
</div> </div>
<div class="dhx_cal_header"></div> <div class="dhx_cal_header"></div>
<div class="dhx_cal_data"></div> <div class="dhx_cal_data"></div>

View File

@ -1,14 +1,18 @@
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See</title> <title>Admin Drop am See</title>
<link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> <link rel="stylesheet" href="css/style_mobile.css" media=
<meta name="viewport" content="width=480" /> "screen and (max-width:780px)">
<meta name="viewport" content="width=480">
</head> </head>
<body> <body>
<button name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button> <button name="BackHelferdaten" value="1" onclick=
"window.location.href = 'index.php';"><b></b></button>
<div style="width: 100%;"> <div style="width: 100%;">
<?php <?php
@ -127,31 +131,38 @@ if(!isset($_SESSION["HelferID"])) {
?> ?>
<form method="post" action="#Info"> <form method="post" action="#Info">
<fieldset> <fieldset>
<legend>Login</legend> <legend>Login</legend>
<table border="0" style="border: 0px solid black;"> <table border="0" style="border: 0px solid black;">
<tr> <tr>
<td style="border: 0px solid black;">Email</td></tr><tr><td style="border: 0px solid black;"> <td style="border: 0px solid black;">
<input name="helfer-email" type="text" value="<?=htmlspecialchars($HelferEmail ?? '')?>" required> Email</td>
</td> </tr>
<tr> <tr>
<td style="border: 0px solid black;">
<input name="helfer-email" type="text"
value=
"&lt;?=htmlspecialchars($HelferEmail ?? '')?&gt;"
required=""></td>
</tr>
<tr> <tr>
<td style="border: 0px solid black;">Passwort</td></tr><tr><td style="border: 0px solid black;"> <td></td>
<input name="helfer-passwort" type="password" value="<?=htmlspecialchars($HelferHandy ?? '')?>" required> </tr>
</td>
<tr> <tr>
<td style="border: 0px solid black;">
Passwort</td>
</tr>
<tr>
<td style="border: 0px solid black;">
<input name="helfer-passwort" type=
"password" value=
"&lt;?=htmlspecialchars($HelferHandy ?? '')?&gt;"
required=""></td>
</tr>
</table> </table>
</fieldset> </fieldset>
<p><button name="login" value="1">Login</button></p> <p><button name="login" value="1">Login</button></p>
</form><?php
</form>
<?php
exit; exit;
} }
@ -221,9 +232,6 @@ if(isset($_POST['Del'])) {
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
?> ?>
<form method="post" action="MeineSchichten.php#Info"> <form method="post" action="MeineSchichten.php#Info">
<?php <?php
@ -327,9 +335,7 @@ mysqli_free_result($db_erg);
?> ?>
</form> </form>
</div> </div>
</body> </body>
</html> </html>

View File

@ -1,10 +1,13 @@
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Helfer - Logs</title> <title>Helfer - Logs</title>
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> <link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media=
"screen and (max-width:780px)">
<!--meta name="viewport" content="width=480" /--> <!--meta name="viewport" content="width=480" /-->
<?php <?php
require_once('konfiguration.php'); require_once('konfiguration.php');
@ -56,6 +59,7 @@ foreach(file(LOGFILE) as $line) {
} }
} }
?> ?>
</table> </head>
<body>
</body> </body>
</html> </html>

View File

@ -1,4 +1,3 @@
<?php <?php
require_once('konfiguration.php'); require_once('konfiguration.php');
@ -861,4 +860,13 @@ function DebugAusgabeDbErgebnis($db_erg)
?> ?>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title></title>
</head>
<body>
</body>
</html>

View File

@ -1,4 +1,3 @@
<?php <?php
SESSION_START(); SESSION_START();
@ -93,3 +92,13 @@ if($success == 1 && $email != "") {
exit; exit;
} }
?> ?>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title></title>
</head>
<body>
</body>
</html>

View File

@ -1,14 +1,16 @@
<!doctype html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Drop am See Helferdaten ändern</title> <title>Drop am See Helferdaten ändern</title>
<link rel="stylesheet" href="css/style_desktop.css" media=
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> "screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/> <link rel="stylesheet" href="css/style_mobile.css" media=
<meta name="viewport" content="width=480" /> "screen and (max-width:780px)">
<meta name="viewport" content="width=480">
</head> </head>
<body> <body>
<?php <?php
SESSION_START(); SESSION_START();
@ -113,45 +115,53 @@ if(isset($_POST['login'])) {
} }
?> ?>
<form method="post"></form>
<table id="customers"> <table id="customers">
<tr> <tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button> Helferdaten</th> <th><button name="BackHelferdaten" value="1" onclick=
</tr> "window.location.href = 'index.php';"><b></b></button>
<form method="post"> Helferdaten</th>
<tr>
<td>Name</td></tr><tr><td>
<input name="helfer-name" type="text" value="<?=htmlspecialchars($HelferName ?? '')?>" required>
</td>
</tr> </tr>
<tr> <tr>
<td>Email</td></tr><tr><td> <td>Name</td>
<input name="helfer-email" type="email " value="<?=htmlspecialchars($HelferEmail ?? '')?>" required>
</td>
</tr> </tr>
<tr> <tr>
<td>Handy</td></tr><tr><td> <td><input name="helfer-name" type="text" value=
<input name="helfer-handy" type="tel" value="<?=htmlspecialchars($HelferHandy ?? '')?>" > "&lt;?=htmlspecialchars($HelferName ?? '')?&gt;"
</td> required=""></td>
</tr> </tr>
<tr> <tr>
<td>Altes Helfer Passwort</td></tr><tr><td> <td>Email</td>
<input name="helfer-passwort" type="password" value="<?=htmlspecialchars($HelferPasswort ?? '')?>" >
</td>
</tr> </tr>
<tr> <tr>
<td>Neues Helfer Passwort</td></tr><tr><td> <td><input name="helfer-email" type="email" value=
<input name="helfer-newpasswort" type="text" value="<?=htmlspecialchars($HelferPasswort ?? '')?>" > "&lt;?=htmlspecialchars($HelferEmail ?? '')?&gt;"
</td> required=""></td>
</tr>
<tr>
<td>Handy</td>
</tr>
<tr>
<td><input name="helfer-handy" type="tel" value=
"&lt;?=htmlspecialchars($HelferHandy ?? '')?&gt;"></td>
</tr>
<tr>
<td>Altes Helfer Passwort</td>
</tr>
<tr>
<td><input name="helfer-passwort" type="password"
value="&lt;?=htmlspecialchars($HelferPasswort ?? '')?&gt;"></td>
</tr>
<tr>
<td>Neues Helfer Passwort</td>
</tr>
<tr>
<td><input name="helfer-newpasswort" type="text" value=
"&lt;?=htmlspecialchars($HelferPasswort ?? '')?&gt;"></td>
</tr> </tr>
</table> </table>
<p><button name="change" style="width:150px !important" value=
<p><button name="change" style="width:150px !important" value="1">&Auml;ndern</button></p> "1">Ändern</button></p><button name="BackHelferdaten" value="1"
</form> onclick="window.location.href = 'index.php';"><b></b></button>
<button name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button>
</body> </body>
</html> </html>

View File

@ -1,65 +1,10 @@
<?php <!DOCTYPE html>
<html>
function encode_string($key, $email, $level, $verification) <head>
{ <meta name="generator" content=
// String verification anfuegen am Ende, um abgeschnittene URLs zu verhindern "HTML Tidy for HTML5 for Linux version 5.6.0">
$token_content = $email . '|' . $level . '|' . $verification; <title></title>
</head>
// Erstellen eines Cipher-Objekts für die Verschlüsselung <body>
$cipher_method = "AES-256-CBC"; </body>
$iv_length = openssl_cipher_iv_length($cipher_method); </html>
$iv = openssl_random_pseudo_bytes($iv_length);
$cipher_options = OPENSSL_RAW_DATA;
// sha256 hash des passworts, damit das Geheimnis lang genug ist
$cipher_key = openssl_digest($key, 'SHA256', true);
$cipher_text = openssl_encrypt($token_content, $cipher_method, $cipher_key, $cipher_options, $iv);
if(isset($debug)) {
echo "<br>encode: cipher:".chunk_split(bin2hex($cipher_text), 4, ' ')." <br>iv:".chunk_split(bin2hex($iv), 4, ' ')." <br>iv_length:$iv_length<br>cipher_key ".chunk_split(bin2hex($cipher_key), 4, ' ')."<br>";
}
$cipher_text = $iv . $cipher_text;
// verschlüsselter Textes als base64 und dann noch mit urlencode, weil base64 zB + enthaelt
$encrypted_data = urlencode(base64_encode($cipher_text));
return $encrypted_data;
}
function decode_string($key, $encrypted_data, $verification)
{
// Entschlüsseln des verschuesselten Textes
// erst base64 entfernen - urldecode muss wenn noetig vorher angewendet werden
$decoded_cipher_text = base64_decode($encrypted_data);
// iv vom Anfang abtrennen
$cipher_method = "AES-256-CBC";
$iv_length = openssl_cipher_iv_length($cipher_method);
$iv = substr($decoded_cipher_text, 0, $iv_length);
$cipher_text = substr($decoded_cipher_text, $iv_length);
$cipher_options = OPENSSL_RAW_DATA;
$cipher_key = openssl_digest($key, 'SHA256', true);
if(isset($debug)) {
echo "<br>decode: cipher:".chunk_split(bin2hex($cipher_text), 4, ' '). " <br>iv:".chunk_split(bin2hex($iv), 4, ' '). " <br>iv_length:$iv_length<br>cipher_key ". chunk_split(bin2hex($cipher_key), 4, ' ');
}
$decrypted_data = openssl_decrypt($cipher_text, $cipher_method, $cipher_key, $cipher_options, $iv);
if(isset($debug)) {
echo "<br> decrypted_data " . $decrypted_data." end<br>";
}
$verification_length = strlen($verification);
if(substr($decrypted_data, -$verification_length) == $verification) {
list($email, $level, $verification_code) = explode('|', $decrypted_data);
return array(
'email' => $email,
'level' => $level,
'success' => 1
);
} else {
error_log("Verschlüsseltes Token enthielt den Verifikationscode nicht: $decrypted_data<br>\n");
return array(
'success' => 0
);
}
}

View File

@ -42,35 +42,52 @@ if(isset($_POST['login'])) {
if(!isset($_SESSION["HelferID"])) { if(!isset($_SESSION["HelferID"])) {
?> ?>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title></title>
</head>
<body>
<form method="post" action="#Info"> <form method="post" action="#Info">
<fieldset> <fieldset>
<legend>Login</legend> <legend>Login</legend>
<table border="0" style="border: 0px solid black;"> <table border="0" style="border: 0px solid black;">
<tr> <tr>
<td style="border: 0px solid black;">Email</td></tr><tr><td style="border: 0px solid black;"> <td style="border: 0px solid black;">Email</td>
<input name="helfer-email" type="text" size=35 value="<?=htmlspecialchars($HelferEmail ?? '')?>" required> </tr>
</td>
<tr> <tr>
<td style="border: 0px solid black;">
<input name="helfer-email" type="text" size=
"35" value=
"&lt;?=htmlspecialchars($HelferEmail ?? '')?&gt;"
required=""></td>
</tr>
<tr> <tr>
<td style="border: 0px solid black;">Passwort</td></tr> <td></td>
<tr><td style="border: 0px solid black;"> </tr>
<input name="helfer-passwort" id="helfer-passwort" type="password" size=35 value="<?=htmlspecialchars($HelferHandy ?? '')?>" required>
</td><td style="border: 0px solid black;">
<input type="button" value="Passwort zeigen" style="width:180px !important" onclick="showPassword('helfer-passwort')">
</td>
<tr> <tr>
<td style="border: 0px solid black;">
Passwort</td>
</tr>
<tr>
<td style="border: 0px solid black;">
<input name="helfer-passwort" id=
"helfer-passwort" type="password" size="35"
value=
"&lt;?=htmlspecialchars($HelferHandy ?? '')?&gt;"
required=""></td>
<td style="border: 0px solid black;">
<input type="button" value="Passwort zeigen"
style="width:180px !important" onclick=
"showPassword('helfer-passwort')"></td>
</tr>
</table> </table>
</fieldset> </fieldset>
<p><button style="width: 100px" name="login" value=
<p><button style="width: 100px" name="login" value="1">Login</button></p> "1">Login</button></p>
</form><?php
</form>
<?php
exit; exit;
} }
@ -82,3 +99,5 @@ $AdminID = $_SESSION["AdminID"];
$HelferIsAdmin = $AdminStatus = $_SESSION["AdminStatus"]; $HelferIsAdmin = $AdminStatus = $_SESSION["AdminStatus"];
$HelferLevel = $_SESSION["HelferLevel"]; $HelferLevel = $_SESSION["HelferLevel"];
?> ?>
</body>
</html>

View File

@ -1,15 +1,18 @@
<!doctype html> <!DOCTYPE html>
<html lang=de> <html lang="de">
<head> <head>
<title>Helfer Drop am See Home</title> <meta name="generator" content=
<link rel="stylesheet" href="css/style_desktop.css" media="screen and (min-width:781px)"/> "HTML Tidy for HTML5 for Linux version 5.6.0">
<link rel="stylesheet" href="css/style_mobile.css" media="screen and (max-width:780px)"/>
<script src=js/helferdb.js></script>
<meta name="viewport" content="width=480" />
<meta charset="utf-8"> <meta charset="utf-8">
<title>Helfer Drop am See Home</title>
<link rel="stylesheet" href="css/style_desktop.css" media=
"screen and (min-width:781px)">
<link rel="stylesheet" href="css/style_mobile.css" media=
"screen and (max-width:780px)">
<script src="js/helferdb.js"></script>
<meta name="viewport" content="width=480">
</head> </head>
<body> <body>
<?php <?php
SESSION_START(); SESSION_START();
@ -37,31 +40,32 @@ include '_login.php';
//} //}
?> ?>
<div style="width: 100%;"> <div style="width: 100%;">
<table id="customers"> <table id="customers">
<tr onclick="window.location.href='Info.php';"> <tr onclick="window.location.href='Info.php';">
<th><img src="Bilder/Info.jpeg" style="width:30px;height:30px;"> &nbsp; <b>Drop am See 2023</b></th> <th><img src="Bilder/Info.jpeg" style=
"width:30px;height:30px;"> &nbsp; <b>Drop am See
2023</b></th>
</tr> </tr>
<tr onclick="window.location.href='Userdaten.php';"> <tr onclick="window.location.href='Userdaten.php';">
<td > <img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"> <td><img src="Bilder/PfeilRechts2.jpeg" style=
<b> "width:30px;height:30px;"> <b><?php
<?php
if($HelferIsAdmin) { if($HelferIsAdmin) {
echo "Admin "; echo "Admin ";
} else { } else {
echo "Helfer "; echo "Helfer ";
} }
echo $HelferName; echo $HelferName;
?> ?></b></td>
</b> </td>
</tr> </tr>
<tr onclick="window.location.href='MeineSchichten.php';"> <tr onclick=
"window.location.href='MeineSchichten.php';">
<td> <td>
<img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"> <b>Nächste Helferschichten:</b> <img src="Bilder/PfeilRechts2.jpeg" style=
"width:30px;height:30px;"> <b>Nächste
<ul style="display: block; list-style-type: none; margin-left: 20px;margin-top: 0px;margin-bottom: 0px"> Helferschichten:</b>
<ul style=
"display: block; list-style-type: none; margin-left: 20px;margin-top: 0px;margin-bottom: 0px">
<?php <?php
//<li>Fr 08:00 Leitung Halle</li> //<li>Fr 08:00 Leitung Halle</li>
//<li>So 12:00 Abbau</li> //<li>So 12:00 Abbau</li>
@ -85,11 +89,8 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC) and $iCount < 3) {
?> ?>
</ul> </ul>
</td> </td>
</tr> </tr><!--
<!--
<tr onclick="window.location.href='Ereignisse.php';"> <tr onclick="window.location.href='Ereignisse.php';">
<td> <td>
<img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"> <b>Nächste Ereignisse:</b> <img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"> <b>Nächste Ereignisse:</b>
@ -122,37 +123,35 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC) and $iCount < 3) {
</td> </td>
</tr> </tr>
--> -->
<tr onclick="window.location.href='AlleSchichten.php';"> <tr onclick=
<td><img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"><b>Schicht Hinzufügen</b></td> "window.location.href='AlleSchichten.php';">
<td><img src="Bilder/PfeilRechts2.jpeg" style=
"width:30px;height:30px;"><b>Schicht
Hinzufügen</b></td>
</tr> </tr>
<tr onclick="window.location.href='Kalender.php';"> <tr onclick="window.location.href='Kalender.php';">
<td><img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"><b> Kalenderansicht</b></td> <td><img src="Bilder/PfeilRechts2.jpeg" style=
"width:30px;height:30px;">
<b>Kalenderansicht</b></td>
</tr> </tr>
<tr onclick="window.location.href='ReadLog.php';"> <tr onclick="window.location.href='ReadLog.php';">
<td><img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"><b> Logs</b></td> <td><img src="Bilder/PfeilRechts2.jpeg" style=
"width:30px;height:30px;"> <b>Logs</b></td>
</tr> </tr><?php
<?php
if ($HelferIsAdmin) { if ($HelferIsAdmin) {
?> ?>
<tr onclick="window.location.href='Admin.php';"> <tr onclick="window.location.href='Admin.php';">
<td><img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"><b> Admin</b></td> <td><img src="Bilder/PfeilRechts2.jpeg" style=
"width:30px;height:30px;"> <b>Admin</b></td>
</tr> </tr><?php
<?php
} }
?> ?>
<tr onclick=
"window.location.href='index.php?logout=1';">
<td><img src="Bilder/PfeilRechts2.jpeg" style=
"width:30px;height:30px;"> <b>Logout</b></td>
</tr> </tr>
<tr onclick="window.location.href='index.php?logout=1';">
<td><img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"><b> Logout</b></td>
</tr>
</table> </table>
</div>
</body> </body>
</html> </html>

View File

@ -1,4 +1,3 @@
<?php <?php
// datenbank-defines extern // datenbank-defines extern
require_once('/etc/helferdb_konfiguration.php'); require_once('/etc/helferdb_konfiguration.php');
@ -50,3 +49,13 @@ $options = array(
?> ?>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title></title>
</head>
<body>
</body>
</html>