Changeset 465 for trunk/Common/Forms.php
- Timestamp:
- Nov 28, 2012, 10:00:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Forms.php
r448 r465 41 41 $Edit = $System->Type->ExecuteTypeEvent($UseType, 'OnView', 42 42 array('Value' => $this->Values[$Index], 'Name' => $Index, 'Type' => $Item['Type'])); 43 if(array_key_exists('Suffix', $Item)) $Edit .= ' '.$Item['Suffix']; 43 44 array_push($Table['Rows'], array($Item['Caption'].':', $Edit)); 44 45 } … … 67 68 if($Context != '') $Context = $Context.'-'; 68 69 foreach($this->Definition['Items'] as $Index => $Item) 70 { 71 if(!array_key_exists('ReadOnly', $Item)) $Item['ReadOnly'] = false; 72 if($Item['ReadOnly'] == false) 69 73 if(!array_key_exists($Item['Type'], $FormTypes) or 70 74 (array_key_exists($Item['Type'], $FormTypes) and ($FormTypes[$Item['Type']]['Type'] != 'ManyToOne'))) … … 88 92 } else $UseType = $Item['Type']; 89 93 $Edit = $System->Type->ExecuteTypeEvent($UseType, 'OnEdit', $Parameters); 94 if(array_key_exists('Suffix', $Item)) $Edit .= $Item['Suffix']; 90 95 91 96 array_push($Table['Rows'], array($Item['Caption'].':', $Edit)); 97 } 92 98 } 93 99 $Output = '<fieldset><legend>'.$this->Definition['Title'].'</legend>'.Table($Table).
Note:
See TracChangeset
for help on using the changeset viewer.