Changeset 192 for trunk/TranslationList.php
- Timestamp:
- May 10, 2009, 1:37:21 PM (16 years ago)
- File:
-
- 1 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')
Note:
See TracChangeset
for help on using the changeset viewer.