diff --git a/Js/fonctions.js b/Js/fonctions.js
index 80b9a14..9a722ca 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -1690,3 +1690,98 @@ function afficher_adherent_id()
window.location.assign($("#racineWeb" ).val()+"Ficheadherent/"+$("#idAdherent_C" ).val()+"/");
}
}
+
+//Face KANE 26-09-2025
+function re_init_photo_face()
+{
+ var photo = document.getElementById('photo_face');
+ photo.setAttribute('src', "");
+ $('#message_face').html("");
+ $('#image_face').val("");
+ $("#div_wait_face_ebene").html('');
+}
+
+function ebene_init_photo_face() // OK
+{
+ faceRegistered = $("#faceRegistered").val();
+ if(faceRegistered=="1")
+ {
+ v_msg="Cettte personne a déjà une face dans le système!";
+ v_msgEng="This person already has a face in the system!";
+ alert_ebene(v_msg, v_msgEng);
+ $('#message_face').html("");
+ return;
+ }
+ re_init_photo_face();
+ $("#btn_pop_save_face").click();
+}
+
+function ebene_enregistrer_photo_face() // OK
+{
+ $("#ebene_confirmer_photo_face").prop('disabled', true);
+ $("#ebene_supprimer_photo_face").prop('disabled', true);
+ $("#ebene_take_photo_face").prop('disabled', true);
+ $("#motif").prop('disabled', true);
+
+ $("ebene_confirmer_photo_face").prop('disabled', true);
+ $("ebene_supprimer_photo_face").prop('disabled', true);
+ $("ebene_take_photo_face").prop('disabled', true);
+ $("motif").prop('disabled', true);
+
+ $('#message_face').html("");
+ $("#div_wait_face_ebene").html('');
+
+ $("#okId").val("-1");
+ $("#okId_face").val("-1");
+
+ $("#del_face").val("0");
+ image_face = $("#image_face").val();
+ if(image_face<=" ")
+ {
+ v_msg="Veuillez prendre une photo!";
+ v_msgEng="Please take a photo!";
+ alert_ebene(v_msg, v_msgEng);
+ return;
+ }
+
+ $("#div_wait_face_ebene").html('
' + '' + '
');
+
+ compare_face = $("#compare_face").val();
+
+ v_idBeneficiaire=$("#idBeneficiaire_C").val();
+
+ var dataURL = canvas.toDataURL("image/jpeg");
+
+ $.ajax({
+ url: $("#racineWeb").val()+"Fichebeneficiaire/ebeneenregistrerface/",
+ type: 'POST',
+ data: {'image_face' : dataURL, 'compare_face' : compare_face , 'del_face' : "0"},
+ success: function(data) {
+ $("#ebene_take_photo_face").prop('disabled', false);
+ $("#div_wait_face_ebene").html('');
+ $("#message_face").html(data);
+ photo_succes = $("#photo_succes").val();
+ if(photo_succes=="1")
+ {
+ v_msg="Enrôlement effectué avec succès!";
+ v_msgEng="Enrollment completed successfully!!";
+ // alert_ebene(v_msg, v_msgEng);
+ setTimeout(() => {
+ window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+v_idBeneficiaire);
+ }, 1000)
+ }
+ },
+ error: function(data) {
+ },
+ complete: function(data) {
+ $("#div_wait_face_ebene").html('');
+ }
+ });
+}
+
+function fiche_beneficiaire()
+{
+ idBeneficiaire = $("#idBeneficiaire").val();
+
+ window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+idBeneficiaire);
+}
diff --git a/Vue/Fichebeneficiaire/ebeneenregistrerface.php b/Vue/Fichebeneficiaire/ebeneenregistrerface.php
new file mode 100644
index 0000000..128f61b
--- /dev/null
+++ b/Vue/Fichebeneficiaire/ebeneenregistrerface.php
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/Vue/Fichebeneficiaire/index.php b/Vue/Fichebeneficiaire/index.php
index 2e2e262..7d3e38b 100644
--- a/Vue/Fichebeneficiaire/index.php
+++ b/Vue/Fichebeneficiaire/index.php
@@ -50,6 +50,11 @@
$photoAssureCrypte = $_SESSION['photoAssureCrypte'];
+ $faceRegistered = $this->nettoyer($beneficiaire['faceRegistered']);
+ $face_confirmee = $_SESSION['okId_face'];
+ $fingerActif = $_SESSION['fingerActif'];
+ $faceActif = $_SESSION['faceActif'];
+
?>
-
+
-
-
-
-
-
-
-
-