Changeset 430 for trunk/Common/Types/OneToMany.php
- Timestamp:
- Oct 11, 2012, 7:16:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Types/OneToMany.php
r428 r430 10 10 if($Item['Value'] != '') 11 11 { 12 $DbResult = $this->System->Database->query('SELECT '.$Type['Parameters']['Name'].' AS `Name` FROM `'.$Type['Parameters']['Table'].'` WHERE `'.$Type['Parameters']['Id'].'`='.$Item['Value']); 12 $DbResult = $this->System->Database->query('SELECT '.$Type['Parameters']['Name']. 13 ' AS `Name` FROM `'.$Type['Parameters']['Table'].'` WHERE `'. 14 $Type['Parameters']['Id'].'`='.$Item['Value']); 13 15 $DbRow = $DbResult->fetch_assoc(); 14 $Output = '<a href="'.$this->System->Navigation->MakeLink($Type['Parameters']['Table'], 'View', array('Id' => $Item['Value'])).'">'.$DbRow['Name'].'</a>'; 16 $Output = '<a href="?t='.$Type['Parameters']['Table'].'&a='. 17 'view'.'&id='.$Item['Value'].'">'.$DbRow['Name'].'</a>'; 15 18 } else $Output = ''; 16 19 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.