Changeset 112 for trunk/userlist.php
- Timestamp:
- Feb 19, 2009, 6:26:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.