Changeset 581 for trunk/Modules/IS/IS.php
- Timestamp:
- Oct 14, 2013, 12:26:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/IS/IS.php
r574 r581 282 282 else $Value = ''; 283 283 if($ItemIndex == 'Id') unset($Columns['Id']); 284 285 if(!array_key_exists('SQL', $FormItem)) $FormItem['SQL'] = ''; 286 else $FormItem['SQL'] = str_replace('#Id', '`'.$FormClass['Table'].'`.`Id`', $FormItem['SQL']); 284 287 $Columns[] = $this->System->FormManager->Type->ExecuteTypeEvent($UseType, 'OnFilterNameQuery', 285 288 array('Value' => $Value, 'Name' => $ItemIndex, 286 'Type' => $FormItem['Type']));289 'Type' => $FormItem['Type'], 'SQL' => $FormItem['SQL'])); 287 290 } 288 291 … … 332 335 333 336 // Load and show items 334 $Query = 'SELECT * FROM (SELECT '.$Columns.' FROM `'.$FormClass['Table'].'`) AS `TS` '.$Filter.' '.$Order['SQL'].$PageList['SQLLimit']; 337 $Query = 'SELECT * FROM (SELECT '.$Columns.' FROM `'.$FormClass['Table'].'`) AS `TS` '. 338 $Filter.' '.$Order['SQL'].$PageList['SQLLimit']; 335 339 $VisibleItemCount = 0; 336 340 $DbResult = $this->Database->query($Query); … … 465 469 } 466 470 if($MenuItem['IconName'] != '') $Image = '<img src="../images/favicons/'.$MenuItem['IconName'].'"/> '; 467 else $Image = ' ';471 else $Image = '<img src="../images/favicons/blank.png"/> '; 468 472 $Output .= '<li>'.$Image.$LinkTitle.'</li>'; 469 473 $Output .= $this->ShowMenuItem($MenuItem['Id']);
Note:
See TracChangeset
for help on using the changeset viewer.