<? if (!$this->error): ?>
	<? if(count($this->paginator)): ?>
		<table class='grid' cellspacing='1' cellpadding='0' border='0' id='tablePagination'>
			<thead>
				<tr>
					<th nowrap="nowrap">Nome</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";
					}
					
					$imgActive = ($item['fl_ativo'] ? 'active.png' : 'inactive.png');
					
					?>
					<tr class="<?=$class?>">
						<td nowrap='nowrap'><?=($item['ds_tipo_produto'] ? $item['ds_tipo_produto'] : '&nbsp;'); ?></td>
						<td align='center' width='1%' nowrap='nowrap'>
							<?=$this->iconEdit("produto", "tipo", $item)?>
							<?=$this->iconActive("produto", "tipo", $item)?>
							<?=$this->iconDelete("produto", "tipo", $item)?>
						</td>
					</tr>
					<?
					$i++;
				endforeach;
				?>
			</tbody>
		</table>
		
		<?=$this->paginationControl($this->paginator, 'Sliding'); ?>
	<? endif; ?>
<? else: ?>
	<?= $this->showListError($this->error); ?>
<? endif; ?>