<? if (!$this->error): ?>
	<? if(count($this->paginator)): ?>
		<table class='grid' cellspacing='1' cellpadding='0' border='0' id='tablePagination'>
			<thead>
				<tr>
					<th nowrap="nowrap">Atributo</th>
					<th nowrap="nowrap">Atributo Proposta</th>
					<th nowrap="nowrap">Pertence a folha</th>
					<th nowrap="nowrap">Ordem</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'><?=($item['ds_descricao_atributo'] ? $item['ds_descricao_atributo'] : '&nbsp;'); ?></td>
						<td nowrap='nowrap'><?=($item['ds_descricao_atributo_proposta'] ? $item['ds_descricao_atributo_proposta'] : '&nbsp;'); ?></td>
						
						<td nowrap='nowrap' align="center" width='1%'>
							<img src="/resources/imagens/<?=($item['fl_pertence_folha'] ? '1' : '0')?>.gif" border="0" alt="<?=($item['fl_pertence_folha'] ? '1' : '0')?>.png" title="Pertence a folha" style="cursor:pointer" />
						</td>
						
						<td nowrap='nowrap' align="center">
							<a href="/sistema/modelopreviagruposatributos/ordena/id/<?=$item['id']?>/order/down" class="ordena"><img src="/resources/imagens/down.png" border="0" /></a>
							<a href="/sistema/modelopreviagruposatributos/ordena/id/<?=$item['id']?>/order/up" class="ordena"><img src="/resources/imagens/up.png" border="0" /></a>
						</td>
						
						<td align='center' width='1%' nowrap='nowrap'>
							<a class="icon_delete" href="/sistema/modelopreviagruposatributos/delete/id/<?=$item['id']?>">
								<img src="/resources/imagens/mini/delete.png" border="0" alt="delete.png" title="Excluir Registro" style="cursor:pointer" />
							</a>
						</td>
					</tr>
					<?
					$i++;
				endforeach;
				?>
			</tbody>
		</table>
	<? endif; ?>
<? else: ?>
	<?= $this->showListError($this->error); ?>
<? endif; ?>