<? if (!$this->error): ?>
	<? if (count($this->paginator)): ?>
		<table class='grid' cellspacing='1' cellpadding='0' border='0' id='tablePagination'>
			<thead>
				<tr>
					<th nowrap='nowrap'>Id</th>
					<th nowrap='nowrap'>Problemas</th>
					<th nowrap='nowrap'>Proposta</th>
					<th nowrap='nowrap'>Orientação</th>
					<th>Relato</th>
					<th nowrap='nowrap'>Agrônomo</th>
					<th nowrap='nowrap'>Vistoriador</th>
					<th nowrap='nowrap'>Corretor</th>
					<th nowrap='nowrap'>Ações</th>
				</tr>
			</thead>
			<tbody>
				<?
				$i=0;
				foreach($this->paginator as $restricao):
					$class = $i % 2 == 0 ? '' : 'highlight';?>
					<tr class='<?=$class?>'>
						<td align='center'><?=$restricao['id']?></td>
						<td width='20%'><?=$restricao['restricoes']?></td>
						<td align='center'><?=$restricao['ids_proposta']?></td>
						<td align='center'><?=$restricao['ds_orientacao']?></td>
						<td width='20%'><?=$restricao['ds_descricao']?></td>
						<td nowrap='nowrap'><?=$restricao['ds_nome_agronomo']?></td>
						<td nowrap='nowrap'><?=$restricao['ds_nome_perito']?></td>
						<td nowrap='nowrap'><?=$restricao['ds_nome_corretor']?></td>
						<td width='1%' nowrap='nowrap'>
							<img src='/resources/imagens/mini/edit.png' border='0' alt='edit.png' title='Editar' onClick='$.editRestricao(<?=$restricao['id']?>)' style='cursor: pointer' />
							<img src='/resources/imagens/mini/delete.png' border='0' alt='delete.png' title='Remover' onClick='$.deleteRestricao(<?=$restricao['id']?>)' style='cursor: pointer' />
							<img src="/resources/imagens/mini/add_att_20x20.png" border="0" alt="Mais informações" title="Mais informações" onClick='$.showHistorico(<?=$restricao['id']?>)'>
						</td>
					</tr>
					<?
					$i++;
				endforeach;?>
			</tbody>
		</table>
	<? endif; ?>
<? else: ?>
	<?=$this->showListError($this->error);?>
<? endif; ?>