-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstep0.php
More file actions
42 lines (33 loc) · 1.07 KB
/
step0.php
File metadata and controls
42 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/*
step0.php
Lists Tours/Hotels available in the API
*/
$title = "List of Tours/Hotels";
include_once("inc/top.php");
?>
<h1><?php print $title; ?></h1>
<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>
<ul>
<?php
// Include the config file
include('inc/config.php');
// Search all Tours/Hotels
$result = $tourcms->search_tours("order=tour_name&404_tour_url=all", $channel);
// Print out an error if there is one
// Otherwise loop through Tours/Hotels and display them
if((string)$result->error != "OK") :
print "<li>" . $result->error . "</li>";
else:
foreach ($result->tour as $tour):
?>
<li><a href="step1.php?tour=<?php print $tour->tour_id; ?>&channel=<?php print $tour->channel_id; ?>"><?php print $tour->tour_name; ?></a></li>
<?php
endforeach;
endif;
?>
</ul>
<?php
include_once("inc/debug.php");
include_once("inc/bottom.php");
?>