diff --git a/Controleur/ControleurHtagcarte.php b/Controleur/ControleurHtagcarte.php
index ed41064a..bfa9ebc9 100644
--- a/Controleur/ControleurHtagcarte.php
+++ b/Controleur/ControleurHtagcarte.php
@@ -17,8 +17,35 @@ class ControleurHtagcarte extends Controleur {
$idAdherent = $_SESSION['idAdherent_C'];
$_SESSION['idAdherentCarte'] = $idAdherent;
- $htagcartes = $this->carte->getapercumouvementassures($debut, $fin);
+ $htagcartes = $this->carte->gethtagcartes($idAdherent);
$this->genererVue(array('htagcartes' => $htagcartes));
}
+
+ public function revoquercarte()
+ {
+ if ($this->requete->existeParametre("otpValue"))
+ {
+ $login = $_SESSION['login'];
+ $otpValueSaisi = $this->requete->getParametre("otpValue");
+ $otpValueRequis = $this->utilisateur->get_otp_value($login);
+
+ // if ( ($otpValueSaisi==$otpValueRequis) && (strlen($otpValueSaisi)=='6') )
+ if ( (password_verify($otpValueSaisi, $otpValueRequis)) && (strlen($otpValueSaisi)=='6') )
+ {
+ $this->utilisateur->set_otp_value($login, '');
+ $_SESSION['menu'] = $this->menu->getMenu($_SESSION['codeProfil']);
+ $this->rediriger("Recherche");
+ }
+ else
+ {
+ $this->genererVue(array('msgErreur' => _('Code incorrect!')), "index");
+ }
+ }
+ else
+ {
+ $this->genererVue(array('msgErreur' => _('Veuillez revoir votre saisie!')), "index");
+ }
+ }
+
}
\ No newline at end of file
diff --git a/Js/fonctions.js b/Js/fonctions.js
index e455c5e4..6e57cad5 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -91936,4 +91936,13 @@ function gerer_garant_defaut()
function toggleSidebar() {
document.body.classList.toggle('sidebar-collapsed');
+}
+
+function init_revoquer_htagcarte(idHtagcarte) {
+ alert("init_revoquer_htagcarte");
+ return;
+
+ $("#idHtagcarte").val(idHtagcarte);
+ $("#div_revoquer_carte").modal({backdrop: 'static', keyboard: false, show: true });
+ $("#div_revoquer_carte").modal("show");
}
\ No newline at end of file
diff --git a/Modele/Carteassure.php b/Modele/Carteassure.php
index 95b510bf..43859e4d 100755
--- a/Modele/Carteassure.php
+++ b/Modele/Carteassure.php
@@ -266,5 +266,13 @@ class Carteassure extends Modele {
$this->executerRequete($sql, array($qrCodePath, $idBeneficiaire));
}
+ public function gethtagcartes($idAdherent)
+ {
+ $sql = 'call sp_get_htagcartes(?)';
+
+ $resultat = $this->executerRequete($sql, array($idAdherent));
+
+ return $resultat->fetchAll(PDO::FETCH_ASSOC);
+ }
}
\ No newline at end of file
diff --git a/Vue/Carteassuresadherent/index.php b/Vue/Carteassuresadherent/index.php
index 7d42502b..d956e738 100755
--- a/Vue/Carteassuresadherent/index.php
+++ b/Vue/Carteassuresadherent/index.php
@@ -1,10 +1,11 @@
titre = "INTER SANTE - Cartes des assurés";
+ $this->titre = "INTER SANTE - ". _("Cartes des assurés");
?>
= _("CARTES DES ASSURES") . " => " . $this->nettoyer($_SESSION['adherent_C']) ?>
+
diff --git a/Vue/Htagcarte/index.php b/Vue/Htagcarte/index.php
index f5a40bb0..f8d14931 100644
--- a/Vue/Htagcarte/index.php
+++ b/Vue/Htagcarte/index.php
@@ -1,29 +1,77 @@
- $_SESSION['debutMois_C'] ));
-?>
-
- " readonly>
-
-
-
-
+
\ No newline at end of file
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index ef9a8e19..cf5344cd 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -976,7 +976,7 @@
-
+