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.
File:
1 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>'.
Note: See TracChangeset for help on using the changeset viewer.