/', '/"/'), array('<', '>', '"'), $genre); $genre = addslashes($genre); $overwrite = "{$_GET[overwrite]}"; $overwrite = preg_replace(array('//', '/"/'), array('<', '>', '"'), $overwrite); $overwrite = addslashes($overwrite); $filtergender = "{$_GET[filtergender]}"; $filtergender = preg_replace(array('//', '/"/'), array('<', '>', '"'), $filtergender); $filtergender = addslashes($filtergender); $filtermaat = "{$_GET[filtermaat]}"; $filtermaat = preg_replace(array('//', '/"/'), array('<', '>', '"'), $filtermaat); $filtermaat = addslashes($filtermaat); if ($filtergender == "geslacht")$filtergender = ""; $filterprijs = "{$_GET[filterprijs]}"; $filterprijs = preg_replace(array('//', '/"/'), array('<', '>', '"'), $filterprijs); $filterprijs = addslashes($filterprijs); if ($filterprijs == "niks")$filterprijs = ""; $fabrikant = "{$_GET[fabrikant]}"; $fabrikant = preg_replace(array('//', '/"/'), array('<', '>', '"'), $fabrikant); $fabrikant = addslashes($fabrikant); $item = "{$_GET[item]}"; $item = preg_replace(array('//', '/"/'), array('<', '>', '"'), $item); $item = addslashes($item); $fabrikant2 = $fabrikant; if ($fabrikant == "meer"){ $fabrikant = "Alle fabrikanten"; } if ($fabrikant2 != "" and $fabrikant2 != " "){ if($fabrikant == "Alle"){ $query = mysql_query("SELECT COUNT(*) AS blaat FROM product_assortiment ") or die(mysql_error()); }else{ $query = mysql_query("SELECT COUNT(*) AS blaat FROM product_assortiment WHERE fabrikant='$fabrikant'") or die(mysql_error()); } $data = mysql_fetch_assoc($query); if ($data['blaat'] < 1){ die(); } } ?> <? if ($fabrikant != ""){ echo "$fabrikant ";}?><? if ($item == "Veldvoetballen" or $item == "Zaalvoetballen" or $item == "Jeugdvoetballen" or $item == "Materialen" or $item == "Trainingspakken"){ ?><? }else{ ?> voetbalschoenen - <? } echo "$item "; ?> voetbalschoenen - ">
"; if ($verkoopprijs == ""){ ?>

   Er zijn helaas geen producten beschikbaar  "; ?>
