From 9fad4f5106ed9fd0cf4e35f5412351afb4c3a121 Mon Sep 17 00:00:00 2001 From: subashGamer21 <136293667+subashGamer21@users.noreply.github.com> Date: Mon, 13 Jan 2025 13:51:48 +0545 Subject: [PATCH] send email --- css/custom.css | 38 +- footer.php | 2 +- js/custom.js | 9 + navara.php | 48 +- parts/searchbooking.php | 4 +- peugeot.php | 32 +- sendemail.php | 113 + src/DSNConfigurator.php | 245 ++ src/Exception.php | 40 + src/OAuth.php | 139 + src/OAuthTokenProvider.php | 44 + src/PHPMailer.php | 5248 ++++++++++++++++++++++++++++++++++++ src/POP3.php | 469 ++++ src/SMTP.php | 1509 +++++++++++ 14 files changed, 7878 insertions(+), 62 deletions(-) create mode 100644 js/custom.js create mode 100644 sendemail.php create mode 100644 src/DSNConfigurator.php create mode 100644 src/Exception.php create mode 100644 src/OAuth.php create mode 100644 src/OAuthTokenProvider.php create mode 100644 src/PHPMailer.php create mode 100644 src/POP3.php create mode 100644 src/SMTP.php diff --git a/css/custom.css b/css/custom.css index 977199d..81ca498 100644 --- a/css/custom.css +++ b/css/custom.css @@ -124,11 +124,47 @@ display: flex; align-items: center; gap: 190px; - transform: translateX(95px); /* Moves the element 20px to the right */ + transform: translateX(75px); /* Moves the element 20px to the right */ } @media (max-width: 900px) { .search-text, .line-icon { display: none; } +} + +@media (max-width: 768px) { + .logo { + position: absolute; /* Or fixed if you want it to stay while scrolling */ + + right: 1px; /* Position it on the right side */ + z-index: 10; /* Ensure it's on top of other content */ + } + + .header-logo img { + width: auto; /* Ensure the logo does not get stretched */ + height: 30px; /* Adjust logo size if needed */ + } +} + +.popup-message { + display: none; /* Initially hidden */ + position: fixed; + top: 20%; + left: 50%; + transform: translateX(-50%); + background-color: #4CAF50; + color: white; + padding: 20px; + border-radius: 5px; + font-size: 16px; + z-index: 9999; +} +.popup-message.error { + background-color: #f44336; /* Red background for error messages */ +} +.popup-message .close-btn { + margin-left: 20px; + cursor: pointer; + font-weight: bold; } \ No newline at end of file diff --git a/footer.php b/footer.php index 0597af1..ef80a46 100644 --- a/footer.php +++ b/footer.php @@ -170,7 +170,7 @@ - + diff --git a/js/custom.js b/js/custom.js new file mode 100644 index 0000000..6390b6f --- /dev/null +++ b/js/custom.js @@ -0,0 +1,9 @@ +document.getElementById("contact-form").addEventListener("submit", function(event) { + event.preventDefault(); // Prevents form from submitting immediately + + // Display the alert message + if (confirm("Booking has been confirmed!")) { + // If OK is pressed, redirect to another page + window.location.href = "car-grid.php"; + } + }); \ No newline at end of file diff --git a/navara.php b/navara.php index 9b71939..96d1428 100644 --- a/navara.php +++ b/navara.php @@ -2,6 +2,7 @@ +
+To deliver on the promise of technology and human We help our clients become sions of themselves. @@ -132,7 +134,8 @@
Send your requirement to us. We will check email and contact you soon.