Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/imyrqtmy/public_html/asiatourhub/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!doctype html> <html lang="en"> <head> <?php include 'admin/dbc.php' ?> <!-- <base href="<?php echo $weburl; ?>"> --> <?php $geturl=$_GET['url']; $sql=mysqli_query($conn,"select * from tbl_product where url='$geturl'")or die(mysqli_error()); $row=mysqli_fetch_assoc($sql); extract($row); $destinationid=$row['category_id']; $destinationidAry = explode(',',$destinationid); $packageid=$row['id']; ?> <style> .number-display { margin-left: 10px; font-weight: bold; } </style> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <!-- favicon --> <!-- <link rel="icon" type="image/png" href="assets/images/favicon.png"> --> <!-- Bootstrap CSS --> <link rel="stylesheet" href="assets/vendors/bootstrap/css/bootstrap.min.css" media="all"> <!-- Fonts Awesome CSS --> <link rel="stylesheet" type="text/css" href="assets/vendors/fontawesome/css/all.min.css"> <!-- jquery-ui css --> <link rel="stylesheet" type="text/css" href="assets/vendors/jquery-ui/jquery-ui.min.css"> <!-- modal video css --> <link rel="stylesheet" type="text/css" href="assets/vendors/modal-video/modal-video.min.css"> <!-- light box css --> <link rel="stylesheet" type="text/css" href="assets/vendors/lightbox/dist/css/lightbox.min.css"> <!-- slick slider css --> <link rel="stylesheet" type="text/css" href="assets/vendors/slick/slick.css"> <link rel="stylesheet" type="text/css" href="assets/vendors/slick/slick-theme.css"> <!-- google fonts --> <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.21/dist/sweetalert2.all.min.js"></script> <link href="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.21/dist/sweetalert2.min.css" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap" rel="stylesheet"> <!-- Custom CSS --> <link rel="stylesheet" type="text/css" href="style.css"> <title><?php echo $productname; ?> | India Tour Solution </title> </head> <body> <div id="page" class="full-page"> <?php include 'includes/header.php' ?> <main id="content" class="site-main"> <!-- Inner Banner html start--> <section class="inner-banner-wrap"> <!-- <div class="inner-baner-container" style="background-image: url(assets/images/package-details.webp);"> <div class="container"> <div class="inner-banner-content"> <h1 class="inner-title"><?php echo $productname; ?></h1> </div> </div> </div> --> <div class="inner-shape"></div> </section> <!-- Inner Banner html end--> <div class="single-tour-section"> <div class="container"> <div class="row"> <div class="col-lg-8"> <div class="single-tour-inner"> <h2><?php echo $productname; ?></h2> <figure class="feature-image"> <img src="media/product/<?php echo $image1; ?>" alt="<?php echo $image1; ?>"> <div class="package-meta text-center"> <ul> <li> <i class="far fa-clock"></i> <?php echo $days; ?> Day </li> <li> <i class="fas fa-map-marked-alt"></i> <?php $isFirst = true; // Initialize a flag to track the first iteration foreach ($destinationidAry as $destinationid) { $destinationid = mysqli_real_escape_string($conn, $destinationid); $sqldestination = mysqli_query($conn, "SELECT * FROM tbl_category WHERE id='$destinationid'") or die(mysqli_error($conn)); if ($rowdestination = mysqli_fetch_assoc($sqldestination)) { if (!$isFirst) { echo ', '; } else { $isFirst = false; } echo '<span>' . $rowdestination['name'] . '</span>'; } } ?> </li> </ul> </div> </figure> <div class="tab-container"> <ul class="nav nav-tabs" id="myTab" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="overview-tab" data-toggle="tab" href="#overview" role="tab" aria-controls="overview" aria-selected="true">OVERVIEW</a> </li> <li class="nav-item"> <a class="nav-link" id="program-tab" data-toggle="tab" href="#program" role="tab" aria-controls="program" aria-selected="false"> ITINERARY</a> </li> <li class="nav-item"> <a class="nav-link" id="review-tab" data-toggle="tab" href="#review" role="tab" aria-controls="review" aria-selected="false"> HIGHLIGHTS</a> </li> <li class="nav-item"> <a class="nav-link" id="faq-tab" data-toggle="tab" href="#faq" role="tab" aria-controls="faq" aria-selected="false">FAQ's</a> </li> </ul> <div class="tab-content" id="myTabContent"> <div class="tab-pane fade show active" id="overview" role="tabpanel" aria-labelledby="overview-tab"> <div class="overview-content"> <h3 style="color:green;">Overwiew</h3> <p><?php echo $long_description; ?></p> </div> </div> <div class="tab-pane" id="program" role="tabpanel" aria-labelledby="program-tab"> <div class="itinerary-content"> <h3 style="color:green;">Itinerary</h3> <p><?php echo $inclusion; ?></p> </div> </div> <div class="tab-pane" id="review" role="tabpanel" aria-labelledby="review-tab"> <div class="itinerary-content"> <h3 style="color:green;">Highlights </h3> <p><?php echo $exclusion; ?></p> </div> </div> <div class="tab-pane" id="faq" role="tabpanel" aria-labelledby="faq-tab"> <div class="itinerary-content"> <h3 style="color:green;">FAQ's</h3> <p><?php echo $faq; ?></p> </div> </div> </div> </div> <div class="single-tour-gallery"> <h3>GALLERY / PHOTOS</h3> <div class="single-tour-slider"> <?php if($image2!=="") {?> <div class="single-tour-item"> <figure class="feature-image"> <img src="media/product/<?php echo $image2;?>" alt=""> </figure> </div> <?php } ?> <?php if($image3!=="") {?> <div class="single-tour-item"> <figure class="feature-image"> <img src="media/product/<?php echo $image3;?>" alt=""> </figure> </div> <?php } ?> <?php if($image4!=="") {?> <div class="single-tour-item"> <figure class="feature-image"> <img src="media/product/<?php echo $image4;?>" alt=""> </figure> </div> <?php } ?> <?php if($image5!=="") {?> <div class="single-tour-item"> <figure class="feature-image"> <img src="media/product/<?php echo $image5;?>" alt=""> </figure> </div> <?php } ?> <?php if($image6!=="") {?> <div class="single-tour-item"> <figure class="feature-image"> <img src="media/product/<?php echo $image6;?>" alt=""> </figure> </div> <?php } ?> </div> </div> </div> </div> <div class="col-lg-4"> <div class="sidebar"> <div class="widget-bg booking-form-wrap"> <h4 class="bg-title" style="font-family: 'Open Sans';">Book Now</h4> <form method="POST" enctype="multipart/form-data" action="" class="booking-form"> <div class="row"> <div class="col-sm-12"> <div class="form-group"> <input name="txtname" required type="text" placeholder="Full Name *"> <input name="txtpackage" type="hidden" value="<?php echo $productname; ?>"> </div> </div> <div class="col-sm-12"> <div class="form-group"> <input name="txtemail" type="email" required placeholder="Email *"> </div> </div> <div class="col-sm-12"> <div class="form-group"> <input name="txtmobile" required type="text" placeholder="Mobile Number *"> </div> </div> <div class="col-sm-12"> <div class="form-group"> <input name="txtcity" required type="text" placeholder="Your City *"> </div> </div> <div class="col-sm-12"> <div class="form-group"> <input class="input-date-picker" required type="text" name="txttourdate" autocomplete="off" readonly="readonly" placeholder="Date"> </div> </div> <div class="col-sm-12"> <div class="form-group"> <textarea name="txtmsg" type="text" placeholder="Your Message"></textarea> </div> </div> <div class="col-sm-12"> <?php $sqlpackagetype = mysqli_query($conn, "SELECT * FROM tbl_package_type WHERE productid='$packageid' ORDER BY order_number ASC") or die(mysqli_error($conn)); $firstRadio = true; // Flag to identify the first radio button while($rowpt = mysqli_fetch_assoc($sqlpackagetype)) { ?> <div class="form-check" style="background-color: white;padding: 27px;margin-bottom: 8px;"> <input type="radio" class="form-check-input" id="radio<?php echo $rowpt['id']; ?>" name="optradio" value="<?php echo $rowpt['price']; ?>" data-package-id="<?php echo $rowpt['id']; ?>" data-package-type="<?php echo $rowpt['title']; ?>" data-package-price="<?php echo $rowpt['price']; ?>" <?php if($firstRadio) { echo 'checked'; $firstRadio = false; } ?>> <label class="form-check-label" for="radio<?php echo $rowpt['id']; ?>" style="font-size: 13px;"> <p style="margin: 0 0 8px"><b><?php echo $rowpt['title']; ?></b></p> <p style="margin: 0 0 8px">Includes : <?php echo $rowpt['includes']; ?></p> <p style="margin: 0 0 8px"><?php echo $rowpt['price_desc']; ?></p> <p style="margin: 0 0 8px"><b>Total : ₹<?php echo $rowpt['price']; ?>/-</b></p> <p style="margin: 0 0 8px"><?php echo $rowpt['notes']; ?></p> </label> </div> <?php } ?> </div> <div class="col-sm-12"> <div class="form-group"> <label>Number of Travelers</label> <input name="txtperson" id="txtperson" required type="number" placeholder="Number of Travelers" step="1" value="1" min="1" max="15"> </div> </div> <div class="col-sm-12"> <div class="form-group"> <label>Total Pay </label> <input id="txtprice" required type="number" readonly> </div> </div> <!-- Hidden inputs to store package ID and total price --> <input type="hidden" name="txtpackage_id" id="package_id"> <input type="hidden" name="txttotal_price" id="total_price"> <input type="hidden" name="txtpackage_type" id="package_type"> <input type="hidden" name="txtpackage_price" id="package_type_price"> <script> function updateTotalPrice() { const numberOfTravelers = parseInt(document.getElementById('txtperson').value, 10); const selectedRadio = document.querySelector('input[name="optradio"]:checked'); const selectedPackagePrice = parseFloat(selectedRadio.value); const selectedPackageId = selectedRadio.getAttribute('data-package-id'); const selectedPackageTitle = selectedRadio.getAttribute('data-package-type'); const selectedPackagePricePerPerson = selectedRadio.getAttribute('data-package-price'); if(numberOfTravelers ==1){ personPrice = selectedPackagePrice * numberOfTravelers; //alert(personPrice); } else if(numberOfTravelers ==2) { personPrice = (selectedPackagePrice / 2) + selectedPackagePrice; //alert(personPrice); } else if(numberOfTravelers ==3) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5; // alert(personPrice); } else if(numberOfTravelers ==4) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5; } else if(numberOfTravelers ==5) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5 *1.5; } else if(numberOfTravelers ==6) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5 *1.5 *1.5; } else if(numberOfTravelers ==7) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5 *1.5 *1.5 *1.5; } else if(numberOfTravelers ==8) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5 *1.5 *1.5 *1.5 *1.5; } else if(numberOfTravelers ==9) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5; } else if(numberOfTravelers ==10) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5; } else if(numberOfTravelers ==11) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5; } else if(numberOfTravelers ==12) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5; } else if(numberOfTravelers ==13) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5; } else if(numberOfTravelers ==14) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5; } else if(numberOfTravelers ==15) { personPrice = ((selectedPackagePrice / 2) + selectedPackagePrice) *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5 *1.5; } const totalPrice = Math.round(personPrice); document.getElementById('txtprice').value = totalPrice; document.getElementById('package_id').value = selectedPackageId; document.getElementById('total_price').value = totalPrice; document.getElementById('package_type').value = selectedPackageTitle; document.getElementById('package_type_price').value = selectedPackagePricePerPerson; } document.getElementById('txtperson').addEventListener('input', updateTotalPrice); document.querySelectorAll('input[name="optradio"]').forEach((radio) => { radio.addEventListener('change', updateTotalPrice); }); // Initial calculation on page load updateTotalPrice(); </script> <div class="col-sm-12"> <div class="form-group submit-btn"> <input type="submit" style="width:100%" name="sendmessage" value="SUBMIT"> </div> </div> </div> </form> </div> <div class="widget-bg information-content text-center"> <h5>Tours Packages</h5> <h3>We Would Love to Hear from You !</h3> <p>Welcome to Our Packages Page of India Tour Solution, where we offer exceptional packages designed to help you embark on a transformative journey to this sacred land. Immerse yourself in the essence of spiritual bliss, explore sacred sites, and create lifelong memories as you discover the vibrant culture and rich traditions of India.</p> <a href="https://api.whatsapp.com/send?phone=91" class="button-primary" style="background-color: green;"> Whatsapp Now </a> </div> <div class="travel-package-content text-center" style="background-image: url(assets/images/img11.jpg);"> <h5>MORE PACKAGES</h5> <h3>OTHER TRAVEL PACKAGES</h3> <ul> <?php $sqlpackage=mysqli_query($conn,"select * from tbl_product where status='1' ORDER BY ordernumber asc")or die(mysqli_error()); while($rowpackage=mysqli_fetch_assoc($sqlpackage)) { ?> <li> <a href="package-detail/<?php echo $rowpackage['url']; ?>.html"><i class="far fa-arrow-alt-circle-right"></i><?php echo $rowpackage['productname'];?></a> </li> <?php }?> </ul> </div> </div> </div> </div> </div> </div> </main> <?php include 'includes/footer.php' ?> <!-- header html end --> </div> <!-- JavaScript --> <script src="assets/js/jquery.js"></script> <script src="assets/vendors/bootstrap/js/bootstrap.min.js"></script> <script src="assets/vendors/jquery-ui/jquery-ui.min.js"></script> <script src="assets/vendors/countdown-date-loop-counter/loopcounter.js"></script> <script src="assets/js/jquery.counterup.js"></script> <script src="assets/vendors/modal-video/jquery-modal-video.min.js"></script> <script src="assets/vendors/masonry/masonry.pkgd.min.js"></script> <script src="assets/vendors/lightbox/dist/js/lightbox.min.js"></script> <script src="assets/vendors/slick/slick.min.js"></script> <script src="assets/js/jquery.slicknav.js"></script> <script src="assets/js/custom.min.js"></script> </body> </html> <?php if(isset($_POST['sendmessage'])) { $name=mysqli_real_escape_string($conn,$_POST['txtname']); $mobile=mysqli_real_escape_string($conn,$_POST['txtmobile']); $email=mysqli_real_escape_string($conn,$_POST['txtemail']); $msg=mysqli_real_escape_string($conn,$_POST['txtmsg']); $tourdate=mysqli_real_escape_string($conn,$_POST['txttourdate']); $city=mysqli_real_escape_string($conn,$_POST['txtcity']); $package=mysqli_real_escape_string($conn,$_POST['txtpackage']); $person=mysqli_real_escape_string($conn,$_POST['txtperson']); $packagetype=mysqli_real_escape_string($conn,$_POST['txtpackage_type']); $packageprice=mysqli_real_escape_string($conn,$_POST['txtpackage_price']); $packagetotalprice=mysqli_real_escape_string($conn,$_POST['txttotal_price']); // $email2="enquiry@englishallianceindia.com"; date_default_timezone_set("Asia/Kolkata"); $enquirydate=date("d-m-Y / h:i:s a"); $sql="insert into tbl_package_enquiry(name,email,mobile,message,datee,status,city,package,tourdate,person,totalprice,packageprice,packagetype) values('$name','$email','$mobile','$msg','$enquirydate','1','$city','$package','$tourdate','$person','$packagetotalprice','$packageprice','$packagetype')"; if(mysqli_query($conn,$sql) or die (mysqli_error($conn))) { // new code $email2 = "nishantgupta247@gmail.com"; $to = 'nishantgupta247@gmail.com'; // Add Vendor ID $subject = 'India Tour Solution Packages Enquiry'; // HTML content to be sent as email body $html_content = '<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>India Tour Solution Enquiry</title> <style> body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f4f4; } .container { max-width: 600px; margin: 0 auto; padding: 20px; background-color: #fff; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); } h1 { color: #333; } p { font-size: 16px; line-height: 1.5; } .footer { margin-top: 20px; color: #555; } table { width: 100%; border-collapse: collapse; margin-bottom: 20px; } th, td { border: 1px solid #000; padding: 8px; text-align: left; } th { background-color: #f2f2f2; font-weight: bold; } tr:nth-child(even) { background-color: #f9f9f9; } tr:hover { background-color: #e6f7ff; } </style> </head> <body> <div class="container"> <h1>India Tour Solution Enquiry</h1> <table> <tr> <th>NAME</th> <td>' . $name . '</td> </tr> <tr> <th>MOBILE</th> <td>' . $mobile . '</td> </tr> <tr> <th>EMAIL ID</th> <td>' . $email . '</td> </tr> <tr> <th>MESSAGE</th> <td>' . $msg . '</td> </tr> <tr> <th>CITY</th> <td>' . $city . '</td> </tr> <tr> <th>PACKAGE NAME</th> <td>' . $package . '</td> </tr> <tr> <th>TOUR DATE</th> <td>' . $tourdate . '</td> </tr> <tr> <th>PACKAGE PRICE</th> <td>' . $packageprice . '</td> </tr> <tr> <th>PERSON </th> <td>' . $person . '</td> </tr> <tr> <th>PACKAGE TYPE</th> <td>' . $packagetype . '</td> </tr> <tr> <th>TOTAL AMOUNT</th> <td>' . $packagetotalprice . '</td> </tr> </table> <div class="footer"> <p>Best regards,</p> <p>India Tour Solution</p> </div> </div> </body> </html>'; // Headers $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= "From:" . $email2; // Send the email with both HTML and plain text versions mail($to, $subject, $html_content, $headers); ?> <script> Swal.fire({ position: 'top-bottom', icon: 'success', title: 'Thank you ! We will Contact you Soon.', showConfirmButton: false, timer: 1500 }).then(function() { window.location.href = window.location.href; }); </script> <?php } else { echo "<script> alert('error');</script>"; } } ?>