Import initial du projet Production
This commit is contained in:
29
Controleur/ControleurAjaxborderaufacturation.php
Normal file
29
Controleur/ControleurAjaxborderaufacturation.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Statistique.php';
|
||||
|
||||
class ControleurAjaxborderaufacturation extends Controleur
|
||||
{
|
||||
private $etat;
|
||||
|
||||
public function __construct() {
|
||||
$this->etat = new Statistique();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$debutPeriode = $this->requete->getParametreDate("debutPeriode");
|
||||
$finPeriode = $this->requete->getParametreDate("finPeriode");
|
||||
|
||||
$donnees = $this->etat->etatfactparemission($debutPeriode, $finPeriode) ;
|
||||
|
||||
$donnees_total = null;
|
||||
|
||||
if(count($donnees)>"0")
|
||||
{
|
||||
$donnees_total = $donnees['0'];
|
||||
}
|
||||
|
||||
$this->genererVueAjax(array('donnees' => $donnees, 'donnees_total' => $donnees_total));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user