<? if (!$this->error): ?>
	<? if(count($this->paginator)): ?>
		<table class='grid' cellspacing='1' cellpadding='0' border='0' id='tablePagination'>
			<thead>
				<tr>
					<th nowrap="nowrap">Banco</th>
					<th nowrap="nowrap">Tipo de Conta</th>
					<th nowrap="nowrap">Agência</th>
					<th nowrap="nowrap">Dígito</th>
					<th nowrap="nowrap">Conta</th>
					<th nowrap="nowrap">Dígito</th>
					<th nowrap="nowrap" width="5%">Ações</th>
				</tr>
			</thead>
			<tbody>
				<?
				$i = 0;
				foreach ($this->paginator as $item):
					if ($i % 2 == 0) {
						$class = '';
					} else {
						$class = "highlight";
					}
					
					$item['ds_tipo_conta'] = ($item['ds_tipo_conta'] == 'C' ? 'Conta Corrente' : 'Conta Poupança');
					
					?>
					<tr class="<?=$class?>">
						<td nowrap='nowrap'><?=($item['ds_nome_banco'] ? $item['ds_nome_banco'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap' align="center"><?=($item['ds_tipo_conta'] ? $item['ds_tipo_conta'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap' align="right"><?=($item['ds_agencia'] ? $item['ds_agencia'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap' align="right"><?=($item['nu_digito_agencia'] ? $item['nu_digito_agencia'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap' align="right"><?=($item['ds_conta'] ? $item['ds_conta'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap' align="right"><?=($item['nu_digito_conta'] ? $item['nu_digito_conta'] : '&nbsp;'); ?></td>
						<td align='center' width='1%' nowrap='nowrap'>
							<a href="/sistema/informacaobancaria/form/id/<?=$item['id']?>" class="showFormInformacaoBancaria"><img src="/resources/imagens/mini/edit.png" border="0" alt="edit.png" title="Editar Registro" /></a>
							<a href="/sistema/informacaobancaria/delete/id/<?=$item['id']?>" class="icon_delete"><img src="/resources/imagens/mini/delete.png" border="0" alt="delete.png" title="Remover Registro" /></a>
						</td>
					</tr>
					<?
					$i++;
				endforeach;
				?>
			</tbody>
		</table>
	<? endif; ?>
<? else: ?>
	<?= $this->showListError($this->error); ?>
<? endif; ?>