<?php echo '<center><body bgcolor="black">';// zmienna potrzebna do prawidlowego wczytania includowanych plikow $add_site = true; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Reply-to" content="xxx" /> <meta name="Author" content="xxx" /> <head> <title>Guitar Arena</title> <style type="text/css"> <!-- body { font-family: Verdana, Arial; font-size: 12px; } --> </style> </head> <body> <table border="0" cellspacing="0" cellpadding="0"> <td width="600" height="130" colspan="3"><img src="img/logo.jpg" width="600" height="130"><?php include "include/naglowek.php"; ?></td> </tr> <tr> <td width="100" height="270" valign="top" bgcolor="red"><?php include "include/menu_lewe1.php"; ?></td> <td width="400" height="540" valign="top" bgcolor="blue" rowspan="2" cellpadding="10"><font color="white"> <?php // zmienna $go przekazana metoda GET $go = $_GET['go']; // sprawdzamy czy zmienna $go nie jest pusta // sprawdzamy czy plik o danej nazwie istnieje include "page/$go.html"; // jezeli plik nie istnieje wyswietla się komunikat } // jezeli zmienna $go jest pusta wyswietla się strona glowna else <center><br><br><table border="1"><td width="350"><font color="white">'; include "page/start.html"; ?> </td> <td width="100" height="270" valign="top" bgcolor="red"><?php include "include/menu_prawe1.php"; ?></td> <tr> <td width="100" height="270" valign="top" bgcolor="orange"><?php include "include/menu_lewe2.php"; ?></td> <td width="100" height="270" valign="top" bgcolor="orange"><?php include "include/menu_prawe2.php"; ?></td> </tr> <tr> <td width="600" height="30" colspan="3" bgcolor="red"><?php include "include/stopka.php"; ?></td> </tr> </table> </body> </html>
<?php $add_site = true; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Reply-to" content="stratfan66@o2.pl" /> <meta name="Author" content="Mateusz Rąpca" /> <head> <title>Guitar Arena</title> <style type="text/css"> html, body { background-color: #000000; color: #000; margin: 0; padding: 0; } #NAGLOWEK { width: 600px; height: 130px; background-image: url("img/logo.jpg"); float:none } #CENTER { width: 300px; overflow: hidden; background-color: #ccc; } #LEWE1 { width: 150px; overflow: hidden; background-color: #ccc; float:left; } #LEWE2 { width: 150px; overflow: hidden; background-color: #ccc; float:left; } #PRAWE1 { width: 150px; overflow: hidden; background-color: #ccc; float:right; } #PRAWE2 { width: 150px; overflow: hidden; background-color: #ccc; float:right; } #STOPKA { width: 300px; overflow: hidden; background-color: #ccc; } </style> </head> <body> <div id="NAGLOWEK"><?php include "include/naglowek.php"; ?></div> <div id="LEWE1"><?php include "include/menu_lewe1.php"; ?></div> <div id="CENTER"> <?php // zmienna $go przekazana metoda GET $go = $_GET['go']; // sprawdzamy czy zmienna $go nie jest pusta // sprawdzamy czy plik o danej nazwie istnieje include "page/$go.html"; } // jezeli plik nie istnieje wyswietla się komunikat } // jezeli zmienna $go jest pusta wyswietla się strona glowna else <br><br><font color="white">'; include "page/start.html"; } ?> </div> <div id="PRAWE1"><?php include "include/menu_prawe1.php"; ?></div> <div id="LEWE2"><?php include "include/menu_lewe2.php"; ?></div> <div id="PRAWE2"><?php include "include/menu_prawe2.php"; ?></div> <div id="STOPKA"><?php include "include/stopka.php"; ?></div> </body> </html>
<?php <html><center> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta http-equiv="Reply-to" content="stratfan66@o2.pl" /> <meta name="Author" content="Mateusz Rąpca" /> <head> <title>Guitar Arena</title> <style type="text/css"> html, body { background-color: #fff; color: #000; margin: 0; padding: 0; } #top { width: 600px; } #NAGLOWEK { background-image: url("img/logo.jpg"); width: 600px; height: 130px; } #MENU1 { text-align: left; clear: both; width: 150px; height: 300px; overflow: hidden; background-color: #ccc; } #MENU2 { text-align: left; width: 150px; height: 300px; overflow: hidden; background-color: #ccc; } #MENU3 { text-align: left; width: 150px; height: 300px; overflow: hidden; background-color: #ccc; } #MENU4 { text-align: left; width: 150px; height: 300px; overflow: hidden; background-color: #ccc; } #TRESC { width: 300px; height: 600px; overflow: hidden; background-color: #888; } #STOPKA { clear: both; width: 600px; height: 40px; background-color: #888; } </style> </head> <div id="top"> <div id="NAGLOWEK">Nagłówek</div> <div style="float:left;"> <div id="MENU1">Menu1<br>Menu1<br>Menu1<br>Menu1<br>Menu1<br>Menu1<br>Menu1<br>Menu1<br></div> <div id="MENU2">Menu2<br>Menu2<br>Menu2<br>Menu2<br>Menu2<br>Menu2<br>Menu2<br>Menu2<br></div> </div> <div id="TRESC" style="float:left;">Treść strony Treść strony Treść strony Treść strony Treść strony Treść strony Treść strony Treść strony Treść strony Treść strony Treść strony Treść strony Treść strony </div> <div style="float:left;"> <div id="MENU3">Menu3<br>Menu3<br>Menu3<br>Menu3<br>Menu3<br>Menu3<br>Menu3<br>Menu3<br></div> <div id="MENU4">Menu4<br>Menu4<br>Menu4<br>Menu4<br>Menu4<br>Menu4<br>Menu4<br>Menu4<br></div> </div> <div id="STOPKA">Stopka serwisu</div> </div> </html> ?>