Changeset 430 for trunk/Common/Types
- Timestamp:
- Oct 11, 2012, 7:16:33 PM (12 years ago)
- Location:
- trunk/Common/Types
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Types/Color.php
r428 r430 9 9 function OnView($Item) 10 10 { 11 $Output = '<span style="background-color: '.$Item['Value'].'"> </span>';11 $Output = '<span style="background-color: #'.$Item['Value'].'"> </span>'; 12 12 return($Output); 13 13 } -
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); -
trunk/Common/Types/Type.php
r428 r430 72 72 73 73 $Type['Name'] = $Name; 74 $Type['Parameters'] = array_merge($Type['Parameters'], $Parameters); 74 if(array_key_exists('Parameters', $Type)) 75 $Type['Parameters'] = array_merge($Type['Parameters'], $Parameters); 76 else $Type['Parameters'] = $Parameters; 75 77 $this->TypeDefinitionList[$Name] = $Type; 76 78 }
Note:
See TracChangeset
for help on using the changeset viewer.