Initial commit: OMSORG website + Mitarbeiter-App

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Felix Kemmler
2026-06-13 20:03:22 +02:00
co-authored by Claude Sonnet 4.6
commit 8beb0fcf52
103 changed files with 7384 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
require_once __DIR__ . '/../lib/auth.php';
require_once __DIR__ . '/../lib/layout.php';
require_login();
$downloads = db()->query('SELECT * FROM downloads ORDER BY sort_order ASC, id ASC')->fetchAll();
layout_start('OMSORG Downloads', 'downloads');
?>
<h1 class="main-title">Down<span>loads</span></h1>
<p class="main-sub">Dokumente und Formulare zum Herunterladen.</p>
<?php if (empty($downloads)): ?>
<p style="color:var(--muted);margin-top:40px">Noch keine Downloads verfügbar.</p>
<?php else: ?>
<div class="downloads-grid">
<?php foreach ($downloads as $dl): ?>
<div class="glass download-card">
<h3 class="download-card-title"><?= e($dl['title']) ?></h3>
<?php if ($dl['description'] !== ''): ?>
<p class="download-card-desc"><?= e($dl['description']) ?></p>
<?php endif; ?>
<a href="download-serve.php?id=<?= (int)$dl['id'] ?>" class="btn download-btn">&#8595; Herunterladen</a>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php layout_end(); ?>