<?php 
$nb_jour = date("t", mktime(0, 0, 0, $month, 1, $year));
//$nb_jour=date('j');
//insertion du graph libchart
$chart3 = new VerticalBarChart(900, 300);
$dataSet3 = new XYDataSet();
?>
<div class="box box-primary">
          <div class="box-header"><i class="fa fa-bar-chart-o"></i><h3 class="box-title">Nombre d'heures de r&eacute;servation par jour pour le mois de <?php 
echo getMonth($month);
?>
  </h3></div>
<div class="box-body">
           <?php 
for ($i = 1; $i <= $nb_jour; ++$i) {
    $result = getStatResaByDay($year . '-' . $month . '-' . $i, $epn);
    //debug($result['duree']);
    $dataSet3->addPoint(new Point($i, $result['duree']));
    $maxBound[$i] = $result['duree'];
}
$maxValue = ceil(max($maxBound) / 60);
$chart3->setDataSet($dataSet3);
$chart3->setTitle("Detail des heures pour " . getMonth($month) . " " . $year . " ");
$chart3->getPlot()->getPalette()->setBarColor(array(new Color(128, 195, 28)));
$chart3->getPlot()->setLabelGenerator(new TimeLabelGenerator());
// arrondir la valeur maximale supérieure
$chart3->getBound()->setUpperBound($maxValue * 60);
//  $chart3->getTics()->quantizeTics(12);
$chart3->render("img/chart/" . $year . "/" . $namepn . "_resa-Mensuelle-" . $month . ".png");
?>
   <!-- rendu du graphique sous forme d'image-->      
Ejemplo n.º 2
0
    //***** 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 -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->
            <div class="col-md-3 col-sm-6 col-xs-12">