Changeset 316


Ignore:
Timestamp:
Feb 1, 2010, 10:22:32 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Zobrazení jmen překladatelů ve výpisech překladů.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/TranslationList.php

    r315 r316  
    3535      '<td>'.GetVersionWOW($Line['VersionStart']).'-'.GetVersionWOW($Line['VersionEnd']).'</td>');
    3636    if($Action == 'selection') echo('<td>'.$Line['CountQuest'].'</td>');
    37       else if($Action <> 'notran') echo('<td>'.$Line['User'].'</td>');
     37      else if($Action <> 'notran') echo('<td>'.$Line['UserName'].'</td>');
    3838    echo('</tr>');
    3939  }
     
    9797        <strong>Vypsání nedokončených textů s limitem na stránku</strong><br /><br />');
    9898
    99   WriteQuests('SELECT * FROM '.$Table.' AS items WHERE (items.Language = 0) AND
    100     NOT EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry)  AND (sub.Complete = 1) AND VersionEnd = "'.$BuildNumber_max.'") AND
    101    EXISTS(SELECT 1 FROM '.$Table.' AS sub WHERE (sub.Language <> 0) AND (sub.entry = items.entry)  AND (sub.Complete = 0) AND VersionEnd = "'.$BuildNumber_max.'") AND VersionEnd = "'.$BuildNumber_max.'"');
     99  WriteQuests('SELECT `items`.*, `user`.`user` AS `UserName` FROM `'.$Table.'` AS `items` JOIN `user` ON `user`.`id` = `items`.`User` WHERE (`items`.`Language` = 0) AND
     100    NOT EXISTS(SELECT 1 FROM `'.$Table.'` AS `sub` WHERE (`sub`.`Language` <> 0) AND (`sub`.`entry` = `items`.`entry`) AND (`sub`.`Complete` = 1) AND (`VersionEnd` = '.$BuildNumber_max.')) AND
     101   EXISTS(SELECT 1 FROM `'.$Table.'` AS `sub2` WHERE (`sub2`.`Language` <> 0) AND (`sub2`.`entry` = `items`.`entry`) AND (`sub2`.`Complete` = 0) AND (`VersionEnd` = '.$BuildNumber_max.')) AND (`items`.`VersionEnd` = '.$BuildNumber_max.')');
    102102}
    103103
     
    118118  echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&amp;action=filter">Filtr textů</a> ->
    119119        <a title="Přeložené questy přilášeného uživatele" href="?group='.$GroupId.'&amp;action=my">Moje překlady</a><br /><br />');
    120   WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = '.$Table.'.`user`) AS `UserName` FROM `'.$Table.'` Where `user` = '.$_SESSION['UserID']);
     120  WriteQuests('SELECT `'.$Table.'`.*, `user`.`user` AS `UserName` FROM `'.$Table.'` JOIN `user` ON `user`.`id` = `'.$Table.'`.`user` WHERE `'.$Table.'`.`user` = '.$_SESSION['UserID']);
    121121}
    122122
     
    231231        '<strong>Vypis překladů uživatele '.$Line[0].': </strong><br /><br />');
    232232      if(array_key_exists('not', $_GET))
    233         WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `'.$Table.'`.`user`) AS `UserName` FROM `'.$Table.'` Where `Complete` = 0 AND `user` = '.$_GET['user']);
    234       else WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `'.$Table.'`.`user`) AS `UserName` FROM `'.$Table.'` Where `user` = '.$_GET['user']);
     233        WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `'.$Table.'`.`user`) AS `UserName` FROM `'.$Table.'` WHERE (`Complete` = 0) AND (`user` = '.$_GET['user'].')');
     234      else WriteQuests('SELECT *, (SELECT `user`.`user` FROM `user` WHERE `user`.`id` = `'.$Table.'`.`user`) AS `UserName` FROM `'.$Table.'` WHERE `user` = '.$_GET['user']);
    235235    } else echo('Nebyl nalezen uživatel se zadaným id');
    236236  } else echo('Je nutno zadat id uživatele.');
  • trunk/team.php

    r310 r316  
    188188function TeamShow()
    189189{
    190   global $Database;
     190  global $Database, $TranslationTree;
    191191 
    192192  if(array_key_exists('id', $_GET))
     
    212212    echo('<strong>Překladatelský tým '.$Team['Name'].'</strong><br />'.
    213213      'Webové stránky: <a href="http://'.$Team['URL'].'">'.$Team['URL'].'</a><br/>'.
    214       'Vedoucí: '.$Leader.'<br/>'.
    215     $Team['Description'].'<br /><br />'.
    216       '<a href="export/?team='.$Team['Id'].'">Exportovat překlad týmu</a> ');
     214      'Vedoucí: <strong>'.$Leader.'</strong><br/>'.
     215    $Team['Description'].'<br /><br />');
     216    //echo('<a href="export/?team='.$Team['Id'].'">Exportovat překlad týmu</a> ');
    217217    if(Licence(LICENCE_USER)) echo('<a href="?action=gointeam&amp;id='.$Team['Id'].'">Vstoupit do týmu</a><br /><br />');
    218218    echo('<fieldset><legend>Statistika</legend>'.
Note: See TracChangeset for help on using the changeset viewer.