Changeset 445 for trunk/Common/Types
- Timestamp:
- Oct 15, 2012, 6:41:56 PM (12 years ago)
- Location:
- trunk/Common/Types
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Types/Date.php
r442 r445 11 11 global $MonthNames; 12 12 13 if( strtolower($Item['Value']) == 'now') $Item['Value'] = time();13 if((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')) $Item['Value'] = time(); 14 14 $Parts = getdate($Item['Value']); 15 15 … … 22 22 global $MonthNames; 23 23 24 if( strtolower($Item['Value']) == 'now') $Item['Value'] = time();24 if((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')) $Item['Value'] = time(); 25 25 $Parts = getdate($Item['Value']); 26 26 -
trunk/Common/Types/DateTime.php
r442 r445 11 11 global $MonthNames; 12 12 13 if( strtolower($Item['Value']) == 'now') $Item['Value'] = time();13 if((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')) $Item['Value'] = time(); 14 14 $Parts = getdate($Item['Value']); 15 15 $Output = $Parts['mday'].'.'.$Parts['mon'].'.'.$Parts['year'].' '. … … 22 22 global $MonthNames; 23 23 24 if( strtolower($Item['Value']) == 'now') $Item['Value'] = time();24 if((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')) $Item['Value'] = time(); 25 25 $Parts = getdate($Item['Value']); 26 26 -
trunk/Common/Types/Enumeration.php
r435 r445 18 18 $Type = $this->System->Type->GetTypeDefinition($Item['Type']); 19 19 $Output = '<select name="'.$Item['Name'].'">'; 20 foreach($Type['Parameters'] as $Index => $StateName)20 foreach($Type['Parameters']['States'] as $Index => $StateName) 21 21 { 22 22 if($Item['Value'] == $Index) $Selected = ' selected="1"'; else $Selected = ''; -
trunk/Common/Types/Time.php
r442 r445 9 9 function OnView($Item) 10 10 { 11 if( strtolower($Item['Value']) == 'now') $Item['Value'] = time();11 if((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')) $Item['Value'] = time(); 12 12 $TimeParts = getdate($Item['Value']); 13 13 … … 18 18 function OnEdit($Item) 19 19 { 20 if( strtolower($Item['Value']) == 'now') $Item['Value'] = time();20 if((strtolower($Item['Value']) == 'now') or (strtolower($Item['Value']) == '')) $Item['Value'] = time(); 21 21 $TimeParts = getdate($Item['Value']); 22 22
Note:
See TracChangeset
for help on using the changeset viewer.