Changeset 432 for trunk


Ignore:
Timestamp:
Apr 8, 2010, 8:58:16 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Raději zobrazovat ve verzích nejen verze ostatních, ale i vlastní.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/TranslationList.php

    r431 r432  
    274274    $DbRow = $DbResult->fetch_assoc();
    275275    $sql = 'SELECT *, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `'.$Table.'`.`User`) AS `UserName` FROM `'.$Table.'` WHERE (`Entry` = '.$DbRow['Entry'].')'.
    276   ' AND (`Complete` = 1) AND (`Language` != 0) AND (`ID` != '.$Search.')'; // Do not show uncompleted user translation
     276  ' AND (`Complete` = 1) AND (`Language` != 0)'; // Do not show uncompleted user translation
    277277   
    278278    WriteQuests($sql);
  • trunk/form.php

    r431 r432  
    3434  if(!$Line) ErrorMessage('Překlad nenalezen.');
    3535   
    36   $DbResult = $Database->SQLCommand('SELECT * FROM `'.$Table.'` WHERE `Language` = 0  AND `Entry` = '.$Line['Entry'].' AND `VersionEnd` = '.$Line['VersionEnd'].' LIMIT 1');
     36  $DbResult = $Database->SQLCommand('SELECT * FROM `'.$Table.'` WHERE (`Language` = 0) AND (`Entry` = '.$Line['Entry'].') AND (`VersionEnd` = '.$Line['VersionEnd'].') LIMIT 1');
    3737  $LineAJ = mysql_fetch_assoc($DbResult);
    3838  if(!$Line) ErrorMessage('Anglický originál k překladu nenalezen.');
     
    6363  echo('<br />');
    6464   
    65   $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM `'.$Table.'` WHERE (`Entry` = '.$Line['Entry'].') AND (`Language` <> 0) AND (`Complete` = 1) AND (`ID` <> '.$Line['ID'].')');
     65  $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM `'.$Table.'` WHERE (`Entry` = '.$Line['Entry'].') AND (`Language` <> 0) AND (`Complete` = 1)');
    6666  $Version = mysql_fetch_row($DbResult);
    6767  $Version = $Version[0];
     
    8888  } else
    8989  {
    90     echo('<a href="TranslationList.php?group='.$GroupId.'&amp;action=searchentry&amp;ID='.$Line['Entry'].'">Počet verzí: <strong>'.$Version.'</strong></a>');
     90    echo('<a href="TranslationList.php?group='.$GroupId.'&amp;action=searchentry&amp;ID='.$Line['ID'].'">Počet verzí: <strong>'.$Version.'</strong></a>');
    9191  }
    9292
Note: See TracChangeset for help on using the changeset viewer.