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;
}
?>
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See</title>
<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_mobile.css" media="screen and (max-width:780px)"/>
<meta name="viewport" content="width=480" />
<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_mobile.css" media=
"screen and (max-width:780px)">
<meta name="viewport" content="width=480">
</head>
<body>
<?php
DatenbankAufDeutsch($db_link);
@ -54,34 +56,54 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
}
?>
<div style="width: 100%;">
<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>
<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';">
<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>
</tr>
<tr onclick="window.location.href='CreateHelfer.php';"> <td>
<img src="Bilder/More.jpeg" style="width:30px;height:30px;"><b>Seite zur Helfer selbst-Registrierung</b>
</td> </tr>
<tr onclick="window.location.href='EmailZuToken.php';"> <td>
<img src="Bilder/PfeilRunter.jpeg" style="width:30px;height:30px;"><b>Helfer per Link einladen</b>
</td> </tr>
<tr onclick="window.location.href='AdminHelferUebersicht.php';">
<tr onclick="window.location.href='CreateHelfer.php';">
<td><img src="Bilder/More.jpeg" style=
"width:30px;height:30px;"><b>Seite zur Helfer
selbst-Registrierung</b></td>
</tr>
<tr onclick="window.location.href='EmailZuToken.php';">
<td><img src="Bilder/PfeilRunter.jpeg" style=
"width:30px;height:30px;"><b>Helfer per Link
einladen</b></td>
</tr>
<tr onclick=
"window.location.href='AdminHelferUebersicht.php';">
<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>
</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()">
<tr>
<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
$db_erg = HelferListe($db_link);
while($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
@ -94,37 +116,61 @@ while($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
?>
</select></form>
</b>
</td>
</select>
</form>
</th>
<tr><!--td-->
</tr>
<tr>
<!--td-->
<!--<table class="innertable" style="padding:15px"><!-
- inner table for indent-->
<tr onclick="window.location.href='AdminUserdaten.php';">
</tr>
<tr onclick=
"window.location.href='AdminUserdaten.php';">
<!--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 onclick="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 onclick=
"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 onclick="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 onclick=
"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>
<!--</table></td> </tr> inner table for indent end-->
<!--<tr><th>Weiteres</th></tr>-->
<tr onclick="window.location.href='Kalender-all.html';">
<td><img src="Bilder/More.jpeg" style="width:30px;height:30px"><b> Admin Kalenderansicht</b> </td>
<tr onclick=
"window.location.href='Kalender-all.html';">
<td><img src="Bilder/More.jpeg" style=
"width:30px;height:30px"> <b>Admin
Kalenderansicht</b></td>
</tr>
<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 onclick="window.location.href='TeilnehmerSchichtenAusdruck.php';">
<td > <img src="Bilder/More.jpeg" style="width:30px;height:30px;"> <b>Ausdruck Schichten</b> </td>
<tr onclick=
"window.location.href='TeilnehmerSchichtenAusdruck.php';">
<td><img src="Bilder/More.jpeg" style=
"width:30px;height:30px;"> <b>Ausdruck
Schichten</b></td>
</tr>
</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>
<button class=back name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button>
<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><button class=
"back" name="BackHelferdaten" value="1" onclick=
"window.location.href = 'index.php';"><b></b></button>
</div>
</body>
</html>

View File

@ -12,22 +12,27 @@ if($AdminStatus != 1) {
exit;
}
?>
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<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_mobile.css" media="screen and (max-width:780px)"/>
<meta name="viewport" content="width=480" />
<script src="js/jquery-3.7.1.min.js" type="text/javascript"></script>
<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)">
<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> collapse_table_rows();
<script>
collapse_table_rows();
</script>
</head>
<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%;">
<?php
@ -130,10 +135,6 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
////////////////////////////////////////////////////////
?>
<form method="post" action="AdminAlleSchichten.php#Info">
<?php
@ -431,9 +432,7 @@ mysqli_free_result($db_erg);
?>
</form>
</div>
</body>
</html>

View File

@ -12,15 +12,17 @@ if($AdminStatus != 1) {
exit;
}
?>
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See</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)"/>
<meta name="viewport" content="width=480" />
<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)">
<meta name="viewport" content="width=480">
</head>
<body>
<div style="width: 100%;">
@ -136,11 +138,15 @@ if(isset($_POST['DienstSearch'])) {
// Dienste Anzeigen
////////////////////////////////////////////////////////
?>
<button class=back name="BackHelferdaten" value="1" onclick="window.location.href = 'Admin.php';"><b>&larrhk;</b></button>
?><button class="back" name="BackHelferdaten" value="1"
onclick=
"window.location.href = 'Admin.php';"><b></b></button>
<form method="post">
<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
@ -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 ?? '')?>" > -->
<?php
echo "<select name='Dienst-Leiter'>";
@ -216,13 +199,7 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
}
}
echo "</select>";
?>
</td>
</tr>
<tr>
<td style="border: 0px solid black;">Gruppe</td></tr><tr><td style="border: 0px solid black;">
<?php
?><?php
//echo "#####".$Gruppe."#####";
echo "<select name='Dienst-Gruppe'>";
$db_erg = GetDiensteChilds($db_link, 0);
@ -238,35 +215,32 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
}
echo "</select>";
?>
</td>
</td>
<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></th>
</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>
<p><button name="ChangeDienst" value="1">Ändern</button><button name="NewDienst" value="1">Neue</button><button name='DeleteDienst' value='1'>Löschen</button></p>
<p><button name="ChangeDienst" value=
"1">Ändern</button><button name="NewDienst" value=
"1">Neue</button><button name='DeleteDienst' value=
'1'>Löschen</button></p>
</form>
<form method="post">
<table border="0" id='customers'">
<tr><th>Schicht</th><th><select name="SchichtSearch" id="SchichtSearch" onchange="submit()">
<table border="0" id='customers'>
<tr>
<th>Schicht</th>
<th><select name="SchichtSearch" id=
"SchichtSearch" onchange="submit()">
<?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>";
?>
<!-- <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
@ -335,9 +280,10 @@ $_SESSION["SchichtID"] = $SchichtID;
?>
</select></th>
</tr>
</table>
</form>
</div>
</body>
</html>

