Changeset 112 for trunk/userlist.php


Ignore:
Timestamp:
Feb 19, 2009, 6:26:28 PM (16 years ago)
Author:
maron
Message:

Opraveno řazení u uživatelů, aktualizace XP u všech ukládání

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/userlist.php

    r110 r112  
    1111else if(!array_key_exists('Page', $_SESSION)) $_SESSION['Page'] = 1;
    1212if(array_key_exists('Order', $_GET)) $_SESSION['Order'] = $_GET['Order'];
    13 else if(!array_key_exists('Order', $_SESSION)) $_SESSION['Order'] = 'user';
     13else if(!array_key_exists('Order', $_SESSION)) $_SESSION['Order'] = 'NumberTranslate';
    1414if(array_key_exists('Desc', $_GET)) $_SESSION['Desc'] = $_GET['Desc'];
    1515else if(!array_key_exists('Desc', $_SESSION)) $_SESSION['Desc'] = '';
     
    1818echo('<table class="BaseTable">');
    1919
    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'];
    3021if($desc == '') $desc = 'DESC'; else $desc = '';
    3122
     
    4536  }
    4637
    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'];
    4839
    4940$ID = $Database->SQLCommand($Query);
     
    6657
    6758?>
     59Projekt překládání textů WoW
Note: See TracChangeset for help on using the changeset viewer.