<p>Календарь низких цен<br />
<script src="//www.travelpayouts.com/calendar_widget/iframe.js?marker=36242.&origin... async></script></p>
<?php
class TravelpayoutsParamsSuggester
{
static $url = 'https://www.travelpayouts.com/widgets_suggest_params?q=';
public function suggest($query) {
$url = self::$url . urlencode($query);
return self::get_json($url);
}
private function get_json($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
$answer = curl_exec($ch);
curl_close($ch);
return json_decode($answer);
}
}
$widget_params = TravelpayoutsParamsSuggester::suggest("Из Москвы в Цюрих");
?>
<script charset="UTF-8" type="text/javascript">
window.TP_FORM_SETTINGS = window.TP_FORM_SETTINGS || {};
window.TP_FORM_SETTINGS["4677677a69f7a4291f985e1c4ce13cb7"] = {
"handle": "4677677a69f7a4291f985e1c4ce13cb7",
"widget_name": "Поисковая форма #10",
"border_radius": "2",
"additional_marker": null,
"width": 620,
"show_logo": true,
"show_hotels": true,
"form_type": "avia_hotel",
"locale": "ru",
"currency": "rub",
"sizes": "default",
"search_target": "_blank",
"active_tab": "avia",
"search_host": "engine.aviasales.ru",
"hotels_host": "hotellook.ru/search",
"hotel": "",
"hotel_alt": "",
"avia_alt": "",
"id": 29551,
"marker": 16886,
"origin": {
"name": "<?php echo $widget_params["origin"]["name"] ?>",
"iata": "<?php echo $widget_params["origin"]["iata"] ?>"
},
"destination": {
"name": "<?php echo $widget_params["destination"]["name"] ?>",
"iata": "<?php echo $widget_params["destination"]["iata"] ?>"
},
"color_scheme": {
"name": "white_blue",
"icons": "icons_blue",
"background": "#ffffff",
"color": "#000000",
"border_color": "#c1c1c1",
"button": "#1b9ed9",
"button_text_color": "#ffffff"
},
"hotels_type": "hotellook_host",
"best_offer": {
"locale": "ru",
"currency": "rub",
"marker": 16886,
"search_host": "engine.aviasales.ru",
"offers_switch": true,
"api_url": "//www.travelpayouts.com/minimal_prices/offers.json",
"routes": [
{
"one_way": false,
"origin": {
"name": ""
},
"destination": {
"name": ""
}
}
]
},
"hotel_logo_host": "hotellook.ru",
"search_logo_host": "www.aviasales.ru",
"hotel_marker_format": "marker=",
"hotelscombined_marker": null,
"height": 361
};
</script>
<script charset="UTF-8" src="//www.travelpayouts.com/widgets/4677677a69f7a4291f985e1c4ce13cb7.js?v=270"...
<p>Карта<br />
<iframe src="//maps.avs.io/flights/?auto_fit_map=true&hide_sidebar=true&hide_reformal=true&disable_googlemaps_ui=true&zoom=3&show_filters_icon=true&redirect_on_click=true&small_spinner=true&hide_logo=true&direct=true&lines_type=TpLines&cluster_manager=TpWidgetClusterManager&marker=36242.map&show_tutorial=false&locale=ru&host=map.aviasales.ru&origin_iata=MOW" width="690px" height="500px" scrolling="no" frameborder="0"></iframe></p>
<p>Популярные направления<br />
<script async src="//www.travelpayouts.com/weedle/widget.js?width=400px&marker=36242&... charset="UTF-8"></script></p>
<p><!-- Gismeteo informer START --><br />
<link rel="stylesheet" type="text/css" href="https://www.gismeteo.ua/static/css/informer2/gs_informerClient.min.css"&... />
<div id="gsInformerID-E0SdS1OYb73qK2" class="gsInformer" style="width:690px;height:193px"><br />
<div class="gsIContent"><br />
<div id="cityLink"><br />
<a href="https://www.gismeteo.ua/weather-sochi-adler-13028/" target="_blank">Погода Сочи (Адлер) (а/п)</a><br />
</div><br />
<div class="gsLinks"><br />
<table><br />
<tr><br />
<td><br />
<div class="leftCol"><br />
<a href="https://www.gismeteo.ua" target="_blank"><br />
<img alt="Gismeteo" title="Gismeteo" src="https://www.gismeteo.ua/static/images/informer2/logo-mini2.png" align="absmiddle" border="0" /><br />
<span>Gismeteo</span><br />
</a><br />
</div><br />
<div class="rightCol"><br />
<a href="https://www.gismeteo.ua/weather-sochi-adler-13028/14-days/" target="_blank">Погода на 2 недели</a><br />
</div><br />
</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
</div><br />
<script src="https://www.gismeteo.ua/ajax/getInformer/?hash=E0SdS1OYb73qK2" type="text/javascript"></script><br />
<!-- Gismeteo informer END --><br />
Отельная карта<br />
<iframe src="//maps.avs.io/hotels?color=%2300b1dd&locale=ru&marker=36242.hotelsmap&changeflag=1&draggable=true&map_styled=false&map_color=%2300b1dd&contrast_color=%23FFFFFF&disable_zoom=false&base_diameter=16&scrollwheel=true&host=hotellook.ru&lat=55.75676596308399&lng=37.72694829711918&zoom=12" height="390px" width="690px" scrolling="no" frameborder="0"></iframe></p>
<p>Отель<br />
<script async src="//www.travelpayouts. com/chansey/iframe.js?width=500&hotel_id=34738853&locale=ru&host=hotellook.ru%2Fsearch&marker=36242.&currency=rub"></script></p>
<p><br />
<script async src="//www.travelpayouts. com/subscription_widget/widget.js?width=690px&backgroundColor=%2300b1dd&marker=36242&host=hydra.aviasales.ru&originIata=MOW&originName=%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0&destinationIata=BKK&destinationName=%D0%91%D0%B0%D0%BD%D0%B3%D0%BA%D0%BE%D0%BA"></script></p>
<p> </p>