<?php global $access; if($access != 1){ exit("Direct Access not allowed"); } ?>

        <div class="row-fluid">
            
          <span class="span6">
            <div class="ItineraryContent">
              <div class="ItineraryTitle">
                <h3 class="heading">Reservation Details</h3>
              </div>
              <div class="ItineraryResume">
                <h3 class="heading"><?php echo $hotelname; ?></h3>
                
                <div class="ItineraryHotelAddress">
                  <p><?php echo $hoteladdress.", ".$hotelcity.", ".$hotelcountrycode.", ".$hotelzip; ?></p>
                  <div class="ItineraryCheckOut">
                    <p><strong>Iinerary ID:</strong> <?php echo $itinerary_id; ?></p>
                    <p><strong>Check in:</strong> <?php echo $arrivalDate; ?> &nbsp; &nbsp; &nbsp;<strong>Time:</strong> 3:00 PM</p>
                    <p><strong>Check out:</strong> <?php echo $departureDate; ?> &nbsp;<strong>Time:</strong> &nbsp;12:00 PM</p>
                    <p>
                      <span class="span-1"><?php echo $totalrooms; ?> Room(s)</span>
                    </p>
                    <p>
                      <span class="span-2"><?php echo $totaladults; ?> Adults</span>
                    </p>
                    <?php
						if($totalchildren > 0) {
						  echo "<p><span class='span-2'>$totalchildren Children</span></p>";
						}
					?>
                    <p>
                    	<?php echo $roomnamedescription; ?>
                    </p>
                    <p><strong>Room Confirmation Number:</strong> <?php echo $itinerary_id; ?></p>
                    <p><strong>Guest Name:</strong> <?php echo $firstnameCustomer.' '.$lastnameCustomer; ?></p>
                  </div>
                </div>
              </div>
              
              <div class="ItineraryBodyText">
                <div class="ItinerarySubTitle">
                  <p>Payment Information</p>
                </div>
              </div>
              <table class="table">
                <thead></thead>
                <tbody>
                  <tr>
                    <td class="ItineraryPayLeft">Card Holder Name:</td>
                    <td class="ItineraryPayRight"><?php echo $firstnameCustomer.' '.$lastnameCustomer; ?></td>
                  </tr>
                  <tr>
                    <td class="ItineraryPayLeft">Billing Address:</td>
                    <td class="ItineraryPayRight"><?php echo $addressCustomer.', '.$cityCustomer.', '.$stateCustomer.', '.$countryCustomer.', '.$postalcodeCustomer; ?></td>
                  </tr>
                  <tr>
                    <td class="ItineraryPayLeft">Email Address:</td>
                    <td class="ItineraryPayRight"><?php echo $emailCustomer; ?></td>
                  </tr>
                  <tr>
                    <td class="ItineraryPayLeft">Phone Number:</td>
                    <td class="ItineraryPayRight"><?php echo $homephoneCustomer; ?></td>
                  </tr>
                </tbody>
              </table>
              
              <div class="ItineraryBodyText">
                <div class="ItinerarySubTitle">
                  <p>Rates per Room</p>
                </div>
              </div>
              <table class="table ConfResDetailTable">
                <thead></thead>
                <tbody>
			  <?php
				for ($ki = 1; $ki <= $totalrooms; $ki++) {
					$valorki      = $ki - 1;
					$price_room[$ki]      = $arraypriceroom[$valorki]['price_room'.$ki]*$finaltotal;
					echo "
						<tr>
							<td class='ConfResDetLeft'>Room $ki</td>
							<td id='ConfResDetRight'>".$currencysymbol.number_format($price_room[$ki], 2, '.', '')."</td>
						</tr>";
				}
			  ?>
                </tbody>
              </table>
              <div class="ConfSubTitle">
                <p>(excluding tax recovery charges and service fees)</p>
              </div>
              <table class="table ConfResDetailTable">
                <thead></thead>
                <tbody>
                  <tr>
                    <td class="ConfResDetLeft">Subtotal</td>
                    <td id="ConfResDetRight"><?php echo $currencysymbol . number_format($totalwithoutax*$finaltotal, 2, '.', ''); ?></td>
                  </tr>
                  <tr>
                    <td class="ConfResDetLeft">Tax Recovery Charges and Service Fees</td>
                    <td id="ConfResDetRight"><?php echo $currencysymbol . number_format($itinerary_tax*$finaltotal, 2, '.', ''); ?></td>
                  </tr>
                  <tr>
                    <td class="ConfResDetLeft">Total Charges</td>
                    <td id="ConfResDetRight"><?php echo $currencysymbol . number_format($total_amount*$finaltotal, 2, '.', ''); ?></td>
                  </tr>
                </tbody>
              </table>
              
              <div class="ItinerarySubTitle">
                <p>Cancellation Policy</p>
              </div>
              <div class="ItineraryBodyText">
                <p><?php echo $cancelpolicy; ?></p>
              </div>
              
            </div>
          </span>
            
          <span class="span6">
            <div>
              <div class="ItineraryTitle">
                <h3 class="heading">Hotel Amenities</h3>
              </div>
              <div class="ItineraryAmenities">
                <ul>
                  <?php include('inc/data-bgo/amenities-data.php'); ?>
                </ul><br>
                
                <div class="ItineraryTitle">
                <h4 class="heading">Cancel Reservation</h4>
                </div>
                <form name="contact" id="myform" method="post" action="inc/querys/cancel-reservation.php">
                  <input type="hidden" name="intinerary" value="<?php echo $itinerary_id; ?>" />
                  <input type="hidden" name="email" value="<?php echo $emailCustomer; ?>" />
                  
                  <div class="control-group">
                    <label class="control-label control-label-1">Why you want to cancel?</label>
                    <div class="controls">
                      <textarea id="itinerary-cancel" name="itinerary_cancel" class="input-xlarge input-xlarge-1" rows="5" cols="50" placeholder="Your message must be greater than 10 charcters" data-minlength="10"></textarea>
                    </div>
                  </div>
                  <div class="btn-group">
                    <button class="btn btn-primary">SUBMIT</button>
                  </div>
                </form>
                
              </div>
            </div>
          </span>
            
         </div>