console.log('PHP: ');console.log('PHP: Не нашли отель trivago radisson,Санкт-Петербург,Рэдиссон САС Роялhttps://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+%D0%A0%D1%8D%D0%B4%D0%B8%D1%81%D1%81%D0%BE%D0%BD+%D0%A1%D0%90%D0%A1+%D0%A0%D0%BE%D1%8F%D0%BB+%D0%A1%D0%B0%D0%BD%D0%BA%D1%82-%D0%9F%D0%B5%D1%82%D0%B5%D1%80%D0%B1%D1%83%D1%80%D0%B3+site:trivago.ru');jQuery.getScript("http://sopt.ru/pimcore/static/js/frontend/geoip.js/", function(){ //alert(pimcore["location"]); }); $( "#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; });