Changeset 21 for types/Enumeration.php
- Timestamp:
- Oct 22, 2008, 10:33:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
types/Enumeration.php
r19 r21 5 5 function OnView($Item) 6 6 { 7 global $Types; 8 9 $Output = $Types[$Item['Type']]['Parameters'][$Item['Value']]; 7 $Type = GetTypeDefinition($Item['Type']); 8 $Output = $Type['Parameters'][$Item['Value']]; 10 9 return($Output); 11 10 } … … 13 12 function OnEdit($Item) 14 13 { 15 global $Types; 16 14 $Type = GetTypeDefinition($Item['Type']); 17 15 $Output = '<select name="'.$Item['Name'].'">'; 18 foreach($Type s[$Item['Type']]['Parameters'] as $Index => $StateName)16 foreach($Type['Parameters'] as $Index => $StateName) 19 17 { 20 18 if($Item['Value'] == $Index) $Selected = ' selected="1"'; else $Selected = '';
Note:
See TracChangeset
for help on using the changeset viewer.