Changeset 561 for trunk/Modules/Map/Map.php
- Timestamp:
- Aug 10, 2013, 12:37:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Map/Map.php
r548 r561 15 15 global $Config; 16 16 17 if(count($this->System->PathItems) > 1) 18 { 19 if($this->System->PathItems[1] == 'show-position') 20 { 21 $DbResult = $this->Database->select('MapPosition', '*', 'Id='.$_GET['i']); 22 if($DbResult->num_rows > 0) 23 { 24 $DbRow = $DbResult->fetch_assoc(); 25 Header('Location: http://www.mapy.cz/#!x='.$DbRow['Longitude'].'&y='. 26 $DbRow['Latitude'].'&z=17&t=s&l=15&d=user_'.$DbRow['Longitude'].'%2C'. 27 $DbRow['Latitude'].'%2C'.$DbRow['Name'].'~%0A_1'); 28 return('Přesměrování na http://www.mapy.cz/'); 29 } else return('Položka nenalezena'); 30 return(''); 31 } 32 else return(PAGE_NOT_FOUND); 33 } else return($this->ShowMain()); 34 17 35 $Output = '<script src="http://maps.google.com/maps?file=api&v=2&sensor=true&key='.$Config['Web']['GoogleMapsApiKey'].'" 18 36 type="text/javascript"> … … 171 189 'Longitude' => array('Type' => 'Float', 'Caption' => 'Zeměpisná výška', 'Default' => '0'), 172 190 ), 191 'ItemActions' => array( 192 array('Caption' => 'Ukázat na mapě', 'URL' => '/map/show-position'), 193 ), 173 194 )); 174 195
Note:
See TracChangeset
for help on using the changeset viewer.