Changeset 437
- Timestamp:
- Apr 9, 2010, 11:29:26 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r436 r437 153 153 { 154 154 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`))'; 156 156 else if($Filter['State'] == 2) $Filter['SQL'] .= $UserFilter.$LanguageFilter.$VersionFilter.' AND (`Complete` = 1)'; 157 157 else if($Filter['State'] == 3) $Filter['SQL'] .= $UserFilter.$LanguageFilter.$VersionFilter.' AND (`Language` != 0) AND (`Complete` = 0)'; … … 306 306 } 307 307 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.'&entry=" method="post"><div>'. 309 '<input type="text" name="text" size="8" />'. 310 310 '<input type="submit" value="Hledat" />'. 311 311 '</div></form>'. 312 312 '</td><td>Vyhledat pomocí textu</td></tr>'); 313 313 314 echo('<tr><td><form action="?group='.$GroupId.'& " method="post"><div>'.315 '<input type="text" name=" Entry" size="8" />'.314 echo('<tr><td><form action="?group='.$GroupId.'&text=" method="post"><div>'. 315 '<input type="text" name="entry" size="8" />'. 316 316 '<input type="submit" value="Hledat" />'. 317 317 '</div></form>'. -
trunk/form.php
r436 r437 68 68 if($Version > 0) 69 69 { 70 echo('<form action="comparison.php" method="get"><a href="TranslationList.php?group='.$GroupId.'&user=0&state=2&entry='.$Line['Entry'].' ">Počet verzí: <strong>'.$Version.'</strong></a>70 echo('<form action="comparison.php" method="get"><a href="TranslationList.php?group='.$GroupId.'&user=0&state=2&entry='.$Line['Entry'].'&text=">Počet verzí: <strong>'.$Version.'</strong></a> 71 71 <input type="hidden" name="group" value="'.$GroupId.'" /> 72 72 <input type="hidden" name="entry" value="'.$Line['Entry'].'" /> … … 88 88 } else 89 89 { 90 echo('<a href="TranslationList.php?group='.$GroupId.'&user=0&state=2&entry='.$Line['Entry'].' ">Počet verzí: <strong>'.$Version.'</strong></a>');90 echo('<a href="TranslationList.php?group='.$GroupId.'&user=0&state=2&entry='.$Line['Entry'].'&text=">Počet verzí: <strong>'.$Version.'</strong></a>'); 91 91 } 92 92
Note:
See TracChangeset
for help on using the changeset viewer.