<? session_start();?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>.: Loja Virtual C&R.com - Presenteie com o melhor preço! :. </title>
</head>

<body style="background-attachment: fixed">

<table border="0" width="92%" id="table1" cellspacing="0" height="78">
	<tr>
		<td>
		<img border="0" src="Imagens/LojaVirtualTopFrame.jpg" width="1246" height="95"></td>
	</tr>
</table>


<div style="position: absolute; width: 142px; height: 55px; z-index: 2; left: 10px; top: 119px" id="layer2">

<?
						
				print("<p align='left'><font color='#00000' size='2'>");
				print(date("d/m/Y"));						
				print("</font>");
?>						


</div>
<p>&nbsp;</p>


<table border="0" width="10%" id="table4" cellspacing="0">
	<tr>
		<td width="146" height="150">
		<table border="0" width="100%" id="table5" style="border-collapse: collapse">
			<tr>
				<td bordercolor="#008000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-width: 1px" background="Imagens/bg_box.jpg">
				<p align="center">
				<font face="Palatino Linotype" color="#FFFFFF">Casa</font></td>
			</tr>
			<tr>
				<td bordercolor="#008000" style="list-style-type: disc; border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">
				<font size="2">
				<img border="0" src="Imagens/bullet.png" width="6" height="5">
				<a href="lojavirtual.php?subCat=banheiro"><font color="#000000">
				<span style="text-decoration: none">Banheiro</span></font></a></font></td>
			</tr>
			<tr>
				<td bordercolor="#008000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">
				<font size="2">
				<img border="0" src="Imagens/bullet.png" width="6" height="5">
				<a href="lojavirtual.php?subCat=cozinha">
				<span style="text-decoration: none"><font color="#000000">Cozinha</font></span></a></font></td>
			</tr>
			<tr>
				<td bordercolor="#008000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">
				<font size="2">
				<img border="0" src="Imagens/bullet.png" width="6" height="5">
				<a href="lojavirtual.php?subCat=decoracao"><font color="#000000">
				<span style="text-decoration: none">Decoração</span></font></a></font></td>
			</tr>
			<tr>
				<td bordercolor="#008000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" height="18">
				<font size="2">
				<img border="0" src="Imagens/bullet.png" width="6" height="5">
				<a href="lojavirtual.php?subCat=eletronicos">
				<font color="#000000"><span style="text-decoration: none">Eletrônicos</span></font></a></font></td>
			</tr>
			<tr>
				<td bordercolor="#008000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">
				<font size="2">
				<img border="0" src="Imagens/bullet.png" width="6" height="5">
				<a href="lojavirtual.php?subCat=quarto">
				<span style="text-decoration: none"><font color="#000000">Quarto</font></span></a></font></td>
			</tr>
			<tr>
				<td bordercolor="#008000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">
				<font size="2">
				<img border="0" src="Imagens/bullet.png" width="6" height="5">
				<a href="lojavirtual.php?subCat=utilidade">
				<span style="text-decoration: none"><font color="#000000">
				Utilidade Doméstica</font></span></a></font></td>
			</tr>
		</table>
		</td>
		</tr>
	<tr>
		<td width="146" height="79">
		<table border="0" width="100%" id="table6" style="border-collapse: collapse">
			<tr>
				<td bordercolor="#008000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px; border-bottom-width: 1px" background="Imagens/bg_box.jpg">
				<p align="center">
				<font face="Palatino Linotype" color="#FFFFFF">Lua-de-Mel</font></td>
			</tr>
			<tr>
				<td bordercolor="#008000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">
				<font size="2">
				<img border="0" src="Imagens/bullet.png" width="6" height="5"> 
				Lugar 1</font></td>
			</tr>
			<tr>
				<td bordercolor="#008000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px">
				<font size="2">
				<img border="0" src="Imagens/bullet.png" width="6" height="5"> 
				Lugar 2</font></td>
			</tr>
			<tr>
				<td bordercolor="#008000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">
				<font size="2">
				<img border="0" src="Imagens/bullet.png" width="6" height="5"> 
				Lugar 3</font></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<div style="position: absolute; width: 80%; height: 108px; z-index: 1; left: 156px; top: 121px" id="layer1">
	

		
