
<div title="Pagamentos" id="divPagto">
	<form class="formPagto" id="formPagto" method="post" action="/sinistro2/liquidacao/savepagamento" enctype="multipart/form-data">
		<input type="hidden" name="id_processo" value="<?=$this->id_processo?>">
		<div class="geral">
			<div class="row">
				<fieldset>
					<legend><strong>Selecione as Liquidações referentes a este Pagamento</strong></legend>
						<br>
						<?foreach ($this->liquidacoes as $key => $liquidacao){ ?>
							<? $checked = (in_array($liquidacao->id, $this->ids_liquidacoes) ? 'checked' : ''); ?>
							<div class="row">
								<input type="radio" <?=$checked;?> name="id_liquidacao[]" value="<?=$liquidacao->id;?>" /> <?=$liquidacao->id;?> - <strong>Valor Estimado de R$ <?=Agro_Util::formatDbCurrency($liquidacao->vl_indenizacao)?> *</strong>
							</div>
							<br/>
						<?}?>
				</fieldset>
			</div>
	
			<fieldset> 
				<legend><strong>Pagamento</strong></legend>
				<?=$this->form->id_comprovante?>
				<div class="padding-10">
					<div class="row">
						<?=$this->form->id?>
				        <?=$this->form->vl_pagamento?>
				        <?=$this->form->dt_confirmacao_pagamento?>
				        <div class="field">
			        		<?=$this->form->comprovante?>
			        	</div>
		        		<? if($this->nome_comprovante): ?>
			        		<a style="vertical-align:-27px" href="/agronet/file/processoarquivo/id/<?=$this->id_comprovante?>" target="blank">
			        			<img src="/resources/imagens/mini/download.png" border="0">
			        			<?=$this->nome_comprovante?>
			        		</a>
			        	<? endif; ?>
					</div>
				</div>
				<ul id="buttons" class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
					<li><button name="salvar" id="salvarPrevisaoPagto" type="submit">Salvar</button></li>
				</ul>
	
			</fieldset>
		</div>
	</form>
</div>
