Changeset 12 for pages


Ignore:
Timestamp:
Aug 2, 2009, 8:07:19 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Počet serverů na stránku dle konfigurace.
Location:
pages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pages/a_servers.php

    r9 r12  
    4848 
    4949$pa = new CleverPager('select `id`,`wss_partner`,LEFT(`name`, 25) as `name`, `place`, `rating_sum`/`ratings` as `rating`, `version`, `type`, `xp`, `online`, `online_players_sum`/`player_checks` as `players`, `latency` from `servers` where `place`=2 '.$order, 'p');
    50 $pa->PageSize = 20;
     50$pa->PageSize = $Config['DisplayServerCountPerPage'];
    5151$pa->PageLinksDisplayed = 5;
    5252$pa->CountCommand = 'select count(*) as Count from `servers` where `place`=2';
  • pages/wss_partners.php

    r9 r12  
    4747 
    4848$pa = new CleverPager('select `id`,`wss_partner`, LEFT(`name`, 25) as `name`, `place`, `rating_sum`/`ratings` as `rating`, `version`, `type`, `xp`, `online`, `online_players_sum`/`player_checks` as `players`,`latency`  from `servers` where `wss_partner`=1 '.$order, 'p');
    49 $pa->PageSize = 20;
     49$pa->PageSize = $Config['DisplayServerCountPerPage'];
    5050$pa->PageLinksDisplayed = 5;
    5151$pa->CountCommand = 'select count(*) as Count from `servers` where `wss_partner` =1';
     
    8686$pa->DrawPager();
    8787$tpl->output['pager'] = ob_get_contents();
    88 ob_clean(); 
     88ob_clean();
    8989?>
Note: See TracChangeset for help on using the changeset viewer.