feat: widen container to no limit, split year/edition in semap page

This commit is contained in:
2025-11-26 10:22:47 +01:00
parent 97872ef9fb
commit 738c72ebf2
4 changed files with 12 additions and 7 deletions

View File

@@ -20,8 +20,10 @@ $dauerapparat = isset($_POST['dauerapparat']) ? 'true' : 'false';
$message = post('message');
// Validate required fields
if (empty($name) || empty($lastname) || empty($telno) || empty($mail) ||
empty($apparatsname) || empty($subject) || empty($semester_type) || empty($semester_year)) {
if (
empty($name) || empty($lastname) || empty($telno) || empty($mail) ||
empty($apparatsname) || empty($subject) || empty($semester_type) || empty($semester_year)
) {
die('Fehler: Alle Pflichtfelder müssen ausgefüllt werden.');
}
@@ -33,6 +35,7 @@ if (!validateEmail($mail)) {
// Collect book data
$authornames = postArray('authorname');
$years = postArray('year');
$edition = postArray('edition');
$booktitles = postArray('booktitle');
$signatures = postArray('signature');
@@ -47,6 +50,7 @@ for ($i = 0; $i < count($authornames); $i++) {
$books[] = [
'authorname' => $authornames[$i] ?? '',
'year' => $years[$i] ?? '',
'edition' => $edition[$i] ?? '',
'title' => $booktitles[$i] ?? '',
'signature' => $signatures[$i] ?? ''
];