Changeset 16


Ignore:
Timestamp:
Aug 12, 2007, 1:35:53 PM (17 years ago)
Author:
george
Message:

Přepracování rozvržení stránky a stylů. Opraveno špatné zobrazování stránky v IE.
Opravy správného výběru databáze před každým prvním dotazem na stránce.

Files:
13 edited

Legend:

Unmodified
Added
Removed
  • css/style.css

    r15 r16  
    1 body{
     1body
     2{
    23  background-color: black;
    34  margin: 0;
    45}
    5 .TableHlavni{
     6.TableHlavni
     7{
    68  height: 100%;
    79  width: 1005;
     
    1012  border: 0;
    1113}
    12 .pHlavni{
    13   width: 100%;
    14   height: 738;
     14.pHlavni
     15{
     16  vertical-align: top;
     17  width: 735;
     18  height: 600;
    1519  overflow: auto;
    16 }
    17 .pAktuality{
     20  padding: 10px 10px 10px 10px;
     21}
     22.pAktuality
     23{
    1824  font-size: 12;
    1925  font-family: arial;
    2026  color: white;
    2127  font-weight: bold;
    22   width: 220px;
     28  width: 245px;
    2329  height: 180px;
    2430  overflow: auto;
    2531}
    26 .pAdministrace{
     32.pAdministrace
     33{
    2734  width: 100%;
    2835  height: 200px;
     
    8087  padding-top: 1px;
    8188}
    82 .TdSloupec{
     89.TdSloupec
     90{
    8391  padding-top: 20px;
    8492  width: 250;
    8593}
    86 .SpanAktuality{
     94.SpanAktuality
     95{
    8796  font-family: arial narrow;
    8897  font-size: 8;
    8998}
    90 .SpanAktualityRed{
     99.SpanAktualityRed
     100{
    91101  color: red;
    92102}
    93 .TableDonate{
     103.TableDonate
     104{
    94105   font-size: small;
    95106   width: 90%;
     
    118129  font-size: small;
    119130}
    120 IFRAME{
    121   width: 740;
    122   height: 610;
    123 }
    124 .TdChat{
     131IFRAME
     132{
     133  width: 720px;
     134  height: 590px;
     135}
     136.TdChat
     137{
    125138  color: white;
    126139}
     
    128141  color:white;
    129142}
    130 .SpanBan{
     143.SpanBan
     144{
    131145  font-size: 20px;
    132146  color: red;
    133147}
    134 .info{
     148.info
     149{
    135150   color:#ffff99;
    136151   padding: 0px 20px 0px 0px;
    137152}
    138 .ClientNastaveni{
     153.ClientNastaveni
     154{
    139155  font-size: 15;
    140156  color: white;
    141157}
    142  
    143158#SplitTable
    144159{
    145160}
    146 
    147161#SplitTable.td
    148162{
    149163  padding: 10px 10px 10px 10px;
    150164}
    151 
    152165.MiniTable
    153166{
     
    157170  text-align: center;
    158171}
    159 
    160172.MiniTable td
    161173{
     
    197209  padding-left: 10px;
    198210}
     211#BlankSpace
     212{
     213  height: 110px;
     214}
  • download_soubory/index.php

    r5 r16  
    66?>
    77
    8 <TABLE width="100%" border="0">
    9 <TR><td colspan="2"><H3>Soubory ke stažení:</H3></td></tr>
     8<h3>Soubory ke stažení:</h3>
    109
    11 <tr><TD width="10%" valign="top">&nbsp;</td><TD width="90%" valign="top">
    1210<?
    13 echo('<table width="80%" cellspacing="0" style="color: white; ">');
     11echo('<div align="center" ><table width="80%" cellspacing="0" style="color: white;">');
    1412foreach($Files as $GroupName => $Group)
    1513{
     
    2321  }
    2422}
    25 echo('</table>');
    26 ?>
    27 <br>
     23echo('<tr><td><br> 
    2824<a href="http://wow.zdechov.net:6969/">Heroes of Fantasy BitTorrent Tracker</a><br>
    2925<a href="http://www.utorrent.com/download.php">Stáhnout BitTorrent klienta µTorrent</a><br>
    30 <a href="http://www.slunecnice.cz/sw/torrent-harvester/">Stáhnout Torrent Harvester na hledání torrentù</a><br></td></tr></TABLE>
    31 <?
     26<a href="http://www.slunecnice.cz/sw/torrent-harvester/">Stáhnout Torrent Harvester na hledání torrentù</a>
     27</td></tr>');
     28echo('</table></div>'); 
     29
    3230  ShowFooter();
    3331?>
  • finance/index.php

    r14 r16  
    44?>
    55
    6 <TABLE width="100%" border="0">
    7 <TR>
    8 
    9 
    10 <TD width="3%" valign="top">
    11 
    12 <TD valign="top">
     6<h3>Pøíspìvky na server:</h3>
    137<P>
    148Pøispìjte na server budete mít kvalitnìjší hraní, dobrý pocit a budete zde uvedeni.<br>
     
    9488  'contribution' => 'Pøispìvek od',
    9589);
     90$Database->select_db('wow');
    9691$Result = $Database->select('finance', 'SUM(money)');
    9792$Row = $Result->fetch_array();
     
    127122*/
    128123echo('</table>');
     124ShowFooter();
     125
    129126?>
    130127
    131 </table>
    132 
    133 <?php
    134   ShowFooter();
    135 ?>
    136 
  • global.php

    r14 r16  
    3737}
    3838
     39function FormatOutput($s)
     40{
     41    $out = '';
     42    $nn = 0;
     43    $n = 0;
     44    while($s!='')
     45    {
     46      $start = strpos($s,'<');
     47          $end = strpos($s,'>');
     48        if($start != 0)
     49        {
     50              $end = $start-1;
     51              $start = 0;
     52            }
     53            $line = trim(substr($s,$start,$end+1));
     54            if(strlen($line)>0)
     55            if($line[0] == '<')
     56            {
     57            if($s[$start+1] == '/')
     58              {
     59              $n = $n - 2;
     60                      $nn = $n;
     61              } else
     62              {
     63            if(strpos($line,' ')) $cmd = substr($line,1,strpos($line,' ')-1);
     64                else $cmd = substr($line,1,strlen($line)-2);
     65          //echo('['.$cmd.']');
     66                      if(strpos($s,'</'.$cmd.'>')) $n = $n + 2;
     67              }   
     68            }// else $line = '['.$line.']';
     69      //if($line != '') echo(htmlspecialchars(str_repeat(' ',$nn).$line."\n"));
     70            if($line != '') $out .= (str_repeat(' ',$nn).$line."\n");
     71            $s = substr($s,$end+1,strlen($s));
     72            $nn = $n;
     73    }
     74    return($out);
     75}
     76
    3977function CheckPortStatus($Ip, $Port)
    4078{
     
    65103  <TITLE>WoW server Heroes of Fantasy</TITLE>
    66104  <style type="text/css" media="screen">@import url('.$BaseUrl.'css/style.css);</style>
     105  <script language="JavaScript" type="text/javascript" src="'.$BaseUrl.'css/global_js.php"></script>
    67106</HEAD> 
    68107<BODY text="#cccccc">
    69108
    70 <script type="text/javascript">
    71 <!--
    72 function getAppVersion() {
    73 appname= navigator.appName;
    74 appversion = navigator.appVersion;
    75 majorver = appversion.substring(0, 1);
    76 if ( (appname == "Netscape") && ( majorver >= 3 ) ) return 1;
    77 if ( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1;
    78 return 0;
    79 }
    80 function swtch(num, imgname) {
    81 if (getAppVersion()) {
    82 document[imgname].src = img[num].src;
    83 }
    84 }
    85 imgsrc = new Array();
    86 imgsrc[1] = "'.$BaseUrl.'images/home.jpg";
    87 imgsrc[2] = "'.$BaseUrl.'images/home2.jpg";
    88 imgsrc[3] = "'.$BaseUrl.'images/donate.jpg";
    89 imgsrc[4] = "'.$BaseUrl.'images/donate2.jpg";
    90 imgsrc[5] = "'.$BaseUrl.'images/download.jpg";
    91 imgsrc[6] = "'.$BaseUrl.'images/download2.jpg";
    92 imgsrc[7] = "'.$BaseUrl.'images/forum.jpg";
    93 imgsrc[8] = "'.$BaseUrl.'images/forum2.jpg";
    94 imgsrc[9] = "'.$BaseUrl.'images/guilds.jpg";
    95 imgsrc[10] = "'.$BaseUrl.'images/guilds2.jpg";
    96 imgsrc[11] = "'.$BaseUrl.'images/honor.jpg";
    97 imgsrc[12] = "'.$BaseUrl.'images/honor2.jpg";
    98 imgsrc[13] = "'.$BaseUrl.'images/how.jpg";
    99 imgsrc[14] = "'.$BaseUrl.'images/how2.jpg";
    100 imgsrc[15] = "'.$BaseUrl.'images/link.jpg";
    101 imgsrc[16] = "'.$BaseUrl.'images/link2.jpg";
    102 imgsrc[17] = "'.$BaseUrl.'images/mapa.jpg";
    103 imgsrc[18] = "'.$BaseUrl.'images/mapa2.jpg";
    104 imgsrc[19] = "'.$BaseUrl.'images/online_player.jpg";
    105 imgsrc[20] = "'.$BaseUrl.'images/online_player2.jpg";
    106 imgsrc[21] = "'.$BaseUrl.'images/povolani.jpg";
    107 imgsrc[22] = "'.$BaseUrl.'images/povolani2.jpg";
    108 imgsrc[23] = "'.$BaseUrl.'images/profese.jpg";
    109 imgsrc[24] = "'.$BaseUrl.'images/profese2.jpg";
    110 imgsrc[25] = "'.$BaseUrl.'images/rasy.jpg";
    111 imgsrc[26] = "'.$BaseUrl.'images/rasy2.jpg";
    112 imgsrc[27] = "'.$BaseUrl.'images/registrace.jpg";
    113 imgsrc[28] = "'.$BaseUrl.'images/registrace2.jpg";
    114 imgsrc[29] = "'.$BaseUrl.'images/server.jpg";
    115 imgsrc[30] = "'.$BaseUrl.'images/server2.jpg";
    116 if (getAppVersion()) {
    117 img = new Array();
    118 for (i = 0; i < imgsrc.length; i++) {
    119 img[i] = new Image();
    120 img[i].src = imgsrc[i];
    121 }
    122 }
    123 //-->
    124 </script>
    125109
    126110<TABLE cellspacing="0" cellpadding="0" align="center" class="TableHlavni" border="0">
    127111  <TR>
    128     <TD>
    129       <div class="pHlavni">
    130       <br>
    131       <br>
    132       <br>
    133       <br>
    134       <br>
    135       <br>
    136     ');
    137    
    138 }
    139 
    140 
    141 function ShowFooter()
    142 {
    143   global $BaseUrl;
    144   echo('
    145       </div>
    146     </td>
    147     <TD class="TdSloupec" valign="top" align="center">
     112    <TD id="BlankSpace">&nbsp;</td>
     113    <TD rowspan="2" class="TdSloupec" valign="top" align="center">
    148114      <div class="Nadpis">Heroes of Fantasy</div>
    149115      <div class="DivText">');
     
    185151    </td>
    186152  </tr>
     153  <tr><td>
     154  <div class="pHlavni">');   
     155}
     156
     157function ShowFooter()
     158{
     159  global $BaseUrl;
     160  echo('</div>
     161    </td>
    187162  <tr>
    188163    <td colspan="2">
     
    194169      <!--
    195170      document.write("<A href=\"http://counter.cnw.cz\" target=\"_parent\" >
    196       <IMG src=\"http://counter.cnw.cz/trackit.cgi?wowzdechov&amp;t3&amp;" + escape(top.document.referrer) + "\" alt=\"CNW:Tracker\" border=\"0\" width=\"0\" height=\"0\"><\/A>");
     171      <IMG src=\"http://counter.cnw.cz/trackit.cgi?wowzdechov&amp;t3&amp;" + escape(top.document.referrer) + "\" alt=\"CNW:Tracker\" border=\"0\" width=\"0\" height=\"0\" alt=\"counter\"><\/A>");
    197172      // -->
    198173      </SCRIPT>
  • guildy.php

    r14 r16  
    44  ShowHeader();
    55 
    6   echo('<TABLE width="100%" border="0">
    7 <TR>
    8 <TD valign="top">
    9 <div class="DivText">');
    106
    117$RanksEN = array('Guildmaster', 'Veteran', 'Intendant', 'Support Officer', 'PR Officer', 'Officer', 'Famed Member',
     
    139$RanksCZ = array('Pán cechu', 'Veterán', 'Vrchní správce', 'Pomocný dùstojník', 'PR dùstojník', 'Dùstojník', 'Proslavený èlen', 'Èlen', 'Zelenáè', 'Nováèek');
    1410
     11$Database->select_db('mangos');
    1512if(!array_key_exists('guild', $_GET))
    1613{
    17   echo('<div align="center"><strong>Seznam guild:</strong>');
     14  echo('<h3>Seznam guild:</h3><div align="center">');
    1815  echo('<table class="TableGuilda" style="align: center;" border="1" cellpadding="3" cellspacing="0" ><tr><th>Název</th><th>Poèet èlenù</th><th>Souèet levelù</th><th>Souèet bodù cti</th><th>Webové stránky</th></tr>');
    1916//  DB_Query(' COUNT(guild_member.guildid) as member_count FROM guild JOIN guild_member ON guild_member.guildid = guild.guildid GROUP BY guild.name ORDER BY member_count DESC');
     
    3229    //  if($Guild['homepage'] != '') $Guild['name'] = $Guild['name'].' <a href="'.$Guild['homepage'].'">WWW</a>';
    3330    //if($Guild['info'] != '') $Guild['info'] = ''.$Guild['info'].'</i>';
    34     echo('<div align="center"><strong>Seznam èlenù guildy '.$Guild['name'].'</strong><br>');
     31    echo('<h3>Seznam èlenù guildy '.$Guild['name'].'</h3><div align="center">');
    3532    $Result = $Database->select('character', 'name', $Guild['leaderguid'].'=guid');
    3633    $GuildMaster = $Result->fetch_array();
     
    5653}
    5754
    58 echo('</div></td></tr></table>');
    59 
    6055
    6156ShowFooter();
  • index.php

    r15 r16  
    9393<A HREF="http://www.toplist.cz/" target="_blank"><IMG
    9494SRC="http://toplist.cz/count.asp?logo=mc&amp;ID=324802"
    95 border="0" width="88" height="60"></A>
     95border="0" width="88" height="60" alt="counter"></A>
    9696
    9797</TABLE>
  • jak_zacit.php

    r14 r16  
    55?>
    66
    7 <TABLE width="100%" border="0">
    8 <TR>
    9 
    10 
    11 <TD width="3%" valign="top">
    12 </td>
    13 <TD valign="top">
    14 <br><H3>Jak se pøipojit:</H3>
    15 
     7<H3>Jak se pøipojit:</H3>
    168
    179<P>
     
    2820</p>
    2921
    30 <br><br>
    31 <br><br><br>
    32 
    33 
    34 </TABLE>
    35 
    3622<?
    3723  ShowFooter();
  • link.php

    r5 r16  
    44?>
    55
    6 <TABLE width="100%" border="0">
    7 <TR>
    8 
    9 
    10 <TD width="15%" valign="top">
    11 <BR>
    12 
    136<H3>Odkazy:</H3>
    14 <TD width="100%" valign="top">
    15 <BR>
    16 <BR>
    17 <br><A href="http://www.zdechov.net/" target="_parent" style="padding: 0px 68px 0px 0px ;">zdechov.net</A><i class="info">Stránky naší sítì.</i>
    18 <br><A href="http://wow-dd.svarov.org" target="_parent" style="padding: 0px 17px 0px 0px ;">wow-dd.svarov.org</A><i class="info">            Rasy, Povolani, Profese stazeny z tohoto serveru. </i>     
    19 <br><A href="http://www.wowstatus.net/serverlist.php" target="_parent" style="padding: 0px 50px 0px 0px ;">wowstatus.net</A><i class="info"> Seznam serveru na internetu. </i>                         
    20 <br><A href="http://servery.wowresource.eu/" target="_parent" style="padding: 0px 50px 0px 0px ;">servery.wowresource.eu</A><i class="info"> Cesky seznam serveru. </i>                         
    21 <br><A href="http://www.worldofwarcraft.com/" target="_parent" style="padding: 0px 0px 0px 0px ;">worldofwarcraft.com</A><i class="info">   Oficiální stránky.   </i>                         
    22 <br><A href="http://wow.corbina.net/swf/map.php" target="_parent" style="padding: 0px 36px 0px 0px ;">wow.corbina.net</A><i class="info">   Mapa svìta  </i>                       
    23 <br><A href="http://rousinovsko.net/wow/" target="_parent" style="padding: 0px 0px 0px 0px ;">rousinovsko.net/wow/</A><i class="info">   WoW server </i>
    24 <br><A href="http://wow.allakhazam.com/" target="_parent" style="padding: 0px 0px 0px 0px ;">wow.allakhazam.com</A><i class="info">   Databáze informací o svìtì WoW</i>
    25 <br><A href="http://thottbot.com/" target="_parent" style="padding: 0px 0px 0px 0px ;">thottbot.com</A><i class="info">   Databáze informací o svìtì WoW</i>
    26 <br><A href="http://www.wowhead.com/" target="_parent" style="padding: 0px 0px 0px 0px ;">www.wowhead.com</A><i class="info">   Databáze informací o svìtì WoW</i>
    27 <br><A href="http://www.nej-hry.webgarden.cz" target="_parent" style="padding: 0px 0px 0px 0px ;">www.nej-hry.webgarden.cz</A><i class="info">   Stránky o hrách, mezi nìž patøí i WoW</i>
    28 
    29 
    30                            
    31 
    32 
    33 </TABLE>
     7<div align="center">
     8<table>
     9<tr><td><A href="http://www.zdechov.net/" target="_parent" style="padding: 0px 68px 0px 0px ;">zdechov.net</A></td><td><i class="info">Stránky naší sítì.</i></td></tr>
     10<tr><td><A href="http://wow-dd.svarov.org" target="_parent" style="padding: 0px 17px 0px 0px ;">wow-dd.svarov.org</A></td><td><i class="info">            Rasy, Povolani, Profese stazeny z tohoto serveru. </i></td></tr>
     11<tr><td><A href="http://www.wowstatus.net/serverlist.php" target="_parent" style="padding: 0px 50px 0px 0px ;">wowstatus.net</A></td><td><i class="info"> Seznam serveru na internetu. </i></td></tr>                   
     12<tr><td><A href="http://servery.wowresource.eu/" target="_parent" style="padding: 0px 50px 0px 0px ;">servery.wowresource.eu</A></td><td><i class="info"> Cesky seznam serveru. </i></td></tr>                   
     13<tr><td><A href="http://www.worldofwarcraft.com/" target="_parent" style="padding: 0px 0px 0px 0px ;">worldofwarcraft.com</A></td><td><i class="info">   Oficiální stránky.   </i></td></tr>                       
     14<tr><td><A href="http://wow.corbina.net/swf/map.php" target="_parent" style="padding: 0px 36px 0px 0px ;">wow.corbina.net</A></td><td><i class="info">   Mapa svìta  </i></td></tr>                     
     15<tr><td><A href="http://rousinovsko.net/wow/" target="_parent" style="padding: 0px 0px 0px 0px ;">rousinovsko.net/wow/</A></td><td><i class="info">   WoW server </i></td></tr>
     16<tr><td><A href="http://wow.allakhazam.com/" target="_parent" style="padding: 0px 0px 0px 0px ;">wow.allakhazam.com</A></td><td><i class="info">   Databáze informací o svìtì WoW</i></td></tr>
     17<tr><td><A href="http://thottbot.com/" target="_parent" style="padding: 0px 0px 0px 0px ;">thottbot.com</A></td><td><i class="info">   Databáze informací o svìtì WoW</i></td></tr>
     18<tr><td><A href="http://www.wowhead.com/" target="_parent" style="padding: 0px 0px 0px 0px ;">www.wowhead.com</A></td><td><i class="info">   Databáze informací o svìtì WoW</i></td></tr>
     19<tr><td><A href="http://www.nej-hry.webgarden.cz" target="_parent" style="padding: 0px 0px 0px 0px ;">www.nej-hry.webgarden.cz</A></td><td><i class="info">   Stránky o hrách, mezi nìž patøí i WoW</i></td></tr>
     20</table>
     21</div>
     22                     
    3423<?
    3524  ShowFooter();
  • mapa.php

    r14 r16  
    11<?
    2   include('global.php');
    3   ShowHeader();
     2
     3include('global.php');
     4ShowHeader();
     5
     6echo('<IFRAME src="http://wow.zdechov.net/minimanager/pomm_public/pomm.php"></IFRAME>');
     7
     8ShowFooter();
    49?>
    5 
    6 
    7 <TABLE width="100%" border="0">
    8 <TR>
    9 <td>
    10 <IFRAME src="http://wow.zdechov.net/minimanager/pomm_public/pomm.php"></IFRAME>
    11 </td>
    12 </tr>
    13 </TABLE>
    14 
    15 
    16 
    17 <?
    18   ShowFooter();
    19 ?>
  • news.php

    r14 r16  
    88  echo('<strong>Aktuality:</strong>');
    99  echo('<div style="NewsTable">');
     10  $Database->select_db('wow');
    1011  $Result = $Database->query('SELECT news.*, user.User as username FROM news JOIN user ON user.ID=news.user WHERE 1 ORDER BY time DESC LIMIT 6');
    1112  while($Row = $Result->fetch_array())
  • online_player.php

    r14 r16  
    55?>
    66
    7 <TABLE width="100%" border="0">
    8 <TR>
    9 <td>
    107<IFRAME name="registrace_frame" src="http://wow.zdechov.net/mangos/inc/stat2.php"></IFRAME>
    11 </td>
    12 </tr>
    13 </TABLE>
    14 
    158
    169<?
  • registrace/index.php

    r11 r16  
    44?>
    55
    6 
    7 <TABLE width="80%" border="0">
    8 <TR>
    9 <TD width="15%" valign="top">
    10 </td>
    11 <TD width="100%" valign="top">
    12 <P>
    13 <br><br>
     6<h3>Registrace herního úètu:</h3>
     7<div>
    148
    159Poèet povolených registrací na dnešní den:
     
    3832<br />Statitiku najdete <a href="http://game-server.zdechov.net/statistic/?Measure=8">zde</a>
    3933<br>Mùžete taky pøispìt na server aby se mohl zlepšit. Stav úètu mùžete sledovat v sekci <A href="<?php echo($BaseUrl); ?>donate.php" target="_parent">Donate</A> 
    40 <br>
    41 </P>
    42 </td>
    43 </tr>
    44 </TABLE>
    45 
     34</div >
    4635<?
    4736  ShowFooter();
  • server.php

    r12 r16  
    33  ShowHeader();
    44?>
    5 
    6 
    7 <TABLE width="100%" border="0">
    8 <TR>
    9 <TD width="3%" valign="top">
    10 <TD  width="100%" valign="top">
    11 
    12 <P>
     5<h3>Informace o serveru:</h3>
    136- Procesor: <span style="color: white; font-weight: bold;">AMD Athlon 64 3800+, 2,4 GHz</span><BR>
    147- Operaèní pamì: <span style="color: white; font-weight: bold;">2 GB DDR 400 MHz dual channel</span><BR>
     
    1811- Aktuální WoW Emulátor: <span style="color: white; font-weight: bold;">MaNGOS rev. <?php echo $MangosRevision; ?></span><BR>
    1912- Internetová linka: <span style="color: white; font-weight: bold;">1,5/1,5 Mbit/s, sdílená</span><BR>
    20 <br>
    2113<?
    2214// Opravy na serveru najdete: <a href="/server/opravy.php">zde</a> <br>
     
    2618?>
    2719
    28 <br /><br />
    29 
    30 </P>
    31 
    32 </TABLE>
    3320<?
    3421  ShowFooter();
Note: See TracChangeset for help on using the changeset viewer.