This commit is contained in:
KANE LAZENI 2026-01-05 01:14:47 +00:00
parent c513ac2e6b
commit 8471f8582b
4 changed files with 114 additions and 1 deletions

View File

@ -0,0 +1,25 @@
<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurSpadherent extends Controleur {
private $spadherent;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue("Spadherent");
$this->spadherent = new Adherent();
}
public function index() {
$idAdherent = $_SESSION['idAdherent_C'];
$dj = date("Y-m-d");
$spadherent = $this->spadherent->getRapportSpAdherent($idAdherent, $dj);
$this->genererVue(array('spadherent' => $spadherent));
}
}

View File

@ -3167,3 +3167,8 @@ function changer_etat_adherent()
window.location.assign($("#racineWeb" ).val()+"Changeretatadherent/");
}
function rapport_sp_adherent()
{
window.location.assign($("#racineWeb" ).val()+"Spadherent/");
}

83
Vue/Spadherent/index.php Normal file
View File

@ -0,0 +1,83 @@
<?php
$this->titre = "INTER-SANTE - Rapport S/P Famille";
$adherentRetire = $spadherent['adherentRetire'];
$dateSortieAdherent = $spadherent['dateSortieAdherent'];
?>
<legend><?= _("Rapport S / P de la famille") . " : " .$this->nettoyer($spadherent['adherent'])." ( ".$this->nettoyer($spadherent['numeroAdherent'])." ) " ?> </legend>
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
<thead>
<tr>
<th width="20%" style='text-align:center'> <?= _("Date Effet Police") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Date Echéance Police") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Durée Police") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Ratio acquise police") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Durée Contrat") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td> <?= dateLang($this->nettoyer($spadherent['dateEffet'])) ?> </td>
<td> <?= dateLang($this->nettoyer($spadherent['dateEcheance'])) ?> </td>
<td> <?= $this->nettoyer($spadherent['duree_acquise']) ?> </td>
<td> <?= $this->nettoyer($spadherent['ratio_acquise']) ?> </td>
<td> <?= $this->nettoyer($spadherent['dureePolice']) ?> </td>
</tr>
</tbody>
</table>
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
<thead>
<tr>
<th width="20%" style='text-align:center'> <?= _("Date Effet Famille") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Date Echéance Famille") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Durée acquise Famille") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Ratio acquise Famille") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Durée Contrat") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td> <?= dateLang($this->nettoyer($spadherent['dateEffetAdherent'])) ?> </td>
<td> <?= dateLang($this->nettoyer($spadherent['dateEcheance'])) ?> </td>
<td> <?= $this->nettoyer($spadherent['duree_acquise_adherent']) ?> </td>
<td> <?= $this->nettoyer($spadherent['ratio_acquise_adherent']) ?> </td>
<td> <?= $this->nettoyer($spadherent['dureePolice']) ?> </td>
</tr>
</tbody>
</table>
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
<thead>
<tr>
<th width="20%" style='text-align:center'> <?= _("Primes Totales") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Primes Acquises") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Consommations") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Rapport S/P") ?> </th>
<th width="20%" style='text-align:center'> <?= _("S/P Global") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td> <?= format_N($this->nettoyer($spadherent['primestat'])) ?> </td>
<td> <?= format_N($this->nettoyer($spadherent['prime_acquise'])) ?> </td>
<td> <?= format_N($this->nettoyer($spadherent['consommation'])) ?> </td>
<td> <?= $this->nettoyer($spadherent['rapportsp']) ?> </td>
<td> <?= $this->nettoyer($spadherent['rapportspgeneral']) ?> </td>
</tr>
</tbody>
</table>
<?php if ($adherentRetire=="1") : ?>
<div class="alert alert-danger" style="height:30px; padding:5px; margin-bottom:5px; text-align:center;" >
<H4><?= _("Date sortie") . " : " . dateLang($dateSortieAdherent) ?></H4>
</div>
<?php endif; ?>

View File

@ -635,7 +635,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- Application Scripts -->
<script src="/Js/fonctions.js?ver=2026.01.05.05"></script>
<script src="/Js/fonctions.js?ver=2026.01.05.06"></script>
<script type="text/javascript">
raffraichier_gabarit();