Changeset 437 for trunk


Ignore:
Timestamp:
Apr 9, 2010, 11:29:26 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Při filtrování nepřeložených použít omezení verze přímo na originály.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/TranslationList.php

    r436 r437  
    153153  {
    154154    if($Filter['State'] == 0) $Filter['SQL'] .= $UserFilter.$VersionFilter.'';
    155     else if($Filter['State'] == 1) $Filter['SQL'] .= ' AND (`Language` = 0) AND NOT EXISTS(SELECT 1 FROM `'.$Table.'` AS `Sub` WHERE (`Sub`.`Language` <> 0)'.$LanguageFilter.$UserFilter.$VersionFilter.' AND (`Sub`.`Entry` = `T`.`Entry`) AND (`Sub`.`Complete` = 1) AND (`Sub`.`VersionStart` = `T`.`VersionStart`) AND (`Sub`.`VersionEnd` = `T`.`VersionEnd`))';
     155    else if($Filter['State'] == 1) $Filter['SQL'] .= $VersionFilter.' AND (`Language` = 0) AND NOT EXISTS(SELECT 1 FROM `'.$Table.'` AS `Sub` WHERE (`Sub`.`Language` <> 0)'.$LanguageFilter.$UserFilter.' AND (`Sub`.`Entry` = `T`.`Entry`) AND (`Sub`.`Complete` = 1) AND (`Sub`.`VersionStart` = `T`.`VersionStart`) AND (`Sub`.`VersionEnd` = `T`.`VersionEnd`))';
    156156    else if($Filter['State'] == 2) $Filter['SQL'] .= $UserFilter.$LanguageFilter.$VersionFilter.' AND (`Complete` = 1)';
    157157    else if($Filter['State'] == 3) $Filter['SQL'] .= $UserFilter.$LanguageFilter.$VersionFilter.' AND (`Language` != 0) AND (`Complete` = 0)';
     
    306306  }       
    307307
    308   echo('<tr><td><form action="?group='.$GroupId.'" method="post"><div>'.
    309     '<input type="text" name="search" size="8" />'.
     308  echo('<tr><td><form action="?group='.$GroupId.'&amp;entry=" method="post"><div>'.
     309    '<input type="text" name="text" size="8" />'.
    310310    '<input type="submit" value="Hledat" />'.
    311311    '</div></form>'.
    312312    '</td><td>Vyhledat pomocí textu</td></tr>');
    313313         
    314   echo('<tr><td><form action="?group='.$GroupId.'&amp" method="post"><div>'.
    315     '<input type="text" name="Entry" size="8" />'.
     314  echo('<tr><td><form action="?group='.$GroupId.'&amp;text=" method="post"><div>'.
     315    '<input type="text" name="entry" size="8" />'.
    316316    '<input type="submit" value="Hledat" />'.
    317317    '</div></form>'.
  • trunk/form.php

    r436 r437  
    6868  if($Version > 0)
    6969  {
    70     echo('<form action="comparison.php" method="get"><a href="TranslationList.php?group='.$GroupId.'&amp;user=0&amp;state=2&amp;entry='.$Line['Entry'].'">Počet verzí: <strong>'.$Version.'</strong></a> 
     70    echo('<form action="comparison.php" method="get"><a href="TranslationList.php?group='.$GroupId.'&amp;user=0&amp;state=2&amp;entry='.$Line['Entry'].'&amp;text=">Počet verzí: <strong>'.$Version.'</strong></a> 
    7171      <input type="hidden" name="group" value="'.$GroupId.'" />
    7272      <input type="hidden" name="entry" value="'.$Line['Entry'].'" />
     
    8888  } else
    8989  {
    90     echo('<a href="TranslationList.php?group='.$GroupId.'&amp;user=0&amp;state=2&amp;entry='.$Line['Entry'].'">Počet verzí: <strong>'.$Version.'</strong></a>');
     90    echo('<a href="TranslationList.php?group='.$GroupId.'&amp;user=0&amp;state=2&amp;entry='.$Line['Entry'].'&amp;text=">Počet verzí: <strong>'.$Version.'</strong></a>');
    9191  }
    9292
Note: See TracChangeset for help on using the changeset viewer.