index.php
<html> <head> <title>DENTAL PRADO - PRODUTOS ODONTOLÓGICOS</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <div align="left"></div> <body topmargin="2" leftmargin="2"> <table width="93%" height="245" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse"> <tr style="margin-top: 0; margin-bottom: 0"> <td width="100%"><?php include("logo/logo.htm"); ?></td> </tr> <tr style="margin-top: 0; margin-bottom: 0"> <td width="100%"><?php include("conteudo.php"); ?></td> </tr> </table> </body> </html>
na index.php dei dois includes, logo.php e o conteudo.php
=====================================================================
conteudo.php
<html> <head> <title>Documento sem título</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body topmargin="2" leftmargin="2"> <div align="left"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="806" height="327" id="AutoNumber1"> <tr> <td width="515" height="88" colspan="2"><?php include("noticias/noticias.php"); ?></td> <td width="81" height="286" rowspan="2"><?php include("empresas/empresas.htm"); ?></td> </tr> <tr> <td width="94" height="198"><?php include("menu/menu.php"); ?></td> <td width="421" height="198"><?php include("equiprado/equiprado.htm"); ?></td> </tr> <tr> <td width="602" height="37" colspan="3"><?php include("copyright/copyright.htm"); ?></td> </tr> </table> </div> </body> </html>
agora no conteudo.php ele da includes para as partes dos site, fiz assim pensando em poder atualizar facilmente...
=====================================================================
menu.htm
<body topmargin="0" leftmargin="0"> <div align="left"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="177" height="406" id="AutoNumber1"> <tr> <td width="182" height="296" background="menu/bg_menu.jpg"> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="93%" id="AutoNumber2" height="338"> <tr> <td width="100%" height="19"> <font face="Arial Unicode MS" size="2" color="#333333"> <a href="index.php?secao=teste" style="text-decoration: none"> <font color="#000000">Empresa</font></a> </font> </td> </tr> <tr> <td width="100%" height="19"> <font face="Arial Unicode MS" size="2" color="#333333"> Cadastro</font></td> </tr> <tr> <td width="100%" height="19"> <font face="Arial Unicode MS" size="2" color="#333333"> Promoções</font></td> </tr> <tr> <td width="100%" height="19"> <font face="Arial Unicode MS" size="2" color="#333333"> Equipamentos</font></td> </tr> <tr> <td width="100%" height="19"> <font face="Arial Unicode MS" size="2" color="#333333"> Filiais</font></td> </tr> <tr> <td width="100%" height="19"> <font face="Arial Unicode MS" size="2" color="#333333"> Revista Dental Prado</font></td> </tr> <tr> <td width="100%" height="19"><font size="2" color="#666666"> </font></td> </tr> <tr> <td width="100%" height="19"><font size="2"> </font></td> </tr> <tr> <td width="100%" height="19"> </td> </tr> <tr> <td width="100%" height="19"> </td> </tr> <tr> <td width="100%" height="19"> </td> </tr> <tr> <td width="100%" height="19"> </td> </tr> <tr> <td width="100%" height="19"> </td> </tr> <tr> <td width="100%" height="19"> </td> </tr> <tr> <td width="100%" height="19"> </td> </tr> <tr> <td width="100%" height="19"> </td> </tr> <tr> <td width="100%" height="24"> </td> </tr> </table> </center> </div> </td> </tr> </table> </div> </body>
Agora vem o desafio rsrsrs como fazer abrir uma pagina no lugar da pagina "conteudo.php" que fica la na index.php, so eh ver a index que vc ve la o include do conteudo.php...
eu naun consegui... pois sei mto pouco de php
Abraçosssss t+
