Claro, ta aki todo o código da pagina <?php include 'config/config.php'; ?> //este é o arquivo que faz a conexao
<head>
<title><?php echo $principal; ?></title>
<link rel=stylesheet type="text/css" href="css/estilo.css"/>
<link rel="stylesheet" type="text/css" href="css/cinza.css" title="Cinza" />
<link rel="stylesheet" type="text/css" href="css/branco.css" title="Branco" />
<link rel="stylesheet" type="text/css" href="css/azul.css" title="Azul" />
<link rel="stylesheet" type="text/css" href="css/azul1.css" title="Azul1" />
<link rel="stylesheet" type="text/css" href="css/azul2.css" title="Azul2" />
<link rel="stylesheet" type="text/css" href="css/verde.css" title="Verde" />
<link rel="stylesheet" type="text/css" href="css/verde1.css" title="Verde1" />
<link rel="stylesheet" type="text/css" href="css/verde2.css" title="Verde2" />
<link rel="stylesheet" type="text/css" href="css/bege.css" title="Bege" />
<link rel="stylesheet" type="text/css" href="css/vermelho.css" title="Vermelho" />
<link rel="stylesheet" type="text/css" href="css/vermelho1.css" title="Vermelho1" />
<link rel="stylesheet" type="text/css" href="css/vermelho2.css" title="Vermelho2" />
<link rel="alternate stylesheet" type="text/css" href="css/branco.css" title="Branco" />
<style type="text/css">
<!--
a:link {
text-decoration: none;
color: #999;
}
a:visited {
text-decoration: none;
color: #999;
}
a:hover {
text-decoration: none;
color: #ff9900;
font-weight: bold;
}
a:active {
text-decoration: none;
color: #999;
}
body,td,th {
font-size: 10pt;
}
-->
</style>
<script type="text/javascript" src="/g20/scripts/styleswitcher.js"></script>
</head>
<body>
<table width="994" height="100%" border="0">
<tr>
<td height="1364" valign="top">
<div id="fundo1">
<img src="mudardecor/img/topo.png" width="340" height="21" border="0" usemap="#Map" />
<div id="toplogo">
</div>
</div>
<div id="fundo2">
<div id="fundo2texto">
<table width="100%" border="0">
<tr>
<td width="30%" align="left" scope="col">
<font color="#999999">
<?php
//Meses
$meses = array(
"January"=>"Janeiro",
"February"=>"Fevereiro",
"March"=>"Março",
"April"=>"Abril",
"May"=>"Maio",
"June"=>"Junho",
"July"=>"Julho",
"August"=>"Agosto",
"September"=>"Setembro",
"October"=>"Outubro",
"November"=>"Novembro",
"December"=>"Dezembro"
);
//Dias
$dias = array(
"Sunday"=>"Domingo",
"Monday"=>"Segunda-Feira",
"Tuesday"=>"Terça-Feira",
"Wednesday"=>"Quarta-Feira",
"Thursday"=>"Quinta-Feira",
"Friday"=>"Sexta-Feira",
"Saturday"=>"Sábado",
);
/*---------------------------------
DIA / MES / ANO
----------------------------------*/
//Data usando funçao getdate
$data = getdate();
//Dia
$dia = $data ["weekday"];
$dia2 = $dias [$dia];
$dia3 = date("d");
//Mes
$mes = $data ["month"];
$mes2 = $meses [$mes];
//Ano
$ano = $data ["year"];
/*---------------------------------
HORA / MINUTOS / SEGUNDOS
----------------------------------*/
//Hora
$hora = date("G");
//Minutos
$minutos = date("i");
//Segundos
$segundos = date("s");
/*---------------------------------
PARA AS MENSAGENS
----------------------------------*/
//Funcionamento do script, não alterar
$hora = date("H");
//Mensagem inicial
$mensageminicial = "Tenha";
//Mensagem Data e Hora
$msgdata = "$dia2, dia $dia3 de $mes2 de $ano.";
$msghora = "Agora são $hora:$minutos:$segundos hs";
/*---------------------------------
ESCREVE AS MENSAGENS
----------------------------------*/
//Altere de acordo com sua nescessidade
//Madrugada
if ( ($hora >= 0) and ($hora < 6) ) {
echo "$msgdata ";
echo "$msghora";
}
//Dia
elseif ( ($hora >= 6) and ($hora < 12) ) {
echo "$msgdata ";
echo "$msghora";
}
//Tarde
elseif ( ($hora >= 12) and ($hora < 18) ) {
echo "$msgdata ";
echo "$msghora";
}
//Noite
else {
echo "$msgdata ";
echo "$msghora";
}
?>
</font>
</td>
<td width="47%" align="center" scope="col"><a href="index.php">Inicio</a> | <a href="index.php">Institucional</a> | <a href="index.php">Fale Conosco</a> | <a href="index.php">Anuncie Aqui</a> | <a href="index.php">Cidades</a></td>
<td width="23%" align="right" scope="col">
<form method="get" action="busca.php">
<p>
<input type="text" id="q" name="q" />
<input type="submit" value="Buscar" />
</p>
</form>
</td>
</tr>
</table>
</div>
</div>
<div id="fundo3">
<br />
</div>
<div id="menu">
<table width="100%" border="0">
<tr>
<th align="right" bgcolor="#CCCCCC" scope="col"><font color="#ffffff">.::Noticias</font>
</th>
</tr>
</table>
<a href="index.php">Ultimas Noticias </a>
<a href="index.php">Todas as Noticias </a>
<a href="index.php">Local </a>
<a href="index.php">Pais </a>
<a href="index.php">Mundo </a>
<table width="100%" border="0">
<tr>
<th align="right" bgcolor="#CCCCCC" scope="col"><font color="#ffffff">.::Comércio</font>
</th>
</tr>
</table>
<a href="index.php">Agropecuarias</a>
<a href="index.php">Bares</a>
<a href="index.php">Boates</a>
<a href="index.php">Borracharia</a>
<a href="index.php">Cártorios</a>
<a href="index.php">Clubes</a>
<a href="index.php">Creches</a>
<a href="index.php">Contabilidade</a>
<a href="index.php">Costureiras</a>
<a href="index.php">Eletricistas</a>
<a href="index.php">Escolas</a>
<a href="index.php">Estacionamento</a>
<a href="index.php">Estofaria</a>
<a href="index.php">Farmacias</a>
<a href="index.php">Hospitais/Plantão</a>
<a href="index.php">Jardinagem</a>
<a href="index.php">Lancherias</a>
<a href="index.php">Lan Houses</a>
<a href="index.php">Lazer</a>
<a href="index.php">Lojas de Calçados</a>
<a href="index.php">Lojas Grandes</a>
<a href="index.php">Lojas de Presentes</a>
<a href="index.php">Lojas de Roupas</a>
<a href="index.php">Malharias</a>
<a href="index.php">Mecanica</a>
<a href="index.php">Mercados</a>
<a href="index.php">Mestre de Obras</a>
<a href="index.php">Moda Intima</a>
<a href="index.php">Pet Shopp</a>
<a href="index.php">Pitzzarias</a>
<a href="index.php">Perfumaria</a>
<a href="index.php">Posto de Lavagens</a>
<a href="index.php">Postos de Gasolina</a>
<a href="index.php">Pubs</a>
<a href="index.php">Prefeituras</a>
<a href="index.php">Restaurantes</a>
<a href="index.php">Revendas</a>
<a href="index.php">Salão de Beleza</a>
<a href="index.php">Salão de Festas</a>
<a href="index.php">Shooppings</a>
<a href="index.php">Taxis</a>
<table width="100%" border="0">
<tr>
<th align="right" bgcolor="#CCCCCC" scope="col"><font color="#ffffff">.::Utilidade Publica</font>
</th>
</tr>
</table>
<a href="index.php">Achados</a>
<a href="index.php">Perdidos</a>
<a href="index.php">Procuro Emprego</a>
<a href="index.php">Ofereço Emprego</a>
</div>
<div id="conteudo"></div></td>
</tr>
</table>
<map name="Map" id="Map">
<area shape="rect" coords="119,3,130,17" href="#" onclick="setActiveStyleSheet('Cinza'); return false;" />
<area shape="rect" coords="98,3,111,17" href="#" onclick="setActiveStyleSheet('Branco'); return false;" />
<area shape="rect" coords="138,3,150,16" href="#" onclick="setActiveStyleSheet('Azul'); return false;" />
<area shape="rect" coords="160,3,169,17" href="#" onclick="setActiveStyleSheet('Azul1'); return false;" />
<area shape="rect" coords="179,3,193,17" href="#" onclick="setActiveStyleSheet('Azul2'); return false;" />
<area shape="rect" coords="199,3,214,17" href="#" onclick="setActiveStyleSheet('Verde'); return false;" />
<area shape="rect" coords="222,3,236,17" href="#" onclick="setActiveStyleSheet('Verde1'); return false;" />
<area shape="rect" coords="244,3,255,16" href="#" onclick="setActiveStyleSheet('Verde2'); return false;" />
<area shape="rect" coords="265,4,278,16" href="#" onclick="setActiveStyleSheet('Bege'); return false;" />
<area shape="rect" coords="286,3,298,17" href="#" onclick="setActiveStyleSheet('Vermelho'); return false;" />
<area shape="rect" coords="305,4,320,17" href="#" onclick="setActiveStyleSheet('Vermelho1'); return false;" />
<area shape="rect" coords="326,4,337,15" href="#" onclick="setActiveStyleSheet('Vermelho2'); return false;" />
</map>
</body>
</html>