Changeset 557
- Timestamp:
- Jul 18, 2013, 7:38:14 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/IS/IS.php
r551 r557 210 210 { 211 211 $Output .= $this->ShowList($this->System->FormManager->FormTypes[$Item['Type']]['Table'], '`'. 212 $this->System->FormManager->FormTypes[$Item['Type']]['Ref'].'`='.$Id, $Item['Caption']).'<br/>'; 212 $this->System->FormManager->FormTypes[$Item['Type']]['Ref'].'`='.$Id, $Item['Caption'], 213 $this->System->FormManager->FormTypes[$Item['Type']]['Ref']).'<br/>'; 213 214 } 214 215 return($Output); 215 216 } 216 217 217 function ShowTable($Table, $Filter = '', $Title = '', $RowActions = array() )218 function ShowTable($Table, $Filter = '', $Title = '', $RowActions = array(), $ExcludeColumn = '') 218 219 { 219 220 if($Table != '') $FormClass = $this->System->FormManager->Classes[$Table]; 220 221 else return($this->SystemMessage('Chyba', 'Tabulka nenalezena')); 221 222 … … 227 228 foreach($FormClass['Items'] as $ItemIndex => $FormItem) 228 229 if(!array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) or 229 230 ($this->System->FormManager->FormTypes[$FormItem['Type']]['Type'] != 'ManyToOne')))230 (array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) and 231 ($this->System->FormManager->FormTypes[$FormItem['Type']]['Type'] != 'ManyToOne'))) 231 232 { 232 233 $UseType = $UseType = $FormItem['Type']; … … 253 254 foreach($FormClass['Items'] as $ItemIndex => $FormItem) 254 255 if(!array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) or 255 (array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) and 256 ($this->System->FormManager->FormTypes[$FormItem['Type']]['Type'] != 'ManyToOne'))) 257 { 258 $TableColumns[] = array('Name' => $ItemIndex, 'Title' => $FormItem['Caption']); 256 (array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) and 257 ($this->System->FormManager->FormTypes[$FormItem['Type']]['Type'] != 'ManyToOne'))) 258 { 259 if($ExcludeColumn != $ItemIndex) 260 $TableColumns[] = array('Name' => $ItemIndex, 'Title' => $FormItem['Caption']); 259 261 $UseType = $UseType = $FormItem['Type']; 260 262 if(array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes)) … … 310 312 $Output .= '<tr><form action="?a='.$_GET['a'].'&t='.$Table.'&filter=1'.$Addition.'" method="post">'; 311 313 foreach($FormClass['Items'] as $ItemIndex => $FormItem) 312 if(!array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) or 313 (array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) and 314 ($this->System->FormManager->FormTypes[$FormItem['Type']]['Type'] != 'ManyToOne'))) 314 if((!array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) or 315 (array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) and 316 ($this->System->FormManager->FormTypes[$FormItem['Type']]['Type'] != 'ManyToOne'))) and 317 ($ExcludeColumn != $ItemIndex)) 315 318 { 316 319 if(array_key_exists('Filter'.$ItemIndex, $_POST) and ($_POST['Filter'.$ItemIndex] != '')) … … 329 332 $Output .= '<tr>'; 330 333 foreach($FormClass['Items'] as $ItemIndex => $FormItem) 331 if( !array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) or334 if((!array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) or 332 335 (array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes) and 333 ($this->System->FormManager->FormTypes[$FormItem['Type']]['Type'] != 'ManyToOne'))) 334 { 335 //$Output .= '<td>'.$Row[$ItemIndex].'</td>'; 336 ($this->System->FormManager->FormTypes[$FormItem['Type']]['Type'] != 'ManyToOne'))) and 337 ($ExcludeColumn != $ItemIndex)) 338 { 339 //$Output .= '<td>'.$Row[$ItemIndex].'</td>'; 336 340 $UseType = $UseType = $FormItem['Type']; 337 341 if(array_key_exists($FormItem['Type'], $this->System->FormManager->FormTypes)) … … 376 380 } 377 381 378 function ShowList($Table, $Filter = '', $Title = '' )382 function ShowList($Table, $Filter = '', $Title = '', $ExcludeColumn = '') 379 383 { 380 384 $RowActions = '<a href="?a=view&t='.$Table.'&i=#RowId"><img alt="Ukázat" title="Ukázat" src="'. … … 392 396 $this->System->Link('/images/action.png').'"/></a>'; 393 397 } 394 $Output = $this->ShowTable($Table, $Filter, $Title, $RowActions );398 $Output = $this->ShowTable($Table, $Filter, $Title, $RowActions, $ExcludeColumn); 395 399 $Output .= '<ul class="ActionMenu">'; 396 400 $Output .= '<li><a href="?a=add&t='.$Table.'"><img alt="Přidat" title="Přidat" src="'. -
trunk/ToDo.txt
r556 r557 21 21 # datové položky. 22 22 # položky globálního nastavení 23 # akce 23 # akce, položky nabídky 24 24 # soubory, ikony 25 # plus libovolné další datové položky jiných modulů 26 * základ systému by měl fungovat i bez databáze, peristenci v datových souborech 25 27 - IS: 26 28 * Obecný export/import dat (XML, CVS)
Note:
See TracChangeset
for help on using the changeset viewer.