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

		<div id="googlemaps" class="google-map"></div>
        
        <div class="row-fluid contusrow">
            
            <span class="span6">
              <div class="CUFormContainer">
                <p> <strong>Send Us a Message</strong></p>
                <form name="contact" id="contact" method="post" action="inc/email.php">
                
                	<?php
						//init variables
						$cf = array();
						$sr = false;
						
						if(isset($_SESSION['cf_returndata'])){
							$cf = $_SESSION['cf_returndata'];
							$sr = true;
							session_destroy();
						}
						?>
						
						<!--START error notification-->
						<div id="errors" class="alert alert-danger hide <?php echo ($sr && !$cf['form_ok']) ? 'show' : ''; ?>">
							<strong>There were some problems with your form submission:</strong>
							<ul>	
								<?php 
								if(isset($cf['errors']) && count($cf['errors']) > 0) :
									foreach($cf['errors'] as $error) :
								?>
								<li><?php echo $error ?></li>
								<?php
									endforeach;
								endif;
								?>
							</ul>
						</div>	
						<!--END /error notification-->
						
						<!--START sucess notification-->
						<div class="alert alert-success hide <?php echo ($sr && $cf['form_ok']) ? 'show' : ''; ?>">
							Thanks for your message! We will get back to you ASAP.
						</div>
						<!--END /sucess notification-->
                
                  <div class="control-group control-group-1">
                    <label class="control-label">Your Name</label>
                    <div class="controls">
                      <input type="text" id="name" class="textinput input-xlarge" value="<?php echo ($sr && !$cf['form_ok']) ? $cf['posted_form_data']['name'] : '' ?>" name="name" />
                    </div>
                  </div>
                  <div class="control-group control-group-1">
                    <label class="control-label">Your Email</label>
                    <div class="controls">
                      <input type="text" id="contactemail" class="textinput input-xlarge" value="<?php echo ($sr && !$cf['form_ok']) ? $cf['posted_form_data']['email'] : '' ?>" name="contactemail" />
                    </div>
                  </div>
                  <div class="control-group control-group-1">
                    <label class="control-label">Your Phone</label>
                    <div class="controls">
                      <input type="text" id="phone" class="textinput input-xlarge" value="<?php echo ($sr && !$cf['form_ok']) ? $cf['posted_form_data']['telephone'] : '' ?>" name="phone" />
                    </div>
                  </div>
                  <div class="control-group control-group-1">
                    <label class="control-label">Itinerary</label>
                    <div class="controls">
                      <input type="text" id="itinerary" class="textinput input-xlarge" value="<?php echo ($sr && !$cf['form_ok']) ? $cf['posted_form_data']['itinerary'] : '' ?>" name="itinerary" />
                    </div>
                  </div>
                  <div class="control-group">
                    <label class="control-label control-label-1">Your Message</label>
                    <div class="controls">
                      <textarea id="comments" name="comments" class="input-xlarge input-xlarge-1" rows="5" cols="50" placeholder="Your message must be greater than 10 charcters" data-minlength="10"><?php echo ($sr && !$cf['form_ok']) ? $cf['posted_form_data']['message'] : '' ?></textarea>
                    </div>
                  </div>
                  <div class="btn-group pull-right">
                    <button class="btn btn-primary">SUBMIT</button>
                  </div>
                </form><br>
              </div>
            </span>
            
            <span class="span6">
              <div class="CUAddressContainer">
              	<div class="contusinfobrand">
                <p>Bookingo</p>
                </div>
                <div>
                <img src="<?php echo PATH; ?>images/booking.png" class="image">
                  Australia, 01009
                </div>
                <div>
                  <img src="<?php echo PATH; ?>images/iphone.png" class="image">
                  PHONE: 123-123-4569 / FAX: 123-123-4569
                </div>
                <div>
                  <img src="<?php echo PATH; ?>images/mail.png" class="image">
                  PHONE: 123-123-4569 / FAX: 123-123-4569
                </div>
              </div>
            </span>
            
          </div>