Ihr individuelles Angebot
{source trim="true"}<?php
if (isset($_GET['type']) && $_GET['type'] == "painting") {
$breite = isset($_GET['breite']) ? $_GET['breite'] : 0;
$laenge = isset($_GET['laenge']) ? $_GET['laenge'] : 0;
$grundflaeche = floatval($breite) * floatval($laenge);
$grundflaechePreis = 6;
if ($grundflaeche > 150) {
$grundflaechePreis = 5;
} elseif ($grundflaeche > 50) {
$grundflaechePreis = 5.5;
}
$multiplicotorWandDecke = 4;
$multiplicotorWand = 3.5;
$pauschale = 120;
$totalPrice = ($grundflaeche * $grundflaechePreis * $multiplicotorWandDecke) + $pauschale;
$onlyWallPrice = ($grundflaeche * $grundflaechePreis * $multiplicotorWand) + $pauschale;
echo 'generateProgressBar("Wand", $onlyWallPrice, $totalPrice)';
echo 'generateProgressBar("Wand mit Decke", $onlyWallPrice, $totalPrice)';
} else {
// Standardnachricht senden
echo json_encode(['message' => "Thomas Wenzlaff"]);
}
?>{/source}
Wand
Wand mit Decke