<?php require_once './ControladorCp.php';?> <?php $controlador = new ControladorCp(); $data = new Data(); $Cod = $_POST["POST_COD"]; $Historico = $controlador->ListarHistoricoPagamento($Cod); $NumChegue = $Historico[0]->getNumCheque() > 0 ? "<span class='label label-primary'>Cheque:</span>" . $Historico[0]->getNumCheque() : ""; $Html = "<h6 class='text-info'><span class='label label-success'>Categoria:</span>" . $Historico[0]->getNomeCategoria() . "</h6>"; $Html .= " <h6 class='text-info'><span class='label label-primary'>Conta:</span>" . $Historico[0]->getConta() . "<span class='label label-primary'>F.Pagamento:</span> " . $Historico[0]->getFormaPagamento() . " <span class='label label-primary'>NF:</span> " . $Historico[0]->getNumeroNF() . $NumChegue . "</h6> <table border='1' class='tabela table-hover table-responsive'> <thead> <tr> <th align='center'>Status</th> <th align='center'>Alteração</th> <th align='center'>Pagamento</th> <th align='center'>Cancelamento PG</th> <th align='center'>Valor</th> <th align='center'>Vencimento</th> <th align='center'>Acréscimo</th> <th align='center'>Desconto</th> </tr> </thead> <tbody>"; foreach ($Historico as $his){ $Html .= "<tr> <td align='center'>" . $his->getNomeStatusLancamentoCp2() . "</td> <td align='center'>" . $data->ConvertDataBrasileiraHorario($his->getDataAlteracaoCp2()) . " - " . $his->getNomeUsuarioAlterouCp2() . "</td> <td align='center'>" . $data->ConvertDataBrasileira($his->getDataPagamentoConta()) . " - " . $his->getNomeUsuarioBaixa() . "</td>