Changeset 524 for trunk/userlist.php


Ignore:
Timestamp:
Feb 20, 2013, 9:40:53 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Nastavení předvolené verze klienta pro překládání v profilu překladatelů.
  • Přidáno: Vlastní text v profilu uživatele.
  • Upraveno: Nyní lze veřejně zobrazovat profily překladatelů.
  • Opraveno: Na některých místech opraveno použití id originálního jazyka textů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/userlist.php

    r504 r524  
    66ImgLevelUpdate();
    77
    8 
     8$Output = '';
    99if(array_key_exists('search', $_GET))
    1010{
     
    1313if(array_key_exists('team', $_GET))
    1414{
    15   $Output = '<h3>Seznam uživatelů v týmu</h3>';
    16   $_SESSION['Where'] = ' WHERE `Team`='.$_GET['team'];
    17   if($_GET['team'] == '') $_SESSION['Where'] = '';     
     15        $DbResult = $System->Database->select('Team', 'Name', 'Id='.$_GET['team']);
     16        if($DbResult->num_rows > 0)
     17        {
     18                $Team = $DbResult->fetch_assoc();
     19    $Output .= '<h3>Seznam uživatelů v týmu '.$Team['Name'].'</h3>';
     20    $_SESSION['Where'] = ' WHERE `Team`='.$_GET['team'];
     21    if($_GET['team'] == '') $_SESSION['Where'] = '';
     22        } else {
     23          $Output .= ShowMessage('Tým '.$_GET['team'].' nenalezen', MESSAGE_CRITICAL);
     24          $_SESSION['Where'] = ' WHERE FALSE';
     25        }
    1826} else
    1927{
    20   $Output = '<h3>Seznam uživatelů</h3>';
     28  $Output .= '<h3>Seznam uživatelů</h3>';
    2129  if(!array_key_exists('Where', $_SESSION)) $_SESSION['Where'] = '';
    2230}
     
    5361while($Line = $DbResult->fetch_assoc())
    5462{
    55   if($User->Licence(LICENCE_MODERATOR))
    56     $Name = '<a href="user.php?user='.$Line['ID'].'">'.$Line['Name'].'</a>';
    57     else $Name = $Line['Name'];
    58        
    5963    $XP = GetLevelMinMax($Line['XP']);
    60     $Output .= '<tr><td>'.$Name.'</td>
    61       <td style="text-align: center;"><a href="TranslationList.php?user='.$Line['ID'].'&amp;group=0&amp;state=2" title="Zobrazit Všechny jeho přeložené texty">'.$Line['TranslatedCount'].'</a></td>'.
     64    $Output .= '<tr><td><a href="user.php?user='.$Line['ID'].'">'.$Line['Name'].'</a></td>'.
     65      '<td style="text-align: center;"><a href="TranslationList.php?user='.$Line['ID'].'&amp;group=0&amp;state=2" title="Zobrazit Všechny jeho přeložené texty">'.$Line['TranslatedCount'].'</a></td>'.
    6266      '<td>'.$XP['Level'].'</td>'.
    6367      '<td>'.ProgressBar(150, round($XP['XP'] / $XP['MaxXP'] * 100, 2), $XP['XP'].' / '.$XP['MaxXP']).'</td>'.
Note: See TracChangeset for help on using the changeset viewer.