Changeset 147 for trunk/TranslationList.php
- Timestamp:
- Mar 5, 2009, 8:18:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r127 r147 43 43 } 44 44 45 if( $Action != 'userall')45 if(($Action != 'userall') and ($Action != 'grouplist')) 46 46 echo('Skupina: <strong>'.$TranslationTree[$GroupId]['Name'].'</strong><br />'); 47 47 … … 126 126 WriteQuests('SELECT * FROM '.$Table.' AS items WHERE (items.Language = 0) AND 127 127 NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry)) ', $_SESSION['limitx'].','.$_SESSION['limity'], 'notran'); 128 } 129 128 } else 130 129 if($Action == 'nocomplete') 131 130 { … … 141 140 NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND (sub.Complete = 1)) AND 142 141 EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry) AND (sub.Complete = 0))', $_SESSION['limitx'].','.$_SESSION['limity'], 'nocomplete'); 143 } 144 142 } else 145 143 if($Action == 'Translate') 146 144 { … … 152 150 WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM 153 151 '.$Table.' WHERE '.$Table.'.Language <> 0 AND '.$Table.'.Complete = 1', $_SESSION['limitx'].','.$_SESSION['limity'], 'Translate'); 154 } 155 152 } else 156 153 if(($Action == 'my') and Licence(LICENCE_USER)) 157 154 { … … 159 156 <a title="Přeložené questy přilášeného uživatele" href="?group='.$GroupId.'&action=my">Moje překlady</a><br /><br />'); 160 157 WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where user = '.$_SESSION['UserID'], '', 'my'); 161 } 162 158 } else 163 159 if(($Action == 'mydevelop') and Licence(LICENCE_USER)) 164 160 { … … 166 162 <a title="Nedokončené texty" href="?group='.$GroupId.'&action=mydevelop">Rozepsané překlady</a><br /><br />'); 167 163 WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where user = '.$_SESSION['UserID'].' AND Complete = 0', '', 'mydevelop'); 168 } 169 164 } else 170 165 if($Action == 'users') 171 166 { … … 182 177 } 183 178 WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where '.$WhereUsers, '', 'users'); 184 } 185 179 } else 186 180 if($Action == 'userall') 187 181 { … … 205 199 echo('<tr><td><strong>Celkem</strong></td><td><strong>'.$Total.'</strong></td></tr>'); 206 200 echo('</table>'); 207 } 208 201 } else 202 if($Action == 'grouplist') 203 { 204 echo('<h3>Seznam překladových skupin</h3>'); 205 echo('<table class="BaseTable"><tr><th>Jméno</th><th>Zdroj pro import</th><th>Formáty exportu</th></tr>'); 206 $Total = 0; 207 foreach($TranslationTree as $Group) 208 if($Group['TablePrefix'] != '') 209 { 210 $Export = 'XML'; 211 $Import = ''; 212 if($Group['MangosTable'] != '') 213 { 214 $Export .= ', SQL'; 215 $Import = 'SQL '.$Group['MangosDatabase'].'.'.$Group['MangosTable']; 216 } 217 if($Group['DBCFileName'] != '') 218 { 219 $Export .= ', DBC'; 220 $Import = $Group['DBCFileName'].'.dbc'; 221 } 222 if($Group['LuaFileName'] != '') 223 { 224 $Export .= ', Lua'; 225 $Import = $Group['LuaMPQFolder'].'/'.$Group['LuaFileName'].'.lua'; 226 } 227 foreach($Group['Items'] as $Item) 228 if(($Item['AddonFileName'] != '') and (substr($Export, -5) != 'Addon')) 229 { 230 $Export .= ', Addon'; 231 } 232 echo('<tr><td><a href="?group='.$Group['Id'].'&action=filter">'.$Group['Name'].'</a></td><td>'.$Import.'</td><td>'.$Export.'</td></tr>'); 233 } 234 echo('</table>'); 235 } else 209 236 if($Action == 'userid') 210 237 { … … 214 241 <strong>Vypis překladů uživatele '.$Line[0].': </strong><br /><br />'); 215 242 WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where user = '.$_GET['user'], '', 'userid'); 216 } 217 243 } else 218 244 if($Action == 'search') 219 245 { … … 232 258 233 259 WriteQuests($sql, '', 'search='.$Search); 234 } 235 260 } else 236 261 if($Action == 'searchentry') 237 262 { … … 242 267 243 268 WriteQuests($sql, '', 'searchentry='.$Search); 244 } 245 269 } else 246 270 if($Action == 'filter') 247 271 {
Note:
See TracChangeset
for help on using the changeset viewer.