0) $filtrSQL.= "nick LIKE '$nick' AND "; } if(isset($_POST['tel'])) { $tel=safe(@$_POST['tel']); if(strlen($tel)>0) $filtrSQL.= "tel LIKE '$tel' AND "; } if(isset($_POST['miry'])) { $miry=safe(@$_POST['miry']); if(strlen($miry)>0) $filtrSQL.= "miry LIKE '$miry' AND "; } if(isset($_POST['kraj'])) { $region=(int)$_POST['kraj']; if($region!=-1) $filtrSQL.= "kraj = $region AND "; } if(isset($_POST['vek'])) { $vek=(int)$_POST['vek']; if($vek>0) $filtrSQL.= "vek = $vek AND "; } if(isset($_POST['vaha'])) { $vaha=(int)$_POST['vaha']; if($vaha>0) $filtrSQL.= "vaha = $vaha AND "; } if(isset($_POST['pohlavi'])) { $pohlavi=(int)$_POST['pohlavi']; if($pohlavi!=-1) $filtrSQL.= "pohlavi = $pohlavi AND "; } if(isset($_POST['vlasy_barva'])) { $vlasy_barva=(int)$_POST['vlasy_barva']; if($vlasy_barva!=-1) $filtrSQL.= "vlasy_barva = $vlasy_barva AND "; } if(isset($_POST['vlasy_delka'])) { $vlasy_delka=(int)$_POST['vlasy_delka']; if($vlasy_delka!=-1) $filtrSQL.= "vlasy_delka = $vlasy_delka AND "; } if(isset($_POST['vyska'])) { $vyska=(int)$_POST['vyska']; if($vyska!=-1) $filtrSQL.= "vyska = $vyska AND "; } if(isset($_POST['oci'])) { $oci=(int)$_POST['oci']; if($oci!=-1) $filtrSQL.= "oci = $oci AND "; } if(isset($_POST['prsa'])) { $prsa=(int)$_POST['prsa']; if($prsa!=-1) $filtrSQL.= "prsa = $prsa AND "; } if(isset($_POST['ochlupeni'])) { $ochlupeni=(int)$_POST['ochlupeni']; if($ochlupeni!=-1) $filtrSQL.= "ochlupeni = $ochlupeni AND "; } if(isset($_POST['postava'])) { $postava=(int)$_POST['postava']; if($postava!=-1) $filtrSQL.= "postava = $postava AND "; } if(isset($_POST['narodnost'])) { $narodnost=(int)$_POST['narodnost']; if($narodnost!=-1) $filtrSQL.= "narodnost = $narodnost AND "; } if(isset($_POST['rasa'])) { $rasa=(int)$_POST['rasa']; if($rasa!=-1) $filtrSQL.= "rasa = $rasa AND "; } } if(isset($_GET['nejmladsi'])){$quicksearch = 1; $filtrSQL.= "vek < 25 AND "; $orderby = "ORDER BY vek ASC";} if(isset($_GET['vek25-30'])) {$quicksearch = 1; $filtrSQL.= "vek > 24 AND vek < 30 AND "; } if(isset($_GET['vek30-40'])) {$quicksearch = 1; $filtrSQL.= "vek > 29 AND vek < 40 AND "; } if(isset($_GET['nejstarsi'])){$quicksearch = 1; $filtrSQL.= "vek > 40 AND "; $orderby = "ORDER BY vek DESC";} if(isset($_GET['nejlevnejsi'])){$quicksearch = 1; $filtrSQL.= "1h < 1000 AND "; $orderby = "ORDER BY 1h ASC";} if(isset($_GET['cena1000'])) {$quicksearch = 1; $filtrSQL.= "1h > 999 AND 1h < 2000 AND "; } if(isset($_GET['cena2000'])) {$quicksearch = 1; $filtrSQL.= "1h > 1999 AND 1h < 3000 AND "; } if(isset($_GET['nejdrazsi'])) {$quicksearch = 1; $filtrSQL.= "1h > 3000 AND "; $orderby = "ORDER BY 1h DESC";} if(isset($_GET['blonde'])) {$quicksearch = 1; $filtrSQL.= "vlasy_barva = 4 AND ";} if(isset($_GET['black'])) {$quicksearch = 1; $filtrSQL.= "vlasy_barva = 2 AND ";} if(isset($_GET['bboobs'])) {$quicksearch = 1; $filtrSQL.= "prsa > 4 AND "; $orderby = "ORDER BY prsa DESC";} if(isset($_GET['hairy'])) {$quicksearch = 1; $filtrSQL.= "ochlupeni = 3 AND ";} if(isset($_GET['anal'])) {$quicksearch = 1; $filtrSQL.= "anal = 1 AND ";} if(isset($_GET['oral'])) {$quicksearch = 1; $filtrSQL.= "oral = 1 AND ";} if(isset($_GET['sm'])) {$quicksearch = 1; $filtrSQL.= "sm = 1 AND "; } if(isset($_GET['bez'])) {$quicksearch = 1; $filtrSQL.= "vse_bez = 1 AND ";} $filtrSQL.="podnik.ban = 0 AND model.nick <> ''"; // musime vyfiltrovat spolecnice, ktere nemaji zaznam v tab.Model //$filtrSQL.="(podnik.free >= NOW() OR podnik.balicek_end >= NOW())"; ?>

:
*:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
>
>