a
This commit is contained in:
parent
cffc88fe0e
commit
e31d160b97
31
Controleur/ControleurPlafondadherent.php
Normal file
31
Controleur/ControleurPlafondadherent.php
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
<?php
|
||||||
|
require_once 'Framework/Controleur.php';
|
||||||
|
require_once 'Modele/Adherent.php';
|
||||||
|
require_once 'Modele/Garantieadherent.php';
|
||||||
|
require_once 'Modele/Menuvueutilisateur.php';
|
||||||
|
|
||||||
|
class ControleurPlafondadherent extends Controleur {
|
||||||
|
private $adherent;
|
||||||
|
private $garantieadherent;
|
||||||
|
|
||||||
|
public function __construct() {
|
||||||
|
$this->menuvue = new Menuvueutilisateur();
|
||||||
|
$this->menuvue->getMenuVue("Plafondadherent");
|
||||||
|
|
||||||
|
$this->adherent = new Adherent();
|
||||||
|
$this->garantieadherent = new Garantieadherent();
|
||||||
|
|
||||||
|
}
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$idAdherent = $_SESSION['idAdherent_C'];
|
||||||
|
$adherent = $this->adherent->getContexteAdherentId($idAdherent);
|
||||||
|
$exercieReference = $_SESSION['exercieReference_C'];
|
||||||
|
$idEntetecontrat = $_SESSION['idEntetecontrat'];
|
||||||
|
$entecontrats = $this->garantieadherent->getlisteentetecontratadherent($idAdherent);
|
||||||
|
|
||||||
|
$garantieadherents = $this->garantieadherent->getGarantieAdherentEnteteContrat($idAdherent, $idEntetecontrat);
|
||||||
|
|
||||||
|
$this->genererVue(array('adherent' => $adherent, 'garantieadherents' => $garantieadherents, 'entecontrats' => $entecontrats));
|
||||||
|
}
|
||||||
|
}
|
||||||
33
Vue/Ajaxplafondadherent/index.php
Normal file
33
Vue/Ajaxplafondadherent/index.php
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
<div id="div_gar_exo">
|
||||||
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="text-align:center"> <?= _("Exercice") ?> </th>
|
||||||
|
<th style="text-align:center"> <?= _("Garantie") ?> </th>
|
||||||
|
<th style="text-align:center"> <?= _("Limites Contrat") ?> </th>
|
||||||
|
<th style="text-align:center"> <?= _("Taux Incorporation (%)") ?> </th>
|
||||||
|
<th style="text-align:center"> <?= _("Limites en vigeur") ?> </th>
|
||||||
|
<th style="text-align:center"> <?= _("Consommations") ?> </th>
|
||||||
|
<th style="text-align:center"> <?= _("Solde") ?> </th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
|
||||||
|
<?php foreach ($garantieadherents as $garantieadherent):?>
|
||||||
|
<tr valign="top">
|
||||||
|
<td align='center'> <?= $this->nettoyer($garantieadherent['exercieReference'])?> </td>
|
||||||
|
<td align='center'> <?= $this->nettoyer($garantieadherent['garantie'])?> </td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafondAnnuel'])) ?></td>
|
||||||
|
<td align='center'><?= $this->nettoyer($garantieadherent['tauxAvenant']) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafond'])) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['consommation'])) ?></td>
|
||||||
|
<td align='center'><?= format_N($this->nettoyer($garantieadherent['solde'])) ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div id="div_export_a">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
Loading…
Reference in New Issue
Block a user