View File

@ -12,16 +12,20 @@ if($AdminStatus != 1) {
exit;
}
?>
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See</title>
<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_mobile.css" media="screen and (max-width:780px)"/>
<meta name="viewport" content="width=480" />
<script src="js/jquery-3.7.1.min.js" type="text/javascript"></script>
<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_mobile.css" media=
"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/helferdb.js" type="text/javascript"></script>
<script>
collapse_table_rows();
@ -67,8 +71,13 @@ if(isset($_POST['DienstSearch'])) {
echo "<br><br><table class='commontable' style='page-break-before:always'>";
?>
<table>
<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>
</table>
<table class="commontable">
@ -114,9 +123,7 @@ echo "$EinzelDienstStunden";
echo "</table>";
?>
</table>
</div>
</body>
</html>

View File

@ -12,18 +12,24 @@ if($AdminStatus != 1) {
exit;
}
?>
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See - Schichten editieren</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)"/>
<meta name="viewport" content="width=480" />
<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)">
<meta name="viewport" content="width=480">
</head>
<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%;">
<?php
@ -160,10 +166,8 @@ if(isset($_POST['Del'])) {
////////////////////////////////////////////////////////
?>
<form method="post" action="AdminMeineSchichten.php#Info">
<form method="post" action=
"AdminMeineSchichten.php#Info">
<?php
@ -266,9 +270,8 @@ mysqli_free_result($db_erg);
?>
</form>
</div>
</div>
</body>
</html>

View File

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

View File

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

View File

@ -1,19 +1,19 @@
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See</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)"/>
<link rel="stylesheet" href="css/style_print.css" media="print"/>
<meta name="viewport" content="width=480" />
<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)">
<link rel="stylesheet" href="css/style_print.css" media=
"print">
<meta name="viewport" content="width=480">
</head>
<body>
<div style="width: 100%;">
<?php
SESSION_START();
@ -33,15 +33,14 @@ include '_login.php';
?>
<table id="customers">
<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>
</table>
<?php
</table><?php
echo '<table id="customers" >';
@ -70,10 +69,14 @@ $db_erg = AlleSchichtenImZeitbereich($db_link, "2000-05-18 00:00:00", "2200-05-1
$OldWas = "";
echo "<br><br><table id='customers' style='page-break-before:always'>";
?>
<table>
<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>
</tr>
<?php
<th><button name="BackHelferdaten" value="1"
onclick=
"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)) {
$Was = $zeile["Was"];
@ -115,9 +118,12 @@ $OldHelferName = "";
echo "<br><br><table id='customers' style='page-break-before:always'>";
?>
<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>
</tr>
<?php
<th><button name="BackHelferdaten" value="1"
onclick=
"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);
while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
$HelferName = $zeile["Name"];
@ -146,15 +152,11 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC)) {
echo "</table>";
?>
<?php
?><?php
mysqli_free_result($db_erg);
?>
</table>
</div>
</body>
</html>

View File

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

View File

@ -1,8 +1,11 @@
<!doctype html>
<!DOCTYPE html>
<html>
<head></head>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title></title>
</head>
<body>
<?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>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Helfer Drop am See: Email Tokens generieren</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)"/>
<meta name="viewport" content="width=480" />
<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)">
<meta name="viewport" content="width=480">
</head>
<body>
<?php
?>
<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%;">
<p>
<h2> Emails mit Login-Link zur HelferDB generieren </h2>
Generiert Tokens (bzw URLs mit Token) aus einer Liste von Email-Addressen. <br>
Bei Klick auf den generierten Link wird sofort ein Account zur Email angelegt. <br>
Als Passwort wird das Token gesetzt. Man kann sich mit dem Link danach wieder in den selben Account einloggen.
</p>
<p>
!! Emails werden erst verschickt, wenn die Checkbox unten angeklickt ist
</p>
<form method="POST" action="EmailZuToken.php">
<p>
<label for="helfer-status">Status des Accounts, den der Link erstellt:</label>
<select style="width:260px" id="helfer-status" name="helfer-status">
<h2>Emails mit Login-Link zur HelferDB
generieren</h2>Generiert Tokens (bzw URLs mit Token) aus
einer Liste von Email-Addressen.<br>
Bei Klick auf den generierten Link wird sofort ein Account
zur Email angelegt.<br>
Als Passwort wird das Token gesetzt. Man kann sich mit dem
Link danach wieder in den selben Account einloggen.
<p>!! Emails werden erst verschickt, wenn die Checkbox
unten angeklickt ist</p>
<form method="post" action="EmailZuToken.php">
<p><label for="helfer-status">Status des Accounts, den
der Link erstellt:</label> <select style="width:260px"
id="helfer-status" name="helfer-status">
<!-- TODO: aus DB abfragen -->
<option value="2" <?php if($level == 2) {
echo "selected";
}?>>Teilnehmer</option>
}?>>
Teilnehmer
</option>
<option value="1" <?php if($level == 1) {
echo "selected";
}?>>Dauerhelfer</option>
</select>
</p><p>
Subject der Email: <br>
<input id="email-subject" name="email-subject" type="textbox" value="<?=htmlspecialchars($email_subject ?? '');?>">
</p><p>
CC (Kopie) der Email geht an: <br>
<input id="email-cc" name="email-cc" type="textbox" value="drophelfer@gmail.com">
</p><p>
Emailtext (XXtokenXX an die Stelle schreiben, an der der Link im Emailtext stehen soll):
</p><p>
<textarea id="email-text" name="email-text" rows="20" cols="80">
<?=htmlspecialchars($email_text ?? '');?>
</textarea>
</p>
}?>>
Dauerhelfer
</option>
</select></p>
<p>Subject der Email:<br>
<input id="email-subject" name="email-subject" type=
"textbox" value=
"&lt;?=htmlspecialchars($email_subject ?? '');?&gt;"></p>
<p>CC (Kopie) der Email geht an:<br>
<input id="email-cc" name="email-cc" type="textbox"
value="drophelfer@gmail.com"></p>
<p>Emailtext (XXtokenXX an die Stelle schreiben, an der
der Link im Emailtext stehen soll):</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>
<textarea id="email-text" name="email-text" rows="20"
cols="80"><?=htmlspecialchars($email_text ?? '');?>
</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>
<input type="checkbox" id="sendmail" name="sendmail" value="1" style="align:left;width:40px;!important">
<label for="sendmail">Emails verschicken</label>
</div>
<br>
<button name="email-liste" value="1">Token generieren</button>
</form>
</p>
<?php
<input type="checkbox" id="sendmail" name=
"sendmail" value="1" style=
"align:left;width:40px;!important"> <label for=
"sendmail">Emails verschicken</label>
</div><br>
<button name="email-liste" value="1">Token
generieren</button>
</form><?php
if(isset($_POST['email-liste'])) {
// TODO: check if email-text contains tokentext to substitute
@ -192,13 +200,7 @@ if(isset($_POST['email-liste'])) {
}
?>
</body>
</html>
<!--Einzelne Email
?><!--Einzelne Email
<p>
<form method="GET">
<input id="helfer-email" name="helfer-email" type="textbox" value="<?=htmlspecialchars($HelferEmail ?? '')?>">
@ -206,7 +208,6 @@ if(isset($_POST['email-liste'])) {
</form>
</p>
-->
<?php
//single 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>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<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)"/>
<meta http-equiv="Refresh" content="0; url=<?php require_once('konfiguration.php');
echo INFORMATIONS_URL;?>" />
<meta name="viewport" content="width=480" />
<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)">
<meta http-equiv="Refresh" content=
"0; url=&lt;?php require_once('konfiguration.php'); echo INFORMATIONS_URL;?&gt;">
<meta name="viewport" content="width=480">
</head>
<body>
<!-- hier Infos zur eigenen Con oder Helferdiensten allgemein angeben -->

View File

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

View File

@ -1,14 +1,18 @@
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Admin Drop am See</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)"/>
<meta name="viewport" content="width=480" />
<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)">
<meta name="viewport" content="width=480">
</head>
<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%;">
<?php
@ -127,31 +131,38 @@ if(!isset($_SESSION["HelferID"])) {
?>
<form method="post" action="#Info">
<fieldset>
<legend>Login</legend>
<table border="0" style="border: 0px solid black;">
<tr>
<td style="border: 0px solid black;">Email</td></tr><tr><td style="border: 0px solid black;">
<input name="helfer-email" type="text" value="<?=htmlspecialchars($HelferEmail ?? '')?>" required>
</td>
<td style="border: 0px solid black;">
Email</td>
</tr>
<tr>
<td style="border: 0px solid black;">
<input name="helfer-email" type="text"
value=
"&lt;?=htmlspecialchars($HelferEmail ?? '')?&gt;"
required=""></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="<?=htmlspecialchars($HelferHandy ?? '')?>" required>
</td>
<td></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>
</fieldset>
<p><button name="login" value="1">Login</button></p>
</form>
<?php
</form><?php
exit;
}
@ -221,9 +232,6 @@ if(isset($_POST['Del'])) {
////////////////////////////////////////////////////////
?>
<form method="post" action="MeineSchichten.php#Info">
<?php
@ -327,9 +335,7 @@ mysqli_free_result($db_erg);
?>
</form>
</div>
</body>
</html>

View File

@ -1,10 +1,13 @@
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Helfer - Logs</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)"/>
<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)">
<!--meta name="viewport" content="width=480" /-->
<?php
require_once('konfiguration.php');
@ -56,6 +59,7 @@ foreach(file(LOGFILE) as $line) {
}
}
?>
</table>
</head>
<body>
</body>
</html>

