<? if (!$this->error): ?>
    <? if (count($this->paginator)): ?>
        <table class='grid' cellspacing='1' cellpadding='0' border='0' id='tablePagination'>
            <thead>
                <tr>
                    <th nowrap="nowrap">Processo</th>
                    <th nowrap="nowrap">Proposta</th>
                    <th nowrap="nowrap">Nome Segurado</th>
                    <th nowrap="nowrap">Ações</th>
                </tr>
            </thead>
            <tbody>
                <?php
                $i = 0;
                foreach ($this->paginator as $item):
                    if ($i % 2 == 0) {
                        $class = '';
                    } else {
                        $class = 'highlight';
                    }

                    ?>
                    <tr class="<?=$class?>">
                        <td align='center' nowrap><?=($item['id'] ? $item['id'] : '&nbsp;')?></td>
                        <td align='center' nowrap><?=($item['id_proposta_mae'] ? $item['id_proposta_mae'] : '&nbsp;')?></td>
                        <td nowrap><?=($item['ds_nome_proponente'] ? $item['ds_nome_proponente'] : '&nbsp;')?></td>
                        <td align='center' width='1%' nowrap>
                            <a href="/sinistro2/avisofinalreplantio/form/proposta/<?=$item['id_proposta']?>/processo/<?=$item['id']?>">
                                <img src="/resources/imagens/mini/aviso_final_replantio.png" alt='envio_aviso_sinistro.png' title='Enviar Aviso de Final de Replantio' border='0'>
                            </a>
                        </td>
                    </tr>
                    <?php
                    $i++;
                endforeach;
                ?>
            </tbody>
        </table>
        <?=$this->paginationControl($this->paginator, 'Sliding')?>
    <? endif; ?>
<? else: ?>
    <?=$this->showListError($this->error)?>
<? endif; ?>