<?php require_once 'controle/Despesas.php'; $despesa = new ControleDespesas(); $despesa->acaoDespesas(@$_REQUEST['acao']); ?> <legend>Despesas</legend> <table class="table table-striped"> <tr> <th>Codigo</th> <th>Nome</th> <th>Data</th> <th>Fornecedor</th> <th>Valor</th> <th>Opções</th> </tr> <?php foreach ($despesa->despesas as $lista) { ?> <tr> <td width="20"><?php echo $lista->getId(); ?> </td> <td><?php echo $lista->getDescricao(); ?> </td> <td><?php echo $lista->getData_despesa(); ?>