Impfverwaltung anpassen
This commit is contained in:
@@ -289,6 +289,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
if ($aktion === 'add_zeitraum') {
|
||||
$bezeichnung = trim((string)($_POST['bezeichnung'] ?? ''));
|
||||
if (function_exists('mb_substr')) {
|
||||
$bezeichnung = mb_substr($bezeichnung, 0, 50, 'UTF-8');
|
||||
} else {
|
||||
$bezeichnung = substr($bezeichnung, 0, 50);
|
||||
}
|
||||
$wochentag = (int)($_POST['wochentag'] ?? 0);
|
||||
$start = trim((string)($_POST['start'] ?? ''));
|
||||
$ende = trim((string)($_POST['ende'] ?? ''));
|
||||
@@ -608,7 +613,7 @@ $rules = $stRules->fetchAll(PDO::FETCH_ASSOC);
|
||||
<form method="post" class="form-inline" style="margin-bottom:12px;">
|
||||
<input type="hidden" name="aktion" value="add_zeitraum">
|
||||
<label>Bezeichnung</label>
|
||||
<input class="form-control" type="text" name="bezeichnung" placeholder="z. B. Mittwoch Vormittag">
|
||||
<input class="form-control" type="text" name="bezeichnung" maxlength="50" placeholder="z. B. Mittwoch Vormittag">
|
||||
<label style="margin-left:10px;">Wochentag</label>
|
||||
<select class="form-control" name="wochentag" required>
|
||||
<option value="1">Montag</option>
|
||||
|
||||
Reference in New Issue
Block a user