Changeset 691 for trunk/pages/online-hraci.php
- Timestamp:
- Mar 19, 2010, 9:46:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pages/online-hraci.php
r690 r691 5 5 $order_dir = ($dir == 'up') ? 'ASC' :'DESC'; 6 6 $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ě"/>'; 8 8 9 9 function MakeLink($show, $sort) 10 10 { 11 global $dir, $dir_img; 11 global $dir, $dir_img, $html; 12 12 13 if(isset($_GET['order']) and $_GET['order'] == $sort) 13 14 { … … 18 19 $arrow = ''; 19 20 } 20 return($arrow.'<a href=" ?page=online&order='.$sort.'&dir='.$dir.'">'.$show.'</a>');21 return($arrow.'<a href="'.$html->Link('/online-hraci/?order='.$sort.'&dir='.$dir).'">'.$show.'</a>'); 21 22 } 22 23 … … 46 47 { 47 48 $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" />'; 49 50 $gender = ($row['gender'] == 0) ? '0' : '1'; 50 51 echo('<tr> 51 52 <td align="center">'.$frakce.'</td> 52 53 <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> 55 56 <td align="center">'.$row['level'].'</td> 56 57 <td align="center">'.$server->MapName($row['map']).'<br />('.$server->ZoneName($row['zone']).')</td>
Note:
See TracChangeset
for help on using the changeset viewer.