{"id":981,"date":"2024-04-16T10:57:46","date_gmt":"2024-04-16T08:57:46","guid":{"rendered":"https:\/\/villacapraverde.com\/booking\/"},"modified":"2024-04-26T16:45:36","modified_gmt":"2024-04-26T14:45:36","slug":"buchungsanfrage","status":"publish","type":"page","link":"https:\/\/villacapraverde.com\/de\/buchungsanfrage\/","title":{"rendered":"Buchungsanfrage"},"content":{"rendered":"<script> if( typeof jQuery != 'undefined' ) var jQueryBK = jQuery.noConflict(); <\/script>\n<script type='text\/javascript' src='https:\/\/villacapraverde.com\/wp-content\/plugins\/booking-calendar-contact-form\/..\/..\/..\/wp-includes\/js\/jquery\/jquery.js'><\/script>\n<script type='text\/javascript' src='https:\/\/villacapraverde.com\/wp-content\/plugins\/booking-calendar-contact-form\/..\/..\/..\/wp-includes\/js\/jquery\/ui\/core.min.js'><\/script>\n<script type='text\/javascript' src='https:\/\/villacapraverde.com\/wp-content\/plugins\/booking-calendar-contact-form\/..\/..\/..\/wp-includes\/js\/jquery\/ui\/datepicker.min.js'><\/script>\n<script type='text\/javascript' src='https:\/\/villacapraverde.com\/wp-content\/plugins\/booking-calendar-contact-form\/..\/..\/..\/wp-includes\/js\/jquery\/ui\/tooltip.min.js'><\/script>\n<script> \n        var myjQuery = jQuery.noConflict( ); \n        if( typeof jQueryBK != 'undefined' ) {jQuery = jQueryBK;};\n<\/script>\n<script type='text\/javascript' src='https:\/\/villacapraverde.com\/wp-content\/plugins\/booking-calendar-contact-form\/js\/jQuery.stringify.js'><\/script>\n<script type='text\/javascript' src='https:\/\/villacapraverde.com\/wp-content\/plugins\/booking-calendar-contact-form\/js\/jquery.validate.js'><\/script>\n<script type=\"text\/javascript\" src=\"https:\/\/villacapraverde.com\/wp-content\/plugins\/booking-calendar-contact-form\/js\/languages\/jquery.ui.datepicker-de_DE.js\"><\/script><script type='text\/javascript' src='https:\/\/villacapraverde.com\/wp-content\/plugins\/booking-calendar-contact-form\/js\/jquery.rcalendar.js'><\/script>\n<script type='text\/javascript'>\n\/* <![CDATA[ *\/\nvar dex_bccf_fbuilder_config = {\"obj\":\"{\\\"pub\\\":true,\\\"messages\\\": {\\n    \\t                \\t\\\"required\\\": \\\"This field is required.\\\",\\n    \\t                \\t\\\"email\\\": \\\"Please enter a valid email address.\\\",\\n    \\t                \\t\\\"datemmddyyyy\\\": \\\"Please enter a valid date with this format(mm\\\/dd\\\/yyyy)\\\",\\n    \\t                \\t\\\"dateddmmyyyy\\\": \\\"Please enter a valid date with this format(dd\\\/mm\\\/yyyy)\\\",\\n    \\t                \\t\\\"number\\\": \\\"Please enter a valid number.\\\",\\n    \\t                \\t\\\"digits\\\": \\\"Please enter only digits.\\\",\\n    \\t                \\t\\\"max\\\": \\\"Please enter a value less than or equal to {0}.\\\",\\n    \\t                \\t\\\"min\\\": \\\"Please enter a value greater than or equal to {0}.\\\"\\n    \\t                }}\"};\n\/* ]]> *\/\n<\/script>\n<style type=\"text\/css\">\r\n#dex_bccf_pform .rcalendar .ui-datepicker-multi .ui-datepicker-group{width:49% !important}#dex_bccf_pform .rcalendar .ui-datepicker-multi .ui-datepicker-group{min-width:200px !important}#dex_bccf_pform .ui-datepicker:not(.ui-datepicker-multi){min-width:200px}#dex_bccf_pform .rcalendar .ui-datepicker-multi .ui-datepicker-group{max-width:400px !important}#dex_bccf_pform .ui-datepicker:not(.ui-datepicker-multi){max-width:400px}#dex_bccf_pform tr th span,#dex_bccf_pform tr th a,#dex_bccf_pform tr td span, #dex_bccf_pform tr td a{padding:0px}<\/style><form class=\"cpp_form\" name=\"dex_bccf_pform\" id=\"dex_bccf_pform\" action=\"\" method=\"post\" enctype=\"multipart\/form-data\" onsubmit=\"return doValidate(this);\"><input name=\"dex_bccf_post\" type=\"hidden\" value=\"1\" \/><input type=\"hidden\" name=\"_wpnonce\" value=\"4431fcd154\" \/>\r\n<script>\r\nvar pathCalendar = \"\/de\/\";\r\n<\/script>\r\n<div style=\"display:none\" id=\"bccfcalselectionarea\">\r\nKalender:<br \/><select name=\"dex_item\" id=\"dex_item\" onchange=\"dex_updateItem()\"><option value=1>Booking Calendar<\/option><\/select><br \/><br \/>\r\n<\/div>\r\n<div id=\"bccfcalarea\">\r\n<label id=\"bccfselectdates\">W\u00e4hlen Sie Start- und Enddatum:<\/label>\r\n<div id=\"calarea1\" style=\"display:none\" class=\"rcalendar\"><\/div><div id=\"bccf_display_price\" >\r\nPrice:\r\n<\/div>\r\n<\/div>\r\n<div id=\"selddiv\" style=\"font-weight: bold;margin-top:0px;padding-top:0px;padding-right:3px;padding-left:3px;\"><\/div>\r\n<script type=\"text\/javascript\"> var dex_current_calendar_item;\r\n function dex_updateItem()\r\n {\r\n    document.getElementById(\"calarea\"+dex_current_calendar_item).style.display = \"none\";\r\n    var i = document.dex_bccf_pform.dex_item.options.selectedIndex;\r\n    var selecteditem = document.dex_bccf_pform.dex_item.options[i].value;\r\n    dex_do_init(selecteditem);\r\n }\r\n function dex_do_init(id)\r\n {\r\nmyjQuery = (typeof myjQuery != 'undefined' ) ? myjQuery : jQuery;\r\n  try{$testjq = myjQuery} catch (e) {}\r\n  if (typeof $testjq == 'undefined')\r\n  {\r\n    setTimeout(\"dex_do_init(\"+id+\");\");\r\n    return;\r\n  }    \r\n  myjQuery(function(){\r\n    (function($) {         \r\n        dex_current_calendar_item = id;\r\n        document.getElementById(\"calarea\"+dex_current_calendar_item).style.display = \"\";\r\n        $calendarjQuery = myjQuery;\r\n        $calendarjQuery(function() {\r\n        $calendarjQuery(\"#calarea\"+id).rcalendar({\"calendarId\":id,\r\n                                                    \"partialDate\":true,\r\n                                                    \"defaultColor\":'36F',\r\n                                                    \"partial_defaultColor\":'36F',\r\n                                                    \"edition\":false,\r\n                                                    \"minDate\":\"06\/14\/2026\",\r\n                                                    \"maxDate\":\"\",\r\n                                                    \"dformat\":\"mm\/dd\/yy\",\r\n                                                    \"workingDates\":[1,1,1,1,1,1,1],\r\n\t    \t\t\t                                \"holidayDates\":[\"2024-05-04\",\"2024-05-11\",\"2024-05-18\",\"2024-05-25\",\"2024-06-01\",\"2024-06-08\",\"2024-06-15\",\"2024-06-22\",\"2024-06-29\",\"2024-07-06\",\"2024-07-13\",\"2024-07-20\",\"2024-07-27\",\"2024-08-03\",\"2024-08-10\",\"2024-08-17\",\"2024-08-24\",\"2024-08-31\",\"2024-09-07\",\"2024-09-14\",\"2024-09-21\",\"2024-09-28\"],\r\n\t    \t\t\t                                \"startReservationWeekly\":[0,0,0,0,0,0,1],\r\n\t    \t\t\t                                \"startReservationDates\":[],\r\n\t    \t\t\t                                \"fixedReservationDates\":false,\r\n\t    \t\t\t                                \"fixedReservationDates_length\":1,\r\n                                                    \"language\":\"de_DE\",\r\n                                                    \"firstDay\":1,\r\n                                                    \"numberOfMonths\":2                                                    });\r\n        });\r\n        $calendarjQuery(\"#calarea\"+id).addClass('notranslate');\r\n        document.getElementById(\"selddiv\").innerHTML = \"\";\r\n    })(myjQuery);\r\n    });\r\n }\r\n function bccf_init_cal(){\r\n    if (window.jQuery){\r\n        dex_do_init(1);\r\n    }\r\n    else{\r\n       window.setTimeout(\"bccf_init_cal();\",100);\r\n    }\r\n }\r\n bccf_init_cal();\r\n var bccf_d1 = \"\";\r\n var bccf_d2 = \"\";\r\n var bccf_ser = \"\";\r\n function updatedate()\r\n {\r\n    try\r\n    {\r\n        var a = (document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value != '');\r\n        var b = (document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value != '');\r\n        var c = false;\r\n        if (a)\r\n        {\r\n          if (!b && false)\r\n          {\r\n            b = a;              \r\n            document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value = document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value;\r\n            document.getElementById(\"selMonth_endcalarea\"+dex_current_calendar_item ).value = document.getElementById(\"selMonth_startcalarea\"+dex_current_calendar_item ).value;\r\n            document.getElementById(\"selYear_endcalarea\"+dex_current_calendar_item ).value = document.getElementById(\"selYear_startcalarea\"+dex_current_calendar_item ).value;\r\n          }\r\n          if (b)\r\n            c = true;    \r\n        }\r\n        if (c)\r\n        {\r\n            var d1 = document.getElementById(\"selYear_startcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selMonth_startcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value;\r\n            var d2 = document.getElementById(\"selYear_endcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selMonth_endcalarea\"+dex_current_calendar_item ).value+\"-\"+document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value;\r\n            $dexQuery = (typeof myjQuery != 'undefined' ) ? myjQuery : jQuery;\r\n            var ser = \"\";            if (bccf_d1 != d1 || bccf_d2 != d2 || bccf_ser != ser)\r\n            {\r\n                bccf_d1 = d1;\r\n                bccf_d2 = d2;\r\n                bccf_ser = ser;\r\n                $dexQuery.ajax({\r\n                  type: \"GET\",\r\n                  url: \"\/de\/?dex_bccf=getcost\"+String.fromCharCode(38)+\"inAdmin=1\"+String.fromCharCode(38)+\"dex_item=\"+dex_current_calendar_item+\"\"+String.fromCharCode(38)+\"from=\"+d1+\"\"+String.fromCharCode(38)+\"to=\"+d2+\"\"+ser\r\n                }).done(function( html ) {\r\n                    document.getElementById(\"bccf_display_price\").innerHTML = '';\r\n                    $dexQuery(\"#bccf_display_price\").append('<b>Kosten:<\/b> EUR '+html);\r\n                });\r\n            }\r\n        }\r\n        else\r\n        {\r\n            bccf_d1 = \"\";\r\n            bccf_d2 = \"\";\r\n            document.getElementById(\"bccf_display_price\").innerHTML = '';\r\n        }\r\n    } catch (e) {}\r\n }\r\n setInterval('updatedate()',200); var cp_bccf_ready_to_go = false;\r\n function doValidate(form)\r\n {\r\n    if (cp_bccf_ready_to_go) return;\r\n    $dexQuery = (typeof myjQuery != 'undefined' ) ? myjQuery : jQuery;    var d1 = new Date(document.getElementById(\"selYear_startcalarea\"+dex_current_calendar_item ).value,document.getElementById(\"selMonth_startcalarea\"+dex_current_calendar_item ).value-1,document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item ).value);\r\n    var d2 = new Date(document.getElementById(\"selYear_endcalarea\"+dex_current_calendar_item ).value,document.getElementById(\"selMonth_endcalarea\"+dex_current_calendar_item ).value-1,document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item ).value);\r\n    var ONE_DAY = 1000 * 60 * 60 * 24;\r\n    var nights = Math.round(Math.abs(d2.getTime() - d1.getTime()) \/ ONE_DAY);        document.dex_bccf_pform.dex_bccf_ref_page.value = document.location;    if (document.getElementById(\"selDay_startcalarea\"+dex_current_calendar_item).value == '' || document.getElementById(\"selDay_endcalarea\"+dex_current_calendar_item).value == '')\r\n    {\r\n        alert('Bitte w\u00e4hlen Sie Start- und Enddatum.');\r\n        return false;\r\n    }\r\n    if (nights < 7){\r\n        alert('Die Mindestanzahl der \u00dcbernachtungen zu buchen ist 7');\r\n        return false;\r\n    }\r\n    if (nights > 365){\r\n        alert('Die maximale Anzahl der N\u00e4chte zu buchen ist 365');\r\n        return false;\r\n    }        {\r\n        var cpefb_error = 0;\r\n        $dexQuery(\"#dex_bccf_pform\").find(\".cpefb_error\").each(function(index){\r\n            if ($dexQuery(this).css(\"display\")!=\"none\")\r\n                cpefb_error++;    \r\n            });\r\n        if (cpefb_error) return false;    \r\n        cp_bccf_ready_to_go = true;\r\n        cpbccf_blink(\".pbSubmit\");        \r\n        document.getElementById(\"form_structure\").value = '';        \r\n        return true;\r\n    }    \r\n }\r\n function cpbccf_cerror(){$dexQuery = jQuery.noConflict();$dexQuery(\"#hdcaptcha_error\").css('top',$dexQuery(\"#hdcaptcha_dex_bccf_post\").outerHeight());$dexQuery(\"#hdcaptcha_error\").css(\"display\",\"inline\");} \r\n function cpbccf_blink(selector){\r\n        try {   \r\n            $dexQuery = jQuery.noConflict();\r\n            $dexQuery(selector).fadeOut(1000, function(){\r\n                $dexQuery(this).fadeIn(1000, function(){\r\n                    try {\r\n                        if (cp_bccf_ready_to_go)\r\n                            cpbccf_blink(this); \r\n                    } catch (e) {}  \r\n                });\r\n            });        \r\n        } catch (e) {}             \r\n }\r\n<\/script><input type=\"hidden\" name=\"dex_bccf_pform_process\" value=\"1\" \/><input type=\"hidden\" name=\"dex_bccf_id\" value=\"1\" \/><input type=\"hidden\" name=\"dex_bccf_ref_page\" value=\"\" \/><input type=\"hidden\" name=\"form_structure\" id=\"form_structure\" size=\"180\" value=\"[[{&quot;name&quot;:&quot;fieldname1&quot;,&quot;index&quot;:0,&quot;title&quot;:&quot;Name and Surname&quot;,&quot;required&quot;:true,&quot;shortlabel&quot;:&quot;&quot;,&quot;ftype&quot;:&quot;ftext&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefined&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;size&quot;:&quot;large&quot;,&quot;minlength&quot;:&quot;&quot;,&quot;maxlength&quot;:&quot;&quot;,&quot;equalTo&quot;:&quot;&quot;},{&quot;name&quot;:&quot;email&quot;,&quot;index&quot;:1,&quot;title&quot;:&quot;E-Mail&quot;,&quot;ftype&quot;:&quot;femail&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;required&quot;:true,&quot;predefined&quot;:&quot;&quot;,&quot;size&quot;:&quot;large&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;equalTo&quot;:&quot;&quot;},{&quot;name&quot;:&quot;fieldname2&quot;,&quot;index&quot;:2,&quot;title&quot;:&quot;Phone&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;ftype&quot;:&quot;ftext&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefined&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;required&quot;:false,&quot;size&quot;:&quot;large&quot;,&quot;minlength&quot;:&quot;&quot;,&quot;maxlength&quot;:&quot;&quot;,&quot;equalTo&quot;:&quot;&quot;},{&quot;name&quot;:&quot;message&quot;,&quot;index&quot;:3,&quot;size&quot;:&quot;large&quot;,&quot;required&quot;:true,&quot;title&quot;:&quot;Nachricht&quot;,&quot;ftype&quot;:&quot;ftextarea&quot;,&quot;userhelp&quot;:&quot;&quot;,&quot;csslayout&quot;:&quot;&quot;,&quot;predefined&quot;:&quot;&quot;,&quot;shortlabel&quot;:&quot;&quot;,&quot;userhelpTooltip&quot;:&quot;&quot;,&quot;predefinedClick&quot;:false,&quot;minlength&quot;:&quot;&quot;,&quot;maxlength&quot;:&quot;&quot;}],[{&quot;title&quot;:&quot;&quot;,&quot;description&quot;:&quot;&quot;,&quot;formlayout&quot;:&quot;top_aligned&quot;}]]\" \/>\r\n  <div id=\"fbuilder\">\r\n      <div id=\"formheader\"><\/div>\r\n      <div id=\"fieldlist\"><\/div>\r\n  <\/div>\r\n<div style=\"display:none\">  \r\n<div id=\"cpcaptchalayer\">\r\n<\/div>\r\n<\/div>\r\n<div id=\"cp_subbtn\" class=\"cp_subbtn\">Weiter<\/div>\r\n<\/form><script type='text\/javascript' src='https:\/\/villacapraverde.com\/wp-content\/plugins\/booking-calendar-contact-form\/js\/fbuilder.jquery.js?nc=1'><\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-booking.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-981","page","type-page","status-publish","hentry"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/villacapraverde.com\/de\/wp-json\/wp\/v2\/pages\/981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/villacapraverde.com\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/villacapraverde.com\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/villacapraverde.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/villacapraverde.com\/de\/wp-json\/wp\/v2\/comments?post=981"}],"version-history":[{"count":4,"href":"https:\/\/villacapraverde.com\/de\/wp-json\/wp\/v2\/pages\/981\/revisions"}],"predecessor-version":[{"id":1016,"href":"https:\/\/villacapraverde.com\/de\/wp-json\/wp\/v2\/pages\/981\/revisions\/1016"}],"wp:attachment":[{"href":"https:\/\/villacapraverde.com\/de\/wp-json\/wp\/v2\/media?parent=981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}