Ignore:
Timestamp:
Mar 19, 2010, 9:46:30 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Generování pěkného pro další stránky.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pages/online-hraci.php

    r690 r691  
    55$order_dir = ($dir == 'up') ? 'ASC' :'DESC';
    66$dir = ($dir == 'down') ? 'up' : 'down';
    7 $dir_img = ($dir == 'down') ? '<img src="imgs/inc/up.gif" alt="vzestupně" />' : '<img src="imgs/inc/down.gif" alt="sestupně"/>';
     7$dir_img = ($dir == 'down') ? '<img src="'.$html->Link('/imgs/inc/up.gif').'" alt="vzestupně" />' : '<img src="'.$html->Link('/imgs/inc/down.gif').'" alt="sestupně"/>';
    88
    99function MakeLink($show, $sort)
    1010{
    11   global $dir, $dir_img;
     11  global $dir, $dir_img, $html;
     12 
    1213  if(isset($_GET['order']) and $_GET['order'] == $sort)
    1314  {
     
    1819    $arrow = '';
    1920  }
    20   return($arrow.'<a href="?page=online&amp;order='.$sort.'&amp;dir='.$dir.'">'.$show.'</a>');
     21  return($arrow.'<a href="'.$html->Link('/online-hraci/?order='.$sort.'&amp;dir='.$dir).'">'.$show.'</a>');
    2122}
    2223
     
    4647{
    4748  $aliance = array(1, 3, 4, 7, 11);
    48   $frakce = (in_array($row['race'], $aliance)) ? '<img src="imgs/inc/a.gif" alt="aliance"/>' : '<img src="imgs/inc/h.gif" alt="horda" />';
     49  $frakce = (in_array($row['race'], $aliance)) ? '<img src="'.$html->Link('/imgs/inc/a.gif').'" alt="aliance"/>' : '<img src="'.$html->Link('/imgs/inc/h.gif').'" alt="horda" />';
    4950  $gender = ($row['gender'] == 0) ? '0' : '1';
    5051  echo('<tr>
    5152      <td align="center">'.$frakce.'</td>
    5253      <td align="center">'.$row['name'].'</td>
    53       <td align="center"><img src="imgs/icons/'.$row['race'].'-'.$gender.'.gif" alt="rasa" /></td>
    54       <td align="center"><img src="imgs/icons/'.$row['class'].'.gif" alt="třída" /></td>
     54      <td align="center"><img src="'.$html->Link('/imgs/icons/'.$row['race'].'-'.$gender.'.gif').'" alt="rasa" /></td>
     55      <td align="center"><img src="'.$html->Link('/imgs/icons/'.$row['class'].'.gif').'" alt="třída" /></td>
    5556      <td align="center">'.$row['level'].'</td>
    5657      <td align="center">'.$server->MapName($row['map']).'<br />('.$server->ZoneName($row['zone']).')</td>
Note: See TracChangeset for help on using the changeset viewer.