Ignore:
Timestamp:
May 10, 2009, 1:37:21 PM (16 years ago)
Author:
maron
Message:

Zobrazení všech mých rozepsaných

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TranslationList.php

    r158 r192  
    190190    if($Group['TablePrefix'] != '')
    191191        {
    192       $sql = 'SELECT COUNT(*) FROM '.$Group['TablePrefix'].' WHERE user='.$_GET['user'];
    193       $ID = $Database->SQLCommand($sql);
    194       $Line = mysql_fetch_row($ID);
    195           $GroupId = $Group['Id'];
    196           echo('<tr><td><a href="?group='.$GroupId.'&amp;action=userid&amp;user='.$_GET['user'].'">'.$Group['Name'].'</a></td><td>'.$Line[0].'</td></tr>');
    197           $Total += $Line[0];
     192          if(array_key_exists('not', $_GET)) {
     193                 $sql = 'SELECT COUNT(*) FROM '.$Group['TablePrefix'].' WHERE Complete = 0 AND user='.$_GET['user'];
     194         $ID = $Database->SQLCommand($sql);
     195         $Line = mysql_fetch_row($ID);
     196             $GroupId = $Group['Id'];
     197             echo('<tr><td><a href="?group='.$GroupId.'&amp;action=userid&amp;not&amp;user='.$_GET['user'].'">'.$Group['Name'].'</a></td><td>'.$Line[0].'</td></tr>');
     198             $Total += $Line[0];
     199          } else {
     200         $sql = 'SELECT COUNT(*) FROM '.$Group['TablePrefix'].' WHERE user='.$_GET['user'];
     201         $ID = $Database->SQLCommand($sql);
     202         $Line = mysql_fetch_row($ID);
     203             $GroupId = $Group['Id'];
     204             echo('<tr><td><a href="?group='.$GroupId.'&amp;action=userid&amp;user='.$_GET['user'].'">'.$Group['Name'].'</a></td><td>'.$Line[0].'</td></tr>');
     205             $Total += $Line[0];
     206          }
    198207        }
    199208  echo('<tr><td><strong>Celkem</strong></td><td><strong>'.$Total.'</strong></td></tr>');
     
    240249  echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&amp;action=filter">Filtr textů</a> ->
    241250        <strong>Vypis překladů uživatele '.$Line[0].': </strong><br /><br />');
    242   WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where user = '.$_GET['user'], '', 'userid');
     251  if(array_key_exists('not', $_GET))
     252          WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where Complete = 0 AND user = '.$_GET['user'], '', 'userid');
     253  else
     254          WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where user = '.$_GET['user'], '', 'userid');
    243255} else
    244256if($Action == 'search')
Note: See TracChangeset for help on using the changeset viewer.