= htmlspecialchars($review['author']) ?> – = (int) $review['rating'] ?> ★
= htmlspecialchars($review['comment']) ?>
'', 'email' => '', 'message' => '', ]; if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST['review']) && $user) { if (!eligibleForReview($bandId, (int) $user['id'])) { $reviewError = 'Für Bewertungen ist eine bestätigte Buchung nötig.'; } else { $comment = trim((string) ($_POST['comment'] ?? '')); if (mb_strlen($comment) > 200) { $reviewError = 'Maximal 200 Zeichen erlaubt.'; } else { storeReview([ 'band_id' => $bandId, 'user_id' => (int) $user['id'], 'rating' => (int) $_POST['rating'], 'comment' => $comment, ]); $reviewMessage = 'Danke! Deine Bewertung wartet auf Freigabe.'; } } } if (isset($_POST['contact'])) { $contactForm['name'] = trim((string) ($_POST['contact_name'] ?? '')); $contactForm['email'] = trim((string) ($_POST['contact_email'] ?? '')); $contactForm['message'] = trim((string) ($_POST['contact_message'] ?? '')); if ($contactForm['name'] === '' || $contactForm['message'] === '') { $contactError = 'Bitte Name und Nachricht ausfüllen.'; } elseif (!filter_var($contactForm['email'], FILTER_VALIDATE_EMAIL)) { $contactError = 'Bitte eine gültige E-Mail-Adresse angeben.'; } else { $recipient = $band['contact_email'] ?: SUPPORT_EMAIL; $body = sprintf( '
Neue Nachricht über die Bandseite %s.
Von: %s (%s)
Nachricht:
%s
= htmlspecialchars($band['genre']) ?>
= nl2br(htmlspecialchars($band['description'])) ?>
| Datum | Status |
|---|---|
| = htmlspecialchars((new DateTimeImmutable($slot['event_date']))->format('d.m.Y')) ?> | = htmlspecialchars(ucfirst($slot['status'])) ?> |
Schicke = htmlspecialchars($band['name']) ?> eine direkte Nachricht.
= htmlspecialchars($review['author']) ?> – = (int) $review['rating'] ?> ★
= htmlspecialchars($review['comment']) ?>
Noch keine freigegebenen Bewertungen.