Changeset 8 for pages/a_servers.php
- Timestamp:
- Jun 5, 2008, 9:38:23 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pages/a_servers.php
r6 r8 2 2 $tpl->output['th_players'] = $text['th_players']; 3 3 $tpl->output['servers_h2'] = $text['abroad_servers']; 4 $tpl->output['th_name'] =$text['name']; 4 $tpl->output['th_players'] = $text['th_players']; 5 $tpl->output['th_name'] = $text['name']; 6 $tpl->output['th_latency'] = $text['th_latency']; 7 $tpl->output['th_version'] = $text['th_version']; 8 $tpl->output['th_xp'] = $text['th_xp']; 9 $tpl->output['th_online_state'] = $text['th_online_state']; 10 $tpl->output['th_type'] = $text['th_type']; 11 $tpl->output['th_rating'] = $text['th_rating']; 12 $tpl->output['th_recommend'] = $text['th_recommend']; 5 13 $tpl->output['order_by'] = $text['order_by']; 6 14 $tpl->output['place'] = $text['info_place']; … … 17 25 case 5: $order = ' order by `players` desc '; break; 18 26 case 6: $order = ' order by `online` desc '; break; 27 case 7: $order = ' order by `online` desc,`latency`'; break; 19 28 } 20 29 $tpl->output['s0'] = ''; … … 25 34 $tpl->output['s5'] = ''; 26 35 $tpl->output['s6'] = ''; 36 $tpl->output['s7'] = ''; 27 37 if (empty($order_index)) 28 38 { … … 34 44 } 35 45 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');46 $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'); 37 47 $pa->PageSize = 20; 38 48 $pa->PageLinksDisplayed = 5; … … 67 77 $tpl->output['servers_data'] .='<td>'.(int)$row['players'].'</td>'; 68 78 $tpl->output['servers_data'] .='<td>'.($row['online']).'%</td>'; 79 if($row['latency'] == 0) $Latency = '?'; else $Latency = round($row['latency']).'ms'; 80 $tpl->output['servers_data'] .='<td>'.$Latency.'</td>'; 69 81 $tpl->output['servers_data'] .='</tr>'; 70 82 }
Note:
See TracChangeset
for help on using the changeset viewer.