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

	<?php widget('hotelformsearch'); ?>


		<div style="padding:10px;">
			<span class="book_now">Room Availability</span>
                    <p class="changedate">Available rooms from:<br> <span class="destinationlabel"><?php echo $checkin; ?></span>, to <span class="destinationlabel"><?php echo $checkout; ?></span></p>
	
					<form name="changedates" id="changedates" method="get" action="hotel.php">
						<fieldset class="box">
                        		
                                <input type="hidden" name="hotelid" value="<?php echo $id; ?>" />
                                <input type="hidden" name="hotelname" value="<?php echo $hotelname; ?>" />
                                <input type="hidden" name="city" value="<?php echo $city_id; ?>" />                               
                                <input type="hidden" name="ota_priority" id="ota_priority" value=""/>
                                <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" name="maxguests" value="<?php echo $maxguests; ?>" />
                                <input type="hidden" name="element_id" value="<?php echo $ota_element_id; ?>" />
                                
							<div style="display:inline-block;">
								<label class="" for="startdate_change">Check-in</label>
								<input type="text" id="startdate_change" value="" name="checkin" />
							</div>
							<div style="display:inline-block;">
								<label class="" for="enddate_change">Check-out</label>
								<input type="text" id="enddate_change" value="" name="checkout" />
							</div>
                            <input type="hidden" id="addAmountChange" value="1" />
                        	<input type="hidden" id="addPeriodChange" value="d" />
							
                            	
                                <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; ?>" />
                                
							<hr class="thin" />
							<input type="submit" class="btn radius small btn-primary pull-right" value="Check availability" />
						</fieldset>
					</form>
		</div>