You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: step0.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@
4
4
5
5
Lists Tours/Hotels available in the API
6
6
*/
7
-
7
+
$title = "List of Tours/Hotels";
8
8
include_once("inc/top.php");
9
9
?>
10
-
<h1>List of Tours/Hotels</h1>
10
+
<h1><?phpprint$title; ?></h1>
11
11
<p>Not strictly part of the booking process, included here for navigation purposes, all Tours/Hotels <a href="http://www.tourcms.com/support/api/mp/useful.php" target="_blank">made available for the API</a> should be listed below:</p>
// TourCMS should have returned a URL back to us, get that
25
-
$redirect_url = $result->url->redirect_url;
22
+
// Jump straight to the bit of XML related to making a new booking panel
23
+
// includes rate and date info
24
+
$booking_criteria = $result->tour->new_booking;
25
+
?>
26
+
<h1><?phpprint$title; ?></h1>
27
+
<p>Below you should be able to select the number of people for each rate that is loaded against this Tour/Hotel (Adults, Children, Premium etc) plus a start date entry. In the case of hotel products there will also be a box for the duration.</p>
28
+
<form action="step2.php" method="post">
26
29
27
-
// Redirect the customer to the URL obtained from TourCMS
28
-
header("Location: " . $redirect_url);
29
-
exit();
30
+
<?php
31
+
$rates = array();
30
32
31
-
?><pre><?phpprint_r($result); ?></pre>
33
+
// Process the available rates for this Tour/Hotel
<h1>Availability confirmed, enter passenger details</h1>
57
+
<h1><?phpprint$title; ?></h1>
58
+
<?php
59
+
if($num_components>0) : ?>
60
+
<p>We have checked availability based on the rate and date selection, the available components should be displayed below alongside boxes for customer detail entry.</p>
0 commit comments