feat: widen container to no limit, split year/edition in semap page
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<img class="logo" src="https://www.ph-freiburg.de/_assets/cc3dd7db45300ecc1f3aeed85bda5532/Images/logo-big-blue.svg" alt="PH Freiburg Logo" />
|
||||
<div class="brand">
|
||||
<div class="brand-title">Bibliothek der Pädagogischen Hochschule Freiburg</div>
|
||||
<div class="brand-sub">Hochschulbibliothek · Online-Formulare</div>
|
||||
<div class="brand-sub"><a href="https://www.ph-freiburg.de/bibliothek.html" target="_blank" rel="noopener noreferrer">Hochschulbibliothek</a> · Online-Formulare</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" id="theme-toggle" class="theme-toggle" aria-label="Switch to dark mode" title="Switch to dark mode">
|
||||
|
||||
@@ -100,12 +100,13 @@
|
||||
<h2>Medien</h2>
|
||||
<table id="book-table" class="data-table">
|
||||
<tr>
|
||||
<th>Autorenname</th><th>Jahr/Auflage</th><th>Titel</th><th>Signatur (wenn vorhanden)</th>
|
||||
<th>Autorenname</th><th>Jahr</th><th>Auflage</th><th>Titel</th><th>Signatur (wenn vorhanden)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="text" name="authorname[]" required></td>
|
||||
<td><input type="text" name="year[]" required></td>
|
||||
<td><input type="text" name="booktitle[]" required></td>
|
||||
<td><input type="text" name="edition[]" required></td>
|
||||
<td><input type="text" name="title[]" required></td>
|
||||
<td><input type="text" name="signature[]"></td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -125,7 +126,7 @@
|
||||
Hinweis: Weitere Informationen zu den Semesterapparaten finden Sie auf den Seiten der Hochschulbibliothek der PH Freiburg.
|
||||
<br>
|
||||
<a href="https://www.ph-freiburg.de/bibliothek.html" target="_blank" rel="noopener noreferrer">Zur Bibliothek</a>
|
||||
<br>
|
||||
|
|
||||
<a href="https://www.ph-freiburg.de/bibliothek/lernen/semesterapparate.html" target="_blank" rel="noopener noreferrer">Zu den Semesterapparaten</a>
|
||||
</p>
|
||||
</section>
|
||||
|
||||
@@ -82,7 +82,7 @@ body {
|
||||
|
||||
/* Layout */
|
||||
.container {
|
||||
max-width: 1250px;
|
||||
/* max-width: 1250px; */
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
@@ -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