<? if ($this->proposta): ?>
	<?
	$cobertura = $this->proposta->coberturas(true);
	$corretor = $this->proposta->corretor();
	$produto = $this->proposta->produto();

	$modelPropostaCotacaoAgritask = new Seguro_Model_PropostasCotacaoAgritask();
	$rowPropostaCotacaoAgritask = $modelPropostaCotacaoAgritask->getRow($this->proposta['id']);
	$fl_orcamento_teste = (!empty($rowPropostaCotacaoAgritask) && $rowPropostaCotacaoAgritask['fl_orcamento_teste']);
	?>
	<style>
		.orcamento-teste {
			margin-top:0.5em; 
			padding: 5px;
			border: 1px solid #2DB3FE;
			background-color:#BFE8FF;
			color:#04679F;
			text-align: center;
		}
	</style>
	<table width="100%" cellpadding="3" cellspacing="2" border="0" align="center">
		<tr>
			<td align="center" colspan="4" style="background:#009933;color:#FFFFFF;"><b>Orçamento de Seguro: <?=date('d/m/Y')?></b></td>
		</tr>
		<tr>
			<td width="1%"><img src="/resources/imagens/essor.png" /></td>
			<td width="40%" valign="top">
				<b style="font-size:20px;color:#009933;"><?=$produto['ds_nome_produto']?>®</b><br />
				<b>Cobertura Principal:<?=($produto['id'] == 734) ? 'Multirisco II' : $cobertura['ds_nome_cobertura']?></b><br />
				<b style="font-size: 115%">Seguradora: <?=$produto['ds_nome_fantasia']?></b><br />
				<b>CNPJ:</b> <?=$produto['cpf_cnpj']?><br />
				<b>Processo SUSEP:</b> <?=$produto['nr_susep']?><br />
			</td>
			<td width="40%" valign="top">
				<b style="font-size:20px;color:#009933;"><?=$corretor['ds_nome_fantasia']?></b><br />
				<b>Digitador:</b> <?=$this->proposta->digitador()?><br />
                <? if($this->proposta->doc()):?>
				    <b>Código:</b> <?=$this->proposta->doc()?><br />
                <? endif; ?>
			</td>
			<td width="10%" align="center" style="background:#FF0000;color:#FFFFFF"><b>Este orçamento NÃO está em COBERTURA.</b></td>
		</tr>
	</table>

	<?php if ($fl_orcamento_teste): ?> 
		<div class="row">		
			<div class="orcamento-teste">
				<b>ORÇAMENTO TESTE</b>
			</div>
		</div>
	<?php endif; ?>

<? endif; ?>