/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk
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
43
44
45
46
47
48
49
50
<span class="description">
<br>
<div class="descriptionheading">Overview</div>

Since no error correction is done for the bookings (i.e. it is possible to book resources that are not available at the requested date) all
applications must check resource availability. This function passes a resource ID to the API which returns a set of available dates, 
and for each date the number of available positions and the cost for making a booking is returned.

<div class="descriptionheading">ResultAvailability</div>
<span class="interestingdescription">booking/getavailability_XML.php</span> shows the availability information for all available dates for the given resourceID.

<br><br>

<br><br><div class='exampleheading'>Call Example:<br><br>
<pre><span class="codeexample">$.ajax({
	type: 'POST',
	url: 'booking/getavailability_XML.php',
	data: {
	//	type: escape("Hotell_Demo"), // Optional: You can specify the application?
		resourceID: resource
	},
	success:  ResultAvailability
});								
</span></pre>
</div>

<br>

<br><div class='exampleheading'>Returned Data Example:<br>
<pre><span class="codeexample">
&lt;avail&gt;
&lt;availability 
    resourceID='1008'
    name='The Laszlo Plaza'
    location='Athens'
    company='Laszlo Inc'
    size='96'
    cost='110'
    category='1'
    date='2001-01-01'
    bookingcount='0'
    bookingcost='28.99'
    bookingclass='1'
    remaining='96'
 /&gt;
</span>

</div>
																	
</span></pre>