Changeset 104 for trunk/TranslationList.php
- Timestamp:
- Feb 18, 2009, 8:48:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r97 r104 43 43 } 44 44 45 if($Action != 'userall') echo('Skupina: <strong>'.$TranslationTree[$GroupId]['Name'].'</strong><br />'); 45 if($Action != 'userall') 46 echo('Skupina: <strong>'.$TranslationTree[$GroupId]['Name'].'</strong><br />'); 46 47 47 48 function WritePages($Address, $Where) … … 91 92 } 92 93 93 echo('<table border="1" cellpadding="2" cellspacing="0"><tr>94 echo('<table class="BaseTable"><tr> 94 95 <th><a href="?group='.$GroupId.'&action='.$address.'&order=ID&desc='.$desc.'">Pořadové číslo</a></th> 95 96 <th><a href="?group='.$GroupId.'&action='.$address.'&order=entry&desc='.$desc.'">Identifikační číslo</a></th> … … 185 186 if($Action == 'userall') 186 187 { 187 $user = $_GET['user']; 188 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 189 <strong>Vypsání všech textů od uživatele: </strong><br /><br />'); 190 191 $WhereUser = ' User = '.$user; 192 foreach($TranslationTree as $Group) { 193 if($Group['TablePrefix'] != '') { 194 $sql = 'SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Group['TablePrefix'].'.user) as User FROM '.$Group['TablePrefix'].' Where '.$WhereUser; 188 $ID = $Database->SQLCommand('SELECT user FROM user WHERE id = '.$_GET['user']); 189 $Line = mysql_fetch_row($ID); 190 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a>'. 191 ' -> <strong>Počty překladů uživatele '.$Line[0].': </strong><br /><br />'); 192 193 echo('<table class="BaseTable"><tr><th>Skupina</th><th>Překladů</th></tr>'); 194 $Total = 0; 195 foreach($TranslationTree as $Group) 196 if($Group['TablePrefix'] != '') 197 { 198 $sql = 'SELECT COUNT(*) FROM '.$Group['TablePrefix'].' WHERE user='.$_GET['user']; 195 199 $ID = $Database->SQLCommand($sql); 196 200 $Line = mysql_fetch_row($ID); 197 if ($Line) {198 201 $GroupId = $Group['Id']; 199 echo ('<br />Texty: <b>'.$Group['Name'].'</b>');200 WriteQuests($sql, '', 'userall');202 echo('<tr><td><a href="?group='.$GroupId.'&action=userid&user='.$_GET['user'].'">'.$Group['Name'].'</a></td><td>'.$Line[0].'</td></tr>'); 203 $Total += $Line[0]; 201 204 } 202 } 203 } 205 echo('<tr><td><strong>Celkem</strong></td><td><strong>'.$Total.'</strong></td></tr>'); 206 echo('</table>'); 207 } 208 209 if($Action == 'userid') 210 { 211 $ID = $Database->SQLCommand('SELECT user FROM user WHERE id = '.$_GET['user']); 212 $Line = mysql_fetch_row($ID); 213 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 214 <strong>Vypis překladů uživatele '.$Line[0].': </strong><br /><br />'); 215 WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where user = '.$_GET['user'], '', 'userid'); 204 216 } 205 217 … … 221 233 WriteQuests($sql, '', 'search='.$Search); 222 234 } 223 235 224 236 if($Action == 'searchentry') 225 237 {
Note:
See TracChangeset
for help on using the changeset viewer.