Changeset 595 for trunk/pages


Ignore:
Timestamp:
May 19, 2009, 7:58:09 AM (16 years ago)
Author:
george
Message:
  • Upraveno: Navrácení zmenšeného textu na normální a nastavení přetekání obsahu obsahové části stránky.
  • Upraveno: Počeštěny tlačítka menu. Přesunuty odkazy Jak začít, Registrace a Správa účtu nahoru.
  • Opraveno: Validace XHTML kódu stránek guildy a guilda.
Location:
trunk/pages
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/pages/arena.php

    r593 r595  
    2323echo('<h3 class="PageTitle">Arénové týmy :</h3>
    2424Celkem týmů : <strong>'.$all_record.'</strong>
    25   <table class="BaseTable" style="font-size: small;">
     25  <table class="BaseTable">
    2626    <tr>
    2727      <th>'.MakeLink('Tým', 'atname').'</th>
  • trunk/pages/banlist.php

    r593 r595  
    3939$sqldata = $db->query('SELECT `account`.`last_ip`,`ip_banned`.`bandate`,`ip_banned`.`unbandate`,`ip_banned`.`bannedby`,`ip_banned`.`banreason` FROM `account` INNER join `ip_banned` ON `account`.`last_ip`=`ip_banned`.`ip`');
    4040
    41 echo('<table class="BaseTable" style="font-size: small;">');
     41echo('<table class="BaseTable">');
    4242echo('<tr><th>IP</th><th>Od</th><th>Do</th><th>Banoval</th><th>Důvod</th></tr>');
    4343
  • trunk/pages/dotation.php

    r583 r595  
    6969  if($row['time'] != '')
    7070  {
    71     //$date = $server -> HumanDate ($row["time"],0);
    72     $date = $row['time'];
    73   } else
    74   {
    75     $date = '';
    76   }
     71    $date = $server->HumanDate($row['time'], 0);
     72    //$date = $row['time'];
     73  } else $date = '';
    7774  if($row['money'] > 0) $plus = '+';
    7875    else $plus = '';
  • trunk/pages/events.php

    r593 r595  
    9191
    9292$Events = Events();
    93 echo('<table class="BaseTable" style="font-size: small;">');
     93echo('<table class="BaseTable">');
    9494echo('<tr><th>Název</th><th>Začátek</th><th>Konec</th><th>Informace</th></tr>');
    9595echo('<tr><td colspan="5"><b>Probíhající akce</b></td></tr>');
  • trunk/pages/guilda.php

    r580 r595  
    1515{
    1616  $guild_id = $id;
    17   $guild_data = $db -> query("SELECT `guildid`, `name`, `createdate` FROM `guild` WHERE `guildid` = ".$guild_id." LIMIT 1;") -> fetch_array();
    18   $members = $db -> query("SELECT guild_member.guid, guild_member.rank AS mrank, `characters`.name, SUBSTRING_INDEX(SUBSTRING_INDEX(`characters`.`data`, ' ', ".$Config['Mangos']['CharacterDataOffset']['Level']." + 1), ' ', -1) AS level, (SELECT rname FROM guild_rank WHERE guildid =".$guild_id." AND rid = mrank+1) AS rname, guild_member.pnote, guild_member.offnote FROM guild_member,`characters` LEFT JOIN guild_member k1 ON k1.`guid`=`characters`.`guid` WHERE guild_member.guildid = ".$guild_id." AND guild_member.guid=`characters`.guid ORDER BY mrank");
    19   $total_members = $members -> num_rows;
    20   $members_data = $members -> fetch_array();
    21   $online_mem = $db -> query("SELECT count(*) AS online_mem  FROM `guild_member`, `characters`, `guild` WHERE guild.guildid = ".$guild_id." AND guild_member.guildid = guild.guildid AND guild_member.guid = characters.guid AND characters.online = 1;") -> fetch_array();;
     17  $DbResult = $db->query('SELECT `guildid`, `name`, `createdate` FROM `guild` WHERE `guildid` = '.$guild_id.' LIMIT 1');
     18  $guild_data = $DbResult->fetch_assoc();
     19  $members = $db->query('SELECT guild_member.guid, guild_member.rank AS mrank, `characters`.name, SUBSTRING_INDEX(SUBSTRING_INDEX(`characters`.`data`, " ", '.$Config['Mangos']['CharacterDataOffset']['Level'].' + 1), " ", -1) AS level, (SELECT rname FROM guild_rank WHERE guildid ='.$guild_id.' AND rid = mrank + 1) AS rname, guild_member.pnote, guild_member.offnote FROM guild_member,`characters` LEFT JOIN guild_member k1 ON k1.`guid`=`characters`.`guid` WHERE guild_member.guildid = '.$guild_id.' AND guild_member.guid=`characters`.guid ORDER BY mrank');
     20  $total_members = $members->num_rows;
     21  $members_data = $members->fetch_assoc();
     22  $DbResult = $db->query('SELECT count(*) AS online_mem  FROM `guild_member`, `characters`, `guild` WHERE guild.guildid = '.$guild_id.' AND guild_member.guildid = guild.guildid AND guild_member.guid = characters.guid AND characters.online = 1');
     23  $online_mem = $DbResult->fetch_assoc();
     24
    2225  // guild info
    2326  $date_arr = explode(' ', $guild_data['createdate']);
     
    2730  $human_date = date('d.m.Y H:i:s', $time);
    2831  echo('<a href="?page=guildy">&lt;- Zpět na výpis</a><br />');
    29   echo('<table border="1">
     32  echo('<table class="BaseTable">
    3033    <tr>
    31       <td colspan="2"><font size="5">Guilda : '.$guild_data['name'].'</font></td>
     34      <td colspan="2" style="font-size: x-large;">Spolek '.$guild_data['name'].'</td>
    3235    </tr>
    3336    <tr>
     
    3942      <td>'.$total_members.' (Online : '.$online_mem['online_mem'].')</td>
    4043    </tr>
    41   </table>');
     44  </table><br />');
    4245 
    4346  // members info
    44   echo('<table border="1">
     47  echo('<table class="BaseTable">
    4548    <tr>
    4649      <th align="center">Jméno</th>
    4750      <th align="center">Rasa</th>
    48       <th align="center">Class</th>
     51      <th align="center">Třída</th>
    4952      <th align="center">Úroveň</th>
    50       <th align="center">Rank</th>
    51       <th align="center">Poslední přihlášení (Dny)</th>
     53      <th align="center">Hodnost</th>
     54      <th align="center">Poslední přihlášení (dny)</th>
    5255      <th align="center">Online</th>     
    5356    </tr>');
     
    5760    $online = $query->fetch_assoc();
    5861          $accid = $online['account'];
    59           $llogin = count_days($online['logout_time'], time());
    60         if($llogin < 1)
    61         {
    62                 $lastlogin = '<font color="#009900">'.$llogin.'</font>';
    63         }
    64         if($llogin >= 1)
    65         {
    66                 $lastlogin = '<font color="#0000CC">'.$llogin.'</font>';
    67         }
    68         if($llogin > 5)
    69         {
    70                 $lastlogin = '<font color="#FFFF00">'.$llogin.'</font>';
    71         }
    72         if($llogin > 15)
    73         {
    74                 $lastlogin = '<font color="#FF8000">'.$llogin.'</font>';
    75         }
    76         if($llogin > 30)
    77         {
    78                 $lastlogin = '<font color="#FF0000">'.$llogin.'</font>';
    79         }
    80         if($llogin > 60)
    81         {
    82                 $lastlogin = '<font color="#FF00FF">'.$llogin.'</font>';
    83         }
    84         if($llogin > 90)
    85         {
    86                 $lastlogin = '<font color="#8000FF">'.$llogin.'</font>';
    87         }
    88         $level = $online['level'];
    89         if($level > 0)
    90                 {
    91                         $lev = '<font color="#FFFFFF">'.$level.'</font>';
    92                 }
    93                 if($level > 9)
    94                 {
    95                         $lev = '<font color="#858585">'.$level.'</font>';
    96                 }
    97                 if($level > 19)
    98                 {
    99                         $lev = '<font color="#339900">'.$level.'</font>';
    100                 }
    101                 if($level > 29)
    102                 {
    103                         $lev = '<font color="#3300CC">'.$level.'</font>';
    104                 }
    105                 if($level > 39)
    106                 {
    107                         $lev = '<font color="#5552FF">'.$level.'</font>';
    108                 }
    109                 if($level > 49)
    110                 {
    111                         $lev = '<font color="#FF8000">'.$level.'</font>';
    112                 }
    113                 if($level > 59)
    114                 {
    115                         $lev = '<font color="#FF0000">'.$level.'</font>';
    116                 }
    117                 if($level > 69)
    118                 {
    119                         $lev = '<font color="#FF00CC">'.$level.'</font>';
    120                 }
    121                 if($level > 70)
    122                 {
    123                         $lev = '<font color="#FFF000">'.$level.'</font>';
    124                 }
    125                 if($online['gender'] == 0) $gender = '0';
    126     else $gender = '1';
     62         
     63    $LogoutTime = count_days($online['logout_time'], time());
     64    $LogoutTimeColorList = array(0 => '#0000CC', 5 => '#FFFF00', 15 => '#FF8000', 30 => '#FF0000', 60 => '#FF00FF', 90 => '#8000FF');
     65    $LogoutTimeColor = '#009900';
     66    foreach($LogoutTimeColorList as $Time => $Color)
     67    {
     68      if($LogoutTime > $Time) $LogoutTimeColor = $Color;
     69    }
     70   
     71        $Level = $online['level'];
     72    $LevelColorList = array(9 => '#858585', 19 => '#339900', 29 => '#3300CC', 39 => '#5552FF', 49 => '#FF8000', 59 => '#FF0000', 69 => '#FF00CC', 70 => '#FFF000');
     73    $LevelColor = '#FFFFFF';
     74    foreach($LevelColorList as $Index => $Color)
     75    {
     76      if($Level > $Index) $LevelColor = $Color;
     77    }
     78   
     79                if($online['gender'] == 0) $gender = 0;
     80    else $gender = 1;
    12781    echo('<tr>'.
    12882      '<td align="center">'.$member[2].'</td>'.
    129       '<td align="center"><img src="imgs/icons/'.$online['race'].'-'.$gender.'.gif"></td>'.
    130       '<td align="center"><img src="imgs/icons/'.$online['class'].'.gif"></td>'.
    131       '<td align="center">'.$lev.'</td>'.
     83      '<td align="center"><img src="imgs/icons/'.$online['race'].'-'.$gender.'.gif" alt="pohlaví" /></td>'.
     84      '<td align="center"><img src="imgs/icons/'.$online['class'].'.gif" alt="třída" /></td>'.
     85      '<td align="center" style="color: '.$LevelColor.'">'.$Level.'</td>'.
    13286      '<td align="center">'.$member[4].' ('.$member[1].')</td>'.
    133       '<td align="center">'.$lastlogin.'</td>'.
    134       '<td align="center">'.(($online['online']) ? '<img src="imgs/inc/on.gif" alt="online" />' : '<img src="imgs/inc/off.gif" alt="offline" />').'</td></td>');
     87      '<td align="center" style="color: '.$LogoutTimeColor.'">'.$LogoutTime.'</td>'.
     88      '<td align="center">'.(($online['online']) ? '<img src="imgs/inc/on.gif" alt="online" />' : '<img src="imgs/inc/off.gif" alt="offline" />').'</td>'.
     89      '</tr>');
    13590  }
    13691  echo('</table>');
  • trunk/pages/guildy.php

    r592 r595  
    2020  global $server;
    2121 
    22   if($row != '') return('<a href="http://'.$row.'/" target="_blank">www</a>');
     22  if($row != '') return('<a href="http://'.$row.'/">www</a>');
    2323  else return('');
    2424}
     
    3030}
    3131
    32 echo('<h3 class="PageTitle">Seznam guild</h3>');
    33 echo('<table class="BaseTable" style="font-size: small;">
     32echo('<h3 class="PageTitle">Seznam spolků</h3>');
     33echo('<table class="BaseTable">
    3434  <tr>
    3535    <th>'.MakeLink('', 'fraction').'</th>
     
    5656  echo('<tr>
    5757    <td align="center">'.FrakceImg($row['fraction']).'</td>
    58     <td align="center"><a href="?page=guilda&id='.$row['guildid'].'">'.$row['name'].'</a></td>
     58    <td align="center"><a href="?page=guilda&amp;id='.$row['guildid'].'">'.$row['name'].'</a></td>
    5959    <td align="center">'.$row['member_count'].'</td>
    6060    <td align="center">'.$online_mem['online_mem'].'</td>
  • trunk/pages/online.php

    r594 r595  
    2323echo('<h3 class="PageTitle">Online hráči</h3>');
    2424echo('<div style="text-align: center">Celkem '.$server->MangosOnline().' hráčů.</div>'.
    25 '<table class="BaseTable" style="font-size: small;">
     25'<table class="BaseTable">
    2626  <tr>
    2727    <th align="center">Frakce</th>
Note: See TracChangeset for help on using the changeset viewer.