diff --git a/Controleur/ControleurChangeretatadherent.php b/Controleur/ControleurChangeretatadherent.php new file mode 100644 index 0000000..a41529f --- /dev/null +++ b/Controleur/ControleurChangeretatadherent.php @@ -0,0 +1,44 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Changeretatadherent"); + + $this->adherent = new Adherent(); + $this->etatpersonne = new Etatpersonne; + } + public function index() { + $idAdherent = $_SESSION['idAdherent_C']; + $adherent = $this->adherent->getAdherentId($idAdherent); + + $oldcodeEtatPersonne = $adherent['codeEtatAdherent']; + + $etatpersonne = $this->etatpersonne->getListeSuiteFam($oldcodeEtatPersonne); + + $this->genererVue(array('adherent' => $adherent, 'etatpersonne' => $etatpersonne)); + } + + public function enregistrer() + { + $idAdherent = $_SESSION['idAdherent_C']; + + $codeEtatAdherent = $this->requete->getParametreFormulaire("codeEtatAdherent"); + $motifEtat = $this->requete->getParametreFormulaire("motifEtat"); + $dateEtat = $this->requete->getParametreDate("dateEtat"); + + $this->adherent->changeretat($idAdherent, $codeEtatAdherent, $motifEtat, $dateEtat); + + // $this->rediriger("Ficheadherent"); + // $this->rediriger("Ficheadherent", $_SESSION['idAdherent_C']); + $this->rediriger("Ficheadherent/".$_SESSION['idAdherent_C']); + } +} \ No newline at end of file diff --git a/Controleur/ControleurChangeretatbeneficiaire.php b/Controleur/ControleurChangeretatbeneficiaire.php new file mode 100644 index 0000000..cc9e502 --- /dev/null +++ b/Controleur/ControleurChangeretatbeneficiaire.php @@ -0,0 +1,43 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue("Changeretatbeneficiaire"); + + $this->beneficiaire = new Beneficiaire(); + $this->etatpersonne = new Etatpersonne; + } + public function index() + { + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + $beneficiaire = $this->beneficiaire->getBeneficiaireId($idBeneficiaire); + + $oldcodeEtatPersonne = $beneficiaire['codeEtatBeneficiaire']; + + $etatpersonne = $this->etatpersonne->getListeSuiteDep($oldcodeEtatPersonne); + + $this->genererVue(array('beneficiaire' => $beneficiaire, 'etatpersonne' => $etatpersonne)); + } + + public function enregistrer() + { + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + + $codeEtatBeneficiaire = $this->requete->getParametreFormulaire("codeEtatBeneficiaire"); + $motifEtat = $this->requete->getParametreFormulaire("motifEtat"); + $dateEtat = $this->requete->getParametreDate("dateEtat"); + + $this->beneficiaire->changeretat($idBeneficiaire, $codeEtatBeneficiaire, $motifEtat, $dateEtat); + + $this->rediriger("Fichebeneficiaire/".$_SESSION['idBeneficiaire_C']); + } +} \ No newline at end of file diff --git a/Js/fonctions.js b/Js/fonctions.js index 152cd37..fcdae21 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -3133,3 +3133,37 @@ function afficher_garantieadherent_entete_contrat() } }); } + +function changer_etat_adherent() +{ + etat=$("#codeEtatPolice_C").val(); + + if (etat=="RE") + { + v_msg="Attention! Police résiliée!"; + v_msgEng="Warning! Terminated policy!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + if (etat=="SU") + { + v_msg="Attention! Police suspendue!"; + v_msgEng="Warning! Suspended policy!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + if (etat=="AN") + { + v_msg="Attention! Police annulée!"; + v_msgEng="Warning! Canceled policy!"; + alert_ebene(v_msg, v_msgEng); + + return; + } + + window.location.assign($("#racineWeb" ).val()+"Changeretatadherent/"); +} diff --git a/Vue/Changeretatadherent/index.php b/Vue/Changeretatadherent/index.php new file mode 100644 index 0000000..19559cc --- /dev/null +++ b/Vue/Changeretatadherent/index.php @@ -0,0 +1,78 @@ +titre = "INTER-SANTE - changement état famillet"; + if (est_anglophone()) + { + $produit = $adherent['produitEng']; + $naturepiece = $adherent['naturepieceEng']; + $situationfamille = $adherent['situationfamilleEng']; + $motifsortie = $adherent['motifsortieEng']; + $etatadherent = $adherent['etatadherentEng']; + } + else + { + $produit = $adherent['produit']; + $naturepiece = $adherent['naturepiece']; + $situationfamille = $adherent['situationfamille']; + $motifsortie = $adherent['motifsortie']; + $etatadherent = $adherent['etatadherent']; + } + +?> + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+ +
+ " /> + +
+ + + + + + + + + + + + + + + + + + + + +
+ +
+
+
diff --git a/Vue/Changeretatbeneficiaire/index.php b/Vue/Changeretatbeneficiaire/index.php new file mode 100644 index 0000000..fad2d36 --- /dev/null +++ b/Vue/Changeretatbeneficiaire/index.php @@ -0,0 +1,78 @@ +titre = "INTER-SANTE - changement état dépendant"; + + if (est_anglophone()) + { + $produit = $beneficiaire['produitEng']; + $naturepiece = $beneficiaire['naturepieceEng']; + $lienparente = $beneficiaire['lienparenteEng']; + $motifsortie = $beneficiaire['motifsortieEng']; + $etatbeneficiaire = $beneficiaire['etatbeneficiaireEng']; + } + else + { + $produit = $beneficiaire['produit']; + $naturepiece = $beneficiaire['naturepiece']; + $lienparente = $beneficiaire['lienparente']; + $motifsortie = $beneficiaire['motifsortie']; + $etatbeneficiaire = $beneficiaire['etatbeneficiaire']; + } + +?> + +
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+ +
+ " /> + +
+ + + + + + + + + + + + + + + + + + + + +
+ +
+
+
diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 3ecd983..ab43fc0 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -635,7 +635,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte']; - +