Changeset 431 for trunk/form.php


Ignore:
Timestamp:
Apr 8, 2010, 8:49:29 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Zobrazovat v nabídce ostatních variant překladů jen dokončené a nezobrazovat vlastní překlad.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/form.php

    r420 r431  
    6363  echo('<br />');
    6464   
    65   $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM `'.$Table.'` WHERE `Entry` = '.$Line['Entry'].' AND `Language` <> 0');
     65  $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM `'.$Table.'` WHERE (`Entry` = '.$Line['Entry'].') AND (`Language` <> 0) AND (`Complete` = 1) AND (`ID` <> '.$Line['ID'].')');
    6666  $Version = mysql_fetch_row($DbResult);
    6767  $Version = $Version[0];
    6868  if($Version > 0)
    6969  {
    70     echo('<form action="comparison.php" method="get"><a href="TranslationList.php?group='.$GroupId.'&amp;action=searchentry&amp;ID='.$Line['Entry'].'">Počet verzí: <strong>'.$Version.'</strong></a> 
     70    echo('<form action="comparison.php" method="get"><a href="TranslationList.php?group='.$GroupId.'&amp;action=searchentry&amp;ID='.$Line['ID'].'">Počet verzí: <strong>'.$Version.'</strong></a> 
    7171      <input type="hidden" name="group" value="'.$GroupId.'" />
    7272      <input type="hidden" name="entry" value="'.$Line['Entry'].'" />
     
    7575      <option value="-1">Vyberte text k porovnání</option>
    7676      <option value="-1">Zobrazit/porovnat všechny</option>');
    77     $DataID = $Database->SQLCommand('SELECT *, (SELECT `User`.`Name` AS `UserName` FROM `User` WHERE `User`.`ID` = `'.$Table.'`.`User`) AS `UserName` FROM `'.$Table.'` WHERE (`Entry` = '.$Line['Entry'].') AND (`ID` <> '.$Line['ID'].')'); 
     77    $DataID = $Database->SQLCommand('SELECT *, (SELECT `User`.`Name` AS `UserName` FROM `User` WHERE `User`.`ID` = `'.$Table.'`.`User`) AS `UserName` FROM `'.$Table.'` WHERE (`Entry` = '.$Line['Entry'].') AND (`ID` <> '.$Line['ID'].') AND (`Complete` = 1)'); 
    7878    while($version = mysql_fetch_array($DataID))
    7979    {     
Note: See TracChangeset for help on using the changeset viewer.