//do otwierania map w prestige require_once('config_settings.php'); $query = "SELECT *,concat_ws(' ', tel_country, tel_city, tel_nr) AS telephon, concat_ws(' ', fax_country, fax_city, fax_nr) AS fax FROM $shipyard_tab AS a LEFT JOIN $country_tab AS b ON a.id_country=b.id_country LEFT JOIN $shipyard_subdomena_tab AS c ON a.id_shipyard=c.id LEFT JOIN $city_tab AS d ON a.id_city=d.id_city WHERE a.id_shipyard='$_GET[id_shipyard]';"; $q = mysql_query($query); $a = mysql_fetch_array($q); //$a['subdomena'] .='2';//usunac po zakonczeniu testow //$adr_foto = 'https://www.ship2yard.com/prestige/'.$a['sub']; //mw $adr_foto = 'https://www.ship2yard.com/img/prestige/'.$a['sub']; if($_GET['google'] == 'map') $img = getimagesize($adr_foto."/map_google_max.jpg"); else $img = getimagesize($adr_foto."/satelite_google_max.jpg"); ?>
if(($a['map'])&&($_GET['google'] != 'map')) { //html maps exist
echo ' ';
echo $a['map'];
}
else if(($a['map2'])&&($_GET['google'] == 'map')) { //html maps exist
echo ' ';
echo $a['map2'];
}
else {
?>
|