Changeset 10 for types/Enumeration.php
- Timestamp:
- Oct 12, 2008, 8:43:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
types/Enumeration.php
r8 r10 1 1 <?php 2 2 3 function TypeEnumeration ViewHtml($Type,$Item)3 function TypeEnumerationOnView($Item) 4 4 { 5 $Output = $Type['Parameters'][$Item['Value']]; 5 global $Types; 6 7 $Output = $Types[$Item['Type']]['Parameters'][$Item['Value']]; 6 8 return($Output); 7 9 } 8 10 9 function TypeEnumeration EditHtml($Type,$Item)11 function TypeEnumerationOnEdit($Item) 10 12 { 13 global $Types; 14 11 15 $Output = '<select name="'.$Item['Name'].'">'; 12 foreach($Type ['Parameters'] as $Index => $StateName)16 foreach($Types[$Item['Type']]['Parameters'] as $Index => $StateName) 13 17 { 14 18 if($Parameter == $Index) $Selected = ' selected="1"'; else $Selected = '';
Note:
See TracChangeset
for help on using the changeset viewer.