Changeset 27 for global.php


Ignore:
Timestamp:
Aug 18, 2007, 1:45:56 PM (17 years ago)
Author:
george
Message:

Přidání ikon a textu hodností.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.php

    r16 r27  
    111111  <TR>
    112112    <TD id="BlankSpace">&nbsp;</td>
    113     <TD rowspan="2" class="TdSloupec" valign="top" align="center">
     113    <TD rowspan="2" id="TdSloupec" valign="top">
    114114      <div class="Nadpis">Heroes of Fantasy</div>
    115115      <div class="DivText">');
     
    127127<a href="'.$BaseUrl.'guildy.php" onMouseOver="swtch(&quot;10&quot;,&quot;guildy&quot;)" onMouseOut="swtch(&quot;9&quot;,&quot;guildy&quot;)"><IMG SRC="'.$BaseUrl.'images/guilds.jpg" alt="guildy" name="guildy" border="0"></A>
    128128<a href="'.$BaseUrl.'forum/" onMouseOver="swtch(&quot;8&quot;,&quot;Forum&quot;)" onMouseOut="swtch(&quot;7&quot;,&quot;Forum&quot;)"><IMG SRC="'.$BaseUrl.'images/forum.jpg" alt="Forum" name="Forum" border="0"></A>
    129 <a href="'.$BaseUrl.'registrace/" onMouseOver="swtch(&quot;28&quot;,&quot;registrace&quot;)" onMouseOut="swtch(&quot;27&quot;,&quot;registrace&quot;)"><IMG SRC="'.$BaseUrl.'images/registrace.jpg" alt="registrace" name="registrace" border="0"></A>
     129<a href="'.$BaseUrl.'minimanager/register.php" onMouseOver="swtch(&quot;28&quot;,&quot;registrace&quot;)" onMouseOut="swtch(&quot;27&quot;,&quot;registrace&quot;)"><IMG SRC="'.$BaseUrl.'images/registrace.jpg" alt="registrace" name="registrace" border="0"></A>
    130130<a href="'.$BaseUrl.'online_player.php" onMouseOver="swtch(&quot;20&quot;,&quot;online_player&quot;)" onMouseOut="swtch(&quot;19&quot;,&quot;online_player&quot;)"><IMG SRC="'.$BaseUrl.'images/online_player.jpg" alt="online player" name="online_player" border="0"></A>
    131131<a href="'.$BaseUrl.'honor.php" onMouseOver="swtch(&quot;12&quot;,&quot;honor&quot;)" onMouseOut="swtch(&quot;11&quot;,&quot;honor&quot;)"><IMG SRC="'.$BaseUrl.'images/honor.jpg" alt="honor" name="honor" border="0"></A>
     
    151151    </td>
    152152  </tr>
    153   <tr><td>
    154   <div class="pHlavni">');   
     153  <tr><td id="LeftCell"><div class="pHlavni">');   
    155154}
    156155
     
    160159  echo('</div>
    161160    </td>
     161  </tr>
    162162  <tr>
    163163    <td colspan="2">
     
    184184}
    185185
     186// Zobrazení èíselný seznamu stránek
     187function PagesList($URL,$Page,$TotalCount,$CountPerPage)
     188{
     189  $Count = ceil($TotalCount/$CountPerPage);
     190  $Around = 10;
     191  $Result = '';
     192  if($Count>1)
     193  {
     194    if($Page>0)
     195    {
     196      $Result.= '<a href="'.$URL.'0">&lt;&lt;</a> ';
     197      $Result.= '<a href="'.$URL.($Page-1).'">&lt;</a> ';
     198    }
     199    $PagesMax = $Count-1;
     200    $PagesMin = 0;
     201    if($PagesMax>($Page+$Around)) $PagesMax = $Page+$Around;
     202    if($PagesMin<($Page-$Around))
     203    {
     204      $Result.= ' .. ';
     205      $PagesMin = $Page-$Around;
     206    }
     207    for($i=$PagesMin;$i<=$PagesMax;$i++)
     208    {
     209      if($i==$Page) $Result.= '<strong>';
     210      $Result.= '<a href="'.$URL.$i.'">'.($i+1).'</a> ';
     211      if($i==$Page) $Result.= '</strong>';
     212    }
     213    if($PagesMax<($Count-1)) $Result .= ' .. ';
     214    if($Page<($Count-1))
     215    {
     216      $Result.= '<a href="'.$URL.($Page+1).'">&gt;</a> ';
     217      $Result.= '<a href="'.$URL.($Count-1).'">&gt;&gt;</a>';
     218    }
     219  }
     220  return($Result);
     221}
    186222
    187223?>
Note: See TracChangeset for help on using the changeset viewer.