- Timestamp:
- Oct 22, 2008, 10:33:11 AM (16 years ago)
- Location:
- types
- Files:
-
- 4 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 = ''; -
types/File/FileDownload.php
r19 r21 10 10 } 11 11 12 chdir('.. ');12 chdir('../..'); 13 13 include('global.php'); 14 14 $DbResult = $Database->select('SystemFile', '*', 'Id='.addslashes($_GET['Id'])); -
types/PointerOneToOne.php
r20 r21 47 47 function OnView($Item) 48 48 { 49 global $Database , $Types;49 global $Database; 50 50 51 $Type = $Types[$Item['Type']];51 $Type = GetTypeDefinition($Item['Type']); 52 52 $TargetTable = $Type['Parameters'][0]; 53 53 $TargetName = $this->GetTablePointerName($Type, $Item); -
types/include.php
r19 r21 17 17 include('types/GPS.php'); 18 18 19 define(TypeIntegerId, 1); 20 define(TypeBooleanId, 4); 21 define(TypeStringId, 3); 22 define(TypeDateId, 2); 23 define(TypePasswordId, 15); 24 define(TypeFloatId, 16); 25 define(TypeHiddenId, 20); 26 define(TypePointerToUserId, 37); 27 19 28 ?>
Note:
See TracChangeset
for help on using the changeset viewer.