View File

@ -1,4 +1,3 @@
<?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
SESSION_START();
@ -93,3 +92,13 @@ if($success == 1 && $email != "") {
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>
<head>
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<title>Drop am See Helferdaten ändern</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)"/>
<meta name="viewport" content="width=480" />
<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)">
<meta name="viewport" content="width=480">
</head>
<body>
<?php
SESSION_START();
@ -113,45 +115,53 @@ if(isset($_POST['login'])) {
}
?>
<form method="post"></form>
<table id="customers">
<tr>
<th><button name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button> Helferdaten</th>
</tr>
<form method="post">
<tr>
<td>Name</td></tr><tr><td>
<input name="helfer-name" type="text" value="<?=htmlspecialchars($HelferName ?? '')?>" required>
</td>
<th><button name="BackHelferdaten" value="1" onclick=
"window.location.href = 'index.php';"><b></b></button>
Helferdaten</th>
</tr>
<tr>
<td>Email</td></tr><tr><td>
<input name="helfer-email" type="email " value="<?=htmlspecialchars($HelferEmail ?? '')?>" required>
</td>
<td>Name</td>
</tr>
<tr>
<td>Handy</td></tr><tr><td>
<input name="helfer-handy" type="tel" value="<?=htmlspecialchars($HelferHandy ?? '')?>" >
</td>
<td><input name="helfer-name" type="text" value=
"&lt;?=htmlspecialchars($HelferName ?? '')?&gt;"
required=""></td>
</tr>
<tr>
<td>Altes Helfer Passwort</td></tr><tr><td>
<input name="helfer-passwort" type="password" value="<?=htmlspecialchars($HelferPasswort ?? '')?>" >
</td>
<td>Email</td>
</tr>
<tr>
<td>Neues Helfer Passwort</td></tr><tr><td>
<input name="helfer-newpasswort" type="text" value="<?=htmlspecialchars($HelferPasswort ?? '')?>" >
</td>
<td><input name="helfer-email" type="email" value=
"&lt;?=htmlspecialchars($HelferEmail ?? '')?&gt;"
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>
</table>
<p><button name="change" style="width:150px !important" value="1">&Auml;ndern</button></p>
</form>
<button name="BackHelferdaten" value="1" onclick="window.location.href = 'index.php';"><b>&larrhk;</b></button>
<p><button name="change" style="width:150px !important" value=
"1">Ändern</button></p><button name="BackHelferdaten" value="1"
onclick="window.location.href = 'index.php';"><b></b></button>
</body>
</html>

