<? if (!$this->error): ?>
	<? if(count($this->paginator)): ?>
		<table class='grid' cellspacing='1' cellpadding='0' border='0' id='tablePagination'>
			<thead>
				<tr>
					<th nowrap="nowrap">Processo</th>
					<th nowrap="nowrap">Status</th>
					<th nowrap="nowrap">Proposta</th>
					<th nowrap="nowrap">Empresa Vistoriadora</th>
					<th nowrap="nowrap">Segurado</th>
					<th nowrap="nowrap">Produto</th>
					<th nowrap="nowrap">Ações</th>
				</tr>
			</thead>
			<tbody>
				<?
				$i = 0;
				foreach ($this->paginator as $item):
					if ($i % 2 == 0) {
						$class = '';
					} else {
						$class = "highlight";
					}
					
					?>
					<tr class="<?=$class?>">
						<td nowrap='nowrap' align="center"><?=($item['id'] ? $item['id'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap'><?=($item['ds_status'] ? $item['ds_status'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap' align="center"><?=($item['id_proposta'] ? $item['id_proposta'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap'><?=($item['ds_empresa_vistoriadora'] ? $item['ds_empresa_vistoriadora'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap'><?=($item['ds_nome_proponente'] ? $item['ds_nome_proponente'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap'><?=($item['ds_nome_produto'] ? $item['ds_nome_produto'] : '&nbsp;'); ?></td>
						<td align='center' width='1%' nowrap='nowrap'>
							<a href="/sinistro2/transferirprocesso/getvistoriaspendentes/id/<?=$item['id']?>/id_empresa/<?=$item['id_empresa']?>" class="icon_transferir_processo"><img src="/resources/imagens/mini/view.png" alt="view.png" title="Visualizar" border="0"></a>
						</td>
					</tr>
					<?
					$i++;
				endforeach;
				?>
			</tbody>
		</table>
		
		<?=$this->paginationControl($this->paginator, 'Sliding'); ?>
	<? endif; ?>
<? else: ?>
	<?= $this->showListError($this->error); ?>
<? endif; ?>
