Changeset 321 for trunk/TranslationList.php
- Timestamp:
- Feb 14, 2010, 1:00:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r316 r321 45 45 function Nontranslated() 46 46 { 47 global $GroupId, $Table, $BuildNumber_max; 48 49 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 50 <a title="Zde můžete začít překládat" href="?group='.$GroupId.'&action=selection">Nepřeložené texty</a> - > 51 <strong>Vypsání nepřeložených textů s limitem na stránku</strong><br /><br />'); 52 53 WriteQuests('SELECT * FROM '.$Table.' AS items WHERE (items.Language = 0) AND 54 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.'")'); 47 global $GroupId, $Table; 48 49 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> '. 50 '<a title="Zde můžete začít překládat" href="?group='.$GroupId.'&action=selection">Nepřeložené texty</a> - > '. 51 '<strong>Vypsání nepřeložených textů s limitem na stránku</strong><br /><br />'); 52 53 WriteQuests('SELECT * FROM `'.$Table.'` AS `items` WHERE (`items`.`Language` = 0) AND NOT EXISTS(SELECT 1 FROM `'.$Table.'` AS `sub` WHERE (`sub`.`Language` <> 0) AND (`sub`.`entry` = `items`.`entry`) )'); 55 54 } 56 55 … … 62 61 63 62 //SELECT * FROM spell WHERE entry IN(SELECT entry FROM connexion_item WHERE connexion = 1) 64 $Line = mysql_fetch_assoc($Database->SQLCommand('SELECT Name FROM connexionWHERE `Id` = '.$_SESSION['connexion_id']));63 $Line = mysql_fetch_assoc($Database->SQLCommand('SELECT `Name` FROM `connexion` WHERE `Id` = '.$_SESSION['connexion_id'])); 65 64 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 66 65 <a title="Zde je seznam souvislostí" href="?group='.$GroupId.'&action=connexion">Souvislosti</a> - > 67 66 <strong>Vypsání souvislostí ze skupiny '.$Line['Name'].'</strong><br /><br />'); 68 67 69 WriteQuests('SELECT *, (SELECT sub.User FROM '.$Table.' as sub WHERE sub.entry = '.$Table.'.entry AND Language <> 0 LIMIT 1) as UserID, (SELECT user.user FROM user WHERE user.id = UserID) AS UserName FROM '.$Table.' WHERE Language = 0 AND entry IN(SELECT entry FROM connexion_item WHERE connexion = '.$_SESSION['connexion_id'].') AND VersionEnd = "'.$BuildNumber_max.'" AND VersionEnd= "'.$BuildNumber_max.'"');68 WriteQuests('SELECT *, (SELECT `sub`.`User` FROM `'.$Table.'` AS `sub` WHERE (`sub`.`entry` = `'.$Table.'`.`entry`) AND (`Language` <> 0) LIMIT 1) AS `UserID`, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `UserID`) AS `UserName` FROM `'.$Table.'` WHERE (`Language` = 0) AND (`entry` IN(SELECT `entry` FROM `connexion_item` WHERE `connexion` = '.$_SESSION['connexion_id'].') AND `VersionEnd` = "'.$BuildNumber_max.'" AND `VersionEnd` = "'.$BuildNumber_max.'"'); 70 69 } 71 70 … … 80 79 echo('<table class="BaseTable"><tr><th>Pořadové číslo</th><th>Název</th>'); 81 80 echo('</tr>'); 82 $ID = $Database->SQLCommand('SELECT * FROM connexion WHERE 81 $ID = $Database->SQLCommand('SELECT * FROM connexion WHERE `Group` = '.$GroupId); 83 82 while($Line = mysql_fetch_assoc($ID)) 84 83 { … … 342 341 if(array_key_exists('action', $_GET)) $Action = $_GET['action']; else $Action = ''; 343 342 344 $ID = mysql_fetch_row($Database->SQLCommand('SELECT max(VersionEnd) FROM '.$TranslationTree[$GroupId]['TablePrefix'])); 343 $DbResult = $Database->SQLCommand('SELECT MAX(`VersionEnd`) FROM `'.$TranslationTree[$GroupId]['TablePrefix'].'`'); 344 $ID = mysql_fetch_row($DbResult); 345 345 $BuildNumber_max = $ID[0]; 346 346
Note:
See TracChangeset
for help on using the changeset viewer.