Changeset 225 for trunk/TranslationList.php
- Timestamp:
- Jul 2, 2009, 11:17:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r221 r225 16 16 $Table = $TranslationTree[$GroupId]['TablePrefix']; 17 17 if(array_key_exists('action', $_GET)) $Action = $_GET['action']; else $Action = ''; 18 19 $ID = mysql_fetch_row($Database->SQLCommand('SELECT max(VersionEnd) FROM '.$TranslationTree[$GroupId]['TablePrefix'])); 20 $BuildNumber_max = $ID[0]; 18 21 19 22 if(array_key_exists('order', $_GET)) … … 101 104 <th><a href="?group='.$GroupId.'&action='.$address.'&order=ID&desc='.$desc.'">Pořadové číslo</a></th> 102 105 <th><a href="?group='.$GroupId.'&action='.$address.'&order=entry&desc='.$desc.'">Identifikační číslo</a></th> 103 <th><a href="?group='.$GroupId.'&action='.$address.'&order='.$TranslationTree[$GroupId]['Items'][0]['Column'].'&desc='.$desc.'">Název</a></th>'); 106 <th><a href="?group='.$GroupId.'&action='.$address.'&order='.$TranslationTree[$GroupId]['Items'][0]['Column'].'&desc='.$desc.'">Název</a></th> 107 <th>Verze</th>'); 104 108 if ($address == 'selection') echo('<th><a href="?group='.$GroupId.'&action='.$address.'&order=CountQuests&desc='.$desc.'">Výskyt</a></th>'); 105 109 else if($address <> 'notran') echo('<th><a href="?group='.$GroupId.'&action='.$address.'&order=user&desc='.$desc.'">Uživatel</a></th>'); … … 113 117 echo('<tr><td><a href="form.php?group='.$GroupId.'&ID='.$Line['ID'].'">'.$Line['ID'].'</a></td> 114 118 <td>'.$Line['entry'].'</td> 115 <td>'.htmlspecialchars($Line[$TranslationTree[$GroupId]['Items'][0]['Column']]).'</td>'); 119 <td>'.htmlspecialchars($Line[$TranslationTree[$GroupId]['Items'][0]['Column']]).'</td> 120 <td>'.GetVersionWOW($Line['VersionStart']).'-'.GetVersionWOW($Line['VersionEnd']).'</td>'); 116 121 if($address == 'selection') echo('<td>'.$Line['CountQuest'].'</td>'); 117 122 else if($address <> 'notran') echo('<td>'.$Line['User'].'</td>'); … … 122 127 123 128 if($Action == 'notran') 124 { 129 { 125 130 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 126 131 <a title="Zde můžete začít překládat" href="?group='.$GroupId.'&action=selection">Nepřeložené texty</a> - > … … 128 133 129 134 WritePages('?group='.$GroupId.'&action=notran', 'AS items WHERE items.Language = 0 AND 130 NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE sub.Language <> 0 AND sub.entry = items.entry AND VersionEnd = "'. GetBuildNumber($Config['Web']['GameVersion']).'") AND VersionEnd = "'.GetBuildNumber($Config['Web']['GameVersion']).'"');135 NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE sub.Language <> 0 AND sub.entry = items.entry AND VersionEnd = "'.$BuildNumber_max.'") AND VersionEnd = "'.$BuildNumber_max.'"'); 131 136 132 137 WriteQuests('SELECT * FROM '.$Table.' AS items WHERE (items.Language = 0) AND 133 NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND VersionEnd = "'. GetBuildNumber($Config['Web']['GameVersion']).'") AND VersionEnd = "'.GetBuildNumber($Config['Web']['GameVersion']).'"', $_SESSION['limitx'].','.$_SESSION['limity'], 'notran');138 NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND VersionEnd = "'.$BuildNumber_max.'") AND VersionEnd = "'.$BuildNumber_max.'"', $_SESSION['limitx'].','.$_SESSION['limity'], 'notran'); 134 139 } else 135 140 if($Action == 'nocomplete') … … 140 145 141 146 WritePages('?group='.$GroupId.'&action=notran', 'AS items WHERE items.Language = 0 AND 142 NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND (sub.Complete = 1) AND VersionEnd = "'. GetBuildNumber($Config['Web']['GameVersion']).'") AND143 EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE sub.Language <> 0 AND sub.entry = items.entry AND (sub.Complete = 0) AND VersionEnd = "'. GetBuildNumber($Config['Web']['GameVersion']).'") AND VersionEnd = "'.GetBuildNumber($Config['Web']['GameVersion']).'"');147 NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND (sub.Complete = 1) AND VersionEnd = "'.$BuildNumber_max.'") AND 148 EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE sub.Language <> 0 AND sub.entry = items.entry AND (sub.Complete = 0) AND VersionEnd = "'.$BuildNumber_max.'") AND VersionEnd = "'.$BuildNumber_max.'"'); 144 149 145 150 WriteQuests('SELECT * FROM '.$Table.' AS items WHERE (items.Language = 0) AND 146 NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND (sub.Complete = 1) AND VersionEnd = "'. GetBuildNumber($Config['Web']['GameVersion']).'") AND147 EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND (sub.Complete = 0) AND VersionEnd = "'. GetBuildNumber($Config['Web']['GameVersion']).'") AND VersionEnd = "'.GetBuildNumber($Config['Web']['GameVersion']).'"', $_SESSION['limitx'].','.$_SESSION['limity'], 'nocomplete');151 NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND (sub.Complete = 1) AND VersionEnd = "'.$BuildNumber_max.'") AND 152 EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND (sub.Complete = 0) AND VersionEnd = "'.$BuildNumber_max.'") AND VersionEnd = "'.$BuildNumber_max.'"', $_SESSION['limitx'].','.$_SESSION['limity'], 'nocomplete'); 148 153 } else 149 154 if($Action == 'Translate')
Note:
See TracChangeset
for help on using the changeset viewer.