MMCT TEAM
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 (0755) :  /home2/imyrqtmy/public_html/indiatoursol/backup/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/imyrqtmy/public_html/indiatoursol/backup/package-detail.php
<!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);
   ?>
   <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&amp;family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&amp;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="">
                              <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">DESCRIPTION</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">Inclusion</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">Exclusion</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>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>Inclusion</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>Exclusion</h3>
                                       <p><?php echo $exclusion; ?></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 @ <span style="color: yellow;"><?php echo $price; ?>/-</span></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">
                                       <div class="form-group">
                                           <label>Person</label>
                                           <input type="hidden" name="txtpackageprice" value="<?php echo $price; ?>">
                                            <input id="numberInput" class="number-input" type="number" value="1" readonly name="txtperson">
                                            <input id="rangeInput" name="txtperson" required type="range" min="1" max="100" step="1" value="1" oninput="updatePrice(this.value)">
                                            <input id="priceDisplay" class="price-display" type="number" readonly name="txtprice">
                                       </div>
                                    </div>
                                    <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>
<script>
    // Get the PHP price per person and store it in a JavaScript variable
    var pricePerPerson = <?php echo $price; ?>;

    function updatePrice(value) {
        var numberInput = document.getElementById('numberInput');
        var priceDisplay = document.getElementById('priceDisplay');
        
        numberInput.value = value;
        var totalPrice = value * pricePerPerson;
        priceDisplay.value =totalPrice;
    }

    // Initialize the number input and price display with the default value of the range input
    document.addEventListener('DOMContentLoaded', function() {
        var initialValue = document.getElementById('rangeInput').value;
        updatePrice(initialValue);
    });
</script>
      <!-- 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']);
  $price=mysqli_real_escape_string($conn,$_POST['txtprice']);
  $packageprice=mysqli_real_escape_string($conn,$_POST['txtpackageprice']);
  
//   $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,price,packageprice) values('$name','$email','$mobile','$msg','$enquirydate','1','$city','$package','$tourdate','$person','$price','$packageprice')"; 


              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</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>PAID AMOUNT</th>
    <td>' . $price . '</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>";
                 }
}
?>

MMCT - 2023