<?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(); ?>
<?php require_once 'controle/Despesas.php'; $despesa = new ControleDespesas(); $despesa->acaoDespesas(@$_REQUEST['acao']); ?> <form class="form-horizontal" action="index.php" method="post"> <fieldset> <legend>Incluir Despesa</legend> </fieldset> <div class="control-group"> <label class="control-label">Despesa Referente a:</label> <div class="controls"> <input type="text" name="descricao" size="50"> </div> </div> <div class="control-group"> <label class="control-label">Fornecedor:</label> <div class="controls"> <select name="fornecedor_id"> <option value="">Selecione</option> <?php foreach ($despesa->fornecedores() as $value) { ?> <option value="<?php echo $value->getId(); ?> "><?php echo $value->getNome(); ?>