executeAndFetchAll($sql); if(count($route) == 1) { $route = $route[0]; // Routen-Bilder holen $sql = "SELECT * FROM FR_RoutePicture WHERE (RouteIDFull='$route_id_full') AND (PicturePosition > 0) ORDER BY PicturePosition ASC"; $ort_routen = $pdo->executeAndFetchAll($sql); if(count($ort_routen) > 0) { $route["pictures"] = $ort_routen; } // Prfen, ob Karten-Bilddatei existiert $map_filename = "./route_files/".$route_id_full."_Map_"; $map_filename_small = $map_filename."Small."; $map_filename_big = $map_filename."Big."; $possible_map_file_extensions = array("jpg", "jpeg", "JPEG", "JPG", "gif", "GIF", "png", "PNG"); $map_filename_small_exists = false; $map_filename_big_exists = false; foreach($possible_map_file_extensions as $extension) { if(file_exists($map_filename_small.$extension)) { $map_filename_small_exists = $map_filename_small.$extension; } if(file_exists($map_filename_big.$extension)) { $map_filename_big_exists = $map_filename_big.$extension; } } $route["map_image_files"] = array("small"=>$map_filename_small_exists, "big"=>$map_filename_big_exists); } else { echo "(No or more than one route with RouteIDFull $route_id_full found."; } // Dateilinks $route_files = array(); $path_route_files = "./route_files/"; if(file_exists( $path_route_files . $route_id_full . ".pdf")) { $route_files["pdf"] = $path_route_files . $route_id_full . ".pdf"; $route_files["pdf_track"] = "'/" . $route_id_full . "/pdf'"; } if(file_exists( $path_route_files . $route_id_full . ".zip")) { $route_files["gps"] = $path_route_files . $route_id_full . ".zip"; $route_files["gps_track"] = "'/" . $route_id_full . "/zip'"; } if(file_exists( $path_route_files . $route_id_full . ".kmz")) { $route_files["google_earth"] = $path_route_files . $route_id_full . ".kmz"; $route_files["google_maps_small"] = "https://www.froutes.de/route_files/".urlencode($route["RouteIDFull"])."_small.kmz"; $route_files["google_maps_link"] = "https://maps.google.de/maps?f=q&hl=de&geocode=&q=https://www.froutes.de/route_files/".urlencode($route["RouteIDFull"])."_maps.kmz"; $route_files["google_earth_track"] = "'/" . $route_id_full . "/kmz'"; $route_files["google_maps_link_track"] = "'/" . $route_id_full . "/maps_kmz'"; } echo '' . $route["MetaHtmTitle"] . '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; ?>

km
.gif" alt="" width="57" height="57" style="margin-top:10px;"/>
Schwierigkeit

Infos
Druck
'; } if (!empty($route_files["google_earth"]) ){ echo 'Google Earth
'; } if (!empty($route_files["gps"]) ){ echo 'GPS
'; } ?>
Start:
Druck
'; } if ( !empty($route["map_image_files"]["small"])) { // hier kein div map ??? if ( !empty($route["map_image_files"]["big"])) { echo ''; echo 'Wanderkarte'; echo ''; } else { echo 'Karte'; } } if ( $route["MapMeki"] > 0 ) { echo '

(c) MeKi Wanderkarte Hessischer Odenwald Nord/Süd, 2. Auflage (Shop)

'; } if ( $route["MapZoomLevel"] > 0 ) // �nderung 18.2.: immer googlemap anzeigen, auch wenn image-karte vorhanden // vorher: if ( empty($route["map_image_files"]["small"]) and $route["MapZoomLevel"] > 0 ) // keine Karte als Datei -> somit Google-Karte { // echo '
'; // echo ''; // echo '
'; echo '
'; echo ''; echo '
'; } // if ( $route["MapZoomLevel"] > 0 ) { // echo '

Foto-Landkarte in separatem Fenster öffnen

'; // } ?>

Zurück: