<fieldset>
    <legend><b>Histórico de Envio</b></legend>
    <table class='grid' cellspacing='0' cellpadding='5' border='0' id='tablePagination'>
        <?php
        $options = array(
            array(
                'id' => 'dt_criacao',
                'descricao' => 'Data',
            ),
            array(
                'id' => 'ds_tipo_envio',
                'descricao' => 'Tipo de Envio',
            ),
            array(
                'id' => 'ds_email_segurado',
                'descricao' => 'E-mail',
            ),
            array(
                'id' => 'ds_telefone_segurado',
                'descricao' => 'Telefone',
            ),
            array(
                'id' => 'ds_mensagem',
                'descricao' => 'Observação',
            )
        );
        ?>
        <?= $this->listHeader($options, $this->order, $this->orderType); ?>
        <tbody>
            <?php
            $i = 0;
            foreach ($this->historicoEnvios as $item) :
                $class = (($i % 2 == 0) ? "" : "highlight");
            ?>
                <tr class="<?= $class ?>">
                    <td style="text-align: center; width: 15%;"><?= Agro_Util::formatDate($item['dt_criacao'], Zend_Date::DATETIME) ?></td>
                    <td style="text-align: center; width: 10%;"><?= $this->escape(($item['ds_tipo_envio'] ? $item['ds_tipo_envio'] : '')) ?></td>
                    <td style="text-align: center; width: 10%;"><?= $this->escape(($item['ds_email_segurado'] ? $item['ds_email_segurado'] : '')) ?></td>
                    <td style="text-align: center; width: 25%;"><?= $this->escape(($item['ds_telefone_segurado'] ? $item['ds_telefone_segurado'] : '')) ?></td>
                    <td style="width: 40%;"><?= ($item['ds_mensagem'] ? $item['ds_mensagem'] : '') ?></td>
                </tr>
            <?php
                $i++;
            endforeach;
            ?>
        </tbody>
    </table>
</fieldset>
