<? if (!$this->error): ?>
    <? if(count($this->historicos)): ?>

        <table class="grid_gray" border="0" cellpadding="1" cellspacing="1" width='100%'>
            <thead>
                <tr>
                    <th id="ds_doc" align="center" nowrap="nowrap">Data</th>
                    <th id="ds_nome_proponente" align="center" nowrap="nowrap">Status</th>
                    <th id="ds_nome_produto" align="center" nowrap="nowrap">Usuário</th>
                    <th id="ds_nome_produto" nowrap="nowrap">Observação</th>
                </tr>
            </thead>
            <tbody>
                <?
                    $class = array("highlight", " ");
                    foreach($this->historicos as $historico):?>
                        <tr class="<?= $class[0]; ?>">
                            <td align="center"><?= Agro_Util::formatDate($historico['dt_criacao'], Zend_Date::DATES). ' ' .Agro_Util::formatDate($historico['dt_criacao'], Zend_Date::TIME_SHORT); ?></td>
                            <td align="center"><?= $historico['ds_status']; ?></td>
                            <td align="center"><?= $historico['ds_nome_usuario']; ?></td>
                            <td><?= $historico['ds_observacao']; ?></td>
                        </tr>
                <?
                        $class = array_reverse($class);
                    endforeach;
                ?>
            </tbody>
        </table>

    <? endif; ?>
<? endif; ?>
