Changeset 690 for trunk/Modules/Export
- Timestamp:
- Jan 2, 2014, 4:11:45 PM (11 years ago)
- Location:
- trunk/Modules/Export
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/ExportOutput.php
r674 r690 227 227 } 228 228 $Output .= '<script type="text/javascript" language="JavaScript" charset="utf-8">'. 229 'setTimeout("parent.location.href=\''.$System->Link('/export/?Action=View&Tab=7& ExportId='.$Export->Id).'\'", 3000)'.229 'setTimeout("parent.location.href=\''.$System->Link('/export/?Action=View&Tab=7&Auto&ExportId='.$Export->Id).'\'", 5000)'. 230 230 '</script>'; 231 231 $Output .= ' <strong>Dokončeno procent: '.ProgressBar(300, $Line).'</strong>'; … … 277 277 } 278 278 $Output .= '<script type="text/javascript" language="JavaScript" charset="utf-8">'. 279 'setTimeout("parent.location.href=\''.$System->Link('/export/?Action=View&Tab=7& ExportId='.$Export->Id).'\'", 3000)'.279 'setTimeout("parent.location.href=\''.$System->Link('/export/?Action=View&Tab=7&Auto&ExportId='.$Export->Id).'\'", 5000)'. 280 280 '</script>'; 281 281 $Output .= ' <strong>Dokončeno procent: '.ProgressBar(300, $Line).'</strong>'; -
trunk/Modules/Export/Page.php
r682 r690 606 606 if($DbResult->num_rows > 0) 607 607 { 608 //TODO: don't count on dbc or exe609 $this->System->Database->query('UPDATE `Export` SET `UsedCount` = `UsedCount` + 1 WHERE `Id`='.$Export['Id']);608 if (array_key_exists('Auto', $_GET) == false) 609 $this->System->Database->query('UPDATE `Export` SET `UsedCount` = `UsedCount` + 1 WHERE `Id`='.$Export['Id']); 610 610 $Output = ExportOutput($Export['Id'], $Export['OutputType']); 611 611 } else $Output = ShowMessage('Nebyla vybrána požadovaná verze klienta.', MESSAGE_CRITICAL);
Note:
See TracChangeset
for help on using the changeset viewer.