Changeset 654


Ignore:
Timestamp:
May 10, 2014, 12:46:53 PM (10 years ago)
Author:
chronos
Message:
  • Přidáno: Ukazovat obecné ikony pro přehlednost v IS i u položek, které nemají určenu speciální ikonu.
Location:
trunk
Files:
2 added
1 edited

Legend:

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

    r647 r654  
    309309        if($Table != '') $FormClass = $this->System->FormManager->Classes[$Table];
    310310      else return($this->SystemMessage('Chyba', 'Tabulka nenalezena'));
    311      
     311
    312312    if(array_key_exists('SQL', $FormClass))
    313313      $SourceTable = '('.$FormClass['SQL'].') AS `TX`';
     
    560560      if($MenuItem['URL'] != '')
    561561      {
     562        $Icon = 'Device.png';
    562563        if(substr($MenuItem['URL'], 0, 4) != 'http') $MenuItem['URL'] = $this->System->Link($MenuItem['URL']);
    563564        $LinkTitle = MakeLink($MenuItem['URL'], $LinkTitle);
    564       }
     565      } else $Icon = 'Folder.png';
    565566      if($MenuItem['IconName'] != '') $Image = '<img src="'.$this->System->Link('/images/favicons/'.$MenuItem['IconName']).'"/>&nbsp;';
    566         else $Image = '<img src="'.$this->System->Link('/images/favicons/blank.png').'"/>&nbsp;';
     567        else $Image = '<img src="'.$this->System->Link('/images/favicons/'.$Icon).'"/>&nbsp;';
    567568      //if($this->System->User->CheckPermission($this->TableToModule($Table), 'Write') or !defined('NEW_PERMISSION'))
    568569        $Output .= '<li>'.$Image.$LinkTitle.'</li>';
Note: See TracChangeset for help on using the changeset viewer.