Changeset 431 for trunk/form.php
- Timestamp:
- Apr 8, 2010, 8:49:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/form.php
r420 r431 63 63 echo('<br />'); 64 64 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'].')'); 66 66 $Version = mysql_fetch_row($DbResult); 67 67 $Version = $Version[0]; 68 68 if($Version > 0) 69 69 { 70 echo('<form action="comparison.php" method="get"><a href="TranslationList.php?group='.$GroupId.'&action=searchentry&ID='.$Line[' Entry'].'">Počet verzí: <strong>'.$Version.'</strong></a>70 echo('<form action="comparison.php" method="get"><a href="TranslationList.php?group='.$GroupId.'&action=searchentry&ID='.$Line['ID'].'">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'].'" /> … … 75 75 <option value="-1">Vyberte text k porovnání</option> 76 76 <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)'); 78 78 while($version = mysql_fetch_array($DataID)) 79 79 {
Note:
See TracChangeset
for help on using the changeset viewer.