Changeset 508 for trunk/Modules/IS/IS.php
- Timestamp:
- Apr 1, 2013, 8:36:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/IS/IS.php
r502 r508 14 14 return('Nemáte oprávnění'); 15 15 16 $DbResult = $this->Database->select('ISMenuItem', '*' );16 $DbResult = $this->Database->select('ISMenuItem', '*', '1 ORDER BY Parent,Name'); 17 17 while($DbRow = $DbResult->fetch_assoc()) 18 18 { … … 126 126 function ShowView($Table, $Id) 127 127 { 128 if($Table != '') $FormClass = $this->System->FormManager->Classes[$Table]; 129 else return($this->SystemMessage('Chyba', 'Tabulka nenalezena')); 130 128 131 $Form = new Form($this->System->FormManager); 129 132 $Form->SetClass($Table); … … 140 143 $Output .= '<li><a href="?a=add"><img alt="Přidat" title="Přidat" src="'. 141 144 $this->System->Link('/images/add.png').'"/>Přidat</a></li>'; 145 if(array_key_exists('ItemActions', $FormClass)) 146 { 147 foreach($FormClass['ItemActions'] as $Action) 148 $Output .= '<li><a href="'.$this->System->Link($Action['URL']).'&id='.$Id.'"><img alt="'.$Action['Caption'].'" title="'.$Action['Caption'].'" src="'. 149 $this->System->Link('/images/action.png').'"/>'.$Action['Caption'].'</a></li>'; 150 } 142 151 $Output .= '</ul><br/>'; 143 152
Note:
See TracChangeset
for help on using the changeset viewer.