Changeset 525 for trunk/export/index.php
- Timestamp:
- Feb 20, 2013, 11:30:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/index.php
r504 r525 505 505 $Export = $DbResult->fetch_assoc(); 506 506 507 if($Export['OutputType'] == '') $Output .= ShowMessage('Nevybrán typ exportu', MESSAGE_CRITICAL); 508 else { 507 509 $Query = 'SELECT `ClientVersion`.* FROM `ExportVersion` LEFT JOIN `ClientVersion` ON `ClientVersion`.`Id`=`ExportVersion`.`ClientVersion` WHERE `ExportType`='.$Export['OutputType']; 508 510 … … 544 546 '</form>'. 545 547 $PageList['Output']; 548 } 546 549 return($Output); 547 550 } … … 551 554 global $System; 552 555 556 $Output = ''; 553 557 $DbResult = $System->Database->query('SELECT * FROM `Export` WHERE `Id`='.$_GET['ExportId']); 554 558 $Export = $DbResult->fetch_assoc(); 555 $DbResult = $System->Database->query('SELECT * FROM `ExportOutputType` WHERE `Id`='.$Export['OutputType']); 559 if($Export['OutputType'] == '') $Output .= ShowMessage('Nevybrán typ exportu', MESSAGE_CRITICAL); 560 else { 561 $DbResult = $System->Database->query('SELECT * FROM `ExportOutputType` WHERE `Id`='.$Export['OutputType']); 556 562 if($DbResult->num_rows > 0) 557 563 { … … 563 569 } else $Output = ShowMessage('Nebyla vybrána požadovaná verze klienta.', MESSAGE_CRITICAL); 564 570 } else $Output = ShowMessage('Nebyl vybrán formát výstupu.', MESSAGE_CRITICAL); 571 } 565 572 return($Output); 566 573 } … … 568 575 function ExportViewStat() 569 576 { 570 global $System ;577 global $System, $Config; 571 578 572 579 $Export = new Export($System); 573 580 $Export->Id = $_GET['ExportId']; 574 581 $Export->Init(); 575 $Export->LoadFilters(); 582 if($Export->ClientVersion == '') $Output = ShowMessage('Nebyla vybrána verze klienta', MESSAGE_CRITICAL); 583 else { 584 $Export->LoadFilters(); 576 585 577 586 if($Export->ClientVersion['BuildNumber'] == '') $Output = ShowMessage('Nebyla vybrána verze klienta', MESSAGE_CRITICAL); 578 {587 else { 579 588 $GroupListQuery = 'SELECT `Group`.* FROM `Group` '. 580 589 ' JOIN `ExportGroup` ON (`ExportGroup`.`Export`='.$Export->Id.') AND (`ExportGroup`.`Group`=`Group`.`Id`)'; … … 592 601 '(SELECT COUNT(DISTINCT(`Entry`)) FROM ('. 593 602 ' SELECT `T`.* FROM `'.$DbRow['TablePrefix'].'` AS `T`'. 594 ' WHERE (`Language` = 0) AND (`VersionStart` <= '.$Export->ClientVersion['BuildNumber'].') AND (`VersionEnd` >= '.$Export->ClientVersion['BuildNumber'].')'.603 ' WHERE (`Language` = '.$Config['OriginalLanguage'].') AND (`VersionStart` <= '.$Export->ClientVersion['BuildNumber'].') AND (`VersionEnd` >= '.$Export->ClientVersion['BuildNumber'].')'. 595 604 ') AS `C2`) AS `Total`, "'.$DbRow['Name'].'" AS `Name`'; 596 605 } … … 631 640 $Output .= '<tr><td><strong>Celkem</strong></td><td><strong>'.$Translated.'</strong></td><td><strong>'.$Total.'</strong></td><td><strong>'.ProgressBar(150, round($Percent, 2)).'</strong></td></tr>'; 632 641 $Output .= '</table>'; 642 } 633 643 } 634 644 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.