Scusa forse sono ignorante, ma non ci riesco.
Index.php
Codice:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<table width="1170" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="271" height="114"></td>
<td colspan="2" valign="top"><? include("up.html"); ?></td>
<td width="203"></td>
</tr>
<tr>
<td height="76"></td>
<td colspan="2" valign="top"><? include("up_1.html"); ?></td>
<td></td>
</tr>
<tr>
<td height="263"></td>
<td width="197" valign="top"><? include("menu_sinistra.php"); ?></td>
<td width="499" valign="top"><? include("corp.html"); ?></td>
<td></td>
</tr>
<tr>
<td height="39"></td>
<td colspan="2" valign="top"><? include("end.html"); ?></td>
<td></td>
</tr>
<tr>
<td height="59"></td>
<td> </td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>
Menu-sinistro
Codice:
<head>
<title>Titolo Pagina</title>
<link rel="stylesheet" type="text/css" href="style.css">
<style type="text/css">
<!--
.style3 {color: #000000}
.style4 {color: #FF0000}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
color: #000000;
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head>
<table width="228" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/main_menu.png" width="239" height="21" /></td>
</tr>
</table>
<table width="238" height="198" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" class=table1>
<tr>
<td><a href="index.php">HOME</a></td>
</tr>
<tr>
<td>ABOUT ME </td>
</tr>
<tr>
<td> MY GALLERY</td>
</tr>
<tr>
<td>FORUM</td>
</tr>
<tr>
<td><a href="my_contact.html">CONTACT ME </a></td>
</tr>
<tr>
<td>NEWSLATER REGISTRATION</td>
</tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/service_section.png" width="239" height="21" /></td>
</tr>
</table>
<table width="238" height="210" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" class="table1">
<tr>
<td><a href="index.php?pag=tutorials"><span class="style3">VIDEO</span> TUTORIALS PHOTOSHOP </a></td>
</tr>
<tr>
<td>DOWNLOADS RESOURCES PHOTOSHOP </td>
</tr>
<tr>
<td>GUIDA HTML </td>
</tr>
<tr>
<td>GUIDA PHP </td>
</tr>
<tr>
<td>GUIDA CSS </td>
</tr>
<tr>
<td>JAVASCRIPT</td>
</tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/information.png" width="239" height="21" /></td>
</tr>
</table>
<table width="200" height="39" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000" class="table1">
<tr>
<td>WEB HOSTING <span class="style4">FREE</span></td>
</tr>
<tr>
<td>EARN ON INTERNET</td>
</tr>
<tr>
<td>INCREASING THE SITE VIEWS </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/partner.png" width="239" height="21" /></td>
</tr>
</table>
<table width="238" border="0" cellspacing="0" cellpadding="0">
<!--DWLayoutTable-->
<tr>
<td width="10" height="19"> </td>
<td width="14"> </td>
<td width="74"> </td>
<td width="27"> </td>
<td width="79"> </td>
<td width="9"> </td>
<td width="25"> </td>
</tr>
<tr>
<td height="31"> </td>
<td colspan="2" valign="top"><img src="images/banner_88x31.png" width="88" height="31" /></td>
<td> </td>
<td colspan="2" valign="top"> <img src="images/banner_88x31.png" width="88" height="31" /></td>
<td> </td>
</tr>
<tr>
<td height="14"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="31"></td>
<td colspan="2" valign="top"><img src="images/banner_88x31.png" width="88" height="31" /></td>
<td></td>
<td colspan="2" valign="top"><img src="images/banner_88x31.png" width="88" height="31" /></td>
<td></td>
</tr>
<tr>
<td height="14"></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="15"></td>
<td colspan="2" valign="top"><img src="images/empty_80x15.png" width="88" height="15" /></td>
<td></td>
<td colspan="2" valign="top"><img src="images/empty_80x15.png" width="88" height="15" /></td>
<td></td>
</tr>
<tr>
<td height="65"> </td>
<td> </td>
<td> </td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="460"> </td>
<td> </td>
<td colspan="3" valign="top"><!-- BEGIN CBOX - www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="190" height="385" src="http://www.cbox.ws/box/?boxid=764262&boxtag=2450&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border: 0px solid;" id="cboxmain"></iframe></div>
<div><iframe frameborder="0" width="190" height="75" src="http://www.cbox.ws/box/?boxid=764262&boxtag=2450&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border: 0px solid;border-top:0px" id="cboxform"></iframe></div>
</div>
<!-- END CBOX --> </td>
<td> </td>
<td></td>
</tr>
<tr>
<td height="224"> </td>
<td> </td>
<td> </td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
Codice:
<a href="index.php?pag=tutorials"><span class="style3">VIDEO</span> TUTORIALS PHOTOSHOP </a></td>
Questo lo metto in index vicino include corp?
Codice:
<?php
if (isset($_GET["pag"])) { // Se esiste la variabile pag
if (file_exists($_GET["pag"].".php")) { // se esiste la pagina con nome identico alla variabile get */
include_once($_GET["page"].".php");
}else {
// codice da eseguire se la pagina non esiste
}
}else {
// altrimenti eseguo queste istruzzioni
}
?>