

<head>
<meta http-equiv="Content-Language" content="pt">

<script language="JavaScript" src="util.js">
</script>


</head>

<body style="background-attachment: fixed" bgcolor="#FF9A66">

<div style="position: absolute; width: 447px; height: 199px; z-index: 1; left: 272px; top: 89px" id="layer1">
	<form name="formulario" action="insere_recado.php" method="post">

	<table border="0" width="95%" id="table1" height="204">
		<tr>
			<td><font face="Palatino Linotype" color="#FFFFFF">Nome</font></td>
			<td width="365"><font size="1" face="Palatino Linotype">
			<input type="text" name="formNome" size="24" onblur="this.value=this.value.trim();"></font></td>
		</tr>
		<tr>
			<td height="24"><font face="Palatino Linotype" color="#FFFFFF">E-Mail</font></td>
			<td width="365" height="24"><font size="1" face="Palatino Linotype">
			<input type="text" name="formEmail" size="24" onblur="this.value=this.value.trim();"></font></td>
		</tr>
		<tr>
			<td valign="top" height="118">
			<p align="left"><font face="Palatino Linotype" color="#FFFFFF">Recado</font></td>
			<td width="365" height="118"><font size="1">
			
			<textarea rows="7" name="formTexto" cols="43" Maximum-Length="400" onblur="this.value=this.value.trim();" ></textarea></font></td>
		</tr>
		<tr>
			<td height="28">&nbsp;</td>
			<td width="365" height="28">
			<input type="button" value="Enviar" name="B1" onClick="validaEntrada(formulario);"> </td>
		</tr>
	</table>
	</form>
	<p>&nbsp;</div>
	
<div style="position: absolute; width: 445px; height: 100px; z-index: 2; left: 272px; top: 369px" id="layer2">
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
ini_set('html_errors', false);

include_once("cls_banco.php");
include_once("cls_recado.php");

$arrayRecados = array();	
$r = new Recado;
			
$r->carregaRecados();
$arrayRecados = $r->get_colecao();
		
for($i=0; $i<count($arrayRecados); $i++){

echo(" <table border=0 width=450 cellspacing=0 cellpadding=2>   ");

echo("<tr>");
echo(" <td background='Imagens/toppost.png' height='56' valign='bottom'>");
echo("</tr>");	

echo("<tr>");
echo("<td background='Imagens/bgpost.jpg' height='34' valign='bottom'>");
echo("<font face='Palatino Linotype'>" . $arrayRecados[$i]->get_item("recado"). "</font> ");
echo("<br>");		

echo("<p align='right'> <font face='Palatino Linotype'>" .$arrayRecados[$i]->get_item("nome").
						", ".$arrayRecados[$i]->get_item("data"));
echo("</tr>");	

echo("<tr>");
echo("<br>");
echo("</tr>");	
echo("</table>"); 
}
?>
	
	
	&nbsp;</div>
<p><img border="0" src="Imagens/bg_frame_recados.jpg" width="800" height="300"></p>