Changeset 258


Ignore:
Timestamp:
Jul 24, 2009, 8:32:20 PM (15 years ago)
Author:
maron
Message:

Aktualizace příznaku staženo u příkazů

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/download.php

    r257 r258  
    9191  if (mysql_num_rows($ID) > 0)
    9292  {
    93     echo ('Seznam zadaných úkolů: <table  class="BaseTable"><tr><th>Datum</th><th>Vygenerováno</th><th>Staženo</th><th>Soubor</th></tr>');
     93    $Database->SQLCommand('UPDATE tasks SET Downloaded = 1 WHERE User = '.$_SESSION['UserID']);
     94    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>');
    9495    while($Line = mysql_fetch_assoc($ID))
    9596    {
  • trunk/export/index.php

    r257 r258  
    410410        $sql = 'SELECT count(*) FROM tasks WHERE Active = 1 AND User = '.$_SESSION['UserID'];
    411411        $ID = $Database->SQLCommand($sql);
    412                 if (mysql_num_rows($ID) == 0)
     412                if (mysql_num_rows($ID) > 0)
    413413                {
     414                  echo ('Nemůžete zadat stejný požadavek dvakrát za den. Bylo pouze aktualizováno nastavení exportu!');
     415          $Database->SQLCommand('UPDATE `wowpreklad`.`tasks` SET `ExportSetting` = "'.addslashes(serialize($ExportSetting)).'" WHERE Active = 1 AND User = '.$_SESSION['UserID']);
     416            } else {
    414417          $Database->SQLCommand('INSERT INTO `wowpreklad`.`tasks` (`User` ,`ExportSetting` ,`Date` ) VALUES ("'.$_SESSION['UserID'].'", "'.addslashes(serialize($ExportSetting)).'", NOW( ))');
    415             } else {
    416                   echo ('Nemůžete zadat stejný požadavek dvakrát za den. Bylo pouze aktualizováno nastavení exportu!');
    417           $Database->SQLCommand('UPDATE `wowpreklad`.`tasks` SET `ExportSetting` = "'.$_SESSION['UserID'].'" WHERE Active = 1 AND User = '.$_SESSION['UserID']);
    418418                }
    419419                WriteLog('Zadání úlohy pro vygenerování dbc souboru', 2);
Note: See TracChangeset for help on using the changeset viewer.