Changeset 304 for trunk/export/index.php
- Timestamp:
- Jan 4, 2010, 11:05:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/index.php
r303 r304 175 175 ); 176 176 $Order = GetOrderTableHeader($TableColumns, 'TranslatedCount', 1); 177 if($Order['Column'] != 'Sequence2') $InitialOrder = ', '.substr($Order['SQL'], 10); 178 else $InitialOrder = ''; 177 179 178 180 $Columns = ''; … … 186 188 $Query = 'SELECT (@I := @I + 1) AS Sequence2, TT.* FROM (SELECT ExportUser.Sequence, T.ID, T.TranslatedCount, T.user, T.XP FROM (SELECT user.ID, user.user, user.XP, ('.substr($Columns, 0, -3).') as TranslatedCount FROM `user`'.$Joins.') AS T'; 187 189 $Query .=' LEFT JOIN ExportUser ON ExportUser.Export = '.$_GET['ExportId'].' AND ExportUser.User=T.ID'; 188 $Query .=' WHERE T.TranslatedCount > 0 ORDER BY COALESCE(ExportUser.Sequence, 100000000) , '.substr($Order['SQL'], 10).') AS TT';190 $Query .=' WHERE T.TranslatedCount > 0 ORDER BY COALESCE(ExportUser.Sequence, 100000000)'.$InitialOrder.') AS TT'; 189 191 190 192 $DbResult = $Database->SQLCommand('SELECT COUNT(*) FROM ('.$Query.') AS X');
Note:
See TracChangeset
for help on using the changeset viewer.