Changeset 6 for pages/wss_partners.php
- Timestamp:
- Jun 4, 2008, 9:01:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pages/wss_partners.php
r3 r6 5 5 $tpl->output['place'] = $text['info_place']; 6 6 $tpl->output['wss_partners_h2'] = $menu['mm2']; 7 if(!array_key_exists('order', $_GET)) $_GET['order'] = 0; 7 8 $order_index = (int) $_GET['order']; 8 9 switch ($order_index) 9 10 { 10 case 0: $order = ' order by `name` desc'; break;11 case 0: $order = ' order by `name`'; break; 11 12 case 1: $order = ' order by `rating` desc '; break; 12 13 case 2: $order = ' order by `version` desc '; break; … … 32 33 } 33 34 34 $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 `wss_partner`=1 '.$order, 'p');35 $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 `wss_partner`=1 '.$order, 'p'); 35 36 $pa->PageSize = 20; 36 37 $pa->PageLinksDisplayed = 5; … … 64 65 $tpl->output['servers_data'] .='<td>'.$xp.'</td>'; 65 66 $tpl->output['servers_data'] .='<td>'.(int)$row['players'].'</td>'; 66 $tpl->output['servers_data'] .='<td>'. (100*$row['online']).'%</td>';67 $tpl->output['servers_data'] .='<td>'.$row['online'].'%</td>'; 67 68 $tpl->output['servers_data'] .='</tr>'; 68 69 }
Note:
See TracChangeset
for help on using the changeset viewer.