<?php if (!$this->error): ?>
    <?php if (count($this->paginator)): ?>
        <table class='grid' cellspacing='1' cellpadding='0' border='0' id='tablePagination'>
            <?php
                $options = array(
                    array(
                        'id'        => 'ds_car',
                        'nowrap'    => 'nowrap',
                        'link'      => '#',
                        'descricao' => 'Número Propriedade (CAR)',
                        'image'     => '/resources/imagens/'
                    ),
                    array(
                        'nowrap'    => 'nowrap',
                        'descricao' => 'Ações'
                    )
                );
            ?>

            <?php echo $this->listHeader($options, $this->order, $this->orderType); ?>

            <tbody>
                <?php
                    $i = 0;
                    foreach ($this->paginator as $row):
                        if ($i % 2 == 0) {
                            $class = '';
                        } else {
                            $class = "highlight";
                        }
                        
                ?>
                        <tr class="<?php echo $class ?>">
                            <td nowrap='nowrap' align="center"><?php echo $row['ds_car']; ?></td>

                            <td align='center' width='1%' nowrap='nowrap'>
                                <?php echo $this->iconEdit("seguro", "propriedadecarrestricao", $row)?>
                                <?php echo $this->iconActive("seguro", "propriedadecarrestricao", $row)?>
                                <?php echo $this->iconDelete("seguro", "propriedadecarrestricao", $row)?>
                            </td>
                        </tr>
                        <?
                    endforeach;
                ?>
            </tbody>
        </table>

        <?php echo $this->paginationControl($this->paginator, 'Sliding'); ?>
    <? endif; ?>
<? else: ?>
    <?php echo $this->showListError($this->error); ?>
<? endif; ?>