0) $grundpreis = $tmpGrundpreis; list($tmpGrundpreis, $plzpreis2) = getPrice($zipcode2, $zipcode3, $cs_invmode_default); if ($tmpGrundpreis > 0) $grundpreis = $tmpGrundpreis; list($tmpGrundpreis, $plzpreis3) = getPrice($zipcode3, $zipcode4, $cs_invmode_default); if ($tmpGrundpreis > 0) $grundpreis = $tmpGrundpreis; list($tmpGrundpreis, $plzpreis4) = getPrice($zipcode4, $zipcode5, $cs_invmode_default); if ($tmpGrundpreis > 0) $grundpreis = $tmpGrundpreis; list($tmpGrundpreis, $plzpreis5) = getPrice($zipcode5, $zipcode6, $cs_invmode_default); if ($tmpGrundpreis > 0) $grundpreis = $tmpGrundpreis; $fullprice = $grundpreis + $plzpreis1 + $plzpreis2 + $plzpreis3 + $plzpreis4 + $plzpreis5; $valign = "center"; $area_names1 = ""; $area_names2 = ""; $area_names3 = ""; $area_names4 = ""; $area_names5 = ""; $area_price1 = ""; $area_price2 = ""; $area_price3 = ""; $area_price4 = ""; $area_price5 = ""; $area_fullprice = ""; // ... dann PLZ-Preise ermitteln! if ($hq_id == 3): $valign = "bottom"; $area_name1 = getAreaName($zipcode1); $area_name2 = getAreaName($zipcode2); $area_name3 = getAreaName($zipcode3); $area_name4 = getAreaName($zipcode4); $area_name5 = getAreaName($zipcode5); $area_name6 = getAreaName($zipcode6); $area_names1 = "" . "VON $area_name1 NACH $area_name2" . ""; $area_names2 = "" . "VON $area_name2 NACH $area_name3" . ""; $area_names3 = "" . "VON $area_name3 NACH $area_name4" . ""; $area_names4 = "" . "VON $area_name4 NACH $area_name5" . ""; $area_names5 = "" . "VON $area_name5 NACH $area_name6" . ""; list($tmpGrundpreis, $area_price1) = getPrice($zipcode1, $zipcode2, 1); list($tmpGrundpreis, $area_price2) = getPrice($zipcode2, $zipcode3, 1); list($tmpGrundpreis, $area_price3) = getPrice($zipcode3, $zipcode4, 1); list($tmpGrundpreis, $area_price4) = getPrice($zipcode4, $zipcode5, 1); list($tmpGrundpreis, $area_price5) = getPrice($zipcode5, $zipcode6, 1); $area_fullprice = $grundpreis + $area_price1 + $area_price2 + $area_price3 + $area_price4 + $area_price5; endif; echo "\n" . "\n" . "
\n" . "| \n" .
" VON PLZ \n" .
" NACH PLZ \n" .
" $area_names2 | \n" .
($hq_id == 3 ? formatPrice($area_price2) . " " : "") . "" . formatPrice($plzpreis2) . " " . " |
| \n" .
" VON PLZ \n" .
" NACH PLZ \n" .
" $area_names3 | \n" .
($hq_id == 3 ? formatPrice($area_price3) . " " : "") . "" . formatPrice($plzpreis3) . " " . " |
| \n" .
" VON PLZ \n" .
" NACH PLZ \n" .
" $area_names4 | \n" .
($hq_id == 3 ? formatPrice($area_price4) . " " : "") . "" . formatPrice($plzpreis4) . " " . " |
| \n" .
" VON PLZ \n" .
" NACH PLZ \n" .
" $area_names5 | \n" .
($hq_id == 3 ? formatPrice($area_price5) . " " : "") . "" . formatPrice($plzpreis5) . " " . " |
| \n" .
" MIT FAHRZEUG " .
" \n" .
" | \n" .
($hq_id == 3 ? formatPrice($grundpreis) . " " : "") . "" . formatPrice($grundpreis) . " " . " |
| \n" .
"Gesamtpreis: " .
" | \n" .
($hq_id == 3 ? "" . formatPrice($area_fullprice) . " " : "") . "" . formatPrice($fullprice) . " " . " |
| \n" .
" " . " \n" . " \n" . "" . " | \n" .
" |