View file File name : accomodation.php Content :<?php include './db.php'; include './function.php'; $id = ""; if (isset($_GET['id'])) { $id = $_GET['id']; } else { $id = 1; } $rooms = getAllRooms(); $roomdetail = getOneRoom($id); ?> <!DOCTYPE html> <html lang="en"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>Accommodations | Villa Effort | Ahangama</title> <meta name="keywords" content="villa effort ahangama, ahangama luxury rooms, luxury rooms in ahangama, budget accommodation in ahangama, Luxury Hotels in ahangama, Ahangama Hotels, Villa in Ahangama, ahangama accommodations, rooms in ahangama, ahangama rooms"> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" type="image/png" sizes="32x32" href="images/favicon.png"> <link rel="stylesheet" type="text/css" href="revolution/css/settings.css"> <link rel="stylesheet" type="text/css" href="revolution/css/layers.css"> <link rel="stylesheet" type="text/css" href="revolution/css/navigation.css"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="css/colors.css"> <link rel="stylesheet" href="css/custom.css"> <link href="galleria/themes/classic/galleria.classic.css" rel="stylesheet" type="text/css"/> <link href="css/responsive.css" rel="stylesheet" type="text/css"/> <script src="js/jquery-1.9.1.js"></script> </head> <body> <!-- <div id="preloader"> <img class="preloader" src="images/loader.gif" alt=""> </div>--> <div id="wrapper"> <?php include './header.php'; ?> <div class="page-parallax parallax parallax-off" data-stellar-background-ratio="1" style="background-image:url('images/banner/view-ooms.jpg');"> </div> <div class="page-title"> <div class="container"> <div class="section-title"> <h3>Accommodations</h3> <p class="lead">Discover the unexpected and unique travel temptation in the surfing beach of Ahangama, that reaches beyond your<br> expectation under the natural ambience with greenery lush</p> </div> </div> </div> <div class="section" style="margin-top: -60px;"> <div class="container"> <div class="row"> <div class="col-md-3"> <div class="message-box"> <div class="nav nav-pills nav-stacked" id="myTabs"> <?php foreach ($rooms as $key => $room) { ?> <script> $(document).ready(function () { var fullurl = window.location.href; var path = fullurl.split('/')['3']; if (path == 'accomodation.php?id=<?php echo $room['id']; ?>#tab-content') { $("#room2_<?php echo $room['id']; ?>").addClass("active"); $("#room_<?php echo $room['id']; ?>").removeClass("active"); } }); </script> <li id="room2_<?php echo $room['id']; ?>"><a href = "accomodation.php?id=<?php echo $room['id']; ?>#tab-content"><?php echo $room['title']; ?></a></li> <?php } ?> </div> </div> <br/> <div class="alert alert-info text-justify"> <strong class="text-info">Our Policy</strong> <br/> The guest will be charged 30% of the total price if they cancel after reservation and a further 20% of the total price if they cancel in the 60 days before arrival.</div> <div class="alert alert-info text-justify"> <strong class="text-info ">Extra Beds</strong> <br/> There is an option for extra bed for children 6-12 with 15$ per night even children above 12 years or adults 35$ per night. Infant’s or kids up to 6 years old can stay in existing beds. </div> </div> <div class="col-md-9"> <div id="tab-content"> <div class="row"> <h1 class="text-center room-title"><?php echo $roomdetail['title']; ?></h1> <div class="col-md-12"> <div id="galleria" style="border: solid 1px #AFAFAF; box-shadow: 0px 0px 4px #6F6F6F; margin-bottom: 20px;"> <?php $roomphotos = getAllRoomsPhotos($id); if (count($roomphotos) > 0) { foreach ($roomphotos as $img) { ?> <a href="images/rooms/gallery/<?php echo $img['image_name']; ?>"> <img src="images/rooms/gallery/thumb/<?php echo $img['image_name']; ?>" data-title="<?php echo $img['caption']; ?>" class="img-responsive" > </a> <?php } } else { ?> <b>No images in the database.</b> <?php } ?> </div> </div> </div> <hr class="invis"> <div class="text-justify"><?php echo $roomdetail['description']; ?></div> <!-- <div class="price pull-left" style="margin-right: 39px;"> <p> Per Night $<?php echo $roomdetail['priceRO']; ?> (RO) <br/> <small style="color: white;">Room Only</small> </p> </div> <div class="price pull-left"> <p> Per Night $<?php echo $roomdetail['price']; ?> (BB) <br/> <small style="color: white;">Bed & Breakfast </small> </p> </div>--> <div class="pricing-box-03-foot pull-right view-all"> <a href="reservation-form.php?type=<?php echo $room['id']; ?>" class="btn btn-primary">Reservation</a> </div> </div> </div> </div> </div> </div> <?php include './footer.php'; ?> </div> <script src="js/all.js"></script> <script src="js/custom.js"></script> <script src="galleria/galleria-1.4.2.min.js" type="text/javascript"></script> <script src="galleria/themes/classic/galleria.classic.min.js" type="text/javascript"></script> <script type="text/javascript"> $('#galleria').galleria({ responsive: true, height: 500, autoplay: 7000, lightbox: true, showInfo: false, imageCrop: false }); </script> </body> </html>