Changeset 498 for trunk/Common/Types/Enumeration.php
- Timestamp:
- Mar 3, 2013, 6:02:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Types/Enumeration.php
r445 r498 18 18 $Type = $this->System->Type->GetTypeDefinition($Item['Type']); 19 19 $Output = '<select name="'.$Item['Name'].'">'; 20 if(array_key_exists('Null', $Item) and $Item['Null']) 21 { 22 if($Item['Value'] == NULL) $Selected = ' selected="1"'; else $Selected = ''; 23 $Output .= '<option value=""'.$Selected.'></option>'; 24 } 20 25 foreach($Type['Parameters']['States'] as $Index => $StateName) 21 26 { … … 29 34 function OnLoad($Item) 30 35 { 36 if($_POST[$Item['Name']] == '') return(NULL); 31 37 return($_POST[$Item['Name']]); 38 } 39 40 function OnLoadDb($Item) 41 { 42 if($Item['Value'] == '') return(NULL); 43 else return($Item['Value']); 32 44 } 33 45 }
Note:
See TracChangeset
for help on using the changeset viewer.