$("#cal2").click(function () {
$("#date2").datepicker("show");
});
- $("#offCal1").click(function () {
+ /*$("#offCal1").click(function () {
$("#dateOff1").datepicker("show");
});
$("#offCal2").click(function () {
$("#dateOff2").datepicker("show");
- });
+ });*/
// $("#dateOff1").val("Arrive");
// $("#dateOff2").val("Depart");
// restrict arrival date //////////////////////////////////////////////
- /* $(document).on('change', '#dateOff1', function () {
+ $(document).on('change', '#dateOff1', function () {
currentDate = $("#dateOff1").val();
currentDate = new Date(currentDate);
currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
$("#dateOff2").val(requiredDate);
}
- });*/
+ });
// restrict departure date ///////////////////////////////
- /* $(document).on('change', '#dateOff2', function () {
+ $(document).on('change', '#dateOff2', function () {
currentDate = $("#dateOff1").val();
currentDate = new Date(currentDate);
currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
if ($("#dateOff2").val() < $('#dateOff2').attr("min")) {
// $("#dateOff2").val(requiredDate);
}
- });*/
+ });
$("#date1").datepicker({
minDate: 2,
onSelect: function (date) {
}
});
- $("#dateOff1").datepicker({
+ /*$("#dateOff1").datepicker({
minDate: 2,
onSelect: function (date) {
$("#dateOff1").datepicker({dateFormat: 'yy-mm-dd'}).val();
nights.setDate(nights.getDate() + 2);
$("#dateOff2").datepicker("option", {minDate: new Date(nights)});
}
- });
+ }); */
//$("#date2").val(requiredDate);
$("#date2").datepicker({
onSelect: function (date) {
}
});
- $("#dateOff2").datepicker({
+ /*$("#dateOff2").datepicker({
onSelect: function (date) {
}
- });
+ }); */
});
$("#cal2").click(function () {
$("#date2").datepicker("show");
});
- $("#offCal1").click(function () {
+ /*$("#offCal1").click(function () {
$("#dateOff1").datepicker("show");
});
$("#offCal2").click(function () {
$("#dateOff2").datepicker("show");
- });
+ });*/
// $("#dateOff1").val("Arrive");
// $("#dateOff2").val("Depart");
// restrict arrival date //////////////////////////////////////////////
- /* $(document).on('change', '#dateOff1', function () {
+ $(document).on('change', '#dateOff1', function () {
currentDate = $("#dateOff1").val();
currentDate = new Date(currentDate);
currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
$("#dateOff2").val(requiredDate);
}
- });*/
+ });
// restrict departure date ///////////////////////////////
- /* $(document).on('change', '#dateOff2', function () {
+ $(document).on('change', '#dateOff2', function () {
currentDate = $("#dateOff1").val();
currentDate = new Date(currentDate);
currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
if ($("#dateOff2").val() < $('#dateOff2').attr("min")) {
// $("#dateOff2").val(requiredDate);
}
- });*/
+ });
$("#date1").datepicker({
minDate: 2,
onSelect: function (date) {
}
});
- $("#dateOff1").datepicker({
+ /*$("#dateOff1").datepicker({
minDate: 2,
onSelect: function (date) {
$("#dateOff1").datepicker({dateFormat: 'yy-mm-dd'}).val();
nights.setDate(nights.getDate() + 2);
$("#dateOff2").datepicker("option", {minDate: new Date(nights)});
}
- });
+ }); */
//$("#date2").val(requiredDate);
$("#date2").datepicker({
onSelect: function (date) {
}
});
- $("#dateOff2").datepicker({
+ /*$("#dateOff2").datepicker({
onSelect: function (date) {
}
- });
+ }); */
});
<?php endwhile; else:?>
<p><?php _e('Sorry, no results found.');?></p>
<?php endif;?>
+ <?php $property = urlencode($_REQUEST['Location']); ?>
<?php $arrival = urlencode($_REQUEST['ArrivalDate']); ?>
<?php $departure = urlencode($_REQUEST['DepartureDate']); ?>
<?php $occupancy= urlencode($_REQUEST['Occupancy']); ?>
}
?>
- <iframe name="res_frame" src="https://weblink.instantsoftware.com/widgetsearch/1134?ArrivalDate=<?php echo $arrival ?>&DepartureDate=<?php echo $departure ?>&Location=<?php echo urlencode($_REQUEST['Location']); ?>&Occupancy=<?php echo $occupancy ?>" height="3300" id="res_frame" width="100%" frameborder="0"></iframe>
+ <iframe name="res_frame" src="https://weblink.instantsoftware.com/widgetsearch/1134?Location=<?php echo $property ?>&ArrivalDate=<?php echo $arrival ?>&DepartureDate=<?php echo $departure ?>&Occupancy=<?php echo $occupancy ?>" height="3300" id="res_frame" width="100%" frameborder="0"></iframe>
</div>
</div>
</div>
<input type="text" placeholder="Search by property" name="s">
</div>
<div class="small-6 res-date columns">
- <input id="dateOff1" type="text" placeholder="Arrive" name="ArrivalDate" required="required">
+ <input id="dateOff1" type="date" min="<?php echo $requiredDate ?>" placeholder="Arrive" name="ArrivalDate" required="required">
<img id = "offCal1" src="<?php echo get_template_directory_uri(); ?>/assets/calendar-icon.jpg">
</div>
<div class="small-6 res-date columns">
- <input id="dateOff2" type="text" placeholder="Depart" name="DepartureDate" required="required"><img id ="offCal2" src="<?php echo get_template_directory_uri(); ?>/assets/calendar-icon.jpg">
+ <input id="dateOff2" type="date" min="<?php echo $minStay ?>" placeholder="Depart" name="DepartureDate" required="required"><img id ="offCal2" src="<?php echo get_template_directory_uri(); ?>/assets/calendar-icon.jpg">
</div>
<div class="small-6 guest columns">
<!--<input id="offGuests" type="text" placeholder="Guests" > -->