37 lines
1.1 KiB
PHP
Executable File
37 lines
1.1 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Statistique.php';
|
|
|
|
class ControleurAjaxetatrapportspadherentperiode extends Controleur
|
|
{
|
|
public function __construct() {
|
|
$this->rapportsp = new Statistique();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$primeAnalyseTotal = "0";
|
|
$montantApayerTotal = "0";
|
|
$rapportSpTotal = "0";
|
|
|
|
$debutStat = $this->requete->getParametreDate("debutStat");
|
|
$finStat = $this->requete->getParametreDate("finStat");
|
|
|
|
$_SESSION['debutStat'] = $debutStat;
|
|
$_SESSION['finStat'] = $finStat;
|
|
|
|
|
|
$rapportsps = $this->rapportsp->etatrapportspadherentperiode($debutStat, $finStat) ;
|
|
|
|
|
|
if(count($rapportsps)>"0")
|
|
{
|
|
$primeAnalyseTotal = $rapportsps['0']['primeAnalyseTotal'];
|
|
$montantApayerTotal = $rapportsps['0']['montantApayerTotal'];
|
|
$rapportSpTotal = $rapportsps['0']['rapportSpTotal'];
|
|
}
|
|
$this->genererVueAjax(array('rapportsps' => $rapportsps, 'primeAnalyseTotal' => $primeAnalyseTotal,
|
|
'montantApayerTotal' => $montantApayerTotal, 'rapportSpTotal' => $rapportSpTotal));
|
|
}
|
|
|
|
} |