71 lines
1.7 KiB
PHP
Executable File
71 lines
1.7 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Beneficiaire.php';
|
|
require_once 'Modele/Carteassure.php';
|
|
require_once 'Modele/Police.php';
|
|
|
|
class ControleurCarteassuresadherent extends Controleur
|
|
{
|
|
private $menuvue;
|
|
private $carte;
|
|
private $beneficiaire;
|
|
private $police;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue("Carteassuresadherent");
|
|
|
|
$this->carte = new Carteassure();
|
|
$this->beneficiaire = new Beneficiaire();
|
|
$this->police = new Police();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idPolice = $_SESSION['idPolice_C'];
|
|
$_SESSION['idPoliceCarte'] = $idPolice;
|
|
|
|
$idAdherent = $_SESSION['idAdherent_C'];
|
|
$_SESSION['idAdherentCarte'] = $idAdherent;
|
|
|
|
$idCollege = "0";
|
|
|
|
// Initialisation de la liste des assurés à éditer
|
|
// $this->carte->initListeEdition($idPolice, $idCollege);
|
|
$this->carte->initListeEditionAdherent($idAdherent);
|
|
|
|
// Récupération des assurés
|
|
$editions = $this->carte->getListeEdition($idPolice);
|
|
|
|
$listeEdition = $this->carte->getEditionsChoisies();
|
|
$nbreChoisi = $this->carte->getNbreEditionsChoisies();
|
|
|
|
$choixToute = $this->carte->getChoixToute();
|
|
|
|
/*
|
|
var_dump
|
|
(
|
|
array
|
|
(
|
|
'editions' => $editions,
|
|
'listeEdition' => $listeEdition,
|
|
'nbreChoisi' => $nbreChoisi,
|
|
'choixToute' => $choixToute
|
|
)
|
|
);
|
|
exit();
|
|
*/
|
|
|
|
$this->genererVue
|
|
(
|
|
array
|
|
(
|
|
'editions' => $editions,
|
|
'listeEdition' => $listeEdition,
|
|
'nbreChoisi' => $nbreChoisi,
|
|
'choixToute' => $choixToute
|
|
)
|
|
);
|
|
}
|
|
} |