Flyer-Express.nl | de goedkoopste van de wereld! "; ?> "; ?>
"; if ($_SERVER['REQUEST_METHOD']=="POST") { // Mail verzenden echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "\"Terug\""; echo "

"; $sql="SELECT ".$var_array[4]." as aantal FROM producten WHERE page='".$var_array[1]."' AND info='grootheden'"; $result=mysql_query($sql) or die(mysql_error()); $grootheid=mysql_fetch_object($result); $sql="SELECT detail_1, ".$var_array[4]." as prijs FROM producten WHERE idProduct='".$var_array[3]."'"; $result=mysql_query($sql) or die(mysql_error()); $row=mysql_fetch_object($result); $content=explode("/", $row->prijs); $prijs=trim($content[1]); if (is_numeric($prijs)) { $prijs.=",-"; } if ($prijs=="") { $prijs=$row->prijs; } $bericht="Product: ".value2name($var_array[1])."\n\n"; $bericht.="Formaat: ".$row->detail_1."\n\n"; $bericht.="Aantal: ".$grootheid->aantal."\n\n"; $bericht.="Prijs: ".$prijs."\n\n"; $bericht.="Accountnummer: ".$_POST['accountnummer']."\n\n"; $bericht.="Naam: ".$_POST['naam']."\n\n"; $bericht.="Bedrijf: ".$_POST['bedrijf']."\n\n"; $bericht.="Tel.: ".$_POST['telefoon']."\n\n"; $bericht.="Email: ".$_POST['email']."\n\n"; $onderwerp="Bestelling flyer-express.nl"; mail("info@flyer-express.nl", $onderwerp, $bericht,"From: info@flyer-express.nl"); echo "Bedankt voor uw aanvraag, wij nemen z.s.m. contact met u op!"; echo "
"; } else { $sql="SELECT ".$var_array[4]." as aantal FROM producten WHERE page='".$var_array[1]."' AND info='grootheden'"; $result=mysql_query($sql) or die(mysql_error()); $grootheid=mysql_fetch_object($result); $sql="SELECT detail_1, ".$var_array[4]." as prijs FROM producten WHERE idProduct='".$var_array[3]."'"; $result=mysql_query($sql) or die(mysql_error()); $row=mysql_fetch_object($result); $content=explode("/", $row->prijs); $prijs=trim($content[1]); if (is_numeric($prijs)) { $prijs.=",-"; } if ($prijs=="") { $prijs=$row->prijs; } echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "\"Terug\""; echo "

"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
 - FORMAAT: ".$row->detail_1." 
 - AANTAL: ".$grootheid->aantal." 
 - PRIJS: ".$prijs." 
 Accountnummer *: *Alleen voor klanten met een bestaand accountnummer. Heeft u nog geen accountnummer vul dan gewoon uw gegevens in.
 Naam:
 Bedrijf:
 Tel.:
 Email: Kan het nóg goedkoper? \"Ja, neem een abonnement\"
"; echo "
"; echo "
"; } } else { switch ($var_array[1]) { case "contact": echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "\"Terug\""; echo "

"; $sql="SELECT * FROM teksten WHERE page='contact'"; $result=mysql_query($sql) or die(mysql_error()); $tekst=mysql_fetch_object($result); echo $tekst->tekst; echo "
"; echo "
"; break; case "voorwaarden": echo "
"; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "\"Terug\""; echo "
"; echo "
"; $sql="SELECT * FROM teksten WHERE page='voorwaarden'"; $result=mysql_query($sql) or die(mysql_error()); $tekst=mysql_fetch_object($result); echo $tekst->tekst; echo "
"; echo "
"; break; default: echo "
"; echo ""; $sql="SELECT * FROM producten WHERE page='".$var_array[1]."' AND info='grootheden'"; $result=mysql_query($sql) or die(mysql_error()); $grootheden=mysql_fetch_object($result); $kolommen=4; echo ""; echo ""; echo ""; echo ""; echo ""; if ($grootheden->detail_5!="") { $kolommen=5; echo ""; } echo ""; echo ""; $aantal=359; $sql="SELECT * FROM producten WHERE page='".$var_array[1]."' AND info<>'grootheden' ORDER BY idProduct"; $result=mysql_query($sql) or die(mysql_error()); while ($row=mysql_fetch_object($result)) { $aantal-=34; $content=explode("/", $row->detail_2); $detail_2=trim($content[1]); $content=explode("/", $row->detail_3); $detail_3=trim($content[1]); $content=explode("/", $row->detail_4); $detail_4=trim($content[1]); $content=explode("/", $row->detail_5); $detail_5=trim($content[1]); if (is_numeric($detail_2)) { $detail_2.=",-"; } if (is_numeric($detail_3)) { $detail_3.=",-"; } if (is_numeric($detail_4)) { $detail_4.=",-"; } if (is_numeric($detail_5)) { $detail_5.=",-"; } if ($detail_2=="") { $detail_2=$row->detail_2; } if ($detail_3=="") { $detail_3=$row->detail_3; } if ($detail_4=="") { $detail_4=$row->detail_4; } if ($detail_5=="") { $detail_5=$row->detail_5; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if ($kolommen==5) { echo ""; } echo ""; echo ""; } echo ""; echo ""; echo ""; echo ""; echo ""; if ($kolommen==5) { echo ""; } echo ""; echo ""; echo "
 ".$grootheden->detail_2."".$grootheden->detail_3."".$grootheden->detail_4."".$grootheden->detail_5." 

".$row->detail_1."idProduct."/detail_2';\">".$detail_2." idProduct."/detail_3';\">".$detail_3." idProduct."/detail_4';\">".$detail_4." idProduct."/detail_5';\">".$detail_5." "; if ($row->info!="") { echo "info."');\">\"Info\""; } else { echo " "; } echo "
  
   
"; echo "
"; break; } echo "
Kan het nóg goedkoper? \"Ja, neem een abonnement\"                            
"; } ?>