From 6a8eb7b9201b72767cef87038ee6104161bcd86c Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Tue, 12 May 2026 12:11:16 +0000 Subject: [PATCH] a --- Js/fonctions.js | 17 +---------------- Vue/Maps/Geolocaliser.php | 24 ++++++++++++++++++++++++ Vue/gabarit.php | 2 +- 3 files changed, 26 insertions(+), 17 deletions(-) create mode 100755 Vue/Maps/Geolocaliser.php diff --git a/Js/fonctions.js b/Js/fonctions.js index 6f4eefd7..625c77eb 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -73362,25 +73362,10 @@ function trouve_coordonnees_geo_ip(ip) var str = data.split('/'), lat = str[0], // Latitude de l'adresse IP retourné lon = str[1], // Longitude de l'adresse IP retourné - out = "&output=embed" - // src="https://maps.google.com/maps?q="+lat+","+lon+out; // Source de l'iframe - // src="/var/www/Config/Geolocaliser.php?latitude="+lat+"&longitude="+lon; // Source de l'iframe - // src = "/Config/Geolocaliser.php?latitude=" + lat + "&longitude=" + lon; // ✅ URL web - src = "/Vue/Maps/Geolocaliser.php?latitude=" + lat + "&longitude=" + lon; // ✅ URL web - /* - $('#map').attr("src", src); - $('#div_contenu_map').modal("show"); // Affiche en modal = carte google + src = "/Vue/Maps/Geolocaliser.php?latitude=" + lat + "&longitude=" + lon; - $('#div_contenu_map').on('hidden.bs.modal', function(){ - $('#map').html("").attr("src", ""); // Réinitialise la source de l'iframe à la fermeture du modal - }); - */ - - alert(src); $('#map').attr("src", src); // Option C $('#div_contenu_map').modal("show"); // Option C - - // load(src); } else { diff --git a/Vue/Maps/Geolocaliser.php b/Vue/Maps/Geolocaliser.php new file mode 100755 index 00000000..bf516856 --- /dev/null +++ b/Vue/Maps/Geolocaliser.php @@ -0,0 +1,24 @@ + $lat ; Longitude => $lon"; +?> + + + + + + +
+ + + + diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 92fe1b16..0f582b07 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -984,7 +984,7 @@ - +