diff --git a/about-us.php b/about-us.php index 4c7807b..4c8e21a 100644 --- a/about-us.php +++ b/about-us.php @@ -18,7 +18,10 @@ - + + @@ -458,129 +461,7 @@ - -
- -
- -
- Need Help? -

Chat with us on WhatsApp

-
- - -
- - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/cart.php b/cart.php index 3366e5d..162f8d1 100644 --- a/cart.php +++ b/cart.php @@ -32,7 +32,10 @@ if ($_SESSION["userId"] <> "") { - + + @@ -1289,121 +1292,7 @@ if ($_SESSION["userId"] <> "") { - -
- -
- -
- Need Help? -

Chat with us on WhatsApp

-
- - -
- - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/cart1.php b/cart1.php index 5121ade..54aa157 100644 --- a/cart1.php +++ b/cart1.php @@ -18,7 +18,10 @@ - + + @@ -1630,129 +1633,7 @@ - -
- -
- -
- Need Help? -

Chat with us on WhatsApp

-
- - -
- - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/catalog-single-vendor.php b/catalog-single-vendor.php index bed6ddd..e1a205d 100644 --- a/catalog-single-vendor.php +++ b/catalog-single-vendor.php @@ -115,7 +115,10 @@ if (!empty($_GET['minPrice']) || !empty($_GET['maxPrice']) || !empty($_GET['cate - + + @@ -1223,121 +1226,7 @@ maxPriceInput.addEventListener('input', function() { - -
- -
- -
- Need Help? -

Chat with us on WhatsApp

-
- - -
- - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/category-slider.php b/category-slider.php index ea486fb..5dd8fa6 100644 --- a/category-slider.php +++ b/category-slider.php @@ -18,7 +18,10 @@ - + + diff --git a/checkout.php b/checkout.php index add01dd..2f00bff 100644 --- a/checkout.php +++ b/checkout.php @@ -68,7 +68,10 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"] - + + @@ -1450,121 +1453,7 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"] - -
- -
- -
- Need Help? -

Chat with us on WhatsApp

-
- - -
- - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/checkouttest.php b/checkouttest.php index 9f5c002..bb12a0f 100644 --- a/checkouttest.php +++ b/checkouttest.php @@ -82,7 +82,10 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"] - + + @@ -2104,121 +2107,7 @@ if (isset($customer_data[0]["address"]) && is_array($customer_data[0]["address"] - -
- -
- -
- Need Help? -

Chat with us on WhatsApp

-
- - -
- - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/contact-us.php b/contact-us.php index a51ac1c..15d3a3a 100644 --- a/contact-us.php +++ b/contact-us.php @@ -24,7 +24,10 @@ - + + @@ -315,129 +318,7 @@ - -
- -
- -
- Need Help? -

Chat with us on WhatsApp

-
- - -
- - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/faq.php b/faq.php index 5391a70..7a449b2 100644 --- a/faq.php +++ b/faq.php @@ -18,7 +18,10 @@ - + + @@ -471,129 +474,7 @@ - -
- -
- -
- Need Help? -

Chat with us on WhatsApp

-
- - -
- - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/footer.php b/footer.php index 2707493..f35ec4a 100644 --- a/footer.php +++ b/footer.php @@ -20,13 +20,22 @@
@@ -59,35 +68,37 @@ if ($_SESSION["isVendor"]) { ?> - - - - - Order History --> + - - - Order History + + - - - + + @@ -121,8 +132,11 @@
- - + +
@@ -140,10 +154,18 @@ @@ -151,7 +173,8 @@ @@ -169,7 +192,7 @@ - +
@@ -179,7 +202,7 @@
-
+
@@ -195,4 +218,4 @@
- + \ No newline at end of file diff --git a/forget_otp.php b/forget_otp.php index e524738..7c19bef 100644 --- a/forget_otp.php +++ b/forget_otp.php @@ -20,7 +20,10 @@ - + + @@ -328,121 +331,7 @@ var pass2I = document.getElementById(`passInput2`);
- - - +
diff --git a/forget_password_reset.php b/forget_password_reset.php index 750b982..991c23a 100644 --- a/forget_password_reset.php +++ b/forget_password_reset.php @@ -18,7 +18,10 @@ - + + @@ -162,121 +165,7 @@
- -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/forgot_password.php b/forgot_password.php index d8c55a5..409935e 100644 --- a/forgot_password.php +++ b/forgot_password.php @@ -19,7 +19,10 @@ - + + @@ -247,129 +250,7 @@
- -
- -
- -
- Need Help? -

Chat with us on WhatsApp

-
- - -
- - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/header.php b/header.php index e61d362..4df2f85 100644 --- a/header.php +++ b/header.php @@ -20,145 +20,1751 @@ if ($_SESSION["userId"] <> "") { } ?> +
+ +
+ +
+ +
@@ -166,10 +1772,18 @@ if ($_SESSION["userId"] <> "") {
    -
  • -
  • -
  • -
  • +
  • +
  • +
  • +
@@ -185,44 +1799,45 @@ if ($_SESSION["userId"] <> "") {
-
+
- - - + + - + - - - + + +
@@ -236,13 +1851,19 @@ if ($_SESSION["userId"] <> "") {

Download ObananaPay Now

-

Enjoy promos, discounts and more when you download, register and pay with ObananaPay.

+

Enjoy promos, discounts and more when you download, register and pay with + ObananaPay.

@@ -272,7 +1893,8 @@ if ($_SESSION["userId"] <> "") {
"") {
@@ -906,7 +2582,8 @@ if ($_SESSION["userId"] <> "") {
@@ -925,10 +2602,10 @@ if ($_SESSION["userId"] <> "") { - - - - + + +
    @@ -1059,7 +2736,8 @@ if ($_SESSION["userId"] <> "") {
  • Privacy Policy
--> -
- - - +
diff --git a/next_day_delivery.php b/next_day_delivery.php index 3c748a5..c55f3bc 100644 --- a/next_day_delivery.php +++ b/next_day_delivery.php @@ -31,7 +31,10 @@ if ($_SESSION["userId"] <> "") { - + + @@ -982,129 +985,7 @@ maxPriceInput.addEventListener('input', function() {
- - - +
diff --git a/offer.php b/offer.php index 92804d7..46f7a13 100644 --- a/offer.php +++ b/offer.php @@ -22,7 +22,8 @@ if ($_SESSION["userId"] <> "") { oBanana B2B - Elevate Your Business - + @@ -33,6 +34,12 @@ if ($_SESSION["userId"] <> "") { + + @@ -49,22 +56,22 @@ if ($_SESSION["userId"] <> "") { @@ -228,16 +235,20 @@ if ($_SESSION["userId"] <> "") {
- +
- 3 + 3
- 4 + 4
@@ -271,121 +282,7 @@ if ($_SESSION["userId"] <> "") {
- - - +
diff --git a/privacy-policy.php b/privacy-policy.php index a4e2c3e..0886d3e 100644 --- a/privacy-policy.php +++ b/privacy-policy.php @@ -17,7 +17,10 @@ - + + @@ -444,121 +447,7 @@
- - - +
diff --git a/product-left-sidebar.php b/product-left-sidebar.php index 24c10ae..77b3048 100644 --- a/product-left-sidebar.php +++ b/product-left-sidebar.php @@ -55,7 +55,8 @@ if (isset($_GET['id'])) { oBanana B2B - Elevate Your Business - + @@ -65,7 +66,10 @@ if (isset($_GET['id'])) { - + + @@ -80,165 +84,172 @@ if (isset($_GET['id'])) { - + @@ -319,8 +330,9 @@ if (isset($_GET['id'])) { -
- + - -
+ +
@@ -338,8 +352,8 @@ if (isset($_GET['id'])) { -
- + - - - -
+ + +
@@ -362,8 +377,10 @@ if (isset($_GET['id'])) {
- -
+ +
+
@@ -378,7 +395,9 @@ if (isset($_GET['id'])) { Be the first to review this product
--> -
+
+ +
@@ -444,12 +470,12 @@ if (isset($_GET['id'])) { -
-
- VARIATION -
-
    - - - -
  • - product - -

    - -
  • -
    + +
  • + product + +

    +

    + +
  • +
    - $variation) { $variationImage = isset($variation["images"]) ? $variation["images"] : 'https://api.obanana.com/images/storage/web_images/1710214273217-no_image.png'; ?> - -
  • - product - -

    - -
  • -
    - )"> +
  • + product + +

    +

    + +
  • + + -
-
+
- + function selectVariation(variation) { + globalVariation = variation; + console.log("Variation selected: ", variation); + + document.getElementById("productDescription").innerHTML = variation + .specifications; + document.getElementById("shortDescription").innerHTML = variation + .product_description; + document.getElementById("productTitle").innerText = variation.product_name; + document.getElementById("product_Id").value = variation._id; + var productImage = variation.images ? variation.images.split(',')[0] : + 'https://api.obanana.com/images/storage/web_images/1710214273217-no_image.png'; + $('.zoom-image-hover').trigger('zoom.destroy'); + document.getElementById('mainProductImage').src = productImage; + $('.zoom-image-hover').zoom(); + document.getElementById("productTitlemodal").innerText = variation + .product_name; + document.getElementById('mainProductImagemodal').src = productImage; + + if (variation.regular_price || variation.sale_price) { + document.getElementById("productPrice").innerText = variation + .sale_price ? variation.sale_price : variation.regular_price; + document.getElementById("productStock").innerText = variation.stock; + document.getElementById('addToCartButton').disabled = false; + document.getElementById("addToCartButton").style.display = "block"; + document.getElementById("contactSellerButton").style.display = "none"; + } else { + document.getElementById("productPrice").innerText = + "Contact seller for price"; + document.getElementById("productStock").innerText = "Available"; + document.getElementById('addToCartButton').disabled = true; + document.getElementById("addToCartButton").style.display = "none"; + document.getElementById("contactSellerButton").style.display = "block"; + } + } + " id="qty-input" />
+
--> -
+
-
'; - echo ''; - echo '
+
'; - echo '
'; - echo ''; - echo '
- -
'; - } else { + // if ($product_details['product_type'] === "variables") { + // echo '
-
'; + // echo ''; + // echo '
+
'; + // echo '
'; + // echo ''; + // echo '
+ // + //
'; + // } else { if (!empty($product_details['regular_price']) || !empty($product_details['sale_price'])) { echo '
-
'; @@ -573,9 +616,12 @@ if (isset($_GET['id'])) {
'; } else { - echo ''; + // echo ''; + echo ''; } - } + // } } else if (($_SESSION["isCustomer"] == false) && ($_SESSION["isVendor"] == false)) { echo ' @@ -629,45 +677,70 @@ if (isset($_GET['id'])) {
-
+
-
+
- +
-
+
+ +
- " id="qty-input" min="" /> + " + id="qty-input" + min="" />
-
+
DETAILED REQUIREMENTS
- - - ' /> - " id="qty-input" min="" /> + + + ' /> + " + id="qty-input" + min="" /> - ' /> + ' />
@@ -689,223 +762,264 @@ if (isset($_GET['id'])) {
-->
- - 0) : ?> - - - - + + 0) : ?> + + + + - - Inquire - - Inquire - - -
+ + Inquire + + Inquire + +
+
@@ -1812,86 +2262,106 @@ if (isset($_GET['id'])) { ?> -
-
-
-
- - - "> - " /> - " /> - - - - +
+
+
+
+ + + "> + " /> + " /> + + + + - - - -
- - 0) : ?> - - + + +
+ + 0) : ?> + + - - - + + + - - + + - - + + - -
-
+
-
- - + -
">
- +
"> +
+ - - + - -
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum is simply dutmmy text ever since the 1500s, when an unknown printer took a galley.
- - - 0) : ?> - - - - - - Inquire - - Inquire - - + +
Lorem Ipsum is simply dummy text of the printing and + typesetting industry. Lorem Ipsum is simply dutmmy text ever since the 1500s, when an + unknown printer took a galley.
+ + + 0) : ?> + + + + + + Inquire + + Inquire + + - - - - + - -
+
+
@@ -1937,42 +2407,53 @@ if (isset($_GET['id'])) {
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
-
Handbag leather purse for women +
Handbag leather purse + for women
@@ -2006,7 +2487,8 @@ if (isset($_GET['id'])) { Size
    -
  • S
  • +
  • S
  • M
  • X
  • XL
  • @@ -2080,121 +2562,7 @@ if (isset($_GET['id'])) {
- - - +
diff --git a/prohibited-item.php b/prohibited-item.php index b74c2b7..fd0ab1c 100644 --- a/prohibited-item.php +++ b/prohibited-item.php @@ -17,7 +17,10 @@ - + + @@ -294,121 +297,7 @@
- - - +
diff --git a/register.php b/register.php index 3acd4e0..d69cd42 100644 --- a/register.php +++ b/register.php @@ -22,7 +22,10 @@ $_SESSION["isVendor"] = false; - + + @@ -175,121 +178,7 @@ $_SESSION["isVendor"] = false;
- - - +
diff --git a/register_customer.php b/register_customer.php index 16af521..1c3e5cb 100644 --- a/register_customer.php +++ b/register_customer.php @@ -25,7 +25,10 @@ $customerData = json_decode($customers, true); - + + @@ -230,129 +233,7 @@ $customerData = json_decode($customers, true);
- - - +
diff --git a/register_otp.php b/register_otp.php index 8911324..6165883 100644 --- a/register_otp.php +++ b/register_otp.php @@ -20,7 +20,10 @@ - + + @@ -181,121 +184,7 @@
- - - +
diff --git a/register_vendor.php b/register_vendor.php index 6347247..e734026 100644 --- a/register_vendor.php +++ b/register_vendor.php @@ -25,7 +25,10 @@ $vendorData = json_decode($vendors, true); - + + @@ -298,121 +301,7 @@ $vendorData = json_decode($vendors, true);
- - - +
diff --git a/same_day_delivery_old.php b/same_day_delivery_old.php index 1bf18b0..f527ef6 100644 --- a/same_day_delivery_old.php +++ b/same_day_delivery_old.php @@ -32,7 +32,10 @@ if ($_SESSION["userId"] <> "") { - + + @@ -268,121 +271,7 @@ if ($_SESSION["userId"] <> "") {
- -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/shop-left-sidebar-col-4.php b/shop-left-sidebar-col-4.php index 4b172a1..58e4b2e 100644 --- a/shop-left-sidebar-col-4.php +++ b/shop-left-sidebar-col-4.php @@ -28,7 +28,10 @@ - + + @@ -1080,129 +1083,7 @@ - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/shop-list-left-sidebar-test.php b/shop-list-left-sidebar-test.php index 54a2481..a009ad8 100644 --- a/shop-list-left-sidebar-test.php +++ b/shop-list-left-sidebar-test.php @@ -104,7 +104,10 @@ if (!empty($_GET['minPrice']) || !empty($_GET['maxPrice']) || !empty($_GET['cate - + + @@ -794,121 +797,7 @@ if (!empty($_GET['minPrice']) || !empty($_GET['maxPrice']) || !empty($_GET['cate - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/shop-list-left-sidebar.php b/shop-list-left-sidebar.php index d84a021..8160167 100644 --- a/shop-list-left-sidebar.php +++ b/shop-list-left-sidebar.php @@ -104,7 +104,10 @@ $filteredProducts = []; - + + @@ -1168,121 +1171,7 @@ maxPriceInput.addEventListener('input', function() { - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/shop-list-left-sidebar2.php b/shop-list-left-sidebar2.php index 74da843..dccc98c 100644 --- a/shop-list-left-sidebar2.php +++ b/shop-list-left-sidebar2.php @@ -33,7 +33,10 @@ if ($_SESSION["userId"] <> "") { - + + @@ -795,121 +798,7 @@ if ($_SESSION["userId"] <> "") { - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/terms-condition.php b/terms-condition.php index 923ea8e..abc23d4 100644 --- a/terms-condition.php +++ b/terms-condition.php @@ -17,7 +17,10 @@ - + + @@ -450,121 +453,7 @@ - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/user-history.php b/user-history.php index f1c0418..f602828 100644 --- a/user-history.php +++ b/user-history.php @@ -33,7 +33,10 @@ if ($_SESSION["isVendor"] == true) { - + + @@ -1378,121 +1381,7 @@ if ($_SESSION["isVendor"] == true) { - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/user-profile.php b/user-profile.php index c588f87..c525917 100644 --- a/user-profile.php +++ b/user-profile.php @@ -37,7 +37,10 @@ if ($_SESSION["isVendor"] == true) { - + + @@ -1355,121 +1358,7 @@ if ($_SESSION["isVendor"] == true) { - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/user-refund-history.php b/user-refund-history.php index 2fffbd7..aed8a92 100644 --- a/user-refund-history.php +++ b/user-refund-history.php @@ -37,7 +37,10 @@ if ($_SESSION["isVendor"] == true) { - + + @@ -1261,121 +1264,7 @@ if ($_SESSION["isVendor"] == true) { - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/vendor-all-product-list.php b/vendor-all-product-list.php index 43825fa..5d2ae26 100644 --- a/vendor-all-product-list.php +++ b/vendor-all-product-list.php @@ -53,7 +53,10 @@ $products = productList(); - + + @@ -488,121 +491,7 @@ $products = productList(); - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/vendor-dashboard-orders-edit.php b/vendor-dashboard-orders-edit.php index 179a0be..8b8a672 100644 --- a/vendor-dashboard-orders-edit.php +++ b/vendor-dashboard-orders-edit.php @@ -45,7 +45,10 @@ $array = json_decode($result, true); - + + @@ -336,121 +339,7 @@ $array = json_decode($result, true); - -
- - - - -
-
-
- whatsapp icon -
-
-
- -
- +
diff --git a/vendor-dashboard.php b/vendor-dashboard.php index 2c22316..87db16c 100644 --- a/vendor-dashboard.php +++ b/vendor-dashboard.php @@ -52,7 +52,8 @@ if ($_SESSION["isCustomer"] == true) { oBanana B2B - Elevate Your Business - + @@ -63,7 +64,10 @@ if ($_SESSION["isCustomer"] == true) { - + + @@ -71,9 +75,9 @@ if ($_SESSION["isCustomer"] == true) { - - + + @@ -81,21 +85,37 @@ if ($_SESSION["isCustomer"] == true) { @@ -118,10 +138,10 @@ if ($_SESSION["isCustomer"] == true) {
-
-
+
+
-
+

Vendor Dashboard

@@ -142,8 +162,8 @@ if ($_SESSION["isCustomer"] == true) {
-
-
+
+
@@ -153,9 +173,13 @@ if ($_SESSION["isCustomer"] == true) { -
- -
+
+
+ +
+
@@ -163,9 +187,12 @@ if ($_SESSION["isCustomer"] == true) { - alt="vendor image"> + + alt="vendor image"> - vendor image + vendor image
@@ -182,7 +209,9 @@ if ($_SESSION["isCustomer"] == true) {
- + -
-
@@ -208,7 +235,7 @@ if ($_SESSION["isCustomer"] == true) {
Orders
- +

@@ -236,30 +263,23 @@ if ($_SESSION["isCustomer"] == true) {
- -
- - - - - - - - - - - - + +
+
ImageNameStatusCustomerTotalAction
+ + + + + + + + + + + - - - - + + + ?> - - - - - + + + + + --> - + @@ -498,22 +529,16 @@ if ($_SESSION["isCustomer"] == true) {
-
ImageNameStatusCustomerTotalAction
- - + + + - edit - " + alt="edit" /> + - edit - + - - +

- - - -
+

+
+ + + + +
+
@@ -535,39 +560,47 @@ if ($_SESSION["isCustomer"] == true) { $product = $products[$i]; ?> - - - - - - - - + + + + + + + @@ -610,42 +643,53 @@ if ($_SESSION["isCustomer"] == true) {
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
-
Handbag leather purse for women +
Handbag leather purse + for women
@@ -679,7 +723,8 @@ if ($_SESSION["isCustomer"] == true) { Size
    -
  • S
  • +
  • S
  • M
  • X
  • XL
  • @@ -692,7 +737,8 @@ if ($_SESSION["isCustomer"] == true) {
- +
@@ -709,16 +755,20 @@ if ($_SESSION["isCustomer"] == true) {
- +
- 3 + 3
- 4 + 4
@@ -752,121 +802,7 @@ if ($_SESSION["isCustomer"] == true) {
- - - +
diff --git a/vendor-list.php b/vendor-list.php index 976e198..458c7b7 100644 --- a/vendor-list.php +++ b/vendor-list.php @@ -33,7 +33,10 @@ $products = productList(); - + + @@ -465,121 +468,7 @@ $products = productList();
- - - +
diff --git a/vendor-payments.php b/vendor-payments.php index 70f72e5..78b562e 100644 --- a/vendor-payments.php +++ b/vendor-payments.php @@ -45,17 +45,21 @@ if ($_SESSION["isCustomer"] == true) { oBanana B2B - Elevate Your Business - + - + - + + @@ -75,40 +79,41 @@ if ($_SESSION["isCustomer"] == true) { - + @@ -124,7 +129,8 @@ if ($_SESSION["isCustomer"] == true) { - . + + @@ -155,7 +161,7 @@ if ($_SESSION["isCustomer"] == true) {
- +
Image
- - + + + - edit - " alt="edit" /> + - edit - + - -
+ + + +
+
- - + + @@ -248,16 +254,19 @@ if ($_SESSION["isCustomer"] == true) { } $totalPayments++; ?> - - - - - - - + + + + + + + - + - const itemsPerPage = 5; - const totalItems = ; - const totalPages = Math.ceil(totalItems / itemsPerPage); + const itemsPerPage = 5; + const totalItems = ; + const totalPages = Math.ceil(totalItems / itemsPerPage); - - function showPage(page) { - const startIndex = (page - 1) * itemsPerPage; - const endIndex = startIndex + itemsPerPage; - const tableRows = document.querySelectorAll('#paymentsTableBody tr'); - - // for pagination button - const pager = document.querySelectorAll('.page-btn') - pager.forEach((row, index) => { - if (index!==page-1) { - row.style.backgroundColor="white"; - row.style.color="black"; - } else { - row.style.backgroundColor="#007bff"; - row.style.color="white"; - } - }); - - tableRows.forEach((row, index) => { - if (index >= startIndex && index < endIndex) { - row.style.display = 'table-row'; - } else { - row.style.display = 'none'; - } - }); - } + function showPage(page) { + const startIndex = (page - 1) * itemsPerPage; + const endIndex = startIndex + itemsPerPage; + const tableRows = document.querySelectorAll('#paymentsTableBody tr'); - // function createPagination() { - // const paginationContainer = document.getElementById('pagination'); + // for pagination button + const pager = document.querySelectorAll('.page-btn') + pager.forEach((row, index) => { + if (index !== page - 1) { + row.style.backgroundColor = "white"; + row.style.color = "black"; + } else { + row.style.backgroundColor = "#007bff"; + row.style.color = "white"; + } + }); - // for (let i = 1; i <= totalPages; i++) { - // // created a tag - // const pageButton = document.createElement('a'); - // // created class for a tag - // pageButton.className = "page-btn page-" + i - // pageButton.textContent = i; - // pageButton.addEventListener('click', () => showPage(i)); - // paginationContainer.appendChild(pageButton); - // } - // } - // createPagination(); - showPage(1); // Show the first page by default + tableRows.forEach((row, index) => { + if (index >= startIndex && index < endIndex) { + row.style.display = 'table-row'; + } else { + row.style.display = 'none'; + } + }); + } + + // function createPagination() { + // const paginationContainer = document.getElementById('pagination'); + + // for (let i = 1; i <= totalPages; i++) { + // // created a tag + // const pageButton = document.createElement('a'); + // // created class for a tag + // pageButton.className = "page-btn page-" + i + // pageButton.textContent = i; + // pageButton.addEventListener('click', () => showPage(i)); + // paginationContainer.appendChild(pageButton); + // } + // } + + // createPagination(); + showPage(1); // Show the first page by default @@ -463,11 +472,13 @@ if ($_SESSION["isCustomer"] == true) { - - - - +
diff --git a/wishlist.php b/wishlist.php index bbe9cdf..b5a6bf0 100644 --- a/wishlist.php +++ b/wishlist.php @@ -41,7 +41,10 @@ if ($_SESSION["isVendor"] == true) { - + + @@ -581,121 +584,7 @@ if ($_SESSION["isVendor"] == true) { - - - +
Payment Method Amount Status DescriptionDate CreatedActionDate CreatedAction
₱
₱