6464 $ customer ->addChild ('email ' , $ email );
6565 }
6666
67- $ result = $ tourcms ->start_new_booking ($ booking , $ channel );
67+ $ result = $ tourcms ->start_new_booking ($ booking , $ channel_id );
6868
6969?>
70- <h1>Temporary booking, prompt for creation of confirmed booking</h1>
70+ <h1>Temporary booking created , prompt for creation of confirmed booking</h1>
7171<p>Are you sure you wish to book this Tour?</p>
7272<form method="post" action="step5.php">
7373 <input type="hidden" name="booking_id" value="<?php print $ result ->booking ->booking_id ; ?> " />
7474 <input type="submit" name="submit" value="Go" />
7575</form>
76-
77- <!--pre><?php print (htmlentities ($ booking ->asXML ())); ?> </pre><br /-->
78- <!-- Debug -->
79- <div id="debug">
80- <form>
81- <label><input type="radio" name="showdebug" value="none" checked /> Hide debug info</label>
82- <label><input type="radio" name="showdebug" value="simplexml" /> Show SimpleXML object</label>
83- <label><input type="radio" name="showdebug" value="rawxml" /> Show raw XML</label>
84- </form>
85- <pre class="simplexml"><?php print_r ($ result ); ?> </pre>
86- <pre class="rawxml"><?php
87- // Add indentation to XML output
88- $ dom = new DOMDocument ('1.0 ' );
89- $ dom ->preserveWhiteSpace = false ;
90- $ dom ->formatOutput = true ;
91- $ dom ->loadXML ($ result ->asXML ());
92- echo htmlspecialchars ($ dom ->saveXML ());
93- ?> </pre>
94- </div>
9576
9677<?php
78+ include_once ("inc/debug.php " );
9779 include_once ("inc/bottom.php " );
9880 ?>
0 commit comments