hjkhhrtertererrrrrerrtertertertertertertert
bnmbnerterterterterterdfgdfgdfgdfgdfgdfgdfgdfgdfg
/
home4
/
digil8bw
/
snowcrestresidency.com
/
Upload FileeE
HOME
<?php ob_start(); include("configuration/function-include.php"); $nav="accomodation"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content="Snowcrest Residency best hotel and resort in Manali, Shimla in Himachal Pradesh. Low Rates. Special Offers. Beautiful locations. Book Now."> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Snowcrest Residency - Hotel at Manali</title> <!-- <link rel="icon" href="img/core-img/favicon.png"> --> <link rel="stylesheet" href="style.css"> <style> .swal-footer { text-align: center !important; } </style> </head> <body> <?php include('include/header.php') ?> <div class="breadcrumb-area bg-img bg-overlay jarallax" style="background-image: url(img/bg-img/18.jpg);"> <div class="container h-100"> <div class="row h-100 align-items-center"> <div class="col-12"> <div class="breadcrumb-content text-center"> <h2 class="page-title">Our Room</h2> <nav aria-label="breadcrumb"> <ol class="breadcrumb justify-content-center"> <li class="breadcrumb-item"><a href="./">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Room</li> </ol> </nav> </div> </div> </div> </div> </div> <div class="roberto-rooms-area section-padding-100-0"> <div class="container"> <div class="row"> <div class="col-12 col-lg-8"> <?php $sql_room = "Select * from sh_room where status=1"; $query_room = mysqli_query($conn, $sql_room); while ($res_room = mysqli_fetch_array($query_room)) { ?> <div class="single-room-area d-flex align-items-center mb-50 wow fadeInUp" data-wow-delay="100ms"> <div class="room-thumbnail"> <img src="upload/room/<?php echo $res_room['img']; ?>" alt="<?php echo $res_room['title']; ?>"> </div> <div class="room-content"> <h2><?php echo $res_room['title']; ?></h2> <h4><?php echo $res_room['price']; ?>₹ <span>/ Day with <?php if( $res_room['id']==10){ echo "10%"; }else{ echo "20%"; } ?> Discount</span></h4> <div class="room-feature"> <h6>Size: <span><?php echo $res_room['size']; ?></span></h6> <h6>Capacity: <span>Max persion <?php echo $res_room['capacity']; ?></span></h6> <h6>Bed: <span><?php echo $res_room['bed']; ?></span></h6> <h6>Amenities: <span>Wifi, television ...</span></h6> </div> <a href="accomodation-detail.php?DID=<?php echo $res_room['id']; ?>" class="btn view-detail-btn">View Details <i class="fa fa-long-arrow-right" aria-hidden="true"></i></a> </div> </div> <?php } ?> </div> <div class="col-12 col-lg-4"> <div class="hotel-reservation--area mb-100"> <form action="#" method="post"> <div class="form-group mb-30"> <label for="name">Name</label> <input type="text" required class="form-control" id="name" name="name" placeholder="Name"> </div> <div class="form-group mb-30"> <div class="row no-gutters"> <div class="col-6"> <label for="email">Email</label> <input type="email" required class="form-control" id="email" name="email" placeholder="Email"> </div> <div class="col-6"> <label for="phone">Phone</label> <input type="text" required class="form-control" id="phone" name="phone" placeholder="Phone"> </div> </div> </div> <div class="form-group mb-30"> <label for="checkInDate">Date</label> <div class="input-daterange" id="datepicker"> <div class="row no-gutters"> <div class="col-6"> <input type="text" required class="input-small form-control" id="checkInDate" name="checkInDate" placeholder="Check In"> </div> <div class="col-6"> <input type="text" required class="input-small form-control" name="checkOutDate" placeholder="Check Out"> </div> </div> </div> </div> <div class="form-group mb-30"> <label for="guests">Guests</label> <div class="row"> <div class="col-6"> <select name="adults" required id="guests" class="form-control"> <option value="adults">Adults</option> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option value="05">05</option> <option value="06">06</option> </select> </div> <div class="col-6"> <select name="children" required id="children" class="form-control"> <option value="children">Children</option> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option value="05">05</option> <option value="06">06</option> </select> </div> </div> </div> <div class="form-group"> <button type="submit" class="btn roberto-btn w-100">Check Available</button> </div> </form> </div> </div> </div> </div> </div> <section class="roberto-cta-area"> <div class="container"> <div class="cta-content bg-img bg-overlay jarallax" style="background-image: url(img/bg-img/18.jpg);"> <div class="row align-items-center"> <div class="col-12 col-md-7"> <div class="cta-text mb-50"> <h2>Contact us now!</h2> <h6>Contact (+91) 70181 92690 to book directly or for advice</h6> </div> </div> <div class="col-12 col-md-5 text-right"> <a href="contact-us.php" class="btn roberto-btn mb-50">Contact Now</a> </div> </div> </div> </div> </section> <?php include('include/footer.php') ?> <script src="js/jquery.min.js"></script> <script src="js/popper.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/roberto.bundle.js"></script> <script src="js/default-assets/active.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"></script> <script> $(document).on('keypress', '#name', function(event) { var regex = new RegExp("^[a-zA-Z ]+$"); var key = String.fromCharCode(!event.charCode ? event.which : event.charCode); if (!regex.test(key)) { event.preventDefault(); return false; } }); $('#phone').on('input', function(event) { this.value = this.value.replace(/[^0-9]/g, ''); }); </script> <?php /* if (!empty($_POST['name'])) { $to = 'hotelsnowcrestresidency@gmail.com'; $subject = 'New Query Received'; $message = "<h3>A new query has been received, details are as follows:</h3> <p>Name: " . $_POST['name'] . "</p> <p>Phone Number: " . $_POST['phone'] . "</p> <p>Email: " . $_POST['email'] . "</p> <p>Check In Date: " . $_POST['checkInDate'] . "</p> <p>Check Out Date: " . $_POST['checkOutDate'] . "</p> <p>Adults: " . $_POST['adults'] . "</p> <p>Children: " . $_POST['children'] . "</p> <h5>Thanks, </h5> <h5>Snowcrest</h5> "; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // Additional headers $headers .= 'From: Snowcrest<contact@snowcrest.in>' . "\r\n"; if (mail($to, $subject, $message, $headers)) { echo ' <script type="text/javascript"> $(document).ready(function(){ swal("Message sent!", "", "success"); }); </script> '; exit; } else { echo ' <script type="text/javascript"> $(document).ready(function(){ swal("Oops...", "Something went wrong :(", "error"); }); </script> '; exit; } } */ if (!empty($_POST['name'])) { $name = mysqli_real_escape_string($conn, $_POST['name']); $phone = mysqli_real_escape_string($conn, $_POST['phone']); $email = mysqli_real_escape_string($conn, $_POST['email']); $checkin = mysqli_real_escape_string($conn, $_POST['checkInDate']); $checkout = mysqli_real_escape_string($conn, $_POST['checkOutDate']); $adults = mysqli_real_escape_string($conn, $_POST['adults']); $children = mysqli_real_escape_string($conn, $_POST['children']); $sql_insert = "insert into sh_booking set name = '" . $name . "', phone = '" . $phone . "', email = '" . $email . "', checkin = '" . $checkin . "',checkout = '" . $checkout . "',adults = '" . $adults . "',children = '" . $children . "', insert_date = '" . date("Y-m-d h:i:sa") . "', status = '1'"; $query_insert = mysqli_query($conn, $sql_insert); if ($query_insert) { echo ' <script type="text/javascript"> $(document).ready(function(){ swal("Message sent!", "", "success"); }); </script> '; exit; } else { echo ' <script type="text/javascript"> $(document).ready(function(){ swal("Oops...", "Something went wrong :(", "error"); }); </script> '; exit; } } ?> </body> </html>