Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/celkcksm/rmpharma.in/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include_once('config/config.php'); // Get the current page from the URL $page = basename($_SERVER['PHP_SELF'], ".php"); // Default to home if page not found in config $title = isset($page_title[$page]) ? $page_title[$page] : $page_title["home"]; $keywords = isset($page_keywords[$page]) ? $page_keywords[$page] : $page_keywords["home"]; $description = isset($page_description[$page]) ? $page_description[$page] : $page_description["home"]; // Construct the canonical URL $base_url = "https://www.rmpharma.in/"; // Check if it's the index page if ($page == "index") { $canonical_url = $base_url; } else { $canonical_url = $base_url . $page; } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title><?php echo htmlspecialchars($title); ?></title> <meta name="keywords" content="<?php echo htmlspecialchars($keywords); ?>" /> <meta name="description" content="<?php echo htmlspecialchars($description); ?>" /> <link rel="canonical" href="<?php echo htmlspecialchars($canonical_url); ?>" /> <meta property="og:title" content="<?php echo htmlspecialchars($title); ?>" /> <meta property="og:site_name" content="Rangamati College of Pharmacy" /> <meta property="og:description" content="<?php echo htmlspecialchars($description); ?>" /> <!-- For Search Console --> <meta name="google-site-verification" content="2cyABvEP5lz07ifLqExNmLKkgv-vvstTFAm3duoEvXk" /> <meta name="Author" content=" " /> <meta name="robots" content="INDEX, FOLLOW" /> <link rel="canonical" href="" /> <link rel="dns-prefetch" href=""> <meta property="og:locale" content="en_US" /> <meta property="og:type" content="Education" /> <meta property="og:title" content=" "> <meta property="og:description" content=" ."> <meta property="og:url" content="" /> <meta property="og:site_name" content=" " /> <meta name="dc.title" content="" content=" "> <meta name="dc.keywords" content=" "> <meta name="dc.language" content="En"> <meta name="dc.source" content=""> <meta name="dc.subject" content="University, Education"> <meta name="dc.publisher" content=""> <link rel="icon" type="image/png" href="public/new-assets/favicon/favicon-96x96.png" sizes="96x96" /> <link rel="icon" type="image/png" href="public/new-assets/favicon/web-app-manifest-192x192.png" sizes="96x96" /> <link rel="icon" type="image/png" href="public/new-assets/favicon/web-app-manifest-512x512.png" sizes="96x96" /> <link rel="icon" type="image/svg+xml" href="public/new-assets/favicon/favicon.svg" /> <link rel="shortcut icon" href="public/new-assets/favicon/favicon.ico" /> <link rel="apple-touch-icon" sizes="180x180" href="public/new-assets/favicon/apple-touch-icon.png" /> <link rel="manifest" href="public/new-assets/favicon/site.webmanifest" /> <link rel="stylesheet" href="public/new-assets/css/jquery.fancybox.min.css"> <link rel="stylesheet" href="public/new-assets/css/style.css"> <link rel="stylesheet" href="public/new-assets/css/animate.min.css"> <link rel="stylesheet" type="text/css" href="public/assets/css/gallery-style.css" /> <link rel="stylesheet" href="public/new-assets/css/timercss.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css"> <!-- Google Tag Manager --> <!-- End Google Tag Manager --> <style> .navbar .navbar-nav .nav-link { color: #111; } .b-inner { display: none !important; } .b-home { display: block !important; } .heroSlider .owl-nav button { bottom: auto; top: 50%; left: 15px; transform: translateY(-50%); opacity: 0; } .heroSlider .owl-nav button.owl-next { left: auto; right: 15px; } .heroSlider:hover .owl-nav button { opacity: 1; } .notification { position: fixed; right: 27px; bottom: 98px; z-index: 12; } .bell-icon { text-shadow: 0px 0px 20px #000; position: relative; top: -2px; } .bell-icon:hover { cursor: pointer; } .bell-icon span { width: 8px; height: 8px; position: absolute; top: 0; right: 0; border-radius: 50%; background: #f8a602; } .notifi-listing { position: absolute; right: 45px; bottom: 3px; width: 300px; -webkit-transition: all .5s ease-in-out; -moz-transition: all .5s ease-in-out; transition: all .5s ease-in-out; } .notifi-listing.close-swipe { transform: scale(0); transform-origin: bottom right; -webkit-transition: all .5s ease-in-out; -moz-transition: all .5s ease-in-out; transition: all .5s ease-in-out; } .notifi-listing ul { margin-bottom: 0; } .notifi-listing ul li { list-style-type: none; display: block; } .notifi-listing ul li a { background: rgba(255, 255, 255, .87); border-radius: 20px 20px 0; padding: 15px; line-height: 16px; display: block; margin-bottom: 5px; box-shadow: 7px 5px 10px rgba(0, 0, 0, .1); position: relative; } .notifi-listing ul li:last-child a::after { width: 0; height: 0; border-top: 15px solid transparent; border-bottom: 0 solid transparent; border-left: 15px solid rgba(255, 255, 255, .85); content: ""; position: absolute; right: -15px; bottom: 0; } .noti-title { font-size: 14px; color: #111; font-weight: 600; margin-bottom: 3px; } .noti-para { font-size: 12px; color: #000; margin-bottom: 5px; line-height: 14px; padding-right: 0; } .noti-para strong { font-weight: 600; font-size: 13px; line-height: 13px; margin: 3px 0; display: block; } .noti-link { font-size: 14px; color: #fa183e; font-weight: 600; margin-top: 10px; display: inline-block; border-radius: 50px; border: 1px solid; padding: 8px 10px; transition: all .3s ease-in-out; } .notifi-listing:hover .noti-link { background: #fa183e; color: #fff; } .cusat-logo { position: absolute; bottom: 15px; right: 15px; max-width: 70px; display: none; } .b-home { display: flex !important; } .objective-section { padding-top: 50px; padding-bottom: 90px; } .owl-dots{ display: none!important; } /* @media only screen and (min-width: 1200px) { .heroSlider__item img { padding-top: 90px; } } @media only screen and (min-width: 1400px) { .heroSlider__item img { padding-top: 96px; } } */ @media only screen and (min-width: 768px) { .objective-section { margin-top: -24px; } .about-seciton .about-seciton__content-right { margin-top: -120px; } } @media only screen and (max-width: 1399px) { .about-seciton { margin-top: -90px; } } @media only screen and (max-width: 767px) { .notification { bottom: 80px; } .notifi-listing { transform: scale(1); } .notifi-listing.close-swipe { transform: scale(0); } } @media only screen and (max-width: 575px) { .about-seciton { margin-top: -50px; } .notification { right: 6px; } .objective-section { padding-top: 40px; } } @media only screen and (max-width: 320px) { .notification { right: 24px; } } .allNotification { display:block; } </style> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-TTVPKR87');</script> <!-- End Google Tag Manager --> <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "CollegeOrUniversity", "name": "Rangamati College of Pharmacy", "logo": "https://www.rmpharma.in/public/new-assets/img/rangamati_logo.png", "url": "https://www.rmpharma.in/", "address": { "@type": "PostalAddress", "streetAddress": "Vill+P.O- BANIOR, P.S- Nalhati, Dist- Birbhum, Pin- 731243, West Bengal", "addressLocality": "Birbhum", "addressRegion": "West Bengal", "postalCode": "731243", "addressCountry": "India" }, "sameAs": [] } </script> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-JS8TFRJMRD"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-JS8TFRJMRD'); </script> </head> <body> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TTVPKR87" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <div class="black-bg"></div> <div class="heroBanner"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- Google Tag Manager (noscript) --> <!-- End Google Tag Manager (noscript) --> <!-- Global site tag (gtag.js) - Google Analytics --> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-153070464-1'); </script> <script> $(document).ready(function() { var windowURL = window.location.href; console.log(windowURL); if (windowURL.indexOf('noheaderfooter') > -1) { $('#header').css('display', 'none'); $('#footer').css('display', 'none'); } }); </script> <style> /*.contact-transform-logos { transform: translate(0, -100%); } .logo-flip { height: 65px; overflow: hidden; } .logo-flip img { transition: all .3s ease-in-out; }*/ .navbar.white .b-home { display: flex !important; } /****.btn.btn-lg.cta-btn.mt-4.ms-xl-1.ms-xxl-2{display: none;} Temporary Hide ****/ .navbar .header-btn { border-radius: 50px; padding: 15px 40px; margin-top: 4px; } .call-btn { background-color: #4e6471; font-size: 14px; font-weight: 600; letter-spacing: 1px; color: #fff; position: absolute; top: 130px; right: 0; padding: 10px 20px; border-radius: 50px 0 0 50px; opacity: 0; animation: slideIn 1s forwards 3s; } @keyframes slideIn { 0% { transform: translateX(900px); } 100% { transform: translateX(0); opacity: 1; } } .call-btn:hover { color: #111; } .helpline span { font-size: 10px; font-weight: 300; margin-top: 9px; line-height: 7px; } @media (max-width: 1199px) { .call-btn { position: relative; top: 20px; border-radius: 0; } .navbar .b-home { display: flex!important; } .navbar .brand-logo { border-right: 0; } } </style> <style> .contact-form { position: absolute; top: 20%; right: 100px; width: 400px; background:white; padding: 20px; border-radius: 10px; box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); z-index: 2; } .contact-form-header { padding: 15px; margin-bottom: 10px; border-radius: 8px 8px 0 0; /* Rounded top corners */ text-align: center; /* Center-align the text */ } .header-title { font-size: 24px; /* Larger font size for the title */ font-weight: bold; margin: 0; color:black; } .header-subtitle { font-size: 14px; /* Smaller font for subtitle */ margin: 5px 0 0; color:black; /* Softer white for the subtitle */ } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; } .form-row .form-group { flex: 1; } .contact-form .btn { width: 100%; background-color:#3a5a9b; color: white; font-weight: bold; border: none; padding: 10px; border-radius: 5px; transition: background 0.3s; } .contact-form .btn:hover { background-color:#111d5e; } /* Responsiveness */ @media (max-width: 767px) { .contact-form { position: relative; width: 90%; margin: 20px auto; padding: 15px; border-radius: 8px; margin-top: -50px; left: 0px; } .form-row { grid-template-columns: 1fr; } } </style> <style> #button { display: inline-block; background-color: #3a5a9b; width: 40px; height: 40px; border-radius: 10px; position: fixed; bottom: 20px; right: 20px; opacity: 0; visibility: hidden; z-index: 1000; background-image: url('public/new-assets/img/top-arrow.svg'); background-repeat: no-repeat; background-size: 25px; background-position: center; cursor: pointer; } #button.show { opacity: 1; visibility: visible; } @media only screen and (min-width: 1200px) and (max-width: 1399px){ .navbar .brand-logo .cu-logo{ width: 200px; } .navbar .brand-logo .odl-logo{ width: 110px; } .dd-menu .megaMenu{ top: 89px } } @media only screen and (max-width: 767px){ .programBanner { padding-bottom: 30px; min-height: inherit; } } </style> <?php include_once('includes/common/header_menu.php'); include_once('includes/pages/pages.php'); include_once('includes/common/footer.php'); ?> <div class="whats-float"> <a href="https://api.whatsapp.com/send?phone=+918001001255&text=Hi" target="_blank"> <i class="fa fa-whatsapp"></i><span>Chat now</span> </a> </div> <a id="button"></a> <a id="button"></a> <script> // Set the date we're counting down to var countDownDate = new Date("November 15, 2024 23:59:59").getTime(); // Update the count down every 1 second var x = setInterval(function () { // Get today's date and time var now = new Date().getTime(); // Find the distance between now and the count down date var distance = countDownDate - now; // Time calculations for days, hours, minutes and seconds var days = Math.floor(distance / (1000 * 60 * 60 * 24)); var hours = Math.floor( (distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60) ); var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); var seconds = Math.floor((distance % (1000 * 60)) / 1000); // Display the result in the element with id="demo" /* document.getElementById("demo").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s "; */ document.getElementById("demo").innerHTML = "<div class='demo-timerblock'>" + days + "d </div><div class='demo-timerblock'>" + hours + "h </div><div class='demo-timerblock'>" + minutes + "m </div><div class='demo-timerblock'>" + seconds + "s " + "</div>"; // If the count down is finished, write some text if (distance < 0) { clearInterval(x); document.getElementById("demo").innerHTML = "EXPIRED"; } }, 1000); $(".allNotification__icon").on("click", function () { if (window.localStorage.toggled != "show") { $(".allNotification__list").addClass("show", true); window.localStorage.toggled = "show"; } else { $(".allNotification__list").removeClass("show", false); window.localStorage.toggled = ""; } }); var clickofnotification=1; function clicknotifyfn() { if(clickofnotification==1) { clickofnotification=0; document.getElementById("onoffnotificationid").style.display = "none"; } else { clickofnotification=1; document.getElementById("onoffnotificationid").style.display = "block"; } } </script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="public/assets/js/jquery-migrate-3.4.0.min.js"></script> <script src="public/node_modules/bootstrap/dist/js/bootstrap.bundle.js"></script> <script src="public/new-assets/js/owl.carousel.min.js"></script> <script type="text/javascript" src="public/new-assets/js/jquery.fancybox.min.js"></script> <script type="text/javascript" src="public/assets/js/modernizr.custom.26633.js"></script> <script type="text/javascript" src="public/assets/js/jquery.gridrotator.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script> <!-- jQuery Validation Plugin --> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.21.0/jquery.validate.min.js" integrity="sha512-KFHXdr2oObHKI9w4Hv1XPKc898mE4kgYx58oqsc/JqqdLMDI4YjOLzom+EMlW8HFUd0QfjfAvxSL6sEq/a42fQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.21.0/additional-methods.min.js" integrity="sha512-owaCKNpctt4R4oShUTTraMPFKQWG9UdWTtG6GRzBjFV4VypcFi6+M3yc4Jk85s3ioQmkYWJbUl1b2b2r41RTjA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <!-- SweetAlert for Success Messages --> <script> (function () { 'use strict' document.querySelector('#navbarSideCollapse').addEventListener('click', function () { document.querySelector('.offcanvas-collapse').classList.toggle('open') }) })() $('.heroSlider').owlCarousel({ loop:true, margin:0, nav:true, smartSpeed: 2000, autoplay: true, autoplayTimeout: 15000, items:1, navText: [ '<img src="public/new-assets/img/angle-left.svg" alt="">', '<img src="public/new-assets/img/angle-right.svg" alt="">' ], }); $('.objective-section__slider').owlCarousel({ loop:true, nav:true, smartSpeed: 900, autoplay: 5000, items:3, margin:20, navText: [ '<img src="public/new-assets/img/angle-left.svg" alt="">', '<img src="public/new-assets/img/angle-right.svg" alt="">' ], responsive : { 0 : { items:1, }, 480 : { items:1, }, 768 : { items:2, }, 1200 : { items:3, }, } }); $('.affiliation-slider').owlCarousel({ loop: true, nav: true, smartSpeed: 900, autoplay: true, autoplayTimeout: 5000, items: 3, margin: 20, // navText: [ // '<img src="new-assets/img/angle-left.svg" alt="Previous">', // '<img src="new-assets/img/angle-right.svg" alt="Next">' // ], responsive: { 0: { items: 1, }, 480: { items: 1, }, 768: { items: 2, }, 1200: { items: 5, }, }, }); $('.testimonial-carousel').owlCarousel({ animateOut: 'slideOutDown', animateIn: 'zoomIn', loop:true, margin:0, nav:true, smartSpeed: 900, autoplay: 7000, items:1, navText: [ '<img src="public/new-assets/img/angle-left.svg" alt="">', '<img src="public/new-assets/img/angle-right.svg" alt="">' ] }); $('.education-section__slider').owlCarousel({ loop:false, margin:0, nav:false, smartSpeed: 900, autoplay: 7000, items:1, navText: [ '<img src="public/new-assets/img/angle-left.svg" alt="">', '<img src="public/new-assets/img/angle-right.svg" alt="">' ] }); $('.luminaries-section__slider').owlCarousel({ loop:true, margin:0, nav:true, smartSpeed: 900, autoplay: 7000, items:1, navText: [ '<img src="public/new-assets/img/angle-left.svg" alt="">', '<img src="public/new-assets/img/angle-right.svg" alt="">' ] }); $(document).ready(function() { var previousScroll = 0; $(window).scroll(function() { var currentScroll = $(this).scrollTop(); if (currentScroll > 0 && currentScroll < $(document).height() - $(window).height()) { if (currentScroll > previousScroll) { window.setTimeout(hideNav, 100); } else { window.setTimeout(showNav, 100); } previousScroll = currentScroll; } }); function hideNav() { $(".navbar").removeClass("is-visible").addClass("is-hidden"); } function showNav() { $(".navbar").removeClass("is-hidden").addClass("is-visible"); } $(window).scroll(function() { if($(this).scrollTop() > 100) { $('.navbar').addClass('white'); } else { $('.navbar').removeClass('white'); } }); }); /* mega menu dropdown */ $(".dd-menu").hover(function() { var isHovered = $(this).is(":hover"); if (isHovered) { $(this).children(".megaMenu").stop().fadeIn(300); $(".black-bg").fadeIn(100); } else { $(this).children(".megaMenu").stop().fadeOut(300); $(".black-bg").fadeOut(100); } }); /* breadcrumb remove php extension */ $('.breadcrumb li a').text(function () { return $(this).text().replace(/.php/g, ''); }); var btn = $('#button'); $(window).scroll(function() { if ($(window).scrollTop() > 300) { btn.addClass('show'); } else { btn.removeClass('show'); } }); btn.on('click', function(e) { e.preventDefault(); $('html, body').animate({scrollTop:0}, '300'); }); /*setInterval(function(){ $(".logo-flip img").toggleClass("contact-transform-logos"); }, 4000); */ $('#ri-grid').gridrotator({ rows: 2, columns: 6, maxStep: 8, interval: 2000, w1024: { rows: 2, columns: 6 }, w768: { rows: 4, columns: 3 }, w480: { rows: 5, columns: 3 }, w414: { rows: 4, columns: 2 }, w240: { rows: 7, columns: 3 } }); </script> <!-- <div class="gtranslate_wrapper"></div> <script>window.gtranslateSettings = {"default_language":"en","languages":["en","pa","hi"],"wrapper_selector":".gtranslate_wrapper"}</script> <script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script> --> <script> $(".bell-icon").click(function () { $(".notifi-listing").toggleClass('close-swipe'); }); //document.getElementById("notificationmainid1").style.display = "block"; </script> <script> $(document).ready(function () { // Configure Toastr (Optional Custom Styling) toastr.options = { closeButton: true, progressBar: true, positionClass: "toast-top-right", showDuration: "300", hideDuration: "1000", timeOut: "5000", extendedTimeOut: "1000", showEasing: "swing", hideEasing: "linear", showMethod: "fadeIn", hideMethod: "fadeOut" }; // Admission Form Submission $("#admissionForm").validate({ rules: { name: { required: true, minlength: 2 }, email: { required: true, email: true }, phone: { required: true, minlength: 10, maxlength: 15 }, course: { required: true }, address: { required: true, minlength: 10 }, }, messages: { name: "Please enter your name (at least 2 characters).", email: "Please enter a valid email address.", phone: "Please enter a valid phone number (10-15 digits).", course: "Please select a course.", address: "Please enter your address (at least 10 characters)." }, submitHandler: function (form) { event.preventDefault(); var formData = new FormData($(form)[0]); formData.append('mail_type', 'admission_form'); $.ajax({ type: 'POST', url: 'mail.php', dataType: 'json', data: formData, processData: false, contentType: false, beforeSend: function () { $('.send1').prop('disabled', true).text('Sending...'); }, success: function (response) { if (response.status) { toastr.success(response.message, "Success!"); $("#admissionForm")[0].reset(); } else { toastr.error(response.message, "Error!"); } }, error: function () { toastr.error("An error occurred while submitting the form. Please try again.", "Error!"); }, complete: function () { $('.send1').prop('disabled', false).text('Send Message'); }, }); }, }); // Enquiry Form Submission $("#enquiryForm").validate({ rules: { name: { required: true, minlength: 2 }, phone: { required: true, minlength: 10, maxlength: 15 }, email: { required: true, email: true }, course: { required: true }, dob: { required: true, date: true }, gender: { required: true }, qualification: { required: true }, // address: { required: true, minlength: 10 }, }, messages: { name: "Please enter your name (at least 2 characters).", phone: "Please enter a valid phone number (10-15 digits).", email: "Please enter a valid email address.", course: "Please select a course.", dob: "Please enter a valid date of birth.", gender: "Please select your gender.", qualification: "Please enter your qualification.", // address: "Please enter your address (at least 10 characters).", }, submitHandler: function (form) { event.preventDefault(); var formData = new FormData($(form)[0]); formData.append('mail_type', 'enquiry_form'); $.ajax({ type: 'POST', url: 'mail.php', dataType: 'json', data: formData, processData: false, contentType: false, beforeSend: function () { $('.send').prop('disabled', true).text('Sending...'); }, success: function (response) { if (response.status) { toastr.success(response.message, "Success!"); $("#enquiryForm")[0].reset(); } else { toastr.error(response.message, "Error!"); } }, error: function () { toastr.error("An error occurred while submitting the form. Please try again.", "Error!"); }, complete: function () { $('.send').prop('disabled', false).text('Submit'); }, }); }, }); }); </script> <script> function checkFormCompletion() { const name = document.getElementById('name').value.trim(); const phone = document.getElementById('phone').value.trim(); const email = document.getElementById('email').value.trim(); const course = document.getElementById('course').value; const dob = document.getElementById('dob').value.trim(); const gender = document.getElementById('gender').value; const qualification = document.getElementById('qualification').value.trim(); // const address = document.getElementById('address').value.trim(); const captchaResponse = grecaptcha.getResponse(); const submitButton = document.getElementById('submit-button'); if (name && phone && email && course && dob && gender && qualification && address && captchaResponse.length > 0) { submitButton.disabled = false; } else { submitButton.disabled = true; } } function enableSubmitButton() { checkFormCompletion(); } document.getElementById('enquiryForm').addEventListener('input', checkFormCompletion); document.getElementById('enquiryForm').addEventListener('submit', function(event) { if (document.getElementById('submit-button').disabled) { event.preventDefault(); // Prevent form submission if CAPTCHA is not verified } else { grecaptcha.reset(); document.getElementById('submit-button').disabled = true; } }); </script> <!-- Modal Pop up--> <div class="modal fade" id="myModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel"><?php echo $site_name?></h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body text-center"> <img src="public/img/holiday-notice.png" class="img-fluid mb-3" alt="Placeholder Image"> <p>Welcome to <?php echo $site_name?>.</p> <a href="public/img/holiday-notice.pdf" target="_blank" class="btn btn-primary">Download Notice</a> </div> </div> </div> </div> <script> document.addEventListener("DOMContentLoaded", function() { setTimeout(function() { var myModal = new bootstrap.Modal(document.getElementById('myModal')); myModal.show(); }, 3000); }); </script> <script src="https://www.google.com/recaptcha/api.js" async defer></script> </body> </html>