Changeset 260


Ignore:
Timestamp:
Jul 25, 2009, 12:02:12 PM (15 years ago)
Author:
maron
Message:

oprava odkazu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/download.php

    r258 r260  
    9191  if (mysql_num_rows($ID) > 0)
    9292  {
    93     $Database->SQLCommand('UPDATE tasks SET Downloaded = 1 WHERE User = '.$_SESSION['UserID']);
     93    $Database->SQLCommand('UPDATE tasks SET Downloaded = 1 WHERE Active = 0 AND User = '.$_SESSION['UserID']);
    9494    echo ('<h3>Seznam zadaných úkolů</h3> <table  class="BaseTable"><tr><th>Datum</th><th>Vygenerováno</th><th>Staženo</th><th>Soubor</th></tr>');
    9595    while($Line = mysql_fetch_assoc($ID))
     
    9898          {
    9999            $Active = 'Hotovo';
    100                 $Download = '<a href="'.$Config['Web']['TempFolder'].$_SESSION['User'].'/dbc/CzWoW_DBC.zip">Stáhnout - CzWoW_DBC.zip</a>';
     100                $Download = '<a href="'.$Config['Web']['TempFolder'].$_SESSION['User'].'/CzWoW_DBC.zip">Stáhnout - CzWoW_DBC.zip</a>';
    101101          } else {
    102102                $Active = 'Čeká na zpracování';
     
    105105          if ($Line['Downloaded'] == 1) $Downloaded = 'Staženo'; else $Downloaded = 'Nestaženo';
    106106        echo('<tr>'.
    107         '<td><strong>'.$Line['Date'].'</strong></td>'.
     107        '<td><strong>'.HumanDate($Line['Date']).'</strong></td>'.
    108108        '<td>'.$Active.'</td>'.
    109109        '<td>'.$Downloaded.'</td>'.
Note: See TracChangeset for help on using the changeset viewer.