Ignore:
Timestamp:
Aug 10, 2013, 12:37:21 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Akce zobrazení geografické pozice na externí mapě mapy.cz.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/IS/IS.php

    r557 r561  
    199199    {
    200200      foreach($FormClass['ItemActions'] as $Action)
    201         $Output .= '<li><a href="'.$this->System->Link($Action['URL']).'&amp;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) !== '&amp;') and (substr($URL, -1, 1) !== '?')) $URL .= '&amp;';
     205        $URL .= '&amp;i='.$Id;
     206        $Output .= '<li><a href="'.$URL.'"><img alt="'.$Action['Caption'].'" title="'.$Action['Caption'].'" src="'.
    202207            $this->System->Link('/images/action.png').'"/>'.$Action['Caption'].'</a></li>';
     208      }
    203209    } 
    204210    $Output .= '</ul><br/>';
     
    393399    {
    394400      foreach($FormClass['ItemActions'] as $Action)
    395         $RowActions .= '<a href="'.$this->System->Link($Action['URL']).'&amp;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) !== '&amp;') and (substr($URL, -1, 1) !== '?')) $URL .= '&amp;';
     405        $URL .= '&amp;i=#RowId';
     406        $RowActions .= '<a href="'.$URL.'"><img alt="'.$Action['Caption'].'" title="'.$Action['Caption'].'" src="'.
    396407          $this->System->Link('/images/action.png').'"/></a>';
     408      }
    397409    }   
    398410    $Output = $this->ShowTable($Table, $Filter, $Title, $RowActions, $ExcludeColumn);
Note: See TracChangeset for help on using the changeset viewer.