View File

@ -1,65 +1,10 @@
<?php
function encode_string($key, $email, $level, $verification)
{
// String verification anfuegen am Ende, um abgeschnittene URLs zu verhindern
$token_content = $email . '|' . $level . '|' . $verification;
// Erstellen eines Cipher-Objekts für die Verschlüsselung
$cipher_method = "AES-256-CBC";
$iv_length = openssl_cipher_iv_length($cipher_method);
$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
);
}
}
<!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

@ -42,35 +42,52 @@ if(isset($_POST['login'])) {
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">
<fieldset>
<legend>Login</legend>
<table border="0" style="border: 0px solid black;">
<tr>
<td style="border: 0px solid black;">Email</td></tr><tr><td style="border: 0px solid black;">
<input name="helfer-email" type="text" size=35 value="<?=htmlspecialchars($HelferEmail ?? '')?>" required>
</td>
<td style="border: 0px solid black;">Email</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>
<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="<?=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>
<td></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>
</fieldset>
<p><button style="width: 100px" name="login" value="1">Login</button></p>
</form>
<?php
<p><button style="width: 100px" name="login" value=
"1">Login</button></p>
</form><?php
exit;
}
@ -82,3 +99,5 @@ $AdminID = $_SESSION["AdminID"];
$HelferIsAdmin = $AdminStatus = $_SESSION["AdminStatus"];
$HelferLevel = $_SESSION["HelferLevel"];
?>
</body>
</html>

