Changeset 846 for trunk/Modules/IS/IS.php
- Timestamp:
- May 1, 2017, 4:25:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/IS/IS.php
r843 r846 358 358 return($Output); 359 359 } 360 360 361 361 function ShowTabs($Tabs, $QueryParamName, $TabContent) 362 362 { 363 $QueryItems = GetQueryStringArray($_SERVER['QUERY_STRING']); 364 363 $QueryItems = GetQueryStringArray($_SERVER['QUERY_STRING']); 364 $QueryItems['a'] = 'view'; 365 365 366 if(array_key_exists($QueryParamName, $_GET)) $TabIndex = $_GET[$QueryParamName]; 366 367 else $TabIndex = 0; … … 432 433 ($this->System->FormManager->FormTypes[$Item['Type']]['Type'] == 'ManyToOne'))) 433 434 { 434 435 $Tabs[] = $Item['Caption']; 435 436 } 436 437 $Tabs[] = 'Vše'; 437 438 if(array_key_exists('tab', $_GET)) $TabIndex = $_GET['tab']; 438 439 else $TabIndex = 0; 439 440 440 441 $TabContent = ''; 441 442 $I = 0; … … 444 445 ($this->System->FormManager->FormTypes[$Item['Type']]['Type'] == 'ManyToOne'))) 445 446 { 446 447 $TypeItem = $this->System->FormManager->FormTypes[$Item['Type']]; 447 448 if (($TabIndex == $I) or ($TabIndex == (count($Tabs) - 1))) 448 { 449 { 449 450 $TabContent .= $this->ShowList($TypeItem['Table'], '`'. 450 451 $TypeItem['Ref'].'`='.$Id, $Item['Caption'], 451 452 $TypeItem['Ref'], $Id).'<br/>'; 452 453 454 453 } 454 $I++; 455 } 455 456 456 457 $Output .= $this->ShowTabs($Tabs, 'tab', $TabContent);
Note:
See TracChangeset
for help on using the changeset viewer.