- Timestamp:
- Feb 19, 2009, 6:26:28 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/save.php
r111 r112 49 49 //echo($sql); 50 50 $Database->SQLCommand($sql); 51 $Database->SQLCommand('UPDATE `user` SET `NeedUpdate` = 1 WHERE ID = '.$UserID); //informace o nutnosti načíst XP52 51 // echo $sql.'<br />'; 53 52 echo('Změny v překladu: <a href="form.php?group='.$GroupId.'&ID='.$TextID.'">'.$TextID.'</a> uloženy!<br />'); … … 55 54 } 56 55 56 $Database->SQLCommand('UPDATE `user` SET `NeedUpdate` = 1 WHERE ID = '.$UserID); //informace o nutnosti načíst XP 57 57 echo('Překládat: <a href="TranslationList.php?group='.$GroupId.'&action=notran">Nepřeložené</a>'); 58 58 } -
trunk/userlist.php
r110 r112 11 11 else if(!array_key_exists('Page', $_SESSION)) $_SESSION['Page'] = 1; 12 12 if(array_key_exists('Order', $_GET)) $_SESSION['Order'] = $_GET['Order']; 13 else if(!array_key_exists('Order', $_SESSION)) $_SESSION['Order'] = ' user';13 else if(!array_key_exists('Order', $_SESSION)) $_SESSION['Order'] = 'NumberTranslate'; 14 14 if(array_key_exists('Desc', $_GET)) $_SESSION['Desc'] = $_GET['Desc']; 15 15 else if(!array_key_exists('Desc', $_SESSION)) $_SESSION['Desc'] = ''; … … 18 18 echo('<table class="BaseTable">'); 19 19 20 if(array_key_exists('Order', $_GET)) 21 { 22 $order = $_GET['Order']; 23 $desc = $_GET['Desc']; 24 } else 25 { 26 $order = 'NumberTranslate'; 27 $desc = ''; 28 } 29 20 $desc = $_SESSION['Desc']; 30 21 if($desc == '') $desc = 'DESC'; else $desc = ''; 31 22 … … 45 36 } 46 37 47 $Query = 'SELECT ID, user.user, LastLogin, GM, ('.substr($Columns, 0, -3).') as NumberTranslate FROM `user`'.$Joins.' ORDER BY '.$ order.' '.$desc.' LIMIT '.($_SESSION['Page'] - 1) * $Config['Web']['ItemsPerPage'].','.$Config['Web']['ItemsPerPage'];38 $Query = 'SELECT ID, user.user, LastLogin, GM, ('.substr($Columns, 0, -3).') as NumberTranslate FROM `user`'.$Joins.' ORDER BY '.$_SESSION['Order'].' '.$_SESSION['Desc'].' LIMIT '.($_SESSION['Page'] - 1) * $Config['Web']['ItemsPerPage'].','.$Config['Web']['ItemsPerPage']; 48 39 49 40 $ID = $Database->SQLCommand($Query); … … 66 57 67 58 ?> 59 Projekt překládání textů WoW
Note:
See TracChangeset
for help on using the changeset viewer.