Changeset 527 for trunk/Modules/IS/IS.php
- Timestamp:
- Apr 21, 2013, 11:24:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/IS/IS.php
r524 r527 15 15 return('Nemáte oprávnění'); 16 16 17 $DbResult = $this->Database->select('ISMenuItem', '*', '1 ORDER BY Parent,Name'); 17 $DbResult = $this->Database->query('SELECT `MenuItem`.`Id`, `MenuItem`.`Name`, `MenuItem`.`Parent`, `Action`.`URL` AS `URL`, `ActionIcon`.`Name` AS `IconName` FROM `MenuItem` '. 18 'LEFT JOIN `Action` ON `Action`.`Id` = `MenuItem`.`Action` '. 19 'LEFT JOIN `ActionIcon` ON `ActionIcon`.`Id` = `Action`.`Icon` '. 20 'ORDER BY `MenuItem`.`Parent`,`MenuItem`.`Name`'); 18 21 while($DbRow = $DbResult->fetch_assoc()) 19 22 { … … 260 263 { 261 264 $LinkTitle = $MenuItem['Name']; 262 if($MenuItem['Table'] != '') $LinkTitle = MakeLink('?t='.$MenuItem['Table'].'&a=list', $LinkTitle); 265 if($MenuItem['URL'] != '') 266 { 267 if(substr($MenuItem['URL'], 0, 4) != 'http') $MenuItem['URL'] = $this->System->Link($MenuItem['URL']); 268 $LinkTitle = MakeLink($MenuItem['URL'], $LinkTitle); 269 } 263 270 if($MenuItem['IconName'] != '') $Image = '<img src="../images/favicons/'.$MenuItem['IconName'].'"/> '; 264 271 else $Image = '';
Note:
See TracChangeset
for help on using the changeset viewer.