示例#1
0
<?php

// any new page must start with the page_header, it will include the correct files
// so that the rezgo parser classes and functions will be available to your templates
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite($_REQUEST['sec']);
// remove the 'mode=page_type' from the query string we want to pass on
$_SERVER['QUERY_STRING'] = preg_replace("/([&|?])?mode=([a-zA-Z_]+)/", "", $_SERVER['QUERY_STRING']);
$site->setPageTitle($_REQUEST['title'] ? $_REQUEST['title'] : ucwords(str_replace("page_", "", $_REQUEST['mode'])));
if ($_REQUEST['mode'] == 'page_details') {
    /*
    	this query searches for an item based on a com id (limit 1 since we only want one response)
    	then adds a $f (filter) option by uid in case there is an option id, and adds a date in case there is a date set	
    */
    $item = $site->getTours('t=com&q=' . $_REQUEST['com'] . '&f[uid]=' . $_REQUEST['option'] . '&d=' . $_REQUEST['date'] . '&limit=1', 0);
    // if the item does not exist, we want to generate an error message and change the page accordingly
    if (!$item) {
        $item->unavailable = 1;
        $item->name = 'Item Not Available';
    }
    if ($item->seo->seo_title != '') {
        $site->setPageTitle($item->seo->seo_title);
    } else {
        $site->setPageTitle($item->item);
    }
    $site->setMetaTags('
			<meta name="description" content="' . $item->seo->introduction . '" /> 
			<meta property="og:title" content="' . $item->seo->seo_title . '" /> 
			<meta property="og:description" content="' . $item->seo->introduction . '" /> 
			<meta property="og:image" content="' . $item->media->image[0]->path . '" /> 
示例#2
0
<?php

// any new page must start with the page_header, it will include the correct files
// so that the rezgo parser classes and functions will be available to your templates
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
$site->setPageTitle('System Error');
?>

<?php 
echo $site->getTemplate('frame_header');
?>

<?php 
echo $site->getTemplate('error');
?>
						
<?php 
echo $site->getTemplate('frame_footer');
示例#3
0
<?php

// This is the about us page
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
?>

<?php 
echo $site->getTemplate('frame_header');
?>

<?php 
echo $site->getTemplate('404page');
?>
			
<?php 
echo $site->getTemplate('frame_footer');
示例#4
0
<?php

// any new page must start with the page_header, it will include the correct files
// so that the rezgo parser classes and functions will be available to your templates
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
$company = $site->getCompanyDetails();
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		
	  <meta name="viewport" content="width=device-width, initial-scale=1.0">
	  <meta name="robots" content="noindex, nofollow">
	  <title>Booking Summary for <?php 
echo $_REQUEST[trans_num];
?>
</title>
    
    <!-- Bootstrap CSS -->
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css" rel="stylesheet">
    
    <!-- Font awesome --> 
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <!--[if IE 7]>
      <link href="<?php 
echo $site->path;
?>
示例#5
0
<?php

// This is the booking receipt page
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
// grab and decode the trans_num if it was set
$trans_num = $site->decode($_REQUEST['trans_num']);
// send the user home if they shoulden't be here
if (!$trans_num) {
    $site->sendTo($site->base . "/booking-not-found");
}
// start a session so we can grab the analytics code
session_start();
// empty the cart
$site->clearCart();
$site->setMetaTags('<meta name="robots" content="noindex, nofollow">');
?>

<?php 
echo $site->getTemplate('frame_header');
?>


<?php 
if (strlen($trans_num) == 16) {
    ?>
	
	<?php 
    echo $site->getTemplate('booking_order');
    ?>
示例#6
0
<?php

// any new page must start with the page_header, it will include the correct files
// so that the rezgo parser classes and functions will be available to your templates
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
echo $site->getTemplate('frame_header');
echo $site->getTemplate('tour_details');
echo $site->getTemplate('frame_footer');
示例#7
0
<?php

// This page is the calendar display, it is fetched via AJAX to display the calendar
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
?>

<?php 
echo $site->getTemplate('edit_pax');
示例#8
0
<?php

// This page is the credit card payment display, it is fetched via iframe to display the form
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite(secure);
?>

<?php 
echo $site->getTemplate('booking_payment');
示例#9
0
<?php

// any new page must start with the page_header, it will include the correct files
// so that the rezgo parser classes and functions will be available to your templates
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
?>

<?php 
echo $site->getTemplate('frame_header');
?>

<?php 
echo $site->getTemplate('contact');
?>

<?php 
echo $site->getTemplate('frame_footer');
示例#10
0
<?php

// any new page must start with the page_header, it will include the correct files
// so that the rezgo parser classes and functions will be available to your templates
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
header("Content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
$now = date("c", strtotime('now'));
?>

<!-- generated-on="<?php 
echo date("F d, Y g:i a", strtotime('now'));
?>
" -->

<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">	
	<url>
		<loc>http://<?php 
echo $_SERVER[HTTP_HOST];
?>
/</loc>
		<lastmod><?php 
echo $now;
?>
</lastmod>
		<changefreq>daily</changefreq>
		<priority>1.0</priority>
	</url>
	<url>
示例#11
0
<?php

// This is the about us page
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
$title = $site->getPageName($page);
$site->setPageTitle($title);
?>

<?php 
echo $site->getTemplate('frame_header');
?>

<?php 
echo $site->getTemplate('content_page');
?>

<?php 
echo $site->getTemplate('frame_footer');
<?php

// This is the printable version of booking_complete.php
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
?>

<?php 
echo $site->getTemplate('booking_complete_print.php');
示例#13
0
<?php

// This page is the calendar display, it is fetched via AJAX to display the calendar
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
?>

<?php 
echo $site->getTemplate('calendar_day');
示例#14
0
<?php

// This is the about us page
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
?>

<?php 
echo $site->getTemplate('frame_header');
?>

<?php 
echo $site->getTemplate('about');
?>
			
<?php 
echo $site->getTemplate('frame_footer');
示例#15
0
<?php

// any new page must start with the page_header, it will include the correct files
// so that the rezgo parser classes and functions will be available to your templates
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
// save the current search to a cookie so we can return to it
if ($_REQUEST['search'] != 'restore') {
    $site->saveSearch();
}
// some code to handle the pagination
if (!$_REQUEST['pg']) {
    $_REQUEST['pg'] = 1;
}
$start = ($_REQUEST['pg'] - 1) * REZGO_RESULTS_PER_PAGE;
// we only want 11 responses, starting at our page number times item number
$site->setTourLimit(REZGO_RESULTS_PER_PAGE + 1, $start);
echo $site->getTemplate('index_ajax');
示例#16
0
<?php

// This page is the calendar display, it is fetched via AJAX to display the calendar
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
/*
	this query searches for an item based on a com id (limit 1 since we only want one response)
	then adds a $f (filter) option by uid in case there is an option id, and adds a date in case there is a date set	
*/
$item = $site->getTours('t=com&q=' . $_REQUEST['com'] . '&d=' . $_REQUEST['date'] . '&limit=1', 0);
// if the item does not exist, we want to generate an error message and change the page accordingly
if (!$item) {
    $item->unavailable = 1;
    $item->name = 'Item Not Available';
}
?>

<?php 
echo $site->getTemplate('calendar_month');
示例#17
0
<?php

// any new page must start with the page_header, it will include the correct files
// so that the rezgo parser classes and functions will be available to your templates
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
if ($_REQUEST['search'] == 'restore' && $_COOKIE['rezgo_search']) {
    $site->sendTo($_COOKIE['rezgo_search']);
}
// some code to handle the pagination
if (!$_REQUEST['pg']) {
    $_REQUEST['pg'] = 1;
}
$start = ($_REQUEST['pg'] - 1) * REZGO_RESULTS_PER_PAGE;
// we only want 11 responses, starting at our page number times item number
$site->setTourLimit(REZGO_RESULTS_PER_PAGE + 1, $start);
?>

<?php 
echo $site->getTemplate('frame_header');
?>

<?php 
echo $site->getTemplate('index');
?>

<?php 
echo $site->getTemplate('frame_footer');
示例#18
0
<?php

// any new page must start with the page_header, it will include the correct files
// so that the rezgo parser classes and functions will be available to your templates
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
?>

<?php 
echo $site->getTemplate('frame_header');
?>

<?php 
echo $site->getTemplate('terms');
?>
			
<?php 
echo $site->getTemplate('frame_footer');
示例#19
0
<?php

// This is the main booking page
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite(secure);
?>

<?php 
echo $site->getTemplate('frame_header');
?>

	<?php 
echo $site->getTemplate('book');
?>

<?php 
echo $site->getTemplate('frame_footer');
示例#20
0
<?php

// This script handles the booking requests made via ajax by book.php
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite(secure);
if ($_POST['rezgoAction'] == 'get_paypal_token') {
    // send a partial commit (a=get_paypal_token) to get a paypal token for the modal window
    // include the return url (this url), so the paypal API can use it in the modal window
    if ($_POST['mode'] == 'mobile') {
        $result = $site->sendBooking(null, 'a=get_paypal_token&paypal_return_url=https://' . $_SERVER['HTTP_HOST'] . REZGO_DIR . '/paypal');
    } else {
        $result = $site->sendBookingOrder(null, '<additional>get_paypal_token</additional><paypal_return_url>https://' . $_SERVER['HTTP_HOST'] . REZGO_DIR . '/paypal</paypal_return_url>');
    }
    $response = $site->exists($result->paypal_token) ? $result->paypal_token : 0;
} elseif ($_POST['rezgoAction'] == 'book') {
    $result = $site->sendBookingOrder();
    if ($result->status == 1) {
        // start a session so we can save the analytics code
        session_start();
        $response = $site->encode($result->trans_num);
        // Set a session variable for the analytics to carry to the receipt's first view
        $_SESSION['REZGO_CONVERSION_ANALYTICS'] = $result->analytics_convert;
        // Add a blank script tag so that this session is detected on the receipt
        $_SESSION['REZGO_CONVERSION_ANALYTICS'] .= '<script></script>';
    } else {
        // this booking failed, send a status code back to the requesting page
        if ($result->message == 'Availability Error' || $result->mesage == 'Fatal Error') {
            $response = 2;
        } else {
            if ($result->message == 'Payment Declined' || $result->message == 'Invalid Card Checksum' || $result->message == 'Invalid Card Expiry') {
示例#21
0
<?php

// This page is the calendar display, it is fetched via AJAX to display the calendar
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite();
?>

<?php 
echo $site->getTemplate('calendar');
示例#22
0
<?php

// This is the booking receipt page
require 'rezgo/include/page_header.php';
// start a new instance of RezgoSite
$site = new RezgoSite(secure);
$site->setMetaTags('<meta name="robots" content="noindex, nofollow">');
?>

<?php 
// getVoucherHeader() moved to template
?>
	
<?php 
echo $site->getTemplate('booking_voucher');
?>
	
<?php 
// getVoucherFooter() moved to template