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

              <div class="HoRatingBar">
                <div class="HoRateBarText">
                  <p><?php echo $hotelname; ?></p>
                </div>
                
                <div class="HoBookBtn pull-right">
                  <a href="#booknow"><p class="HoBookBtnText">BOOK NOW</p></a>
                </div>
                <div class="pull-right">
                <img src="<?php echo PATH; ?>images/<?php echo $hotelrating; ?>.png" class="HoRatingStars image">
                </div>
              </div>
              
              <div class="HoImages">
                <div id="gallery-t-group" class="royalSlider rsDefaultInv">
                	<?php include('inc/data-bgo/gallery-photos-data.php'); ?>
                </div>
              </div>
              
              <div class="HoTabText">
                
                <ul class="nav nav-tabs">
                  <li class="active"><a href="#home" data-toggle="tab">Hotel Overview</a></li>
                  <li><a href="#profile" data-toggle="tab">Amenities</a></li>
                  <li><a href="#messages" data-toggle="tab">Guest Reviews</a></li>
				</ul>
       
                <div class="tab-content">
                  <div class="tab-pane active" id="home">
                  	<p><em><?php echo $hoteladdress; ?> | <?php echo $hotelcity; ?>, <?php echo $hotelcountrycode; ?> <?php echo $hotelzip; ?></em></p>
                    <?php echo $hoteldescription; ?>
                  </div>
                  
                  <div class="tab-pane" id="profile">
                  	<ul>
                     <?php include('inc/data-bgo/amenities-data.php'); ?>
                    </ul>
                  </div>
                  
                  <div class="tab-pane" id="messages">
                     
             
                <div id="RevTotalScore">
                  <p>Total Score</p>
                  <p><?php echo $promtemptab; ?></p>
                </div>
                <h4 class="heading">Individual Guest Reviews (<?php echo $reviewstotaltab; ?>)</h4>
               
                <?php include('inc/data-bgo/reviews-data.php'); ?>                  
               
                <div class="ReviewForm">
                  <h4 class="heading">Write Your Own Review</h4>
                  <form action="inc/data-bgo/add-comment.php" method="post" id="myform">
                                <input type="hidden" name="hotelid" value="<?php echo $hotelid; ?>" />
                                <input type="hidden" name="hotelname" value="<?php echo $hotelname; ?>" />
                                <input type="hidden" name="city" value="<?php echo $city_id; ?>" />
                                
                                <input type="hidden" name="longitud" value="<?php echo $hotelon; ?>" />
                                <input type="hidden" name="latitud" value="<?php echo $hotelat; ?>" />
                                <input type="hidden" name="guests" value="<?php echo $guests; ?>" />
                                <input type="hidden" value="<?php echo $checkin; ?>" name="checkin" />
                                <input type="hidden" value="<?php echo $checkout; ?>" name="checkout" />
                                
                                <input type="hidden" name="rooms" value="<?php echo $rooms; ?>" />
                                <input type="hidden" name="adults" value="<?php echo $adults0; ?>" />
                                <input type="hidden" name="children" value="<?php echo $children0; ?>" />
                                <input type="hidden" name="age" value="<?php echo $children0age0; ?>" />
                                <input type="hidden" name="age2" value="<?php echo $children0age1; ?>" />
                                <input type="hidden" name="age3" value="<?php echo $children0age2; ?>" />
                                <input type="hidden" name="adults2" value="<?php echo $adults1; ?>" />
                                <input type="hidden" name="children2" value="<?php echo $children1; ?>" />
                                <input type="hidden" name="age2_1" value="<?php echo $children1age0; ?>" />
                                <input type="hidden" name="age2_2" value="<?php echo $children1age1; ?>" />
                                <input type="hidden" name="age2_3" value="<?php echo $children1age2; ?>" />
                                <input type="hidden" name="adults3" value="<?php echo $adults2; ?>" />
                                <input type="hidden" name="children3" value="<?php echo $children2; ?>" />
                                <input type="hidden" name="age3_1" value="<?php echo $children2age0; ?>" />
                                <input type="hidden" name="age3_2" value="<?php echo $children2age1; ?>" />
                                <input type="hidden" name="age3_3" value="<?php echo $children2age2; ?>" />
                                <input type="hidden" name="adults4" value="<?php echo $adults3; ?>" />
                                <input type="hidden" name="children4" value="<?php echo $children3; ?>" />
                                <input type="hidden" name="age4_1" value="<?php echo $children3age0; ?>" />
                                <input type="hidden" name="age4_2" value="<?php echo $children3age1; ?>" />
                                <input type="hidden" name="age4_3" value="<?php echo $children3age2; ?>" />
                                
                    <div class="control-group form-horizontal">
                      <label class="control-label">Qualify*</label>
                      <div class="controls">
                        <label class="radio inline">
                          <input type="radio" value="1" name="quality">
                          <span>1</span>
                        </label>
                        <label class="radio inline">
                          <input type="radio" value="2" name="quality">
                          <span>2</span>
                        </label>
                        <label class="radio inline">
                          <input type="radio" value=3 name="quality">
                          <span>3</span>
                        </label>
                        <label class="radio inline">
                          <input type="radio" value="4" name="quality">
                          <span>4</span>
                        </label>
                        <label class="radio inline">
                          <input type="radio" value="5" name="quality">
                          <span>5</span>
                        </label>
                      </div>
                    </div>
                    <div class="control-group">
                      <label class="control-label">Nickname*</label>
                      <div class="controls">
                        <input class="textinput span8" type="text" placeholder="" name="nickname">
                      </div>
                    </div>
                    <input type="text" name="text" value="" style="display:none;" />
                    <div class="control-group">
                      <label class="control-label">Review*</label>
                      <div class="controls">
                        <textarea placeholder="" name="review" class="span12"></textarea>
                        
                        <button class="btn btn-primary pull-right">Submit Review</button>
                      </div>
                    </div>
                  </form>
                
              </div>
                  
                  </div>
                </div>
                
              </div>
              <br>
              <div class="HotelListTitlesContent" id="booknow">
                  <div class="HotelListDetailsAvailable roomheadertitle">
                    <p>Available room types</p>
                  </div>
                  <div class="HotelListDetailsPerson roomheadertitle">
                    <p>Max Persons</p>
                  </div>
                  <div class="HotelListDetailsRate roomheadertitle">
                    <p>Rate</p>
                  </div>
                  <div class="HomeDetailsBookNow roomheadertitle">
                    <p>Book Now</p>
                  </div>
            </div>
			<?php
				if($roomsearchtotal > 0){
					
					for ( $kk = 1 ; $kk <= $roomsearchtotal; $kk ++) 
					
					{	
					$arrk = $kk - 1;
					$formprice = $arrayroomssearch[$arrk]['room_price'];
					$finalprice = $formprice*$finaltotal;
				?>
                
                <div class="HotelListDescriptionContent">
                  <div class="HotelListDescriptionAvailable">
                    <p class="roomdatacontenttxt"><?php echo $arrayroomssearch[$arrk]['room_name']; ?></p>
                  </div>
                  <div class="HotelListDescriptionPerson">
                    <p class="roomdatacontenttxt"><?php echo $arrayroomssearch[$arrk]['room_capacity']; ?></p>
                  </div>
                  <div class="HotelListDescriptionsRate">
                    <p class="roomdatacontenttxtsize">From <?php echo $currencysymbol . number_format($finalprice, 2, '.', ''); ?></p>
                  </div>
                  <div class="HotelListDescriptionBookNow ">
                    <a href='<?php echo "checkout.php?hotelid=".$hotelid."&hotelname=".$hotelname."&city=".$khotelcity."&element_id=&longitud=&latitud=&room_code=".$arrayroomssearch[$arrk]['room_code']."&room_name=".$arrayroomssearch[$arrk]['room_name']."&ratekey=".$arrayroomssearch[$arrk]['ratekey']."&ratecode=".$arrayroomssearch[$arrk]['ratecode']."&ota_priority=".$arrayroomssearch[$arrk]['ota']."&".$datosbusqueda."&baseC=".$newcurrency; ?>'><input type="button" class="btn btn-primary radius fr pull-right" value="Book Now!"></a>
                  </div>
                </div>
                <?php }
					 } else { ?>
					 <span><center>No avalaible room in this moment</center></span>
                <?php }	?>