72 lines
1.8 KiB
PHP
Executable File
72 lines
1.8 KiB
PHP
Executable File
<?php
|
|
require_once 'Modele.php';
|
|
|
|
class Statistique extends Modele {
|
|
|
|
public function initstat()
|
|
{
|
|
$sql = 'call sp_init_stat_archive_jour();';
|
|
|
|
$this->executerRequete($sql);
|
|
}
|
|
|
|
public function listepolicerapportspmail()
|
|
{
|
|
$sql = 'call sp_s_liste_police_rapportsp_mail()';
|
|
|
|
$resultat = $this->executerRequete($sql);
|
|
|
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function detailrapportsppdf($idPolice, $dateAnalyse)
|
|
{
|
|
$sql = 'call sp_rapport_sp_police_adherent_pdf(?, ?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idPolice, $dateAnalyse));
|
|
|
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function detailrapportsppdfentete($idPolice, $dateAnalyse)
|
|
{
|
|
$sql = 'call sp_rapport_sp_police_adherent_pdf_entete(?, ?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idPolice, $dateAnalyse));
|
|
|
|
return $resultat->fetch(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
// 06-07-2021
|
|
public function etatrapportspadherentperiode($debutStat, $finStat)
|
|
{
|
|
|
|
$sql = 'call sp_s_rapportsp_adherent_periode(?, ?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($debutStat, $finStat));
|
|
|
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function detailrapportspadhperiodepdfentete($idAdherent, $debutStat, $finStat)
|
|
{
|
|
$sql = 'call sp_rapport_sp_adherent_periode_pdf_entete(?, ?, ?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idAdherent, $debutStat, $finStat));
|
|
|
|
return $resultat->fetch(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
public function detailrapportspadhperiodefacturepdf($idAdherent, $debutStat, $finStat)
|
|
{
|
|
|
|
$sql = 'call sp_rapport_sp_adherent_periode_facture_pdf(?, ?, ?)';
|
|
|
|
$resultat = $this->executerRequete($sql, array($idAdherent, $debutStat, $finStat));
|
|
|
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
|
}
|
|
|
|
|
|
|
|
} |