<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php include 'Controller/FundoFixoController.class.php'; $fixo = new FundoFixoController(); $fixo->getId($id); var_dump($fixo); ?> </body> </html>
$numViagem = new ViagemController(); $qntViagem = $numViagem->countReg(); echo $qntViagem; ?> </div> <h3>Viagem</h3> </div> </div> <div class="animated flipInY col-lg-4 col-md-3 col-sm-6 col-xs-12"> <div class="tile-stats"> <div class="icon"><i class="fa fa-ambulance"></i> </div> <div class="count"> <?php $numFixo = new FundoFixoController(); $qntFixo = $numFixo->countReg(); echo $qntFixo; ?> </div> <h3>Fundo fixo</h3> </div> </div> <div class="animated flipInY col-lg-4 col-md-3 col-sm-6 col-xs-12"> <div class="tile-stats"> <div class="icon"><i class="fa fa-sort-amount-desc"></i> </div> <div class="count"> <?php $numOutras = new OutrasSolicitacoesController();
</div> <div class="ln_solid"></div> <div class="form-group"> <div class="col-md-6 col-md-offset-3"> <button id="send" type="submit" class="btn btn-success" onclick="Buscar(this)">Pesquisar</button> </div> </div> </form> <div class="x_content"> <canvas id="canvas_bar"></canvas> </div> </div> <script> <?php $reportFixo = new FundoFixoController(); $where = $_POST["departamento"]; $row = $reportFixo->reportFundoFixo("presidencia"); ?> var dData = function () { return <?php echo $row; ?> ; // return Math.round(Math.random() * 90) + 10 }; var barChartData = { labels: ["Viagem", "Fundo Fixo", "Outras"], datasets: [ { fillColor: "#26B99A", //rgba(220,220,220,0.5)
case "Fundo fixo": echo '<table class="table table-striped responsive-utilities jambo_table"> <thead> <tr> <th>Empresa</th> <th>Colaborador</th> <th>Centro de Custo</th> <th>Data Solicitação</th> <th>Valor</th> </tr> </thead> <tbody> '; ?> <?php $fundoFixo = new FundoFixoController(); $arrayFixo = $fundoFixo->listar(); foreach ($arrayFixo as $key => $fixo) { echo '<tr> <td>' . $fixo['empresa'] . '</td> <td>' . $fixo['colaborador'] . '</td> <td>' . $fixo['departamento'] . '</td> <td>' . $fixo['data_solicitacao'] . '</td> <td>' . $fixo['valor'] . '</td> </tr>'; } echo '</tbody> </table>'; break; case "Outras": echo '<table class="table table-striped responsive-utilities jambo_table">