estou usando PHP, html
meu site funciona perfeitamente no Internet E, mas a pagina não é montada corretamente no no firefox, os textos de links ficam subliados, as imagens nas tabelas são duplicadas, o site fica totalmente diferente...
estou usando tabelas para montar o corpo da pagina...
ja tentei mudar o codigo de diversas formas, pesquisei no google, mas ainda não sei como resolver estes problemas no firefox...
www.msseletronica.com/eletronica
uso o front page, muitos fala que ele é ruim, mas eu faço o codigo manual, so uso ele para visualizar e editar o codigo...
me desculpem, tente fazer a tela não ficar tão grande, mas o codebox não funcionou ou eu não usei corretamente....
[codebox]<?php
$acesso_eletronica = $HTTP_COOKIE_VARS["acesso_eletronica"]; // verifica se já fez a contagem de acesso
if ($acesso_eletronica!="s") //se o usuario atualizar a pagina, não conta novamente
{
$conexao= mysql_connect(localhost,*******, *******);//conecta com o servidor
mysql_select_db(msseletr_loja, $conexao); // seleciona o banco
$comando = $comando = "SELECT * FROM eletronica_acessos";
$resultado = mysql_query($comando, $conexao);// passa para resultado a informação recebida
if (mysql_num_rows($resultado)!=0)
{
$numero = mysql_result($resultado,0,"numero");
$n_numero = $numero + 1;
$comando= "UPDATE eletronica_acessos SET numero = '$n_numero' WHERE numero LIKE '$numero' ";
mysql_query($comando, $conexao);
setcookie("acesso_eletronica","s");
}
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//PT-BR">
<html>
<head>
<meta name="DESCRIPTION" content="Em nosso site voce encontra diagramas eletricos, programas para download, apostilas, componentes eletronicos além de um otimo forum de eletronica, tudo com muita praticidade e qualidade">
<meta name="KeyWords" charset=" eletronica, eletronico, pic, microcontrolador, micro controlador, mplab, assembly, c, c++, download, diagrama, diagramas, esquema, esquemas, componentes, componentes eletronicos, lcd, display, display lcd, display de lcd, transistor, diodo, forum, forum de eletronica, curso, curso gratuito, curso gratis, curso pic, curso de pic, curso c, curso assembly">
<!-- <base href=www.msseletronica.com> -->
<title>Eletronica PIC</title><!-- Titulo da pagina-->
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<table width="980" height="1" cellpadding="0" cellspacing="0" align="center" >
<tbody>
<tr width="565" height="1">
<td width="174" height="1" bgcolor=#FF0000><img src="imagem/bem_vindo.gif"></td>
<td height="1" width="348" align="center"><img src="imagem/bem_vindo.gif">
</td>
<td height="1" width="433" align="center"><img src="imagem/bem_vindo.gif">
</td>
<td height="1"><img src="imagem/acabamento_direita_1.gif" width="25" height="25"></td>
</tr>
</tbody>
</table>
<table width="980" height="71" cellpadding="0" cellspacing="0" align="center" border="0">
<tbody>
<tr>
<td><img src="imagem/fundo_verde_1.gif" width="1" height="71"></td>
<td><img src="imagem/Logo marca mss.GIF" width="150" height="71"></td>
<td>
<p align="center">
<img src="imagem/baner_1_cinza.gif"></td>
<td><img src="imagem/fundo_verde_1.gif" width="1" height="71"></td>
</tr>
<tr>
<td><img src="imagem/fundo_verde_1.gif" width="1" height="1"></td>
<td><img src="imagem/fundo_verde_1.gif" width="100%" height="1"></td>
<td><img src="imagem/fundo_verde_1.gif" width="100%" height="1"></td>
</tr>
</tbody>
</table>
<table align="center" cellpadding="0" cellspacing="3" border="0" width="980" height="60">
<tbody>
<tr>
<td valign="center" height="60" width="512" align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-8923859381786446";
/* 468x60, criado 23/06/09 */
google_ad_slot = "9570717389";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googl...d/show_ads.js">
</script>
</td>
<td valign="center" height="60" width="512" align="center" >
<img src="https://pagseguro.uo...pagseguro.gif">
</td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="980" height="43">
<tbody>
<tr>
<td background="imagem/cabecalho_menu_esquerda.gif" width="150" height="43" valign="center">
<form name="busca" action="http://www.msseletro...nica/busca.php" method="post">
<p align="left">
<b><font size="2"> </font>
<font size="2" face="Verdana"> Buscar</font></b><font size="2" face="Verdana">
</font>
<br>
<input name="palavra_chave" style="WIDTH: 90; height:20" maxLength="30" size="30" align="absbottom" >
<input title="ok" type="image" alt="ok" src="imagem/botao_ok_busca.gif" width="20" height="20" align="absbottom">
</p>
</td>
<td background="imagem/cabecalho_menu_centro.gif" width="570" height="43" valign="center" >
</form>
<form name="login" action="http://www.msseletro...nica/login.php" method="post">
<p align="center"><font size="2" face="Verdana">E-mail:</font><b> </b>
<input name="email" style="WIDTH: 140; height:22" maxLength="60" size="50"><font face="Verdana" size="2" align="absbottom"><b>
</b>
Senha:</font><b>
</b>
<input name="senha" style="WIDTH: 140; height:22" maxLength="60" size="30" type="password" align="absbottom">
<input title="ok" type="image" alt="ok" src="imagem/botao_entrar.gif" width="60" height="20" align="absbottom">
</p>
</td></form>
<td background="imagem/cabecalho_menu_centro.gif" width="154" height="43" valign="center" >
<p align="center">
<font face="Verdana" size="2">
<span style="text-decoration: none">
<font color="#000000">
<a title="Se esqueceu sua senah clique aqui..." href="http://www.msseletro...enha.php"><font color="#000000">
<span style="text-decoration: none">Esqueci minha senha</span></font></a></font></span><br>
<font color="#000000">
<span style="text-decoration: none">
<a title="Clique aqui para fazer seu registro gratuitamente." href="http://www.msseletro...ario.php"><font color="#000000">
<span style="text-decoration: none">Quero me registrar</span></font></a></span></font></font></p></td>
<td background="imagem/cabecalho_menu_direita.gif" width="150" height="43" valign="top"></td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="980" height="25">
<tbody>
<tr>
<td background="imagem/cabecalho_menu_centro.gif" width="150" height="25"></td>
<td background="imagem/cabecalho_menu_centro.gif" width="70" height="25"></td>
<td background="imagem/acabamento_menu_esquerdo_1.gif" width="29" height="25"></td>
<td background="imagem/fundo_botao_verde_escuro.gif" width="60" height="25">
<p align="center"><font color="#FFFFFF"><b>
<span style="text-decoration: none">
<font color="#FFFFFF" size="2" face="Verdana">
<a title="Vai para a primeira pagina da area eletronica" href="http://www.msseletro...om/eletronica">
<span style="text-decoration: none"><font color="#FFFFFF">Inicio</font></span></a></font></span></b></font></td>
<td background="imagem/acabamento_menu_direito_1.gif" width="29" height="25"></td>
<td background="imagem/fundo_botao_verde_claro.gif" width="80" height="25">
<p align="center"><b>
<font face="Verdana" size="2" color="#000000">
<span style="text-decoration: none">
<font color="#000000">
<a title="Vai para a pagina de circuitos " href="http://www.msseletro...circuitos.php">
<span style="text-decoration: none"><font color="#000000">Circuitos</font></span></a></font></span></font></b></p></td>
<td background="imagem/acabamento_menu_direito_2.gif" width="29" height="25"></td>
<td background="imagem/fundo_botao_verde_escuro.gif" width="140" height="25">
<p align="center">
<b>
<font face="Verdana" size="2" color="#FFFFFF">
<span style="text-decoration: none">
<font color="#FFFFFF">
<a title="Veja os cursos disponiveis" href="http://www.msseletro...rsos.php"><span style="text-decoration: none">
<font color="#FFFFFF">Cursos Gratuitos</font></span></a></font></span></font></b></td>
<td background="imagem/acabamento_menu_direito_1.gif" width="29" height="25"></td>
<td background="imagem/fundo_botao_verde_claro.gif" width="85" height="25">
<p align="center"><b>
<font face="Verdana" size="2" color="#000000">
<span style="text-decoration: none">
<a title="Veja todos os arquivos disponiveis para download..." href="http://www.msseletro...load.php"><font color="#000000">
<span style="text-decoration: none">Download</span></font></a></span></font></b></p></td>
<td background="imagem/acabamento_menu_direito_2.gif" width="29" height="25"></td>
<td background="imagem/fundo_botao_verde_escuro.gif" width="60" height="25">
<p align="center">
<b><font face="Verdana" size="2" color="#FFFFFF">
<span style="text-decoration: none">
<a title="Veja todos os videos disponiveis..." href="http://www.msseletro...deos.php"><font color="#FFFFFF">
<span style="text-decoration: none">Vídeos
</span>
</font></a></span></font></b></td>
<td background="imagem/acabamento_menu_direito_1.gif" width="29" height="25"></td>
<td background="imagem/fundo_botao_verde_claro.gif" width="85" height="25">
<p align="center"><b><font face="Verdana" size="2">
<span style="text-decoration: none">
<a title="Saiba onde mais estamos..." href="http://www.msseletro..._nos.php"><font color="#000000">
<span style="text-decoration: none">Siga-nos</span></font></a></span></font></b></p></td>
<td background="imagem/acabamento_menu_direito_2.gif" width="29" height="25"></td>
<td width="2" height="25" background="imagem/fundo_verde_escuro_29_2.gif"></td>
<td width="120" height="25" background="imagem/fundo_verde_escuro_29.gif"></td>
</tr>
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="980" height="4">
<tbody>
<tr>
</tr>
<tr>
<td width=1024 height=20 background=imagem/fundo_verde_escuro_29.gif>
<p>
<font color=#FFFFFF>
<marquee >
<?php
$tempmins = 8; //minutos para inatividade de um usuário
$conexao= mysql_connect(localhost,********, ******);//conecta com o servidor
mysql_select_db(msseletr_loja, $conexao); // seleciona o banco
$ip = $_SERVER['REMOTE_ADDR'];
if(mysql_num_rows(mysql_query("SELECT * FROM visitantes_online WHERE ip='$ip'"))>0) //verifica se o ip ja esta no DB
{
//ja que ele está é necessario dar um update no time para que ele não seja deletado rapdamente
$tempo=time();
$sql= "UPDATE visitantes_online SET tempo='$tempo' WHERE ip='$ip'";
mysql_query($sql);
}
else
{
//ele não está no DB, então prescisamos inseri-lo
$tempo=time();
mysql_query("INSERT INTO visitantes_online (ip,tempo) VALUES('$ip',$tempo)");
}
$tempo1=time();
$tempo=($tempo1-($tempmins*60));
mysql_query("DELETE FROM visitantes_online WHERE tempo<'$tempo'"); //deleta os ips com mais de 5 minutos
$visitantes = mysql_num_rows(mysql_query("SELECT * FROM visitantes_online"));
$email_usuario= $HTTP_COOKIE_VARS["email_usuario"];// pega o email do usuario online
$usuarios = 0;
if ($email_usuario != "")
{
if(mysql_num_rows(mysql_query("SELECT * FROM eletronica_usuarios_online WHERE email ='$email_usuario'"))>0) //verifica se o email ja esta no DB
{
//ja que ele está é necessario dar um update no time para que ele não seja deletado rapdamente
$tempo=time();
$sql= "UPDATE eletronica_usuarios_online SET tempo='$tempo' WHERE email = '$email_usuario'";
mysql_query($sql);
}
else
{
//ele não está no DB, então prescisamos inseri-lo
$tempo=time();
mysql_query("INSERT INTO eletronica_usuarios_online (email,tempo) VALUES('$email_usuario',$tempo)");
}
$tempo1=time();
$tempo=($tempo1-($tempmins*60));
mysql_query("DELETE FROM eletronica_usuarios_online WHERE tempo<'$tempo'"); //deleta os emails com mais de 8 minutos
$usuarios = mysql_num_rows(mysql_query("SELECT * FROM eletronica_usuarios_online"));
$visitantes = $visitantes - $usuarios;
}
else
{
$tempo1=time();
$tempo=($tempo1-($tempmins*60));
mysql_query("DELETE FROM eletronica_usuarios_online WHERE tempo<'$tempo'"); //deleta os emails com mais de 8 minutos
$usuarios = mysql_num_rows(mysql_query("SELECT * FROM eletronica_usuarios_online"));
$visitantes = $visitantes - $usuarios;
}
if ($visitantes > 1){ $t_visitante = " Visitantes";}
else{$t_visitante = " Visitante";}
if ($usuarios > 1){ $t_usuario = " Usuarios";}
else{ $t_usuario = " Usuario";}
echo ("No momento temos on-line: " . $visitantes . $t_visitante . " e " . $usuarios . $t_usuario. " !!!");
?>
</marquee>
</p>
</td>
</tr>
</tbody>
</table>
<table border=0 cellpadding=0 cellspacing=0 align=center width="980" height=10>
<tbody>
<tr>
<td background=imagem/fundo_transparente.gif width="980" height=20></td><!--tabela de separacao entre o cabecalho e os menus-->
</tr>
</tbody>
</table>
<table border=0 cellpadding=0 cellspacing=0 align=center width="980" height="100%"><!--tabela geral dos menus laterais e centrais-->
<tbody>
<tr valign=top>
<td valign=top align=left >
<table border=0 cellpadding=0 cellspacing=0 align=center width=160 height="99%"><!--tabela do menu esquerdo-->
<tbody>
<tr>
<td valign=top width=160 height=376>
<table border=0 cellpadding=0 cellspacing=0 align=center width=160 height="30"><!--tabela menu circuitos-->
<tbody>
<tr>
<td>
<table width=160 height=27 border=0 cellpadding=0 cellspacing=0 ><!--tabela cabecalho menu circuitos-->
<tbody>
<tr width=160 height=27>
<td background=imagem/cabecalho_esquerdo.gif height="27">
<p align="center"><b>
<font color="#FFFFFF">
<font size="2" face="Verdana">
Circuitos </font>
</font></b></td>
</tr>
</tbody>
</table><!--fim - tabela cabecalho menu circuitos-->
</tr>
<tr>
<td>
<table width=160 height=30 border=0 cellpadding=0 cellspacing=0 ><!--tabela que comporta o corpo no menu lateral-->
<tbody>
<tr>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2></td><!--borda esquerda menu-->
<td>
<table width=156 height=30 border=0 cellpadding=0 cellspacing=0 ><!--tabela com o conteudo do menu-->
<tbody>
<?php //codigo que monta o menu
$conexao= mysql_connect(localhost, ******, *****);//conecta com o servidor
mysql_select_db(msseletr_loja, $conexao); // seleciona o banco
$comando = $comando = "SELECT * FROM eletr_menu WHERE menu LIKE 'circuitos' ";
$resultado = mysql_query($comando, $conexao);// passa para resultado a informação recebida
if (mysql_num_rows($resultado)!=0)
{
$n_linhas = mysql_num_rows($resultado); // passa o numero de linhas para a variavel
$linha=0; // inicializa a variavel
while($n_linhas > $linha)
{
$nome = mysql_result($resultado,$linha,"nome"); //o nome que aparece no menu
$categoria = mysql_result($resultado,$linha,"categoria");//categoria do menu
$titulo = mysql_result($resultado,$linha,"titulo"); //menssagem que aparece quando o mause e passado sobre o link do menu
echo("<tr><td background=imagem/fundo_menu_1.gif width=156 height=32>
<p align=center><font color=#FF6600 size=2 face=Verdana>
<b><a title=" . '"' . $titulo . '"' . " href=" . '"' . "http://www.msseletro...php?categoria=" . $categoria . '"' . ">
<font color=#FF6600><span style=" . '"' . "text-decoration: none" . '"' . ">" . $nome .
"</span></font></a></b></font><b></b></td></tr>");
$linha = $linha + 1; // incrementa a variavel
}
}
?>
[/codebox]
continuação:
[codebox]
</tbody>
</table><!--fim - tabela com o conteudo do menu-->
</td>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=4></td></td><!--borda direita menu-->
</tr>
<tr>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2 height=2></td></td><!--acabamento borda inferior menu-->
<td background=imagem/borda_verde_claro_corpo_pag.gif height=2></td><!--centro borda inferior menu-->
<td background=imagem/borda_verde_claro_corpo_pag.gif width=4 height=2></td></td><!--acabamento borda inferior menu-->
</tr>
</tbody>
</table><!--fim - tabela que comporta o corpo no menu lateral-->
</td>
</tr>
</tbody>
</table><!--fim - tabela menu circuitos-->
<!--***********************************************************************************************
**********-->
<table border=0 cellpadding=0 cellspacing=0 align=center width=160 height="20"><!--tabela de separacao entre as tabelas-->
<tbody>
<tr>
<td background=imagem/fundo_menu_transparente_1.gif height="20"></td>
</tr>
</tbody>
</table>
<table border=0 cellpadding=0 cellspacing=0 align=center width=160 height="30"><!--tabela menu curos gratuitos-->
<tbody>
<tr>
<td>
<table width=160 height=27 border=0 cellpadding=0 cellspacing=0 ><!--tabela cabecalho menu cursos gratuitos-->
<tbody>
<tr width=160 height=27>
<td background=imagem/cabecalho_esquerdo.gif height="27">
<p align="center"><b>
<font color="#FFFFFF">
<font size="2" face="Verdana">
Cursos Gratuitos </font>
</font></b></td>
</tr>
</tbody>
</table><!--fim - tabela cabecalho menu cursos gratuitos-->
</tr>
<tr>
<td>
<table width=160 height=30 border=0 cellpadding=0 cellspacing=0 ><!--tabela que comporta o corpo no menu lateral-->
<tbody>
<tr>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2></td><!--borda esquerda menu-->
<td>
<table width=156 height=30 border=0 cellpadding=0 cellspacing=0 ><!--tabela com o conteudo do menu-->
<tbody>
<?php //codigo que monta o menu
$conexao= mysql_connect(localhost, ****, ****);//conecta com o servidor
mysql_select_db(msseletr_loja, $conexao); // seleciona o banco
$comando = $comando = "SELECT * FROM eletr_menu WHERE menu LIKE 'cursos_gratuitos' ";
$resultado = mysql_query($comando, $conexao);// passa para resultado a informação recebida
if (mysql_num_rows($resultado)!=0)
{
$n_linhas = mysql_num_rows($resultado); // passa o numero de linhas para a variavel
$linha=0; // inicializa a variavel
while($n_linhas > $linha)
{
$nome = mysql_result($resultado,$linha,"nome"); //o nome que aparece no menu
$categoria = mysql_result($resultado,$linha,"categoria");//categoria do menu
$titulo = mysql_result($resultado,$linha,"titulo"); //menssagem que aparece quando o mause e passado sobre o link do menu
echo("<tr><td background=imagem/fundo_menu_1.gif width=156 height=32>
<p align=center><font color=#FF6600 size=2 face=Verdana>
<b><a title=" . '"' . $titulo . '"' . " href=" . '"' . "http://www.msseletro...egoria_cursos=" . $categoria . '"' . ">
<font color=#FF6600><span style=" . '"' . "text-decoration: none" . '"' . ">" . $nome .
"</span></font></a></b></font><b></b></td></tr>");
$linha = $linha + 1; // incrementa a variavel
}
}
?>
</tbody>
</table><!--fim - tabela com o conteudo do menu-->
</td>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2></td></td><!--borda direita menu-->
</tr>
<tr>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2 height=2></td></td><!--acabamento borda inferior menu-->
<td background=imagem/borda_verde_claro_corpo_pag.gif height=2></td><!--centro borda inferior menu-->
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2 height=2></td></td><!--acabamento borda inferior menu-->
</tr>
</tbody>
</table><!--fim - tabela que comporta o corpo no menu lateral-->
</td>
</tr>
</tbody>
</table><!--fim - tabela menu cursos gratuitos-->
<!--***********************************************************************************************
**********-->
<table border=0 cellpadding=0 cellspacing=0 align=center width=160 height="20"><!--tabela de separacao entre as tabelas-->
<tbody>
<tr>
<td background=imagem/fundo_menu_transparente_1.gif height="20"></td>
</tr>
</tbody>
</table>
<table border=0 cellpadding=0 cellspacing=0 align=center width=160 height="30"><!--tabela menu download-->
<tbody>
<tr>
<td>
<table width=160 height=27 border=0 cellpadding=0 cellspacing=0 ><!--tabela cabecalho menu download-->
<tbody>
<tr width=160 height=27>
<td background=imagem/cabecalho_esquerdo.gif height="27">
<p align="center"><b>
<font face="Verdana" size="2" color="#FFFFFF">
Download</font><font color="#FFFFFF">
</font></b></td>
</tr>
</tbody>
</table><!--fim - tabela cabecalho menu download-->
</tr>
<tr>
<td>
<table width=160 height=30 border=0 cellpadding=0 cellspacing=0 ><!--tabela que comporta o corpo no menu lateral-->
<tbody>
<tr>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2></td><!--borda esquerda menu-->
<td>
<table width=156 height=30 border=0 cellpadding=0 cellspacing=0 ><!--tabela com o conteudo do menu-->
<tbody>
<?php //codigo que monta o menu
$conexao= mysql_connect(localhost, *****, ******);//conecta com o servidor
mysql_select_db(msseletr_loja, $conexao); // seleciona o banco
$comando = $comando = "SELECT * FROM eletr_menu WHERE menu LIKE 'download' ";
$resultado = mysql_query($comando, $conexao);// passa para resultado a informação recebida
if (mysql_num_rows($resultado)!=0)
{
$n_linhas = mysql_num_rows($resultado); // passa o numero de linhas para a variavel
$linha=0; // inicializa a variavel
while($n_linhas > $linha)
{
$nome = mysql_result($resultado,$linha,"nome"); //o nome que aparece no menu
$categoria = mysql_result($resultado,$linha,"categoria");//categoria do menu
$titulo = mysql_result($resultado,$linha,"titulo"); //menssagem que aparece quando o mause e passado sobre o link do menu
echo("<tr><td background=imagem/fundo_menu_1.gif width=156 height=32>
<p align=center><font color=#FF6600 size=2 face=Verdana>
<b><a title=" . '"' . $titulo . '"' . " href=" . '"' . "http://www.msseletro...php?categoria=" . $categoria . '"' . ">
<font color=#FF6600><span style=" . '"' . "text-decoration: none" . '"' . ">" . $nome .
"</span></font></a></b></font><b></b></td></tr>");
$linha = $linha + 1; // incrementa a variavel
}
}
?>
</tbody>
</table><!--fim - tabela com o conteudo do menu-->
</td>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2></td></td><!--borda direita menu-->
</tr>
<tr>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2 height=2></td></td><!--acabamento borda inferior menu-->
<td background=imagem/borda_verde_claro_corpo_pag.gif height=2></td><!--centro borda inferior menu-->
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2 height=2></td></td><!--acabamento borda inferior menu-->
</tr>
</tbody>
</table><!--fim - tabela que comporta o corpo no menu lateral-->
</td>
</tr>
</tbody>
</table><!--fim - tabela menu download-->
<!--***********************************************************************************************
**********-->
<table border=0 cellpadding=0 cellspacing=0 align=center width=160 height="20"><!--tabela de separacao entre as tabelas-->
<tbody>
<tr>
<td background=imagem/fundo_menu_transparente_1.gif height="20"></td>
</tr>
</tbody>
</table>
<table border=0 cellpadding=0 cellspacing=0 align=center width=160 height="30"><!--tabela menu videos-->
<tbody>
<tr>
<td>
<table width=160 height=27 border=0 cellpadding=0 cellspacing=0 ><!--tabela cabecalho menu videos-->
<tbody>
<tr width=160 height=27>
<td background=imagem/cabecalho_esquerdo.gif height="27">
<p align="center">
<font color="#FFFFFF" size="2" face="Verdana">
<b>Vídeos</b></font><b><font color="#FFFFFF">
</font></b></td>
</tr>
</tbody>
</table><!--fim - tabela cabecalho menu videos-->
</tr>
<tr>
<td>
<table width=160 height=30 border=0 cellpadding=0 cellspacing=0 ><!--tabela que comporta o corpo no menu lateral-->
<tbody>
<tr>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2></td><!--borda esquerda menu-->
<td>
<table width=156 height=30 border=0 cellpadding=0 cellspacing=0 ><!--tabela com o conteudo do menu-->
<tbody>
<?php //codigo que monta o menu
$conexao= mysql_connect(localhost, m****, ****);//conecta com o servidor
mysql_select_db(msseletr_loja, $conexao); // seleciona o banco
$comando = $comando = "SELECT * FROM eletr_menu WHERE menu LIKE 'videos' ";
$resultado = mysql_query($comando, $conexao);// passa para resultado a informação recebida
if (mysql_num_rows($resultado)!=0)
{
$n_linhas = mysql_num_rows($resultado); // passa o numero de linhas para a variavel
$linha=0; // inicializa a variavel
while($n_linhas > $linha)
{
$nome = mysql_result($resultado,$linha,"nome"); //o nome que aparece no menu
$categoria = mysql_result($resultado,$linha,"categoria");//categoria do menu
$titulo = mysql_result($resultado,$linha,"titulo"); //menssagem que aparece quando o mause e passado sobre o link do menu
echo("<tr><td background=imagem/fundo_menu_1.gif width=156 height=32>
<p align=center><font color=#FF6600 size=2 face=Verdana>
<b><a title=" . '"' . $titulo . '"' . " href=" . '"' . "http://www.msseletro...php?categoria=" . $categoria . '"' . ">
<font color=#FF6600><span style=" . '"' . "text-decoration: none" . '"' . ">" . $nome .
"</span></font></a></b></font><b></b></td></tr>");
$linha = $linha + 1; // incrementa a variavel
}
}
?>
</tbody>
</table><!--fim - tabela com o conteudo do menu-->
</td>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2></td></td><!--borda direita menu-->
</tr>
<tr>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2 height=2></td></td><!--acabamento borda inferior menu-->
<td background=imagem/borda_verde_claro_corpo_pag.gif height=2></td><!--centro borda inferior menu-->
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2 height=2></td></td><!--acabamento borda inferior menu-->
</tr>
</tbody>
</table><!--fim - tabela que comporta o corpo no menu lateral-->
</td>
</tr>
</tbody>
</table><!--fim - tabela menu videos-->
<!--***********************************************************************************************
**********-->
<table border=0 cellpadding=0 cellspacing=0 align=center width=160 height="20"><!--tabela de separacao entre as tabelas-->
<tbody>
<tr>
<td background=imagem/fundo_menu_transparente_1.gif height="20"></td>
</tr>
</tbody>
</table>
<table border=0 cellpadding=0 cellspacing=0 align=center width=160 height="30"><!--tabela menu siga-nos-->
<tbody>
<tr>
<td>
<table width=160 height=27 border=0 cellpadding=0 cellspacing=0 ><!--tabela cabecalho menu siga-nos-->
<tbody>
<tr width=160 height=27>
<td background=imagem/cabecalho_esquerdo.gif height="27">
<p align="center">
<b>
<font face="Verdana" size="2" color="#FFFFFF">
Siga-nos</font></b></td>
</tr>
</tbody>
</table><!--fim - tabela cabecalho menu siga-nos-->
</tr>
<tr>
<td>
<table width=160 height=30 border=0 cellpadding=0 cellspacing=0 ><!--tabela que comporta o corpo no menu lateral-->
<tbody>
<tr>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2></td><!--borda esquerda menu-->
<td>
<table width=156 height=30 border=0 cellpadding=0 cellspacing=0 ><!--tabela com o conteudo do menu-->
<tbody>
<?php //codigo que monta o menu
$conexao= mysql_connect(localhost, ***, ****);//conecta com o servidor
mysql_select_db(msseletr_loja, $conexao); // seleciona o banco
$comando = $comando = "SELECT * FROM eletr_menu WHERE menu LIKE 'siga-nos' ";
$resultado = mysql_query($comando, $conexao);// passa para resultado a informação recebida
if (mysql_num_rows($resultado)!=0)
{
$n_linhas = mysql_num_rows($resultado); // passa o numero de linhas para a variavel
$linha=0; // inicializa a variavel
while($n_linhas > $linha)
{
$nome = mysql_result($resultado,$linha,"nome"); //o nome que aparece no menu
$categoria = mysql_result($resultado,$linha,"categoria");//categoria do menu
$titulo = mysql_result($resultado,$linha,"titulo"); //menssagem que aparece quando o mause e passado sobre o link do menu
echo("<tr><td background=imagem/fundo_menu_1.gif width=156 height=32>
<p align=center><font color=#FF6600 size=2 face=Verdana>
<b><a title=" . '"' . $titulo . '"' . " href=" . '"' . "http://www.msseletro...php?categoria=" . $categoria . '"' . ">
<font color=#FF6600><span style=" . '"' . "text-decoration: none" . '"' . ">" . $nome .
"</span></font></a></b></font><b></b></td></tr>");
$linha = $linha + 1; // incrementa a variavel
}
}
?>
</tbody>
</table><!--fim - tabela com o conteudo do menu-->
</td>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2></td></td><!--borda direita menu-->
</tr>
<tr>
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2 height=2></td></td><!--acabamento borda inferior menu-->
<td background=imagem/borda_verde_claro_corpo_pag.gif height=2></td><!--centro borda inferior menu-->
<td background=imagem/borda_verde_claro_corpo_pag.gif width=2 height=2></td></td><!--acabamento borda inferior menu-->
</tr>
</tbody>
</table><!--fim - tabela que comporta o corpo no menu lateral-->
</td>
</tr>
</tbody>
</table><!--fim - tabela menu siga-nos-->
</td>
</tr>
</tbody>
</table><!--fim - tabela do menu esquerdo-->
</td>
<td width=11 background=imagem/fundo_transparente.gif height=100%></td><!--espaco entre os as tabelas esquerda e central-->
<td valign=top>
<table width=800 border=0 cellpadding=0 cellspacing=0 align =center height="100%"><!-- tabela do corpo central da pagina-->
<tbody>
<tr valign=top>
<td valign=top>
<table width=800 border=0 cellpadding=0 cellspacing=0 align =center height="27"><!--tabela do cabecalho do corpo central da pagina-->
<tbody>
<tr>
<td width=650 height=27 background=imagem/fundo_verde_escuro_29.gif >
<p align="left"><b>
<font face="Verdana" size="2" color="#FFFFFF">
Conheça nosso Site: </font></b></td>
<td background=imagem/cabecalho_esquerdo.gif width=150 height=27></td>
</tr>
</tbody>
</table><!--fim - tabela do cabecalho do corpo central da pagina-->
</td>
</tr>
<tr valign=top>
<td valign=top>
<table width=800 border=0 cellpadding=0 cellspacing=0 align=center><!--tabela do conteudo do corpo da pagina-->
<tbody>
<tr>
<td width=2 background=imagem/borda_verde_claro_corpo_pag.gif></td>
<td valign=top><!--corpo da pagina-->
<?php //codigo para exibir o conteudo do corpo da pagina
$conexao= mysql_connect(localhost, ***, ****);//conecta com o servidor
mysql_select_db(msseletr_loja, $conexao); // seleciona o banco
$comando = "SELECT * FROM eletr_arquivos WHERE categoria LIKE 'corpo_index' ";
$resultado = mysql_query($comando, $conexao);// passa para resultado a informação recebida
if (mysql_num_rows($resultado)!=0)
{
$n_linhas = mysql_num_rows($resultado); // passa o numero de linhas para a variavel
$linha=0; // inicializa a variavel
while($n_linhas > $linha)
{
$arquivo = mysql_result($resultado,$linha,"nome"); //o nome que aparece no menu
if (file_exists($arquivo))
{
$id = fopen ($arquivo, "r" );
$conteudo = fread($id,filesize($arquivo));
echo $conteudo;
fclose($id);
}
else { echo "Erro ao exibir a pagina!";}
$linha = $linha + 1; // incrementa a variavel
}
}
?>
</td>
<td width=2 background=imagem/borda_verde_claro_corpo_pag.gif></td>
</tr>
<tr><!--linha verde no final do corpo da pagina-->
<td width=2 background=imagem/borda_verde_claro_corpo_pag.gif height=2></td><!--acabamento esquerdo borda inferior do corpo central da pagina-->
<td background=imagem/borda_verde_claro_corpo_pag.gif height=2></td><!--centro borna inferior do corpo central da pagina-->
<td width=2 background=imagem/borda_verde_claro_corpo_pag.gif height=2></td><!--acabamento direito borda inferior do corpo central da pagina-->
</tr>
</tbody>
</table><!--fim - tabela do conteudo do corpo da pagina-->
</td>
<td width=20 background=imagem/fundo_transparente.gif height=100%></td><!--espaco entre os as tabelas direita e central-->
</tr>
</tbody>
</table><!--fim - tabela do corpo central da pagina-->
</td>
</td>
</tr>
</tbody>
</table><!--fim - tabela geral dos menus laterais e centrais-->
<table align=center width="980" height="1" border="0" cellpadding="0" cellspacing="0" >
<tbody>
<tr>
<td background=imagem/fundo_menu_transparente_1.gif width="980" height="1"></td>
</tr>
</tbody>
</table>
<table align=center width="980" height="25" border="0" cellpadding="0" cellspacing="0" >
<tbody>
<tr>
<td background=imagem/acabamento_esquerdo_barra_i.gif width="160" height="25"></td>
<td background=imagem/fundo_verde_1.gif width="795" height="25">
<p align="center"><font face="Times New Roman" size="2">
www.msseletronica.com e www.eletronica-pic.com.br
todos os direitos reservados 2008-2009</font><td><img src=imagem/acabamento_direita_1.gif width="25" height="25"></td>
</tr>
</tbody>
</table>
<!--<table width=1024 height=25 cellpadding=0 cellspacing=0 align=center border=0><!--tabela menu superior-->
<!-- <tbody>
<tr>
<td width=25> </td>
<td background=imagem/fundo_verde_1.gif width="100" >
<p align="center">Inicio</td>
<td width=25><img src=imagem/acabamento_botão_1.gif width=25 height=25><img src=imagem/acabamento_botão_3.gif width=25 height=25></td>
<td background=imagem/fundo_verde_2.gif width="821">
<p align="center"><font color="#FFFFFF">Inicio</font></td>
<td width=25><img src=imagem/acabamento_botão_2.gif width=25 height=25></td>
<td background=imagem/fundo_verde_1.gif width="100" >
<p align="center">Inicio</td>
<td width=25><img src=imagem/acabamento_botão_1.gif width=25 height=25></td>
<td background=imagem/fundo_verde_2.gif width="821">
<p align="center"><font color="#FFFFFF">Inicio</font></td>
<td width=25><img src=imagem/acabamento_botão_2.gif width=25 height=25></td>
<td background=imagem/fundo_verde_1.gif width="100" >
<p align="center">Inicio</td>
<td width=25><img src=imagem/acabamento_botão_1.gif width=25 height=25></td>
<td background=imagem/fundo_verde_2.gif width="821">
<p align="center"><font color="#FFFFFF">Inicio</font></td>
<td width=25><img src=imagem/acabamento_botão_2.gif width=25 height=25></td>
<td background=imagem/fundo_verde_1.gif width="100" >
<p align="center">Inicio</td>
<td width=25><img src=imagem/acabamento_botão_1.gif width=25 height=25></td>
<td background=imagem/fundo_verde_2.gif width="821">
<p align="center"><font color="#FFFFFF">Inicio</font></td>
<td width=25><img src=imagem/acabamento_botão_2.gif width=25 height=25></td>
<td background=imagem/fundo_verde_1.gif width="100" >
<p align="center">Inicio</td>
<td width=25><img src=imagem/acabamento_botão_1.gif width=25 height=25></td>
<td background=imagem/fundo_verde_2.gif width="821">
<p align="center"><font color="#FFFFFF">Inicio</font></td>
<td width=25><img src=imagem/acabamento_botão_2.gif width=25 height=25></td>
<td background=imagem/fundo_verde_1.gif width="100" >
<p align="center">Inicio</td>
<td width=25><img src=imagem/acabamento_botão_6.gif width=25 height=25></td>
</tr>
</tbody>
</table>-->
</body>[/codebox]
Edição feita por: Victor Hugo Odo, 17/11/2009, 16:00.