Changeset 9 for pages


Ignore:
Timestamp:
Jun 6, 2008, 7:47:22 AM (17 years ago)
Author:
george
Message:

Přidáno: Řazení podle času přidání serveru.
Opraveno: Řazení podle odezvy.

Location:
pages
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pages/a_servers.php

    r8 r9  
    1111$tpl->output['th_rating'] = $text['th_rating'];
    1212$tpl->output['th_recommend'] = $text['th_recommend'];
     13$tpl->output['th_created'] = $text['th_created'];
    1314$tpl->output['order_by'] = $text['order_by'];
    1415$tpl->output['place'] = $text['info_place'];
     
    2526  case 5: $order = ' order by `players` desc '; break;
    2627  case 6: $order = ' order by `online` desc '; break;
    27   case 7: $order = ' order by `online` desc,`latency`'; break;
     28  case 7: $order = ' order by ceil(`online` / 100) desc, `latency`'; break;
     29  case 8: $order = ' order by `created` desc'; break;
    2830  }
    2931$tpl->output['s0'] = '';
     
    3537$tpl->output['s6'] = '';
    3638$tpl->output['s7'] = '';
     39$tpl->output['s8'] = '';
    3740if (empty($order_index))
    3841  {
  • pages/servers.php

    r8 r9  
    99$tpl->output['th_rating'] = $text['th_rating'];
    1010$tpl->output['th_recommend'] = $text['th_recommend'];
     11$tpl->output['th_created'] = $text['th_created'];
    1112$tpl->output['order_by'] = $text['order_by'];
    1213$tpl->output['place'] = $text['info_place'];
     
    2324  case 5: $order = ' order by `players` desc '; break;
    2425  case 6: $order = ' order by `online` desc '; break;
    25   case 7: $order = ' order by `online` desc,`latency`'; break;
     26  case 7: $order = ' order by ceil(`online` / 100) desc, `latency`'; break;
     27  case 8: $order = ' order by `created` desc'; break;
    2628}
    2729$tpl->output['s0'] = '';
     
    3335$tpl->output['s6'] = '';
    3436$tpl->output['s7'] = '';
     37$tpl->output['s8'] = '';
    3538if (empty($order_index))
    3639{
  • pages/wss_partners.php

    r8 r9  
    99$tpl->output['th_rating'] = $text['th_rating'];
    1010$tpl->output['th_recommend'] = $text['th_recommend'];
     11$tpl->output['th_created'] = $text['th_created'];
    1112$tpl->output['order_by'] = $text['order_by'];
    1213$tpl->output['place'] = $text['info_place'];
     
    2425  case 5: $order = ' order by `players` desc '; break;
    2526  case 6: $order = ' order by `online` desc '; break;
    26   case 7: $order = ' order by `online` desc,`latency`'; break;
     27  case 7: $order = ' order by ceil(`online` / 100) desc, `latency`'; break;
     28  case 8: $order = ' order by `created` desc'; break;
    2729  }
    2830$tpl->output['s0'] = '';
     
    3436$tpl->output['s6'] = '';
    3537$tpl->output['s7'] = '';
     38$tpl->output['s8'] = '';
    3639if (empty($order_index))
    3740  {
Note: See TracChangeset for help on using the changeset viewer.