Changeset 279
- Timestamp:
- Aug 25, 2009, 1:47:56 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r254 r279 7 7 $TranslationItemPerPage = 200; 8 8 if(array_key_exists('group', $_GET)) $GroupId = $_GET['group'] * 1; else $GroupId = 1; 9 if(array_key_exists('connexion_id', $_GET)) { 10 $_SESSION['connexion_id'] = $_GET['connexion_id']; 11 } 9 12 $DbResult = $Database->SQLCommand('SELECT Id FROM `group` WHERE `Id`='.$GroupId); 10 13 if(mysql_num_rows($DbResult) == 0) … … 133 136 134 137 WritePages('?group='.$GroupId.'&action=notran', 'AS items WHERE items.Language = 0 AND 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.'"');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.'")'); 136 139 137 140 WriteQuests('SELECT * FROM '.$Table.' AS items WHERE (items.Language = 0) AND 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'); 141 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'); 142 } else 143 if($Action == 'connexion') 144 { //SELECT * FROM spell WHERE entry IN(SELECT entry FROM connexion_item WHERE connexion = 1) 145 $Line = mysql_fetch_assoc($Database->SQLCommand('SELECT Name FROM connexion WHERE `Id` = '.$_SESSION['connexion_id'])); 146 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 147 <a title="Zde je seznam souvislostí" href="?group='.$GroupId.'&action=connexion">Souvislosti</a> - > 148 <strong>Vypsání souvislostí ze skupiny '.$Line['Name'].'</strong><br /><br />'); 149 150 WritePages('?group='.$GroupId.'&action=connexion', ' WHERE Language = 0 AND entry IN(SELECT entry FROM connexion_item WHERE connexion = '.$_SESSION['connexion_id'].') AND VersionEnd = "'.$BuildNumber_max.'" AND VersionEnd = "'.$BuildNumber_max.'"'); 151 WriteQuests('SELECT * 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.'"', $_SESSION['limitx'].','.$_SESSION['limity'], 'connexion'); 152 153 } else 154 if($Action == 'connexion_list') 155 { //SELECT * FROM spell WHERE entry IN(SELECT entry FROM connexion_item WHERE connexion = 1) 156 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 157 <a title="Zde je seznam souvislostí" href="?group='.$GroupId.'&action=connexion">Souvislosti</a> - > 158 <strong>Vypsání souvislostí</strong><br /><br />'); 159 echo('<table class="BaseTable"><tr><th>Pořadové číslo</th><th>Název</th>'); 160 echo('</tr>'); 161 $ID = $Database->SQLCommand('SELECT * FROM connexion WHERE `Group` = '.$GroupId); 162 while($Line = mysql_fetch_assoc($ID)) 163 { 164 echo('<tr><td><a href="?group='.$GroupId.'&action=connexion&connexion_id='.$Line['Id'].'">'.$Line['Id'].'</a></td> 165 <td>'.$Line['Name'].'</td>'); 166 } 167 echo ('</table>'); 139 168 } else 140 169 if($Action == 'nocomplete') -
trunk/includes/global.php
r270 r279 130 130 function ShowTranslatedMenu() 131 131 { 132 global $TranslationTree, $Config ;132 global $TranslationTree, $Config,$Database; 133 133 134 134 echo('<strong>Překladové skupiny:</strong><br /><div id="TranslationMenu">'); … … 147 147 echo(' <a title="Zde můžete začít překládat" href="'.$Config['Web']['BaseURL'].'TranslationList.php?group='.$Group['Id'].'&action=notran">Nepřeložené</a><br /> 148 148 <a title="Přeložené texty, můžete zde hlasovat, nebo opravovat překlady" href="'.$Config['Web']['BaseURL'].'TranslationList.php?group='.$Group['Id'].'&action=Translate">Přeložené</a><br />'); 149 if(Licence(LICENCE_USER)) 149 $ID = $Database->SQLCommand('SELECT * FROM connexion WHERE `Group` = '.$Group['Id']); 150 if (mysql_num_rows($ID) > 0) 151 echo(' <a title="Vypsání souvislostí" href="'.$Config['Web']['BaseURL'].'TranslationList.php?group='.$Group['Id'].'&action=connexion_list">Souvislosti</a><br />'); 152 153 if(Licence(LICENCE_USER)) 150 154 { 151 155 echo(' <a title="Nedokončené překlady" href="'.$Config['Web']['BaseURL'].'TranslationList.php?group='.$Group['Id'].'&action=mydevelop">Rozepsané</a><br />
Note:
See TracChangeset
for help on using the changeset viewer.