0) { $building = $sql->single( "SELECT * FROM buildings WHERE id = ?", "i", [$buildingId] ); } $isEdit = !empty($building); $pageTitle = $isEdit ? "Gebäude bearbeiten: " . htmlspecialchars($building['name']) : "Neues Gebäude"; $prefillLocationId = (int)($_GET['location_id'] ?? 0); // ========================= // Standorte laden // ========================= $locations = $sql->get("SELECT id, name FROM locations ORDER BY name", "", []); $selectedLocationId = $building['location_id'] ?? $prefillLocationId; ?>

Allgemein
Abbrechen Löschen