v1.3.1 - Zahlerlogik verbessert
This commit is contained in:
14
history.php
14
history.php
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user