![]() | ||||||||
![]() |
Karte | Kalender | Suche | Bookmarks | Experte | FAQ |
ModuleDownloadSMFinder_Query_findWird verwendet von:SMFinder_Main SMFinder_Query_find Keine Erläuterungen gefunden. <?php /* published under GPL www.gnu.org/licenses/gpl.html */ function SMFinder_Query_find($element){ include_once("SMFinder_Edit_POST.php"); if(isset($_GET['status'])){$status=$_GET['status'];}else{$status="";} if ($element=="address" OR $element=="event"){ include_once("SMFinder_Geo_getGeo.php"); include_once("SMFinder_Geo_Umkreis.php"); list($cats,$atrs)=SMFinder_Edit_POSTcatsatrs($element); if(isset($_GET['lat'])) {$lat = $_GET['lat']; }else{$lat="";} if(isset($_GET['lon'])) {$lon = $_GET['lon']; }else{$lon="";} if(isset($_GET['City'])) {$City = $_GET['City']; }else{$City="";} if(isset($_GET['PLZ'])) {$PLZ = $_GET['PLZ']; }else{$PLZ="";} if(isset($_GET['Radius'])){$Radius = $_GET['Radius'];}else{$Radius="";} if (empty($lat) AND isset($_POST['lat'])) {$lat = $_POST['lat'];} if (empty($lon) AND isset($_POST['lon'])) {$lon = $_POST['lon'];} if (empty($City) AND isset($_POST['City'])) {$City = $_POST['City'];} if (empty($PLZ) AND isset($_POST['PLZ'])) {$PLZ = $_POST['PLZ'];} if (empty($Radius) AND isset($_POST['Radius'])){$Radius = $_POST['Radius'];} /* Wer keinen Radius angibt, will wohl Weltweit suchen? */ if (empty($Radius)){$Radius=1000;} if (empty($lat) OR empty($lon)){ list($lat,$lon,$PLZ,$City) = SMFinder_Geo_getGeo($PLZ,$City); } } if (!empty($lat)){ list($lat_min,$lat_max,$lon_min,$lon_max) = SMFinder_Geo_Umkreis($lat,$lon,$Radius); }else{ $lat_min=""; $lat_max=""; $lon_min=""; $lon_max=""; } include_once("SMFinder_Query_getUID4CatsAtrsGeo.php"); switch ($element){ case "address": $limit=1000; if (empty($_GET['p'])){ list($UIDs,$stati,$names,$count) # = SMFinder_Query_getUID4CatsAtrsGeo("address",$cats,$atrs,"OR",$lat_min,$lat_max,$lon_min,$lon_max,0,$limit); }else{ $page=$_GET['p']; list($UIDs,$stati,$names,$count) # = SMFinder_Query_getUID4CatsAtrsGeo("address",$cats,$atrs,"OR",$lat_min,$lat_max,$lon_min,$lon_max,$page,$limit); $count=$_GET['c']; } break; case "event": $cats=""; $atrs=""; $page=1; $limit=""; list($UIDs,$stati,$names,$count) # = SMFinder_Query_getUID4CatsAtrsGeo("event",$cats,$atrs,"OR",$lat_min,$lat_max,$lon_min,$lon_max,$page,$limit); break; } if($GLOBALS['debug']){ echo "<aj>SMFinder_Query_find.php</aj> <span style='color:silver;'>".$element." ".$status."Number found: ".$count."<br>"; echo "lat=".$lat." lon=".$lon." city=".$City." pcode=".$PLZ." radius=".$Radius." <br>"; echo "cats: ";print_r($cats);echo "<br>atrs: ";print_r($atrs);echo "<br></span>"; } return array($UIDs,$residuum,$cats,$atrs,$keywords,$count); } ?> IndexFür die Funktionalität des SM-Finders sind viele kleine Tools notwendig. Alle Funktionen beginnen mit SMFinder_ um deren Ursprung zu kennzeichnen. Dem schließt sich die Funktionsgruppe, z.B. Geo_ an, gefolgt vom eigentlichen Namen, der die Aufgabe der Funktion widerspiegeln soll, z.B. PLZ2DB. Der gesamte Sourcecode darf gemäß GNU General Public License weiterverbreitet werden. |
![]() |
Die hier zur Verfügung gestellten Informationen basieren auf dem Austauschnetzwerk des SM-Finders.
Änderungen an eurem Datensatz könnt ihr z.B. beim Arbeitskreis SM-Finder vornehmen.
Bei Fragen und Problemen schreibt bitte an: sm-finderki-co.org
Der AK-SM-Finder ist korporatives Mitglied der BVSM e.V.
Für Aktualität und Richtigkeit der dargebotenen Infomationen kann keine Gewähr übernommen werden!