Changeset 525 for trunk/comparison.php
- Timestamp:
- Feb 20, 2013, 11:30:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comparison.php
r504 r525 37 37 } else $Result .= '<span class="edit">'.$ArrStr1[$i].' </span>'; 38 38 } 39 // echo $ArrStr1[0];40 39 return($Result); 41 40 } … … 51 50 $TextID1 = $_GET['ID1']; 52 51 $TextID2 = $_GET['ID2']; 53 $WhereID = ' AND ( ID = '.$TextID1.' OR ID = '.$TextID2.' OR Language = 0)';52 $WhereID = ' AND ((`ID` = '.$TextID1.') OR (`ID` = '.$TextID2.') OR (`Language` = '.$Config['OriginalLanguage'].'))'; 54 53 } else $WhereID = ''; 55 54 56 $DataID = $System->Database->query('SELECT * FROM '.$Table.' Where entry = '.$Textentry.' '.$WhereID.' ORDER BY Language'); 57 $i = 0; 58 while($Line = $DataID->fetch_assoc()) 59 { 60 $BuffLine[$i] = $Line; 61 $i = $i + 1; 62 } 63 // if(!$Line) die('Překlad nenalezen.'); 64 $Line = $BuffLine; 65 $i = $i - 1; 66 $Output .= 'Počet porovnávaných textů: <strong>'.$i.'</strong><br /> '; 55 $DataID = $System->Database->query('SELECT `'.$Table.'`.*, `User`.`Name` AS `UserName`, '. 56 '`Language`.`Name` AS `LanguageName` '. 57 'FROM '.$Table.' LEFT JOIN `User` ON `User`.`Id` = `'.$Table.'`.`User` '. 58 ' LEFT JOIN `Language` ON `Language`.`Id` = `'.$Table.'`.`Language` '. 59 'WHERE `Entry` = '.$Textentry.' '.$WhereID.' ORDER BY `Language`'); 60 while($Line[] = $DataID->fetch_assoc()); 61 array_pop($Line); 62 63 $Output .= 'Počet porovnávaných textů: <strong>'.count($Line).'</strong><br /> '; 67 64 68 65 $Output .= '<strong>Číslo textu: <a href="http://www.wowhead.com/?quest='.$Textentry.'">'.$Textentry.'</a></strong>'. … … 70 67 '<tr><th>Přeložil</th>'; 71 68 foreach($Line as $Index => $LineItem) 72 { 73 $DbResult = $System->Database->query('SELECT * FROM `User` WHERE `ID` = '.$LineItem['User']); 74 $LineUser = $DbResult->fetch_array(); 75 $Output .= '<th>'.$LineUser['Name'].'</th>'; 76 } 69 $Output .= '<th>'.$LineItem['UserName'].'</th>'; 77 70 $Output .= '</tr>'. 78 71 '<tr>'. 79 72 '<th>ID textu</th>'; 80 73 foreach($Line as $Index => $LineItem) 81 {82 74 $Output .= '<td><a href="form.php?group='.$GroupId.'&ID='.$LineItem['ID'].'">'.$LineItem['ID'].'</a></td>'; 83 }84 75 $Output .= '</tr>'. 85 76 '<tr><th>Převzato</th>'; 86 77 foreach($Line as $Index => $LineItem) 87 {88 78 $Output .= '<td><a href="form.php?group='.$GroupId.'&ID='.$LineItem['Take'].'">'.$LineItem['Take'].'</a></td>'; 89 }90 79 $Output .= '</tr>'. 91 80 '<tr><th>Jazyk</th>'; 92 81 foreach($Line as $Index => $LineItem) 93 { 94 $Output .= '<td>'. 95 WriteLanguagesWithoutSel($LineItem['Language']). 96 '</td>'; 97 } 82 $Output .= '<td>'.$LineItem['LanguageName'].'</td>'; 98 83 $Output .= '</tr>'. 99 84 '<tr><th>Verze</th>'; 100 85 foreach($Line as $Index => $LineItem) 101 { 102 $Output .= '<td>'; 103 $Output .= GetVersionWOW($LineItem['VersionStart']).' - '.GetVersionWOW($LineItem['VersionEnd']); 104 $Output .= '</td>'; 105 } 86 $Output .= '<td>'.GetVersionWOW($LineItem['VersionStart']).' - '.GetVersionWOW($LineItem['VersionEnd']).'</td>'; 106 87 $Output .= '</tr>'; 107 88 foreach($TranslationTree[$GroupId]['Items'] as $Index => $TextItem)
Note:
See TracChangeset
for help on using the changeset viewer.