<? if (!$this->error): ?>
	<? if(count($this->paginator)): ?>
		<table class='grid' cellspacing='1' cellpadding='0' border='0' id='tablePagination'>
		<?
			$options = array(array('id'        => 'id_produto',
								   'nowrap'    => 'nowrap',
								   'link'      => '#',
								   'descricao' => 'Produto',
								   'align'     => 'center',
								   'image'     => '/resources/imagens/'),
							 array('id'        => 'id_cobertura',
								   'nowrap'    => 'nowrap',
								   'link'      => '#',
							 	   'descricao' => 'Cobertura',
								   'align'     => 'center',
								   'image'     => '/resources/imagens/'),
							 array('id'        => 'ds_controller',
								   'nowrap'    => 'nowrap',
								   'link'      => '#',
							 	   'descricao' => 'Controller',
								   'align'     => 'center',
								   'image'     => '/resources/imagens/'),
							 array('nowrap'    => 'nowrap',
							       'descricao' => 'Ações',
								   'width'     => '1%'));				
		?>
			<?=$this->listHeader($options, $this->order, $this->orderType);?>
				
			<tbody>
				<?
				$i = 0;
				foreach ($this->paginator as $item):
					if ($i % 2 == 0) {
						$class = '';
					} else {
						$class = "highlight";
					}
					
					$imgActive = ($item['fl_ativo'] ? 'active.png' : 'inactive.png');
					
					?>
					<tr class="<?=$class?>">
						<td nowrap='nowrap' align="left"><?=($item['ds_nome_produto'] ? $item['ds_nome_produto'] : '&nbsp;'); ?></td>
						<td align="left" nowrap='nowrap' align="left"><?=($item['ds_nome_cobertura'] ? $item['ds_nome_cobertura'] : '&nbsp;'); ?></td>
						<td align="left" nowrap='nowrap' align="left"><?=($item['ds_controller'] ? $item['ds_controller'] : '&nbsp;'); ?></td>
						<td align='center' width='1%' nowrap='nowrap'>
							<a href="/produto/laudofinal/form/id/<?=$item['id_produto']?>,<?=$item['id_cobertura']?>">
								<img src="/resources/imagens/mini/edit.png" alt="edit.png" title="Editar" border="0">
							</a>
							<a href="/produto/laudofinal/remove/id/<?=$item['id_produto']?>,<?=$item['id_cobertura']?>" class="delete">
								<img src="/resources/imagens/mini/delete.png" alt="delete.png" title="Excluir" border="0">
							</a>
						</td>
					</tr>
					<?
					$i++;
				endforeach;
				?>
			</tbody>
		</table>
		
		<?=$this->paginationControl($this->paginator, 'Sliding'); ?>
	<? endif; ?>
<? else: ?>
	<?= $this->showListError($this->error); ?>
<? endif; ?>
