Ignore:
Timestamp:
Jun 17, 2013, 11:19:05 AM (11 years ago)
Author:
chronos
Message:
  • Opraveno: Přidán index u názvu uživatele.
  • Upraveno: Optimalizace načítání sloupců verze klienta v seznamu překladů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TranslationList.php

    r540 r543  
    199199    '(SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `T`.`User`) AS `UserName`, '.
    200200    '(SELECT `User`.`Id` FROM `User` WHERE `User`.`ID` = `T`.`User`) AS `UserId`, '.
    201     '(SELECT `Language`.`Name` FROM `Language` WHERE `Language`.`ID` = `T`.`Language`) AS `LanguageName` '.
     201    '(SELECT `Language`.`Name` FROM `Language` WHERE `Language`.`ID` = `T`.`Language`) AS `LanguageName`, '.
     202    '(SELECT `ClientVersion`.`Version` FROM `ClientVersion` WHERE `ClientVersion`.`BuildNumber` = `T`.`VersionStart`) AS `VersionStartText`, '.
     203    '(SELECT `ClientVersion`.`Version` FROM `ClientVersion` WHERE `ClientVersion`.`BuildNumber` = `T`.`VersionEnd`) AS `VersionEndText` '.
    202204    'FROM `'.$Table.'` AS `T` WHERE 1 '.$Filter['SQL'];
    203205 
     
    226228    $Output .= '<tr><td><a href="form.php?group='.$Filter['Group'].'&amp;ID='.$Line['ID'].'">'.$Line['ID'].'</a></td><td>'.$Line['Entry'].'</td>'.
    227229      '<td>'.htmlspecialchars($Line[$TranslationTree[$Filter['Group']]['Items'][0]['Column']]).'</td>'.
    228       '<td>'.GetVersionWOW($Line['VersionStart']).'-'.GetVersionWOW($Line['VersionEnd']).'</td>'.
     230      '<td>'.$Line['VersionStartText'].'-'.$Line['VersionEndText'].'</td>'.
    229231      '<td>'.$Line['LanguageName'].'</td>'.
    230232      '<td><a href="user.php?user='.$Line['UserId'].'">'.$Line['UserName'].'</a></td>';
Note: See TracChangeset for help on using the changeset viewer.