?> </h3></div> <?php for ($i = 1; $i < 12; ++$i) { $row = getStatResa($i, $year, $epn); $_SESSION['stat_hour'][$i] = $row['nb']; $_SESSION['stat_resa'][$i] = $row['duree']; } ?> <div class="box-body"> <table class="table" > <thead><tr><th></th><th>Nb. d'heures</th><th>Nb. </th><th>Cumul.</th></tr></thead><tbody> <?php for ($i = 1; $i <= abs($month); ++$i) { $row = getStatResa($i, $year, $epn); $tot1 = $tot1 + $row['duree']; $tot2 = $tot2 + $row['nb']; echo '<tr><td align="right"><a href="index.php?a=5&b=2&month=' . $i . '&year=' . $year . '">' . getMonth($i) . '</a></td> <td>' . getTime($row['duree']) . '</td> <td>' . $row['nb'] . '</td> <td>' . getTime($tot1) . '(' . $tot2 . ')</td></tr>'; } ?> </tbody></table> </div></div> </div><!-- /col-->
<?php } } //***** FIN Fonctions administrateur MAJ + Backup *****/// //debug($_session["idepn"]); ?> </div> <!-- Info boxes Statistiques--> <div class="row"> <div class="col-md-3 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-aqua" style="padding-top:18px"><i class="ion ion-ios-time"></i></span> <div class="info-box-content"> <?php $rowresastatmois = getStatResa(date('m'), date('Y'), $_SESSION["idepn"]); $resamois = $rowresastatmois["nb"]; $datehier = date('Y-m') . "-" . (date('d') - 1); $rowresahier = getStatResaByDay($datehier, $_SESSION["idepn"]); $resahier = $rowresahier["nb"] . " (" . getTime($rowresahier["duree"]) . ")"; ?> <span class="info-box-text">Réservations</span> <span class="info-box-number"><?php echo $resahier; ?> <small> hier</small><br><?php echo $resamois; ?> <small> ce mois</small></span> </div><!-- /.info-box-content -->