Hezký den,

'; $text .= 'potvrzujeme vaši objednávku zboží z obchodu POŽÁRY.cz.

'; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= '
Příjmení a jméno:'.$_POST["prijmeni"] . " " . $_POST["jmeno"].'
Ulice a číslo popisné:'.$_POST["ulice"].' '.$_POST["ulice_cp"].'
Město a PSČ'.$_POST["mesto"].' '.$_POST["psc"].'
E-mail'.$_POST["email"].'
Poznámka'.$_POST["poznamka"].'
'; $text .= '


Objednávka

'."\n"; $cena = 0; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; if($_POST['kabatek']!=0 and $_POST['kabatek']!='') { $cena += 100*$_POST['kabatek']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['hrnecek']!=0 and $_POST['hrnecek']!='') { $cena += 150*$_POST['hrnecek']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_cervena_s']!=0 and $_POST['tricko_pozary_cervena_s']!='') { $cena += 199*$_POST['tricko_pozary_cervena_s']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_cervena_m']!=0 and $_POST['tricko_pozary_cervena_m']!='') { $cena += 199*$_POST['tricko_pozary_cervena_m']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_cervena_l']!=0 and $_POST['tricko_pozary_cervena_l']!='') { $cena += 199*$_POST['tricko_pozary_cervena_l']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_cervena_xl']!=0 and $_POST['tricko_pozary_cervena_xl']!='') { $cena += 199*$_POST['tricko_pozary_cervena_xl']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_cervena_xxl']!=0 and $_POST['tricko_pozary_cervena_xxl']!='') { $cena += 199*$_POST['tricko_pozary_cervena_xxl']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_cervena_xxxl']!=0 and $_POST['tricko_pozary_cervena_xxxl']!='') { $cena += 199*$_POST['tricko_pozary_cervena_xxxl']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_modra_s']!=0 and $_POST['tricko_pozary_modra_s']!='') { $cena += 199*$_POST['tricko_pozary_modra_s']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_modra_m']!=0 and $_POST['tricko_pozary_modra_m']!='') { $cena += 199*$_POST['tricko_pozary_modra_m']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_modra_l']!=0 and $_POST['tricko_pozary_modra_l']!='') { $cena += 199*$_POST['tricko_pozary_modra_l']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_modra_xl']!=0 and $_POST['tricko_pozary_modra_xl']!='') { $cena += 199*$_POST['tricko_pozary_modra_xl']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_modra_xxl']!=0 and $_POST['tricko_pozary_modra_xxl']!='') { $cena += 199*$_POST['tricko_pozary_modra_xxl']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_pozary_modra_xxxl']!=0 and $_POST['tricko_pozary_modra_xxxl']!='') { $cena += 199*$_POST['tricko_pozary_modra_xxxl']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_iron_s']!=0 and $_POST['tricko_iron_s']!='') { $cena += 199*$_POST['tricko_iron_s']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_iron_m']!=0 and $_POST['tricko_iron_m']!='') { $cena += 199*$_POST['tricko_iron_m']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_iron_l']!=0 and $_POST['tricko_iron_l']!='') { $cena += 199*$_POST['tricko_iron_l']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_iron_xl']!=0 and $_POST['tricko_iron_xl']!='') { $cena += 199*$_POST['tricko_iron_xl']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_iron_xxl']!=0 and $_POST['tricko_iron_xxl']!='') { $cena += 199*$_POST['tricko_iron_xxl']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['tricko_iron_xxxl']!=0 and $_POST['tricko_iron_xxxl']!='') { $cena += 199*$_POST['tricko_iron_xxxl']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } if($_POST['pullitr']!=0 and $_POST['pullitr']!='') { $cena += 180*$_POST['pullitr']; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; } // $text .= ''; // $text .= ''; // $text .= ''; // $text .= ''; // $text .= ''; // $text .= ''; // $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= '
NázevVelikostVýška postavyCena / kusObjednáno
Hasičský kabátek do auta100 Kč'.$_POST['kabatek'].'×
Termohrneček POŽÁRY.cz150 Kč'.$_POST['hrnecek'].'×
Tričko POŽÁRY.cz - červenáS156-164199 Kč'.$_POST['tricko_pozary_cervena_s'].'×
Tričko POŽÁRY.cz - červenáM164-172199 Kč'.$_POST['tricko_pozary_cervena_m'].'×
Tričko POŽÁRY.cz - červenáL172-180199 Kč'.$_POST['tricko_pozary_cervena_l'].'×
Tričko POŽÁRY.cz - červenáXL180-188199 Kč'.$_POST['tricko_pozary_cervena_xl'].'×
Tričko POŽÁRY.cz - červenáXXL188-196199 Kč'.$_POST['tricko_pozary_cervena_xxl'].'×
Tričko POŽÁRY.cz - červenáXXXL188-196199 Kč'.$_POST['tricko_pozary_cervena_xxxl'].'×
Tričko POŽÁRY.cz - modráS156-164199 Kč'.$_POST['tricko_pozary_modra_s'].'×
Tričko POŽÁRY.cz - modráM164-172199 Kč'.$_POST['tricko_pozary_modra_m'].'×
Tričko POŽÁRY.cz - modráL172-180199 Kč'.$_POST['tricko_pozary_modra_l'].'×
Tričko POŽÁRY.cz - modráXL180-188199 Kč'.$_POST['tricko_pozary_modra_xl'].'×
Tričko POŽÁRY.cz - modráXXL188-196199 Kč'.$_POST['tricko_pozary_modra_xxl'].'×
Tričko POŽÁRY.cz - modráXXXL188-196199 Kč'.$_POST['tricko_pozary_modra_xxxl'].'×
Tričko Iron Fireman®S156-164199 Kč'.$_POST['tricko_iron_s'].'×
Tričko Iron Fireman®M164-172199 Kč'.$_POST['tricko_iron_m'].'×
Tričko Iron Fireman®L172-180199 Kč'.$_POST['tricko_iron_l'].'×
Tričko Iron Fireman®XL180-188199 Kč'.$_POST['tricko_iron_xl'].'×
Tričko Iron Fireman®XXL188-196199 Kč'.$_POST['tricko_iron_xxl'].'×
Tričko Iron Fireman®XXXL188-196199 Kč'.$_POST['tricko_iron_xxxl'].'×
Půllitr POŽÁRY.cz180 Kč'.$_POST['pullitr'].'×
BONUS - pohlednice--0 Kč
 
'; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; if($_POST['platba_doprava']=='dobirka_posta') { $cena += 100; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $platba = ''; $platba .= ''; $platba .= ''; } else if($_POST['platba_doprava']=='ucet_posta') { $cena += 80; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $platba = ''; $platba .= ''; $platba .= ''; } else if($_POST['platba_doprava']=='osobne') { $cena += 30; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $platba = ''; $platba .= ''; $platba .= ''; } else if($_POST['platba_doprava']=='misto_varnsdorf') { $cena += 31; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $platba = ''; $platba .= ''; $platba .= ''; } $text .= '
PlatbaDopravaCena
dobírkaČeská pošta, s. p.100 Kč
Celou částku uhradíte až při vyzvedávání na České poště.
platba předemČeská pošta, s. p.80 Kč
Požadovanou částku prosím zašlete na účet číslo 786625028/5500, variabilní symbol: '.rand(5000,9999).'.
platba na místěvyzvednutí osobně - Praha30 Kč
Celou částku uhradíte až při vyzvedávání na domluveném místě.
platba na místěvyzvednutí osobně - Varnsdorf31 Kč
Celou částku uhradíte až při vyzvedávání na domluveném místě.
'; $text .= '

Informace o celkové ceně a platbě

'."\n"; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= ''; $text .= $platba; $text .= '
Cena celkem'.number_format($cena, 2, ',', ' ').' Kč
'; $ret .= $text; $ret .= '


Tento text vám byl zaslán v kopii e-mailem.
Po odeslání objednaného zboží vás budeme na stejný email informovat.

V případě nenadálých anomálií v systému si vyhrazujeme právo pozměnit výslednou cenu, případně další informace.'; $ret .= '

Pokračovat na hlavní stranu…'; $headers = "From: POZARY.cz - Obchod \n"; $headers .= "Bcc: michal.safus@pozary.cz\n"; $headers .= "Reply-To: michal.safus@pozary.cz\n"; $headers .= "X-Sender: \n"; $headers .= "X-Mailer: PHP\n"; $headers .= "Return-Path: \n"; $headers .= "Content-Type: text/html; charset=utf-8\n"; mail($_POST['email'], 'POZARY.cz - objednavka zbozi: '.$_POST['prijmeni_jmeno'], $text, $headers); header('Location: http://obchod.pozary.cz/?ok=1'); } else { header('Location: http://obchod.pozary.cz/'); }