- Timestamp:
- Apr 8, 2010, 8:58:16 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r431 r432 274 274 $DbRow = $DbResult->fetch_assoc(); 275 275 $sql = 'SELECT *, (SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `'.$Table.'`.`User`) AS `UserName` FROM `'.$Table.'` WHERE (`Entry` = '.$DbRow['Entry'].')'. 276 ' AND (`Complete` = 1) AND (`Language` != 0) AND (`ID` != '.$Search.')'; // Do not show uncompleted user translation276 ' AND (`Complete` = 1) AND (`Language` != 0)'; // Do not show uncompleted user translation 277 277 278 278 WriteQuests($sql); -
trunk/form.php
r431 r432 34 34 if(!$Line) ErrorMessage('Překlad nenalezen.'); 35 35 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'); 37 37 $LineAJ = mysql_fetch_assoc($DbResult); 38 38 if(!$Line) ErrorMessage('Anglický originál k překladu nenalezen.'); … … 63 63 echo('<br />'); 64 64 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)'); 66 66 $Version = mysql_fetch_row($DbResult); 67 67 $Version = $Version[0]; … … 88 88 } else 89 89 { 90 echo('<a href="TranslationList.php?group='.$GroupId.'&action=searchentry&ID='.$Line[' Entry'].'">Počet verzí: <strong>'.$Version.'</strong></a>');90 echo('<a href="TranslationList.php?group='.$GroupId.'&action=searchentry&ID='.$Line['ID'].'">Počet verzí: <strong>'.$Version.'</strong></a>'); 91 91 } 92 92
Note:
See TracChangeset
for help on using the changeset viewer.