<!-- SAFRA 14 -->

<form enctype="multipart/form-data" method="post" id="form-laudo">
	<?=$this->headerSinistro($this->form->getValue('id_proposta'), $this->form->getValue('id_processo'))?>
	<div id="tabs">
        <?=$this->LaudoFinalFormItemSegurado($this->form, true)?>
        <fieldset>
            <legend>Tipo de amostragem</legend>
            <table width="200px">
            	<tr>
            		<td width="1%"><input type="radio" id="amostragem_manual"  class="fl_amostragem_maquina" name="fl_amostragem_maquina" value="0" <?echo (($this->dados["fl_amostragem_maquina"] === false) || ($this->dados["fl_amostragem_maquina"] === 0) ? 'checked="checked"' : "")?> /></td>
            		<td>Manual</td>
            		<td width="1%"><input type="radio" id="amostragem_maquina" class="fl_amostragem_maquina" name="fl_amostragem_maquina" value="1" <?echo (($this->dados["fl_amostragem_maquina"] === true) || ($this->dados["fl_amostragem_maquina"] === 1) ? 'checked="checked"' : "")?> /></td>
            		<td>Mecanizada</td>
            	</tr>
            </table>
        </fieldset>
        <fieldset>
        	<div id="divAmostragemManual">
        		<table class="tableAmostras">
        			<tr>
        				<th>Amostras</th>
        				<?
        				for ($i=1;$i<=10;$i++){
        					?>
        						<th><?echo $i?></th>
        					<?
        				}
        				?>
        			</tr>
        			<tr>
        				<th>Espaçamento entre linhas (metros)</th>
        				<?
        				for ($i=1;$i<=10;$i++){
        					?>
        						<td><input id="vl_espacamento_entre_linhas_<?echo $i?>" name="vl_espacamento_entre_linhas_<?echo $i?>" type="text" class="decimal3casas" size="6" value="<?echo $this->dados["amostras"][$i]["vl_espacamento_entre_linhas"]?>" /></td>
        					<?
        				}
        				?>
        			</tr>
        			<tr>
        				<th>Metros de linha colhidos (metros)</th>
        				<?
        				for ($i=1;$i<=10;$i++){
        					?>
        						<td><input id="vl_metros_linhas_colhidos_<?echo $i?>" name="vl_metros_linhas_colhidos_<?echo $i?>" type="text" class="decimal" size="6" value="<?echo $this->dados["amostras"][$i]["vl_metros_linhas_colhidos"]?>" /></td>
        					<?
        				}
        				?>
        			</tr>
        			<tr>
        				<th>Produção colhida na amostra (Kg)</th>
        				<?
        				for ($i=1;$i<=10;$i++){
        					?>
        						<td><input id="vl_producao_colhida_amostra_<?echo $i?>" name="vl_producao_colhida_amostra_<?echo $i?>" type="text" class="decimal4casas" size="6" value="<?echo $this->dados["amostras"][$i]["vl_producao_colhida_amostra"]?>" /></td>
        					<?
        				}
        				?>
        			</tr>
        			<!--
        			<tr>
        				<th>Produção em Kg / Hectare</th>
        				<?
        				for ($i=1;$i<=10;$i++){
        					?>
        						<td><label><?echo $this->dados["amostras"][$i]["vl_producao_kilos_hectare"]?></label></td>
        					<?
        				}
        				?>
        			</tr>
        			-->
        			<tr>
        				<th>Perdas de colheita</th>
        				<?
        				for ($i=1;$i<=10;$i++){
        					?>
        						<td>
        							<label>2<?//echo $this->dados["amostras"][$i]["vl_perda_colheita"]?>%</label>
        						</td>								
        					<?
        				}
        				?>
        			</tr>
        			<tr>
        				<th>Umidade dos grãos (%)</th>
        				<?
        				for ($i=1;$i<=10;$i++){
        					?>
        						<td><input id="vl_umidade_graos_<?echo $i?>" name="vl_umidade_graos_<?echo $i?>" type="text" class="decimal" size="6" value="<?echo $this->dados["amostras"][$i]["vl_umidade_graos"]?>" /></td>
        					<?
        				}
        				?>
        			</tr>
        			<tr>
        				<th>Desconto de Umidade (%)</th>
        				<?
        				for ($i=1;$i<=10;$i++){
        					?>
        						<td><label><?echo $this->dados["amostras"][$i]["vl_desconto_umidade_graos"]?></label></td>
        					<?
        				}
        				?>
        			</tr>
        			<!-- 
        			<tr>
        				<th>Produção bruta em Kg / Hectare</th>
        				<?
        				for ($i=1;$i<=10;$i++){
        					?>
        						<td><label><?echo $this->dados["amostras"][$i]["vl_producao_bruta_kilos_hectare"]?></label></td>
        					<?
        				}
        				?>
        			</tr>
        			<tr>
        				<th>Desconto (%)</th>
        				<?
        				for ($i=1;$i<=10;$i++){
        					?>
        						<td><input id="vl_desconto_<?echo $i?>" name="vl_desconto_<?echo $i?>" type="text" class="decimal" size="6" value="<?echo $this->dados["amostras"][$i]["vl_desconto"]?>" /></td>
        					<?
        				}
        				?>
        			</tr>
        			 -->
        			<tr>
        				<th>Produção líquida em Kg / Hectare</th>
        				<?
        				for ($i=1;$i<=10;$i++){
        					?>
								<td><label><?echo $this->dados["amostras"][$i]["vl_producao_liquida"]?></label></td>
        					<?
        				}
        				?>
        			</tr>
        		</table>
        	</div>	
        	<div id="divAmostragemMaquina">
				<table class="tableAmostras">
        			<tr>
						<th>Largura da Plataforma (m)</th>
        				<td><input id="vl_largura_plataforma" name="vl_largura_plataforma" type="text" class="decimal" size="6" value="<?echo $this->dados["amostras"][1]["vl_largura_plataforma"]?>" /></td>        			
        				<th rowspan="3">Perda de colheita (%)</th>
        				<td rowspan="3"><input id="vl_perda_colheita" name="vl_perda_colheita" type="text" class="decimal" size="6" value="<?echo $this->dados["amostras"][1]["vl_perda_colheita"]?>" /></td>
        				<th rowspan="3">Desconto de Umidade (%)</th>
        				<td rowspan="3"><label><?=$this->dados["amostras"][1]["vl_desconto_umidade_graos"]?></label></td>
        			</tr>
        			<tr>
						<th>Distância Percorrida (m)</th>
        				<td><input id="vl_distancia_percorrida" name="vl_distancia_percorrida" type="text" class="decimal" size="6" value="<?echo $this->dados["amostras"][1]["vl_distancia_percorrida"]?>" /></td>        			
        			</tr>
        			<tr>
        				<th>Área colhida (ha)</th>
        				<td><label><?=$this->dados["amostras"][1]["vl_area_colhida"]?></label>
        				</td>        			
        			</tr>
        			<tr>
						<th>Produção colhida na amostra (Kg)</th>
        				<td><input id="vl_producao_colhida_amostra" name="vl_producao_colhida_amostra" type="text" class="decimal4casas" size="6" value="<?echo $this->dados["amostras"][1]["vl_producao_colhida_amostra"]?>"/></td>
        				<th>Umidade dos Grãos (%)</th>
        				<td><input id="vl_umidade_graos" name="vl_umidade_graos" type="text" class="decimal" size="6" value="<?echo $this->dados["amostras"][1]["vl_umidade_graos"]?>"/></td>
        				<th>Impurezas (%)</th>
        				<td><input id="vl_impurezas" name="vl_impurezas" type="text" class="decimal" size="6" value="<?echo $this->dados["amostras"][1]["vl_impurezas"]?>"/></td>        				        				
        			</tr>
        			<!-- 
        			<tr>
						<td colspan="4"></td>
        				<th>Produção líquida final em Kg / Hectare</th>
        				<td><label><?echo $this->dados["amostras"][1]["vl_producao_liquida"]?></label></td>
        			</tr>
        			 -->
        		</table>
        	</div>
        </fieldset>
        <fieldset>
        	<table class="tableAmostras">
        		<tr>
        			<th>Rendimento Final da Lavoura: (Base de Cáculo para possível indenização - Ton/ha):</th>
        			<td width="10%"><label><?echo $this->dados["vl_rendimento_final_lavoura"]?></label></td>
        		</tr>
        	</table>
        </fieldset>
        
        <fieldset>
        	<table class="tableAmostras" width="100%">
        		<tr bgcolor="yellow">
        			<td colspan="3"> <font color="red"><strong>ATENÇÃO: Os itens abaixo, caso informados, serão analisados pela Seguradora conforme cobertura contratada.</strong></font></td>
        		</tr>
        		<tr>
        			<th>Grãos podres (%)</th>
        			<td width="10%"><input id="vl_graos_podres" name="vl_graos_podres" type="text" class="decimal" size="6" value="<?echo $this->dados["vl_graos_podres"]?>" /></td>
        			<th width="63%">&nbsp;</th>
				</tr>
				<tr>
        			<th>Grãos brotados (%)</th>
        			<td><input id="vl_graos_brotados" name="vl_graos_brotados" type="text" class="decimal" size="6" value="<?echo $this->dados["vl_graos_brotados"]?>" /></td>
        			<th width="63%">&nbsp;</th>
				</tr>
				<tr>					
					<th>Pragas, doenças e outros danos (%)</th>
        			<td width="10%"><input id="vl_pragas_doencas_outros" name="vl_pragas_doencas_outros" type="text" class="decimal" size="6" value="<?echo $this->dados["vl_pragas_doencas_outros"]?>" /></td>
        			<th width="63%">&nbsp;</th>
        		</tr>
        	</table>
        </fieldset>        
        <!-- 
        <fieldset>
        	<legend>Danos não cobertos %</legend>
        	<table class="lineless">
        		<tr>
        			<td>
        				<input type="checkbox" id="fl_danos_nao_cobertos_pragas" name="fl_danos_nao_cobertos_pragas"  <?echo ($this->dados["fl_danos_nao_cobertos_pragas"] ? 'checked="checked"' : '')?> />
        				<span style="margin-right: 20px;">Pragas</span>
        			</td>
        			
        			<td>
        				<input type="checkbox" id="fl_danos_nao_cobertos_doencas" name="fl_danos_nao_cobertos_doencas"  <?echo ($this->dados["fl_danos_nao_cobertos_doencas"] ? 'checked="checked"' : '')?> />
        				<span style="margin-right: 20px;">Doenças</span>
        			</td>
        			
        			<td>
        				<input type="checkbox" id="fl_danos_nao_cobertos_outros" name="fl_danos_nao_cobertos_outros"  <?echo ($this->dados["fl_danos_nao_cobertos_outros"] ? 'checked="checked"' : '')?> />
        				<span style="margin-right: 20px;">Outros</span>
        			</td>
        		</tr>
        		<tr>
        			<td colspan="3">
        				<label for="vl_danos_nao_cobertos">Percentual não coberto</label>
        				<input type="text" class="decimal" id="vl_danos_nao_cobertos" name="vl_danos_nao_cobertos"  value="<?echo $this->dados["vl_danos_nao_cobertos"]?>" />
        			</td>
        		</tr>
        	</table>
        </fieldset>
         -->
        
		<?=$this->LaudoFinalFormInformacoesAdicionais($this->form)?>
		<?=$this->form->buttons?>
	</div>
</form>
