} $preis = $_POST["preis_" . $preis_id]; $preis = str_replace(",", ".", $preis); //prüfe ob preis ein float oder integer: if (!is_numeric($preis)) { $fehler = true; $nachricht = "Der Preis ist kein gültiger Wert."; $nachricht = getUebersetzung($nachricht, $sprache, $link); include_once "./preis.php"; exit; } //pruefe ob datum korrekt von - bis: $valid_from_neu = $_POST["valid_from_" . $preis_id]; $valid_to_neu = $_POST["valid_to_" . $preis_id]; $datumVAr = convertDatePickerDate($valid_from_neu); $datumBAr = convertDatePickerDate($valid_to_neu); $vonTag = $datumVAr[0]; $vonMonat = $datumVAr[1]; $vonJahr = $datumVAr[2]; $bisTag = $datumBAr[0]; $bisMonat = $datumBAr[1]; $bisJahr = $datumBAr[2]; if (isDatumEarlier($vonTag, $vonMonat, $vonJahr, $bisTag, $bisMonat, $bisJahr) == FALSE) { $fehler = true; $nachricht = "Das gewählte Datum ist nicht korrekt."; $nachricht = getUebersetzung($nachricht, $sprache, $link); include_once "./preis.php"; exit; } $datumVon = parseDateFormular($vonTag, $vonMonat, $vonJahr); $datumBis = parseDateFormular($bisTag, $bisMonat, $bisJahr);
//reservierungs-funktionen: include_once $root . "/include/datumFunctions.php"; //unterkunfts-funktionen: include_once $root . "/include/unterkunftFunctions.php"; //uebersetzung: include_once $root . "/include/uebersetzer.php"; include_once $root . "/include/propertiesFunctions.php"; include_once $root . "/include/bildFunctions.php"; include_once $root . "/include/buchungseinschraenkung.php"; //variablen initialisieren: $sprache = getSessionWert(SPRACHE); $unterkunft_id = getSessionWert(UNTERKUNFT_ID); $datumDPv = $_POST["datumVon"]; $datumDPb = $_POST["datumBis"]; $datumVAr = convertDatePickerDate($datumDPv); $datumBAr = convertDatePickerDate($datumDPb); $vonTag = $datumVAr[0]; $vonMonat = $datumVAr[1]; $vonJahr = $datumVAr[2]; $bisTag = $datumBAr[0]; $bisMonat = $datumBAr[1]; $bisJahr = $datumBAr[2]; $anzahlZimmer = $_POST["anzahlZimmer"]; $anzahlErwachsene = $_POST["anzahlErwachsene"]; if (isset($_POST["anzahlKinder"]) && $_POST["anzahlKinder"] > 0) { $anzahlKinder = $_POST["anzahlKinder"]; } else { $anzahlKinder = false; } if (isset($_POST["haustiere"]) && $_POST["haustiere"] > 0) { $haustiere = $_POST["haustiere"];