Legend:
- Unmodified
- Added
- Removed
-
types.php
r1 r2 1 1 <?php 2 2 3 function TypeEnumerationViewHtml($Type, $Parameter )3 function TypeEnumerationViewHtml($Type, $Parameter, $Table, $Id) 4 4 { 5 5 $Output = $Type['TypeDefinition'][$Parameter]; … … 7 7 } 8 8 9 function TypeEnumerationEditHtml($Type, $Parameter )9 function TypeEnumerationEditHtml($Type, $Parameter, $Table, $Id) 10 10 { 11 11 $Output = '<select name="%name%">'; … … 21 21 $MonthList = array('0', 'Leden', 'Únor', 'Březen', 'Duben', 'Květen', 'Červen', 'Červenec', 'Srpen', 'Září', 'Říjen', 'Listopad', 'Prosinec'); 22 22 23 function TypeDateViewHtml($Type, $Parameter )23 function TypeDateViewHtml($Type, $Parameter, $Table, $Id) 24 24 { 25 25 global $MonthList; … … 31 31 } 32 32 33 function TypeDateEditHtml($Type, $Parameter )33 function TypeDateEditHtml($Type, $Parameter, $Table, $Id) 34 34 { 35 35 global $MonthList; … … 61 61 } 62 62 $Output .= '</select>'; 63 return($Output); 64 } 65 66 function TypePointerViewHtml($Type, $Parameter, $Table, $Id) 67 { 68 $Output = '<a href="?Action=SelectList&Id='.$Type['TypeDefinition'].'&ParentTable='.$Table.'&ParentId='.$Id.'">Seznam</a>'; 63 69 return($Output); 64 70 } … … 115 121 'Logitude' => 'Integer', 116 122 ), 117 ) 123 ), 124 'ListItemPointer' => array( 125 'Type' => 'Pointer', 126 'TypeDefinition' => 'ListItem', 127 'ViewHtml' => 'TypePointerViewHtml', 128 'EditHtml' => 'TypePointerViewHtml', 129 'DatabaseType' => 'INT', 130 'InitValue' => '0', 131 'ParseFunction' => '', 132 ), 118 133 ); 119 134
Note:
See TracChangeset
for help on using the changeset viewer.