HOME


Mini Shell 1.0
DIR: /home/islapiiu/sites/royalescapestours/
Upload File :
Current File : /home/islapiiu/sites/royalescapestours/view-tour-packages.php
<?php
include_once(dirname(__FILE__) . '/class/include.php');
$id = '';
if (isset($_GET['id'])) {
    $id = $_GET['id'];
}
$TOUR = new TourPackage($id);
$tour_dates = TourDate::getTourDatesById($id);

$type = '';
if (isset($_GET['type'])) {
    $type = $_GET['type'];
}
$packages = TourPackage::getTourPackagesByType($type);
?>
<!DOCTYPE HTML>
<html lang="zxx">


    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="keywords" content="royal escapes tour packages, sri lanka tours, sri lanka holidays, beach tours, journey sri lanka, hill country tour, wildlife, family travel, national parks, sri lanka vacations, one day tours, round tours, travel agents in sri lanka, explore sri lanka, sri lanka">
        <meta name="description" content="We have friendly team of expert travel consultants who will provide advice with the client’s best interest in mind.">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Tour Packages | Holiday Packages | Travel Packages | Royal Escapes Sri Lanka Tours</title>
        <link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.png" />
        <!-- Icofont CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/icofont.css" media="all" />
        <!-- Bootstrap CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css" media="all" />
        <!-- jquery ui CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/jquery-ui.min.css" media="all" />
        <!-- Slicknav CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/slicknav.min.css">
        <!-- Owl carousel CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/owl.carousel.css">
        <!-- Popup CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/magnific-popup.css">
        <!-- Main style CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/style.css" media="all" />
        
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
          <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
        <link href="assets/css/custom.css" rel="stylesheet" type="text/css"/>
        <!-- Responsive CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/responsive.css" media="all" />
        <link href="fancybox-master/css/jquery.fancybox.min.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <!-- Page loader -->
        <div id="preloader"></div>
        <!-- header section start -->
        <?php include './header.php'; ?>
        <!-- header section end -->

        <!-- breadcrumb area start -->
        <section class="breadcrumb-area">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="breadcrumb-area-content">
                            <h2><?php echo $TOUR->title ?></h2>
                            <ul>
                                <li><a href="index.php">Home</a></li>
                                <li><a href="tour-packages.php">Tour Packages</a></li>
                                <li class="active active1"><a href="">  
                                        <?php
                                        if ($type == 'one_day') {
                                            echo 'One Day Tours';
                                        } elseif ($type == 'round_tours') {
                                            echo 'Round Tours';
                                        } 
                                        ?>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </section><!-- breadcrumb area end -->
        <!-- blog details section start -->
        <section class="ptb-100">
            <div class="container">
                <div class="row">
                    <div class="col-lg-8 background-fill">
                        <div class="blog-details blog-details1">
                            <?php
                            foreach ($tour_dates as $tour_date) {
                                ?>
                                <h4 class="post-title post-title1"><?php echo $tour_date['title']; ?></h4>
                                <p><?php echo $tour_date['description']; ?></p>
                                <div class="blog-detail-middle blog-detail-middle1">
                                    <?php
                                    $photos = TourDatePhoto::getTourDatePhotosById($tour_date['id']);
                                    foreach ($photos as $key => $photo) {
                                        if ($key < 4) {
                                            ?>
                                            <div class=" col-lg-3 col-md-3 col-sm-6 col-xs-12 tour-images ">
                                                <figure>
                                                    <a class="" href="upload/tour-package/date/gallery/<?php echo $photo['image_name']; ?>" class="" data-fancybox="images" >
                                                        <figcaption class="icon-search">
                                                            <i class="icofont icofont-search tour-icon" style="font-size:30px;color:#000;"></i>
                                                        </figcaption>

                                                        <img src="upload/tour-package/date/gallery/thumb/<?php echo $photo['image_name']; ?>" alt=""/>
                                                    </a>
                                                </figure>
                                            </div>
                                            <?php
                                        }
                                    }
                                    ?>



                                </div>
                                <?php
                            }
                            ?>
                        </div>
                        <a href="booking.php?id=<?php echo $TOUR->id; ?>" class="theme-btn tour-btn">Inquiry Now</a>
                    </div>
                    <div class="col-lg-4">
                        <div class="sidebar sidebar1">
                            <div class="sidebar-widget row">
                                <h4 class="col-sm-12">Other Tour Packages</h4>
                                <?php
                                $packages = TourPackage::getTourPackagesByType($type);
                                foreach ($packages as $key => $tourpackage) {
                                    if ($key < 8) {
                                        ?> 
                                        <div class="widget-post col-sm-6 col-lg-12">
                                            <div class="widget-post-img">
                                                <a href="view-tour-packages.php?id=<?php echo $tourpackage['id']; ?>&type=<?php echo $type; ?>"><img src="upload/tour-package/thumb/<?php echo $tourpackage['image_name']; ?>" alt=""></a>
                                            </div>
                                            <div class="widget-post-info descrip">
                                                <h6><a href="view-tour-packages.php?id=<?php echo $tourpackage['id']; ?>&type=<?php echo $type; ?>">
                                                        <?php
                                                        if (strlen($tourpackage['title']) > 30) {
                                                            echo substr($tourpackage['title'], 0, 30) . '...';
                                                        } else {
                                                            echo $tourpackage['title'];
                                                        }
                                                        ?>
                                                    </a>
                                                </h6>
                                                <p><a href="view-tour-packages.php?id=<?php echo $tourpackage['id']; ?>&type=<?php echo $type; ?>">
                                                        <?php
                                                        if (strlen($tourpackage['short_description']) > 50) {
                                                            echo substr($tourpackage['short_description'], 0, 50) . '...';
                                                        } else {
                                                            echo $tourpackage['short_description'];
                                                        }
                                                        ?>
                                                    </a>
                                                </p>
                                            </div>
                                        </div>
                                        <?php
                                    }
                                }
                                ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- blog details section end -->
        <!-- footer section start -->
        <?php include './footer.php'; ?>
        <!-- footer section end -->
        <a href="#" class="scrollToTop">
            <i class="icofont icofont-arrow-up"></i>
        </a>
        <!-- jquery main JS -->
        <script src="assets/js/jquery.min.js"></script>
        <!-- Bootstrap JS -->
        <script src="assets/js/bootstrap.min.js"></script>
        <!-- jquery ui JS -->
        <script src="assets/js/jquery-ui.min.js"></script>
        <!-- Slicknav JS -->
        <script src="assets/js/jquery.slicknav.min.js"></script>
        <!-- owl carousel JS -->
        <script src="assets/js/owl.carousel.min.js"></script>
        <!-- Popup JS -->
        <script src="assets/js/jquery.magnific-popup.min.js"></script>
        <!-- Counterup JS -->
        <script src="assets/js/jquery.counterup.min.js"></script>
        <!-- Counterup waypoints JS -->
        <script src="assets/js/waypoints.min.js"></script>
        <!-- Isotope JS -->
        <script src="assets/js/isotope.pkgd.min.js"></script>
        <!-- YTPlayer JS -->
        <script src="assets/js/jquery.mb.YTPlayer.min.js"></script>
        <!-- jQuery Easing JS -->
        <script src="assets/js/jquery.easing.1.3.js"></script>
        <!-- main JS -->
        <script src="assets/js/main.js"></script>
        <script src="fancybox-master/js/jquery.fancybox.min.js" type="text/javascript"></script>
        <script async src="https://www.jscache.com/wejs?wtype=cdswritereviewlg&amp;uniq=587&amp;locationId=17594820&amp;lang=en_AU&amp;lang=en_AU&amp;display_version=2" data-loadtrk onload="this.loadtrk=true"></script>
    </body>


</html>