console.log('PHP: ');console.log('PHP: Не нашли отель trivago golden_square,Дубаи,Golden Square Hotel Apartmentshttps://www.googleapis.com/customsearch/v1?alt=json&cx=002350544079083536145:6hlkhsgpvda&key=AIzaSyAguua6Rj0AXwUqR6oUCGhc1e04ZII3yFk&q=%D0%B3%D0%BE%D1%81%D1%82%D0%B8%D0%BD%D0%B8%D1%86%D0%B0+Golden+Square+Hotel+Apartments+%D0%94%D1%83%D0%B1%D0%B0%D0%B8+site:trivago.ru');jQuery.getScript("http://sopt.ru/pimcore/static/js/frontend/geoip.js/", function(){ //alert(pimcore["location"]); }); $("#table2").toggle(); $("#price_header").html(" " ); $("#price_header").css( "background-color" ,"white"); $("#price_header").css( "padding" ,"100px 0 450px 0 "); $("#price_header").append(''); $( "#searchprices" ).click(function() { if (typeof metrikaCounter != "undefined") {metrikaCounter.reachGoal('bookingbuttonclick');} $.get( "http://sopt.ru/offers-notify.php?host=" ); var mainlink=""; var checkin_date=jQuery("#dateFrom").val(); var checkout_date=jQuery("#dateTo").val(); mainlink=mainlink.replace("CHECKINDAY", checkin_date.split(".")[0]); mainlink=mainlink.replace("CHECKINMONTH", checkin_date.split(".")[1]); mainlink=mainlink.replace("CHECKINYEAR", checkin_date.split(".")[2]); mainlink=mainlink.replace("CHECKOUTDAY", checkout_date.split(".")[0]); mainlink=mainlink.replace("CHECKOUTMONTH", checkout_date.split(".")[1]); mainlink=mainlink.replace("CHECKOUTYEAR", checkout_date.split(".")[2]); window.open(mainlink, 'booking', 'window settings'); return false; });