Changeset 389 for online_player.php


Ignore:
Timestamp:
Oct 8, 2008, 12:42:58 PM (16 years ago)
Author:
george
Message:
  • Upraveno: Kódování všech souborů webu bylo převedeno z ISO 8859-2 na obecné UTF-8.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • online_player.php

    r374 r389  
    1 
    2 <?
     1<?php
    32  include('global.php');
    43  ShowHeader();
    5  
    6   echo('<h3>Online hráèi:</h3><div align="center">');
     4
     5  echo('<h3>Online hráči:</h3><div align="center">');
    76  $Database->select_db('characters');
    87
     
    2019       
    2120        require_once("minimanager/scripts/defines.php");
    22         $result = $Database->query("SELECT guid,name,race,class,zone,map,
    23                         CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(CHAR_DATA_OFFSET_HONOR_POINTS+1)."), ' ', -1) AS UNSIGNED) AS highest_rank,
    24                         CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(CHAR_DATA_OFFSET_LEVEL+1)."), ' ', -1) AS UNSIGNED) AS level,account
    25                         FROM `characters` WHERE `online`= 1 $order_side ORDER BY $order_by $order_dir");
     21        $result = $Database->query("SELECT guid, name, race, class, zone, map, CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(CHAR_DATA_OFFSET_HONOR_POINTS+1)."), ' ', -1) AS UNSIGNED) AS highest_rank, CAST( SUBSTRING_INDEX(SUBSTRING_INDEX(`data`, ' ', ".(CHAR_DATA_OFFSET_LEVEL+1)."), ' ', -1) AS UNSIGNED) AS level,account FROM `characters` WHERE `online`= 1 $order_side ORDER BY $order_by $order_dir");
    2622
    2723        require_once("minimanager/lang/english.php");
     
    3228        'offline_or_let_height' => 'Offline or Latency too Height',
    3329        'delete' => 'Delete',
    34         'tot_users_online' => 'Celkem hráèù online',
     30        'tot_users_online' => 'Celkem hráčů online',
    3531        'name' => 'Jméno',
    3632        'race' => 'Rasa',
    37         'class' => 'Tøída',
    38         'level' => 'Úroveò',
     33        'class' => 'Třída',
     34        'level' => 'Úroveň',
    3935        'map' => 'Mapa',
    4036        'zone' => 'Zóna',
     
    6359    if(($char[2] == 1) or ($char[2] == 3) or ($char[2] == 4) or ($char[2] == 7) or ($char[2] == 11)) $color = '#9090ff';
    6460    else $color = '#FF5050';
    65                 $output .= "<tr>
    66                 <td style=\"color: ".$color.";\">$char[1]</td>
     61$output .= "<tr>
     62 <td style=\"color: ".$color.";\">$char[1]</td>
    6763         <td><img src='images/online_player/{$char[2]}-0.gif' onmousemove='toolTip(\"".$race."\",\"item_tooltip\")' onmouseout='toolTip()' /></td>
    68                  <td><img src='images/online_player/{$char[3]}.gif' onmousemove='toolTip(\"".get_player_class($char[3])."\",\"item_tooltip\")' onmouseout='toolTip()' /></td>
    69                  <td>$char[7]</td>
    70                  <td>".get_map_name($char[5])."</td>
    71                  <td>".$zone."</td>
    72                  <td>$char[6]</td>
    73          </tr>";
    74         }
    75    $output .= "</table></div>"; 
     64        <td><img src='images/online_player/{$char[3]}.gif' onmousemove='toolTip(\"".get_player_class($char[3])."\",\"item_tooltip\")' onmouseout='toolTip()' /></td>
     65        <td>$char[7]</td>
     66        <td>".get_map_name($char[5])."</td>
     67        <td>".$zone."</td>
     68        <td>$char[6]</td>
     69        </tr>";
     70}
     71   $output .= "</table></div>";
    7672  echo($output);
    77  
     73
    7874  ShowFooter();
    7975?>
Note: See TracChangeset for help on using the changeset viewer.