Changeset 6 for pages/a_servers.php
- Timestamp:
- Jun 4, 2008, 9:01:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pages/a_servers.php
r3 r6 10 10 switch ($order_index) 11 11 { 12 case 0: $order = ' order by `name` desc'; break;12 case 0: $order = ' order by `name`'; break; 13 13 case 1: $order = ' order by `rating` desc '; break; 14 14 case 2: $order = ' order by `version` desc '; break; … … 34 34 } 35 35 36 $pa = new CleverPager('select `id`,`wss_partner`,LEFT(`name`, 25) as `name`, `place`, `rating_sum`/`ratings` as `rating`, `version`, `type`, `xp`, `online` /`online_checks` as `online`, `online_players_sum`/`player_checks` as `players` from `servers` where `place`=2 '.$order, 'p');36 $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` from `servers` where `place`=2 '.$order, 'p'); 37 37 $pa->PageSize = 20; 38 38 $pa->PageLinksDisplayed = 5; … … 66 66 $tpl->output['servers_data'] .='<td>'.$xp.'</td>'; 67 67 $tpl->output['servers_data'] .='<td>'.(int)$row['players'].'</td>'; 68 $tpl->output['servers_data'] .='<td>'.( 100*$row['online']).'%</td>';68 $tpl->output['servers_data'] .='<td>'.($row['online']).'%</td>'; 69 69 $tpl->output['servers_data'] .='</tr>'; 70 70 }
Note:
See TracChangeset
for help on using the changeset viewer.