$value){ ${$key} = $value; } foreach($_POST as $key=>$value){ ${$key} = $value; } foreach($_GET as $key=>$value){ ${$key} = $value; } include ("libs/classes.php"); if (!isset($von)) $von=0; $suche_gr=strtoupper(substr($suche,0,1)).substr($suche,1); $suche_kl=strtolower(substr($suche,0,1)).substr($suche,1); $_anz_max = 15; $ss="WHERE innung>0 AND innung<100 AND (ort like '%".$suche."%' OR firma like '%".$suche."%' OR plz like '".$suche."%') AND firma not like '' AND firma not like '#%' AND firma not like '?%' order by firma limit $von,$_anz_max"; $sa="WHERE innung>0 AND innung<100 AND (ort like '%".$suche."%' OR firma like '%".$suche."%' OR plz like '".$suche."%') AND firma not like '' AND firma not like '#%' AND firma not like '?%'"; $filialen_all = new intern_mitglieder(); $filialen_ids = $filialen_all->get_all($sa); $anz = count($filialen_ids); $filialen_ids = $filialen_all->get_all($ss); if ($anz>$_anz_max) { $navi = "
"; $navi.= ($von)?"":""; $navi.= ""; $i=0; while ($i<$anz) { if ($i!=$von) { $navi.=""; } else { $navi.=""; } $i+=$_anz_max; } $navi.= ""; $navi.= (($von+$_anz_max)<$anz)?"":""; $navi.= "
zurückzurück | ".($i/$_anz_max+1)."".($i/$_anz_max+1)." | weiterweiter
"; } else $navi=""; $i = 0; $colswitch = 1; $output =" "; $output.=""; $output.="
"; while ($iload($filialen_ids[$i]); $colswitch = ($colswitch)?0:1; $bgcolor = ($colswitch)?" bgcolor=#f4f4f4":" bgcolor=#e5e5e5"; // Such-Highlighting ------------------------------------------------- /* $filiale->name=str_replace($suche,"".$suche."",$filiale->name); $filiale->name=str_replace($suche_gr,"".$suche_gr."",$filiale->name); $filiale->name=str_replace($suche_kl,"".$suche_kl."",$filiale->name); $filiale->plz=str_replace($suche,"".$suche."",$filiale->plz); $filiale->ort=str_replace($suche,"".$suche."",$filiale->ort); $filiale->ort=str_replace($suche_gr,"".$suche_gr."",$filiale->ort); $filiale->ort=str_replace($suche_kl,"".$suche_kl."",$filiale->ort); */ $filiale->tel=($filiale->tel)?"tel: ".$filiale->tel."":""; $filiale->fax=($filiale->fax)?" 
fax:".$filiale->fax."":""; $email=($filiale->email)?"email\">E-Mail":""; if (substr($filiale->url,0,7)!="http://") $filiale->url="http://".$filiale->url; $url=(strlen($filiale->url)>7)?" url."\" border=0 target=\"_new\">".str_replace("http://","",$filiale->url)."":" "; $output.="
$filiale->firma
$url ".$filiale->plz." ".$filiale->ort.",
".$filiale->strasse ." ".$filiale->tel .$filiale->fax ." $email
"; $i++; } $output.="
Suchergebnisse auf einen Blick | $anz Treffer | zurück
"; $output.=($anz)?$navi:"
 
keine Suchergebnisse gefunden!
Bitte versuchen Sie einen anderen Suchbegriff zu verwenden.
 
"; $output.="
"; echo $output; //echo $navi; ?>