31 lines
987 B
PHP
Executable File
31 lines
987 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Statistique.php';
|
|
|
|
class ControleurAjaxetatrapportspexercice extends Controleur
|
|
{
|
|
public function __construct() {
|
|
$this->rapportsp = new Statistique();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$primeAnnuelleTotal = "0";
|
|
$primeAcquiseTotal = "0";
|
|
$sinistresTotal = "0";
|
|
$rapportSpTotal = "0";
|
|
|
|
$rapportsps = $this->rapportsp->etatrapportspexercice() ;
|
|
|
|
if(count($rapportsps)>"0")
|
|
{
|
|
$primeAnnuelleTotal = $rapportsps['0']['primeAnnuelleTotal'];
|
|
$primeAcquiseTotal = $rapportsps['0']['primeAcquiseTotal'];
|
|
$sinistresTotal = $rapportsps['0']['sinistresTotal'];
|
|
$rapportSpTotal = $rapportsps['0']['rapportSpTotal'];
|
|
}
|
|
$this->genererVueAjax(array('rapportsps' => $rapportsps, 'primeAnnuelleTotal' => $primeAnnuelleTotal, 'primeAcquiseTotal' => $primeAcquiseTotal,
|
|
'sinistresTotal' => $sinistresTotal, 'rapportSpTotal' => $rapportSpTotal));
|
|
}
|
|
|
|
} |