Changeset 740
- Timestamp:
- Jan 9, 2014, 11:21:08 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/ExportOutput.php
r734 r740 192 192 if(array_key_exists('Regenerate', $_POST)) 193 193 { 194 $System->Database->query('UPDATE ExportTask SET TimeStart = NOW(), TimeFinish = NULL WHERE Export = '.$ExportId);194 $System->Database->query('UPDATE ExportTask SET TimeStart = NOW(), `Progress`=0 , TimeFinish = NULL WHERE Export = '.$ExportId); 195 195 $Output .= ShowMessage('Soubor zařazen znovu ke zpracování do fronty.'); 196 $System->ModuleManager->Modules['Log']->WriteLog('Zadání úlohy pro vygenerování dbc souboru', LOG_TYPE_DOWNLOAD); 196 197 } 197 198 … … 203 204 { 204 205 $System->Database->query('INSERT INTO ExportTask (`Export` ,`TimeStart` ) VALUES ('.$ExportId.', NOW())'); 205 $ this->System->ModuleManager->Modules['Log']->WriteLog('Zadání úlohy pro vygenerování dbc souboru', LOG_TYPE_DOWNLOAD);206 $System->ModuleManager->Modules['Log']->WriteLog('Zadání úlohy pro vygenerování dbc souboru', LOG_TYPE_DOWNLOAD); 206 207 $System->Database->query('UPDATE `ExportTask` SET `Progress`=0 WHERE `Export`='.$Export->Id); 207 208 } … … 236 237 '$(document).ready(function() {'. 237 238 'var refreshId = setInterval(function() {'. 238 '$("#progress'.$Task['Export'].'").load("'.$System->Link('/Modules/Export/Progress.php? ExportId='.$Task['Export']).'"); '.239 '$("#progress'.$Task['Export'].'").load("'.$System->Link('/Modules/Export/Progress.php?RedirectId='.$_GET['ExportId'].'&ExportId='.$Task['Export']).'"); '. 239 240 '}, 1000);'. 240 241 '});'. … … 248 249 249 250 } 251 $DbResult = $System->Database->query('SELECT * FROM `ExportTask` LEFT JOIN `Export` ON `Export`.`Id` = `ExportTask`.`Export` WHERE '. 252 ' (`Export`.`OutputType` = 9 OR `Export`.`OutputType` = 10 ) AND `TimeFinish` IS NULL AND `TimeStart` < NOW()-10000'); 253 if($DbResult->num_rows > 0) { 254 $System->ModuleManager->Modules['Log']->WriteLog('ProcesTask nepracuje přes 2 hodiny, pravděpodobně nepracuje!', LOG_TYPE_ERROR); 255 256 } 250 257 return ($Output); 251 258 } … … 263 270 if(array_key_exists('Regenerate', $_POST)) 264 271 { 265 $System->Database->query('UPDATE ExportTask SET TimeStart = NOW(), TimeFinish = NULL WHERE Export = '.$ExportId);272 $System->Database->query('UPDATE ExportTask SET TimeStart = NOW(), `Progress`=0, TimeFinish = NULL WHERE Export = '.$ExportId); 266 273 $Output .= ShowMessage('Soubor zařazen znovu ke zpracování do fronty.'); 267 $System-> Database->query('UPDATE `ExportTask` SET `Progress`=0 WHERE `Export`='.$Export->Id);274 $System->ModuleManager->Modules['Log']->WriteLog('Zadání úlohy pro vygenerování exe souboru', LOG_TYPE_DOWNLOAD); 268 275 } 269 276 -
trunk/Modules/Export/ProcessTask.php
r735 r740 161 161 162 162 // Delete old files 163 SetProgress($Export, 5);163 SetProgress($Export,1); 164 164 echo('Delete old files...'."\n"); 165 165 DeleteOldFiles($Export->TempDir.'dbc'); -
trunk/Modules/Export/Progress.php
r738 r740 13 13 14 14 if ( $Task['Progress'] > 99 ) echo '<script type="text/javascript" language="JavaScript" charset="utf-8">'. 15 'setTimeout("parent.location.href=\''.$System->Link('/export/?Action=View&Tab=7&ExportId='.$_GET[' ExportId']).'\'", 500)'.15 'setTimeout("parent.location.href=\''.$System->Link('/export/?Action=View&Tab=7&ExportId='.$_GET['RedirectId']).'\'", 500)'. 16 16 '</script>'; 17 17 -
trunk/includes/Version.php
r739 r740 6 6 // and system will need database update. 7 7 8 $Revision = 7 39; // Subversion revision8 $Revision = 740; // Subversion revision 9 9 $DatabaseRevision = 732; // Database structure revision 10 10 $ReleaseTime = '2014-01-08';
Note:
See TracChangeset
for help on using the changeset viewer.