Import initial du projet Production

This commit is contained in:
KANE LAZENI
2025-12-01 16:12:12 +00:00
commit 2f364ab2fc
14257 changed files with 3395325 additions and 0 deletions

72
Cron/Statistique.php Executable file
View File

@@ -0,0 +1,72 @@
<?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);
}
}