diff --git a/admin/assets/js/map.js b/admin/assets/js/map.js new file mode 100644 index 0000000..c492579 --- /dev/null +++ b/admin/assets/js/map.js @@ -0,0 +1,14 @@ +var southWest = L.latLng(4.64, 116.95), + northEast = L.latLng(20.53, 127.25), + bounds = L.latLngBounds(southWest, northEast); + +// Initialize the map and set the bounds +var map = L.map('map', { + maxBounds: bounds, + maxBoundsViscosity: 1.0 // Keeps the user within the bounds +}).setView([13.41, 122.56], 6); // Centered on the Philippines with a zoom level of 6 + +// Add a tile layer +L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + attribution: '© OpenStreetMap contributors' +}).addTo(map); \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index e60c82f..2eee72d 100644 --- a/admin/index.php +++ b/admin/index.php @@ -49,6 +49,14 @@ $allSignups = array_merge($all_customers, $all_vendors); + + + + @@ -911,13 +919,13 @@ $allSignups = array_merge($all_customers, $all_vendors);
-

Purchased by Country

+

Purchased by City

-
+
@@ -1344,6 +1352,7 @@ $allSignups = array_merge($all_customers, $all_vendors); + diff --git a/footer.php b/footer.php index 06eaa3c..2707493 100644 --- a/footer.php +++ b/footer.php @@ -25,7 +25,7 @@ @@ -79,7 +79,7 @@ - + diff --git a/user-profile.php b/user-profile.php index dbc20f2..c588f87 100644 --- a/user-profile.php +++ b/user-profile.php @@ -336,7 +336,7 @@ if ($_SESSION["isVendor"] == true) {
- +
diff --git a/vendor-payments.php b/vendor-payments.php index 2474204..70f72e5 100644 --- a/vendor-payments.php +++ b/vendor-payments.php @@ -124,12 +124,15 @@ if ($_SESSION["isCustomer"] == true) { - + . + + +
diff --git a/vendor-settings.php b/vendor-settings.php index ffa2963..9dea501 100644 --- a/vendor-settings.php +++ b/vendor-settings.php @@ -494,7 +494,7 @@ if ($_SESSION["isCustomer"] == true) {
- +