Changeset 432 for trunk/form.php


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í.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.