Changeset 279 for trunk/TranslationList.php
- Timestamp:
- Aug 25, 2009, 1:47:56 PM (15 years ago)
- File:
-
- 1 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')
Note:
See TracChangeset
for help on using the changeset viewer.