Changeset 561
- Timestamp:
- Aug 10, 2013, 12:37:21 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Version.php
r558 r561 1 1 <?php 2 2 3 $Revision = 5 58; // Subversion revision3 $Revision = 561; // Subversion revision 4 4 $DatabaseRevision = 551; // SQL structure revision 5 5 $ReleaseTime = '2013-07-21'; -
trunk/Modules/File/File.php
r552 r561 133 133 ), 134 134 'ItemActions' => array( 135 array('Caption' => 'Stáhnout', 'URL' => '/file ?download'),135 array('Caption' => 'Stáhnout', 'URL' => '/file'), 136 136 ), 137 137 )); -
trunk/Modules/Finance/Finance.php
r558 r561 429 429 ), 430 430 'ItemActions' => array( 431 array('Caption' => 'Import plateb z banky', 'URL' => '/finance/import-api/ ?'),432 array('Caption' => 'Import plateb ze souboru', 'URL' => '/finance/import-soubor/ ?'),431 array('Caption' => 'Import plateb z banky', 'URL' => '/finance/import-api/'), 432 array('Caption' => 'Import plateb ze souboru', 'URL' => '/finance/import-soubor/'), 433 433 ), 434 434 )); -
trunk/Modules/IS/IS.php
r557 r561 199 199 { 200 200 foreach($FormClass['ItemActions'] as $Action) 201 $Output .= '<li><a href="'.$this->System->Link($Action['URL']).'&i='.$Id.'"><img alt="'.$Action['Caption'].'" title="'.$Action['Caption'].'" src="'. 201 { 202 $URL = $this->System->Link($Action['URL']); 203 if(strpos('?', $URL) === false) $URL .= '?'; 204 else if((substr($URL, -5, 5) !== '&') and (substr($URL, -1, 1) !== '?')) $URL .= '&'; 205 $URL .= '&i='.$Id; 206 $Output .= '<li><a href="'.$URL.'"><img alt="'.$Action['Caption'].'" title="'.$Action['Caption'].'" src="'. 202 207 $this->System->Link('/images/action.png').'"/>'.$Action['Caption'].'</a></li>'; 208 } 203 209 } 204 210 $Output .= '</ul><br/>'; … … 393 399 { 394 400 foreach($FormClass['ItemActions'] as $Action) 395 $RowActions .= '<a href="'.$this->System->Link($Action['URL']).'&i=#RowId"><img alt="'.$Action['Caption'].'" title="'.$Action['Caption'].'" src="'. 401 { 402 $URL = $this->System->Link($Action['URL']); 403 if(strpos('?', $URL) === false) $URL .= '?'; 404 else if((substr($URL, -5, 5) !== '&') and (substr($URL, -1, 1) !== '?')) $URL .= '&'; 405 $URL .= '&i=#RowId'; 406 $RowActions .= '<a href="'.$URL.'"><img alt="'.$Action['Caption'].'" title="'.$Action['Caption'].'" src="'. 396 407 $this->System->Link('/images/action.png').'"/></a>'; 408 } 397 409 } 398 410 $Output = $this->ShowTable($Table, $Filter, $Title, $RowActions, $ExcludeColumn); -
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.