Changeset 743 for trunk/Modules/Export/Progress.php
- Timestamp:
- Jan 9, 2014, 2:44:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/Progress.php
r740 r743 8 8 9 9 10 $Output = ''; 11 $DbResult = $System->Database->query('SELECT * FROM `ExportTask`'. 12 ' LEFT JOIN `Export` ON `Export`.`Id` = `ExportTask`.`Export` WHERE (`Export`.`OutputType` = 9 OR `Export`.`OutputType` = 10 ) AND `TimeFinish` IS NULL OR `Export` ='.$_GET['RedirectId'].' ORDER BY `Progress` DESC');// `Export`='.$Export->Id 13 while($Task = $DbResult->fetch_assoc()) { 14 $Export = '<a href="'.$System->Link('/export/?Action=View&ExportId='.$Task['Export']).'">'.$Task['Export'].'</a>'; 15 if ($_GET['RedirectId'] == $Task['Export']) 16 $Export = ''.$Export.' (tento)'; 17 $Output .= ' <strong>Export '.$Export.': <div id="progress'.$Task['Export'].'">'.ProgressBar(300, $Task['Progress']).'</div></strong><br />'; 18 if ( $Task['Progress'] > 99 ) echo '<script type="text/javascript" language="JavaScript" charset="utf-8">'. 19 'setTimeout("parent.location.href=\''.$System->Link('/export/?Action=View&Tab=7&ExportId='.$_GET['RedirectId']).'\'", 500)'. 20 '</script>'; 21 } 10 22 11 $DbResult = $System->Database->query('SELECT Progress FROM `ExportTask` WHERE `Export`='.$_GET['ExportId']); 12 $Task = $DbResult->fetch_assoc(); 13 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['RedirectId']).'\'", 500)'. 16 '</script>'; 23 echo $Output; 24 //echo ''.ProgressBar(300, $Task['Progress']).''; 17 25 18 19 echo ''.ProgressBar(300, $Task['Progress']).'';20
Note:
See TracChangeset
for help on using the changeset viewer.