Changeset 598 for trunk/pages
- Timestamp:
- May 21, 2009, 11:29:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/arena.php
r595 r598 1 1 <?php 2 2 3 $Columns = array('name', 'atname', 'attype', 'tot_chars', 'atrating', 'atwin ', 'atgames');3 $Columns = array('name', 'atname', 'attype', 'tot_chars', 'atrating', 'atwins', 'atgames'); 4 4 $order_by = (isset($_GET['order'])) ? $_GET['order'] : 'atname'; 5 if(! array_key_exists($order_by, $Columns)) $order_by = 'atname';5 if(!in_array($order_by, $Columns)) $order_by = 'atname'; 6 6 $dir = (isset($_GET['dir'])) ? $_GET['dir'] : 'down'; 7 7 $order_dir = ($dir == 'up') ? 'ASC' : 'DESC'; … … 30 30 <th>'.MakeLink('Členů', 'tot_chars').'</th> 31 31 <th>'.MakeLink('Rating', 'atrating').'</th> 32 <th>'.MakeLink('Her vyhráno', 'atwin ').'</th>32 <th>'.MakeLink('Her vyhráno', 'atwins').'</th> 33 33 <th>'.MakeLink('Her hráno', 'atgames').'</th> 34 34 </tr>');
Note:
See TracChangeset
for help on using the changeset viewer.