Changeset 383 for trunk


Ignore:
Timestamp:
Mar 14, 2010, 10:27:02 AM (15 years ago)
Author:
george
Message:
  • Přidáno: Zobrazení verze importu.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/img_statistic.php

    r365 r383  
    2222$ID = mysql_fetch_row($DbResult);
    2323$BuildNumber_max = $ID[0];
     24if($BuildNumber_max == '') $BuildNumber_max = 0; // Empty result, no items in this group
    2425
    2526$where = 'VersionEnd = '.$BuildNumber_max.' AND (`Language` <> 0) AND (`Complete` = 1) '.$team.$language;
     
    2728$NumberTranslate = $ID[0];
    2829 
    29 $ID = mysql_fetch_row($Database->SQLCommand('SELECT COUNT(DISTINCT(`Entry`)) FROM `'.$Group['TablePrefix'].'` WHERE `VersionEnd` = '.$BuildNumber_max.' AND (`Language` = 0)'));
     30$DbResult = $Database->SQLCommand('SELECT COUNT(DISTINCT(`Entry`)) FROM `'.$Group['TablePrefix'].'` WHERE `VersionEnd` = '.$BuildNumber_max.' AND (`Language` = 0)');
     31$ID = mysql_fetch_row($DbResult);
    3032$NumberAJ = $ID[0];
    3133
  • trunk/import/import.php

    r382 r383  
    118118          }
    119119          echo('<br />Celkem: '.$Count.'  Nových: '.$NewCount.'<br />');
    120           //$Database->SQLCommand('UPDATE `Group` SET `LastVersion` = "'.$this->Version['BuildNumber'].'", `LastImport` = NOW() WHERE `Id`='.$Group['Id']);
     120          $Database->SQLCommand('UPDATE `Group` SET `LastVersion` = "'.$this->Version['BuildNumber'].'", `LastImport` = NOW() WHERE `Id`='.$Group['Id']);
    121121        } else echo('Již importován pro verzi '.$this->Version['Version']);
    122122      } else echo('Není definováno jméno zdrojového souboru');
  • trunk/import/index.php

    r382 r383  
    5252function ShowMenu()
    5353{
    54   global $TranslationTree, $Database;
     54  global $TranslationTree, $Database, $Config;
    5555 
    5656  echo('</div><div><strong>Import zdrojů:</strong></div>');
    57 $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM `Group`');
     57 
     58  echo('<div><a href="?action=instructions">Instrukce pro přípravu zdrojových souborů</a></div><br/>');
     59  echo('Verze klienta použitá pro import: <strong>'.$Config['Web']['GameVersion'].'</strong>');
     60  $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM `Group`');
    5861  $DbRow = mysql_fetch_row($DbResult);
    5962  $PageList = GetPageList($DbRow[0]); 
Note: See TracChangeset for help on using the changeset viewer.