<table class='grid' cellspacing='1' cellpadding='0' border='0' id='tablePagination'>
	<thead>
		<tr>
			<th width="10%" nowrap="nowrap">Processo</th>
            <th width="10%" nowrap="nowrap">Processo Seguradora</th>
			<th width="10%" nowrap="nowrap">Proposta</th>
			<th nowrap="nowrap">Segurado</th>
			<th nowrap="nowrap">Produto</th>
			<th width="1%" nowrap="nowrap">Ações</th>
		</tr>
	</thead>
	<tbody>
		<? if ($this->paginator->count()): ?>
			<? foreach ($this->paginator as $Item): ?>
			
				<? $id_proposta_exibicao = ($Item['nr_endosso'] > 0) ? $Item['id_proposta_mae'] : $Item['id_proposta']; ?>
				<tr>
					<td align="center"><? echo $Item->id; ?></td>
                    <td align="center"><? echo $Item->id_processo_seguradora; ?></td>
					<td align="center"><? echo $id_proposta_exibicao; ?></td>
					<td><? echo $Item->ds_nome_proponente; ?></td>
					<td><? echo $Item->ds_nome_produto; ?></td>
					<td align="center" nowrap="nowrap">
						<a class="icon_view_processo" href="/nobre/processo/view/id/<? echo $Item->id; ?>"><img src="/resources/imagens/mini/view.png" alt="view.png" title="Visualizar" border="0"></a>
						<a class="showListChamados" href="/atendimento/chamado/list/id_proposta/<? echo $Item->id_proposta; ?>">
							<img src="/resources/imagens/mini/chamados.png" alt="Visualizar Chamados" title="Visualizar Chamados" border="0">
						</a>
					</td>
				</tr>
			<? endforeach; ?>
		<? else: ?>
			<tr>
				<td colspan="5" align="center">Nenhum processo encontrado.</td>
			</tr>
		<? endif; ?>
	</tbody>
</table>

<?=$this->paginationControl($this->paginator, 'Sliding'); ?>