<?
		error_reporting(E_ALL);
		ini_set('display_errors', true);
		ini_set('html_errors', false);
		
		include_once("cls_banco.php");
		include_once("cls_presente.php");
				
		$p = new Presente();
	  
		$id = $_SESSION["sessionId"];
		
		$p->carregaPresentes("ID",$id);
			
		$i = 0;
		
		$arrayPresentes = array();
		
		$arrayPresentes = $p->get_colecao();
		for($i = 0; $i < count($arrayPresentes); $i ++){                                                                                                                                                                                    
	                                                                                                                                                                                                                                   
				                                                                                                                                                                                   
			$urlFoto = $arrayPresentes[$i]->get_item("urlFoto");
			$disponibilidade = $arrayPresentes[$i]->get_item("disponibilidade"); 
			$produto = $arrayPresentes[$i]->get_item("produto"); 
			$descricao = $arrayPresentes[$i]->get_item("descricao"); 
			$preco = $arrayPresentes[$i]->get_item("preco"); 
			$prodId = $arrayPresentes[$i]->get_item("ID"); 

		}                          
		
		//$p->atualizarPresentes($prodId, "rafael","rjoc@terra.com","olaaaa");                                                                                                                                                       
?>				
		
<p>&nbsp;</p>
<hr color="#000000" width="400" align="left">
<table id="table6" width="750" border=0>
	<tr>
		<td align="left" valign="top" width="150">
		<img src="<? print("Imagens/presentes/".$urlFoto.$disponibilidade.".jpg");?>"</td>
		
		<td align="left"><font size='2'> <b> &nbsp; <? print($produto. "<p></b></font>");
		       print("<font size='2' color='#808080'> <b>&nbsp;" .$descricao."</b></font>");?>
		<p><font color="#ff0000"><b>&nbsp;R$ <? print($preco);?>,00</b></font></p>

		<p>&nbsp;</td>
		<td> 
		
		</td>
	</tr>
	<tr>
		<td width="99%" align="left" valign="bottom" colspan="2">
<hr color="#000000" width="400" align="left">		
		<p><b><font face="Palatino Linotype">Você escolheu a Transferência 
		Bancária para presentear os Noivos</font></b><font face="Palatino Linotype"><b>: </b>
		</font></p>
<p><font face="Palatino Linotype" size="2">Com esta forma, você poderá efetuar o 
depósito na conta corrente dos noivos, via internet ou em qualquer agência ou 
caixa eletónica do banco Real.</font></p>
<p><font face="Palatino Linotype" size="2">Para infomrar a compra, dedique o 
presente aos noivos logo abaixo:</font></p>
		<table border="0" width="681" id="table13" cellspacing="0" cellpadding="0">
			<tr>
				<td width=140 valign="top">
				
				
				<font face="Palatino Linotype" size="2">
				
				
				<b>
				
				</b>
				</font>
				<p><b><font face="Palatino Linotype" size="2">Dados Bancários:</font></b></td>
				<td width="570">
				<b><font face="Palatino Linotype" size="2">
				Banco: Real AMRO<br>Nome: Carolina Dias de Souza Lima<br>Agência: 1234<br>C/C: 123456-7<br>CPF: 082.546.543-09</font></b><p>&nbsp;</td>
			</tr>
			<tr>
				<td height="90" valign="top">
				<b><font face="Palatino Linotype" size="2">Dedique seu presente aos noivos:</font>
				</b></td>
				<td width="570" height="90">
				&nbsp;<table border="0" width="100%" id="table14" cellspacing="0" cellpadding="0">
					<form method="POST" action="finaliza_compra.php">
						<tr>
							<td width="69" height="23"><b><font face="Palatino Linotype">Nome:</font></b></td>
							<td height="23"><input type="text" name="cartaoNome" size="41"><b><font size="1" color="#FF0000">*</font></b></td>
						</tr>
						<tr>
							<td width="69" height="25"><b><font face="Palatino Linotype">E-mail:</font></b></td>
							<td height="23"><input type="text" name="cartaoMail" size="41"><b><font size="1" color="#FF0000">*</font></b></td>
						</tr>
						<tr>
							<td width="69" height="128"><b><font face="Palatino Linotype">Mensagem:</font></b></td>
							<td height="128"><textarea rows="7" name="cartaoTexto" cols="58"></textarea></td>
						</tr>
					
					<tr>
						<td width="69">&nbsp;</td>
						<td>
						<p align="left"><input type="submit" value="Enviar" name="B1"><font color="#FF0000" size="1" face="Palatino Linotype">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *Obrigatório 
						para confirmação da compra do presente.</font></td>
					</tr>
				</form>
				</table>
				</td>
			</tr>
		</table></td>
	</tr>
	</table>

			
		
			

</div>

</body>

</html>