View File

@ -1,15 +1,18 @@
<!doctype html>
<html lang=de>
<!DOCTYPE html>
<html lang="de">
<head>
<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" />
<meta name="generator" content=
"HTML Tidy for HTML5 for Linux version 5.6.0">
<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>
<body>
<?php
SESSION_START();
@ -37,31 +40,32 @@ include '_login.php';
//}
?>
<div style="width: 100%;">
<table id="customers">
<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 onclick="window.location.href='Userdaten.php';">
<td > <img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;">
<b>
<?php
<td><img src="Bilder/PfeilRechts2.jpeg" style=
"width:30px;height:30px;"> <b><?php
if($HelferIsAdmin) {
echo "Admin ";
} else {
echo "Helfer ";
}
echo $HelferName;
?>
</b> </td>
?></b></td>
</tr>
<tr onclick="window.location.href='MeineSchichten.php';">
<tr onclick=
"window.location.href='MeineSchichten.php';">
<td>
<img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"> <b>Nächste Helferschichten:</b>
<ul style="display: block; list-style-type: none; margin-left: 20px;margin-top: 0px;margin-bottom: 0px">
<img src="Bilder/PfeilRechts2.jpeg" style=
"width:30px;height:30px;"> <b>Nächste
Helferschichten:</b>
<ul style=
"display: block; list-style-type: none; margin-left: 20px;margin-top: 0px;margin-bottom: 0px">
<?php
//<li>Fr 08:00 Leitung Halle</li>
//<li>So 12:00 Abbau</li>
@ -85,11 +89,8 @@ while ($zeile = mysqli_fetch_array($db_erg, MYSQLI_ASSOC) and $iCount < 3) {
?>
</ul>
</td>
</tr>
<!--
</tr><!--
<tr onclick="window.location.href='Ereignisse.php';">
<td>
<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>
</tr>
-->
<tr onclick="window.location.href='AlleSchichten.php';">
<td><img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"><b>Schicht Hinzufügen</b></td>
<tr onclick=
"window.location.href='AlleSchichten.php';">
<td><img src="Bilder/PfeilRechts2.jpeg" style=
"width:30px;height:30px;"><b>Schicht
Hinzufügen</b></td>
</tr>
<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 onclick="window.location.href='ReadLog.php';">
<td><img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"><b> Logs</b></td>
</tr>
<?php
<td><img src="Bilder/PfeilRechts2.jpeg" style=
"width:30px;height:30px;"> <b>Logs</b></td>
</tr><?php
if ($HelferIsAdmin) {
?>
<tr onclick="window.location.href='Admin.php';">
<td><img src="Bilder/PfeilRechts2.jpeg" style="width:30px;height:30px;"><b> Admin</b></td>
</tr>
<?php
<td><img src="Bilder/PfeilRechts2.jpeg" style=
"width:30px;height:30px;"> <b>Admin</b></td>
</tr><?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 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>
</div>
</body>
</html>

View File

@ -1,4 +1,3 @@
<?php
// datenbank-defines extern
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>