Haerte Verwaltungsflows und Zahlungsabgleich

This commit is contained in:
2026-08-07 12:02:41 +02:00
parent 39f662d541
commit 0f263c3a19
9 changed files with 461 additions and 101 deletions
+19 -13
View File
@@ -1,5 +1,6 @@
<?php
ob_start();
include "functions.php";
require_once __DIR__ . "/app/ledger.php";
@@ -40,6 +41,14 @@ if($hasAccess){
$bearbeitenId = null;
$actorUserId = $saasUser['user_id'] ?? null;
if (isset($_SESSION['flash_mitglieder']) && is_array($_SESSION['flash_mitglieder'])) {
$flash = $_SESSION['flash_mitglieder'];
unset($_SESSION['flash_mitglieder']);
$meldung = isset($flash['meldung']) ? (string)$flash['meldung'] : null;
$fehler = isset($flash['fehler']) ? (string)$flash['fehler'] : null;
$einladungslink = isset($flash['einladungslink']) ? (string)$flash['einladungslink'] : null;
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$aktion = $_POST["aktion"] ?? '';
@@ -208,6 +217,16 @@ if($hasAccess){
}
}
}
if ($aktion !== 'bearbeiten') {
$_SESSION['flash_mitglieder'] = [
'meldung' => $meldung,
'fehler' => $fehler,
'einladungslink' => $einladungslink,
];
header('Location: mitarbeiterverwalten.php');
exit;
}
}
@@ -227,15 +246,6 @@ if($hasAccess){
}
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kaffeeliste - Mitglieder verwalten</title>
</head>
<body>
<h2>Mitglieder verwalten</h2>
<?php if ($meldung !== null): ?>
@@ -415,10 +425,6 @@ if($hasAccess){
</tr>
<?php endforeach; ?>
</table>
</body>
</html>
<?php
}else{