diff --git a/admin/user-card.php b/admin/user-card.php
index 5db84fb..637fe3d 100644
--- a/admin/user-card.php
+++ b/admin/user-card.php
@@ -101,7 +101,7 @@ $users = getUsers();
diff --git a/admin/vendor-card.php b/admin/vendor-card.php
index 12ee445..59bfcde 100644
--- a/admin/vendor-card.php
+++ b/admin/vendor-card.php
@@ -814,11 +814,32 @@ function validateEmail(vendorId) {
// echo "
$i";
// }
- if ($totalVendors >= $vendorsPerPage) {
+ /* if ($totalVendors >= $vendorsPerPage) {
for ($i = 1; $i <= $totalPages; $i++) {
echo "
$i";
}
- }
+ } */
+
+ $start = max(1, $currentpage - 2);
+ $end = min($totalPages, $start + 4);
+
+ if ($start > 1) {
+ echo "
1";
+ if ($start > 2) {
+ echo "
... ";
+ }
+ }
+
+ for ($i = $start; $i <= $end; $i++) {
+ echo "
$i ";
+ }
+
+ if ($end < $totalPages) {
+ if ($end < $totalPages - 1) {
+ echo "
... ";
+ }
+ echo "
$totalPages";
+ }
?>
diff --git a/checkouttest.php b/checkouttest.php
index 7e02241..8304e7e 100644
--- a/checkouttest.php
+++ b/checkouttest.php
@@ -389,7 +389,7 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"]
-
+
@@ -419,7 +419,7 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"]
-
+
@@ -452,7 +452,7 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"]
diff --git a/user-profile.php b/user-profile.php
index d44ef18..8e2c482 100644
--- a/user-profile.php
+++ b/user-profile.php
@@ -330,7 +330,7 @@ if ($_SESSION["isVendor"] == true) {
-
+
@@ -360,7 +360,7 @@ if ($_SESSION["isVendor"] == true) {
-
+
@@ -397,7 +397,7 @@ if ($_SESSION["isVendor"] == true) {