Changeset 598


Ignore:
Timestamp:
May 21, 2009, 11:29:10 AM (15 years ago)
Author:
george
Message:
  • Opraveno: Řazení v tabulky seznamu arénových týmů.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mangos_debug/index.php

    r569 r598  
    2424{
    2525  if($DbRow['Id'] == $Id) echo('<strong>');
    26   echo('<a href="?Id='.$DbRow['Id'].'&amp;Page='.$Page.'&amp;Show=Backtrace">'.str_replace(" ", "&nbsp;", $DbRow['Time']).'</a>');
     26  echo('<a href="?Id='.$DbRow['Id'].'&amp;Page='.$Page.'&amp;Show=Backtrace">'.str_replace(' ', '&nbsp;', $DbRow['Time']).'</a>');
    2727  if($DbRow['Id'] == $Id) echo('</strong>');
    2828  echo('<br>');
  • trunk/pages/arena.php

    r595 r598  
    11<?php
    22
    3 $Columns = array('name', 'atname', 'attype', 'tot_chars', 'atrating', 'atwin', 'atgames');
     3$Columns = array('name', 'atname', 'attype', 'tot_chars', 'atrating', 'atwins', 'atgames');
    44$order_by = (isset($_GET['order'])) ? $_GET['order'] : 'atname';
    5 if(!array_key_exists($order_by, $Columns)) $order_by = 'atname';
     5if(!in_array($order_by, $Columns)) $order_by = 'atname';
    66$dir = (isset($_GET['dir'])) ? $_GET['dir'] : 'down';
    77$order_dir = ($dir == 'up') ? 'ASC' : 'DESC';
     
    3030      <th>'.MakeLink('Členů', 'tot_chars').'</th>
    3131      <th>'.MakeLink('Rating', 'atrating').'</th>
    32       <th>'.MakeLink('Her vyhráno', 'atwin').'</th>
     32      <th>'.MakeLink('Her vyhráno', 'atwins').'</th>
    3333      <th>'.MakeLink('Her hráno', 'atgames').'</th>
    3434    </tr>');
Note: See TracChangeset for help on using the changeset viewer.