feat: widen container to no limit, split year/edition in semap page
This commit is contained in:
@@ -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] ?? ''
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user