Changeset 47 for trunk/Base/HTML/Form.php
- Timestamp:
- Jul 27, 2014, 9:14:56 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 2 1 config.php 2 .project
-
- Property svn:ignore
-
trunk/Base/HTML/Form.php
r42 r47 8 8 var $Values = array(); 9 9 var $OnSubmit = ''; 10 10 11 11 function __construct($System, $FormClass) 12 12 { … … 16 16 { 17 17 $this->Values[$Index] = ''; 18 } 18 } 19 19 } 20 20 … … 36 36 if($Item['Type'] != 'Hidden') 37 37 { 38 if(!array_key_exists($Index, $this->Values) and isset($Item['Default'])) $this->Values[$Index] = $Item['Default']; 38 if(!array_key_exists($Index, $this->Values) and isset($Item['Default'])) $this->Values[$Index] = $Item['Default']; 39 39 $Edit = $this->System->Type->ExecuteTypeEvent($Item['Type'], 'OnView', 40 40 array('Name' => $Index, 'Value' => $this->Values[$Index], 'Type' => $Item['Type'])); … … 43 43 } 44 44 $Output = '<div style="text-align: center">'.$this->Definition['Title'].'</div>'.$this->Table($Table, 'WideTable'); 45 return($Output); 45 return($Output); 46 46 } 47 47 … … 62 62 foreach($this->Definition['Items'] as $Index => $Item) 63 63 { 64 if($Item['Type'] != 'Hidden') 64 if($Item['Type'] != 'Hidden') 65 65 { 66 if(!array_key_exists($Index, $this->Values) and isset($Item['Default'])) $this->Values[$Index] = $Item['Default']; 66 if(!array_key_exists($Index, $this->Values) and isset($Item['Default'])) $this->Values[$Index] = $Item['Default']; 67 67 $Edit = $this->System->Type->ExecuteTypeEvent($Item['Type'], 'OnEdit', array('Name' => $Index, 'Value' => $this->Values[$Index], 'Type' => $Item['Type'])); 68 68 array_push($Table['Rows'], array($Item['Caption'].':', $Edit)); … … 73 73 foreach($this->Definition['Items'] as $Index => $Item) 74 74 if($Item['Type'] == 'Hidden') $Output .= $this->System->Type->ExecuteTypeEvent($Item['Type'], 'OnEdit', array('Name' => $Index, 'Value' => $this->Values[$Index], 'Type' => $Item['Type'])); 75 return($Output); 75 return($Output); 76 76 } 77 77 … … 119 119 } 120 120 } 121 122 ?>
Note:
See TracChangeset
for help on using the changeset viewer.