Changeset 429
- Timestamp:
- Oct 11, 2012, 2:08:59 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/form_classes.php
r428 r429 11 11 'LastOnline' => array('Type' => 'DateTime', 'Caption' => 'Naposledy běželo', 'Default' => ''), 12 12 'PermanentOnline' => array('Type' => 'Boolean', 'Caption' => 'Běží stále', 'Default' => '0'), 13 'Member' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => '0'), 14 'Location' => array('Type' => 'TMember', 'Caption' => 'Umístění', 'Default' => '0'), 13 15 ), 14 16 ), … … 195 197 'States' => array(2 => 'Měsíčně', 3 => 'Čtvrtletně', 4 => 'Pololetně', 5 => 'Ročně'), 196 198 ), 199 'TMember' => array( 200 'Type' => 'Reference', 201 'Table' => 'Member', 202 'Id' => 'Id', 203 'Name' => 'Name', 204 'Filter' => '1', 205 ), 197 206 'TFinanceSubject' => array( 198 207 'Type' => 'Reference', … … 223 232 'Filter' => '1', 224 233 ), 234 'TNetworkInterface' => array( 235 'Type' => 'Reference', 236 'Table' => 'NetworkInterface', 237 'Id' => 'Id', 238 'Name' => 'Name', 239 'Filter' => '1', 240 ), 225 241 'TNetworkSegment' => array( 226 242 'Type' => 'Reference', 227 243 'Table' => 'NetworkSegment', 228 'Id' => ' id',229 'Name' => ' name',244 'Id' => 'Id', 245 'Name' => 'Name', 230 246 'Filter' => '1', 231 247 ), -
trunk/is/index.php
r428 r429 39 39 function ShowTable($FormClass) 40 40 { 41 global $Type ;41 global $Type, $FormTypes; 42 42 43 43 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `'.$FormClass['Table'].'`'); … … 62 62 { 63 63 //$Output .= '<td>'.$Row[$ItemIndex].'</td>'; 64 $Output .= '<td>'.$Type->ExecuteTypeEvent($FormItem['Type'], 'OnView', 64 if(array_key_exists($FormItem['Type'], $FormTypes)) 65 $Output .= '<td>'.$Type->ExecuteTypeEvent('OneToMany', 'OnView', 66 array('Value' => $Row[$ItemIndex], 'Name' => $ItemIndex, 67 'Type' => array('Parameters' => array($FormTypes[$FormItem['Type']]))).'</td>'; 68 else $Output .= '<td>'.$Type->ExecuteTypeEvent($FormItem['Type'], 'OnView', 65 69 array('Value' => $Row[$ItemIndex], 'Name' => $ItemIndex)).'</td>'; 66 70 }
Note:
See TracChangeset
for help on using the changeset viewer.