Changeset 192
- Timestamp:
- May 10, 2009, 1:37:21 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r158 r192 190 190 if($Group['TablePrefix'] != '') 191 191 { 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.'&action=userid&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.'&action=userid&not&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.'&action=userid&user='.$_GET['user'].'">'.$Group['Name'].'</a></td><td>'.$Line[0].'</td></tr>'); 205 $Total += $Line[0]; 206 } 198 207 } 199 208 echo('<tr><td><strong>Celkem</strong></td><td><strong>'.$Total.'</strong></td></tr>'); … … 240 249 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 241 250 <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'); 243 255 } else 244 256 if($Action == 'search') -
trunk/includes/global.php
r191 r192 130 130 131 131 echo('<strong>Překladové skupiny:</strong><br /><div id="TranslationMenu">'); 132 if(Licence(LICENCE_USER)) echo ('<a title="Všechny překlady, které jste přeložil" href="'.$Config['Web']['BaseURL'].'TranslationList.php?user='.$_SESSION['UserID'].'&action=userall">Všechny moje texty</a><br /><br />'); 132 if(Licence(LICENCE_USER)) { 133 echo ('<a title="Všechny překlady, které jste přeložil" href="'.$Config['Web']['BaseURL'].'TranslationList.php?user='.$_SESSION['UserID'].'&action=userall">Všechny moje texty</a><br />'); 134 echo ('<a title="Všechny překlady, které jste rozepsal a nedokončil" href="'.$Config['Web']['BaseURL'].'TranslationList.php?user='.$_SESSION['UserID'].'&not&action=userall">Rozpracované texty</a>'); 135 //TODO: počet nedokončených 136 echo ('<br /><br />'); 137 } 133 138 foreach($TranslationTree as $Group) 134 139 {
Note:
See TracChangeset
for help on using the changeset viewer.