"; $queryproducts = mysql_query($sqlproducts); $break = 0; $heren = 0; $kinderen = 0; while ($product = mysql_fetch_array($queryproducts)) { $id = $product["productid"]; $img_folder2 = "content/products/"; $ext = "kl.jpg"; $img_folder2 = "$img_folder2$id$ext"; $loginnaam = $_SESSION[session_loginnaam]; if ($loginnaam != "info@voetbalschoenen.com"){ //If(!file_exists($img_folder2)) continue; } if ($item == "Trainingspakken") { //if ($overwrite != 1){ If(!file_exists($img_folder2)) continue; } } $fabrikant = $product["fabrikant"]; $naam = $product["naam"]; $verkoopprijs = $product["verkoopprijs"]; $winkelprijs = $product["winkelprijs"]; $geslacht = $product["geslacht"]; if( $geslacht == "" or $geslacht == "Dames" or $geslacht == "H")continue; $mervonummer = $product["artikelnummer"]; if(stristr($verkoopprijs, ',') === FALSE) {$verkoopprijs = substr_replace ($verkoopprijs, ',', -2, 0);} if(stristr($winkelprijs, ',') === FALSE) {$winkelprijs = substr_replace ($winkelprijs, ',', -2, 0);} //if ($geslacht == "Heren"){ if ($menucheckheren != 1){echo "Heren"; $menucheckheren = "1"; } } if ($geslacht == "Dames"){ if ($menucheckdames != 1){echo "Dames"; $menucheckdames = "1"; } } if ($geslacht == "Kinderen"){ if ($menucheckkinderen != 1){echo "Kinderen"; $menucheckkinderen = "1"; }} if ($item == "Zaalvoetballen" or $item == "Veldvoetbal" or $item == "Jeugdvoetbal" or $item == "Thermoshirts" or $item == "Thermobroeken" ){ }else{ if ($heren == 0 and $geslacht == "Heren"){?> "; $break = 1; } if ($fabrikant2 != "" and $fabrikant2 != " " or $item == "Materialen" or $item == "Trainingspakken" or $item == "Thermoshirts" or $item == "Thermobroeken"){ ?> "; $break = 1; } if ($fabrikant2 != "" and $fabrikant2 != " " or $item == "Materialen" or $item == "Trainingspakken" or $item == "Thermoshirts" or $item == "Thermobroeken"){ ?>
 
 
 
/', '/"/'), array('<', '>', '"'), $sub); $sub = addslashes($sub); if ($item == "Vaste Nop")$sub = "141"; if ($item == "Schroefnop")$sub = "90"; if ($item == "Kunstgras")$sub = "91"; if ($item == "Zaalvoetbal")$sub = "93"; if ($sub != ""){ $sqlproducts7 = "SELECT * FROM content where id = '$sub'"; $queryproducts7 = mysql_query($sqlproducts7); while ($product7 = mysql_fetch_array($queryproducts7)) { $tag = $product7["metatags"]; $tag = "$tag."; } } if ($fabrikant == "" or $fabrikant == " "){ $sqlproducts3 = "SELECT DISTINCT fabrikant FROM product_assortiment where artikelnummer LIKE '%$tag%' LIMIT 0 , 1"; $queryproducts3 = mysql_query($sqlproducts3); while ($product3 = mysql_fetch_array($queryproducts3)) { $fabrikant = $product3["fabrikant"]; $fabrikant2 = $product3["fabrikant"]; } } ?>

'10000'"; } if ($filterprijs == "50100"){ $specialadd = "AND verkoopprijs < '10000' AND verkoopprijs > '5000'"; } if ($filterprijs == "50"){ $specialadd = "AND verkoopprijs < '5000'"; } } if ($filtergender != ""){ $gndr = " AND geslacht = '$filtergender' "; $specialadd = "$specialadd$gndr"; } if ($sub != ""){ $extra = ""; if ($genre != "" and $genre != " "){ $extra = "$specialadd AND geslacht = '$genre'"; } if ($fabrikant2 != "" and $fabrikant2 != " "){ if ($fabrikant2 == "" and $fabrikant2 == " "){ }else{ $adding = "$specialadd AND fabrikant = '$fabrikant2'"; } list($u, $v, $w, $y, $z, $a, $b) = explode(",", $tag); if ($u != "" AND $u != " "){ $u = "artikelnummer LIKE '%$u%' "; } if ($v!= "" AND $v!= " "){ $aa = " OR"; $v= "$aa artikelnummer LIKE '%$v%'$adding "; } if ($w!= "" AND $w!= " "){ $aa = " OR"; $w= "$aa artikelnummer LIKE '%$w%'$adding "; } if ($x != "" AND $x != " "){ $bb = " OR"; $x = "$bb artikelnummer LIKE '%$x%'$adding "; } if ($y != "" AND $y != " "){ $cc = " OR"; $y = "$cc artikelnummer LIKE '%$y%'$adding "; } if ($z != "" AND $z != " "){ $dd = " OR"; $z = "$dd artikelnummer LIKE '%$z%'$adding "; } if ($a != "" AND $a != " "){ $ee = " OR"; $a = "$ee artikelnummer LIKE '%$a%'$adding "; } if ($b != "" AND $b != " "){ $ff = " OR"; $b = "$ff artikelnummer LIKE '%$b%'$adding "; } if($fabrikant == "Alle"){ $sqlproducts = "SELECT * FROM product_assortiment where fabrikant != '' $specialadd AND $u$v$w$y$z$a$b $extra order by geslacht, datum DESC LIMIT 0 , 300"; }else{ $sqlproducts = "SELECT * FROM product_assortiment where fabrikant = '$fabrikant2' $specialadd AND $u$v$w$y$z$a$b $extra order by geslacht, winkelprijs DESC LIMIT 0 , 300"; } if ($item == "Veldvoetballen" or $item == "Zaalvoetballen" or $item == "Jeugdvoetballen" or $item == "Thermoshirts" or $item == "Thermobroeken" ){ $sqlproducts = "SELECT * FROM product_assortiment where 1=1 AND $u$v$w$y$z$a$b $extra AND artikelnummer LIKE '%$tag%' order by geslacht LIMIT 0 , 300"; } } } if ($item == "Materialen" or $item == "Trainingspakken" or $item == "Thermoshirts" or $item == "Thermobroeken"){ list($u, $v, $w, $y, $z, $a, $b, $c, $d) = explode(",", $tag); if ($u != "" AND $u != " "){ $u = "artikelnummer LIKE '%$u%' "; } if ($v!= "" AND $v!= " "){ $ax = " OR"; $v= "$ax artikelnummer LIKE '%$v%' "; } if ($x != "" AND $x != " "){ $bx = " OR"; $x = "$bx artikelnummer LIKE '%$x%' "; } if ($w != "" AND $w != " "){ $wx = " OR"; $w = "$wx artikelnummer LIKE '%$w%' "; } if ($y != "" AND $y != " "){ $cx = " OR"; $y = "$cx artikelnummer LIKE '%$y%' "; } if ($z != "" AND $z != " "){ $dx = " OR"; $z = "$dx artikelnummer LIKE '%$z%' "; } if ($a != "" AND $a != " "){ $ex = " OR"; $a = "$ex artikelnummer LIKE '%$a%' "; } if ($b != "" AND $b != " "){ $fx = " OR"; $b = "$fx artikelnummer LIKE '%$b%' "; } if ($c != "" AND $c != " "){ $c = "$fx artikelnummer LIKE '%$c%' "; } if ($d != "" AND $d != " "){ $d = "$fx artikelnummer LIKE '%$d%' "; } if ($fabrikant == "Onitsuka"){ $addti = "ASC"; }else{ $addti = "deSC"; } if ($fabrikant == "Onitsuka"){ $fabrikant = "Asics";} $specialadd = "AND 0 = 0 "; if ($filterprijs != ""){ if ($filterprijs == "100"){ $specialadd = "AND verkoopprijs > '10000'"; } if ($filterprijs == "50100"){ $specialadd = "AND verkoopprijs < '10000' AND verkoopprijs > '5000'"; } if ($filterprijs == "50"){ $specialadd = "AND verkoopprijs < '5000'"; } } $sqlproducts = "SELECT * FROM product_assortiment WHERE 1=1 AND $u$v$w$y$z$a$b$c$d $extra $specialadd order by geslacht, winkelprijs DESC LIMIT 0 , 300"; if ($filtergender != ""){ $sqlproducts = "SELECT * FROM product_assortiment WHERE 1=1 AND $u$v$w$y$z$a$b$c$d $extra AND geslacht = '$filtergender' $specialadd order by geslacht, winkelprijs DESC LIMIT 0 , 300"; } } ?>
read()) { if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file)) $imglist .= "$file "; } closedir($imgs->handle); //put all images into an array $imglist = explode(" ", $imglist); $no = sizeof($imglist)-2; //generate a random number between 0 and the number of images $random = mt_rand(0, $no); $image = $imglist[$random]; //display image If(file_exists("$img_folder$image")) { $comb = "$img_folder$image"; if (eregi('jpg', $comb)) { echo ''; } } ?>
 Filter de gevonden producten
" style="font-size:15px; font-weight:bold; color: #333; font-family:arial;; color: #333; font-family:arial;" />

 
 
 Gevonden maat:  
 
.html">
 
.html">
€ $verkoopprijs&filename=$id&item=$item&sub=$sub&fabrikant=$fabrikant&filenamers=$naam2";?>
    
*/ ?>