v1.3.1 - Zahlerlogik verbessert

This commit is contained in:
Borgal
2025-11-19 20:40:09 +01:00
parent 2046d80c9b
commit 654157f174
6 changed files with 136 additions and 77 deletions

View File

@@ -57,7 +57,8 @@ function get_all_meeting_details($conn)
u.username,
mt.attended,
mt.wore_color,
mt.paid
mt.paid,
mt.birthday_pay
FROM meetings m
JOIN colors c ON m.color_id = c.id
LEFT JOIN meeting_teilnehmer mt ON m.id = mt.meeting_id
@@ -91,7 +92,8 @@ function get_all_meeting_details($conn)
'username' => $row['username'],
'attended' => $row['attended'],
'wore_color' => $row['wore_color'],
'paid' => $row['paid']
'paid' => $row['paid'],
'birthday_pay' => $row['birthday_pay']
];
}
}
@@ -215,7 +217,13 @@ include('inc/header.php');
$status_icon = $participant['wore_color'] ? '✅' : '🔴';
$status_text = $participant['wore_color'] ? 'Farbe getragen' : 'Falsche Farbe';
}
$paid_icon = $participant['paid'] ? '💰' : '';
$paid_icon = '';
if ($participant['paid']) {
$paid_icon = '💰';
if ($participant['birthday_pay']) {
$paid_icon .= ' 🎂';
}
}
?>
<?= $status_icon ?>
<span class="fw-bold"><?= htmlspecialchars($participant['username']) ?></span>