Changeset 483 for trunk/Common/Types/OneToMany.php
- Timestamp:
- Feb 7, 2013, 11:01:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Types/OneToMany.php
r448 r483 10 10 if($Item['Value'] != '') 11 11 { 12 if(array_key_exists('View', $Type['Parameters'])) $Table = $Type['Parameters']['View']; 13 else $Table = $Type['Parameters']['Table']; 12 14 $DbResult = $this->System->Database->query('SELECT '.$Type['Parameters']['Name']. 13 ' AS `Name` FROM `'.$Type['Parameters']['Table'].'`WHERE `'.15 ' AS `Name` FROM '.$Table.' WHERE `'. 14 16 $Type['Parameters']['Id'].'`='.$Item['Value']); 15 17 $DbRow = $DbResult->fetch_assoc(); … … 31 33 $Output .= '<option value=""'.$Selected.'></option>'; 32 34 } 33 $DbResult = $this->System->Database->query('SELECT '.$Type['Parameters']['Name'].' AS `Name`,'.$Type['Parameters']['Id'].' AS `Id` FROM `'.$Type['Parameters']['Table'].'`'.$Where.' ORDER BY `Name`'); 35 if(array_key_exists('View', $Type['Parameters'])) $Table = $Type['Parameters']['View']; 36 else $Table = $Type['Parameters']['Table']; 37 $DbResult = $this->System->Database->query('SELECT '.$Type['Parameters']['Name'].' AS `Name`,'.$Type['Parameters']['Id'].' AS `Id` FROM '.$Table.''.$Where.' ORDER BY `Name`'); 34 38 while($DbRow = $DbResult->fetch_assoc()) 35 39 {
Note:
See TracChangeset
for help on using the changeset viewer.