diff --git a/admin/login.php b/admin/login.php index a1883c5..41be8d6 100644 --- a/admin/login.php +++ b/admin/login.php @@ -81,7 +81,7 @@ if ($_SESSION["isLoggedIn"] == true and $_SESSION["user_type"] == "admin"){ -
+
diff --git a/admin/vendor-card.php b/admin/vendor-card.php index 111c49c..a08d6b5 100644 --- a/admin/vendor-card.php +++ b/admin/vendor-card.php @@ -852,168 +852,212 @@ $products = productList();
-
+ + @@ -157,10 +163,17 @@ if ($_SESSION["userId"] <> "") {
+ +
About Us
-

+ +

+ +

No description available.

+
+
Account Information
@@ -168,7 +181,7 @@ if ($_SESSION["userId"] <> "") {
E-mail address
    -
  • +
@@ -176,7 +189,7 @@ if ($_SESSION["userId"] <> "") {
Contact nubmer
@@ -339,6 +352,7 @@ if ($_SESSION["userId"] <> "") { const firstName = document.getElementById('cfirstname-').value; const lastName = document.getElementById('clastname-').value; const phone = document.getElementById('cphone-').value; + const description = document.getElementById('cdescription-').value; // If no file selected, only update the email fetch(`https:///api/v1/vendors/${vendorid}`, { @@ -351,6 +365,7 @@ if ($_SESSION["userId"] <> "") { first_name: firstName, last_name: lastName, phone: phone, + vendor_description:description }) }) .then(response => { @@ -373,24 +388,22 @@ if ($_SESSION["userId"] <> "") {
@@ -858,6 +940,12 @@ if ($_SESSION["userId"] <> "") {
+ +
+ + +
+