低価格カレンダー
<スクリプトsrc="//www.travelpayouts.com/calendar_widget/iframe.js?marker=36242.&origin... 非同期></script>
<?php
クラス TravelpayoutsParamsSuggester
{
静的 $url = 'https://www.travelpayouts.com/widgets_suggest_params?q=';
パブリック関数suggest($query) {
$url = self::$url 。 urlencode($query);
self::get_json($url) を返します。
}
プライベート関数 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を);
json_decode($answer) を返します。
}
}
$widget_params = TravelpayoutsParamsSuggester::suggest("モスクワからチューリッヒまで");
?>
window.TP_FORM_SETTINGS = window.TP_FORM_SETTINGS || {};
window.TP_FORM_SETTINGS["4677677a69f7a4291f985e1c4ce13cb7"] = {
"handle": "4677677a69f7a4291f985e1c4ce13cb7",
"widget_name": "検索フォーム #10",
"border_radius": "2",
"追加マーカー": null、
幅: 620
"show_logo": true
"show_hotels": true
"form_type": "avia_hotel",
"ロケール": "en",
"通貨": "こする",
"サイズ": "デフォルト",
"検索対象": "_blank",
"active_tab": "アヴィア",
"search_host": "engine.aviasales.ru",
"hotels_host": "hotellook.ru/search",
"ホテル": ""、
"ホテル_alt": "",
"avia_alt": "",
「id」: 29551、
「マーカー」: 16886、
"元": {
"名前": " "、
"イアタ": " 」
},
行き先: {
"名前": " "、
"イアタ": " 」
},
"カラースキーム": {
"名前": "白_青",
"アイコン": "アイコン青",
"背景": "#ffffff",
"色": "#000000",
"border_color": "#c1c1c1",
"ボタン": "#1b9ed9",
"button_text_color": "#ffffff"
},
"ホテルタイプ": "ホテルルックホスト",
"最高の提案": {
"ロケール": "en",
"通貨": "こする",
「マーカー」: 16886、
"search_host": "engine.aviasales.ru",
"offers_switch": true、
"api_url": "//www.travelpayouts.com/minimal_prices/offers.json",
「ルート」: [
{
「一方通行」: false
"元": {
"名前": ""
},
行き先: {
"名前": ""
}
}
]
},
"hotel_logo_host": "hotellook.com",
"検索ロゴホスト": "www.aviasales.ru」,
"ホテル_マーカー_フォーマット": "マーカー=",
"hotelscombined_marker": null、
身長: 361
};
<script charset="UTF-8" src="//www.travelpayouts.com/widgets/4677677a69f7a4291f985e1c4ce13cb7.js?v=270"...
地図
<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=TpLine s&cluster _manager=TpWidgetClusterManager&marker=36242.map&show_tutorial=false&locale=en&host =map.aviasales.ru&origin_iata=MOW" width="690px" height="500px"scroll="no" Frameborder="0"></iframe>
人気の目的地
<スクリプト非同期src="//www.travelpayouts.com/weedle/widget.js?width=400px&marker=36242&... charset="UTF-8"></script>
<!-- Gismeteo 情報提供者 START -->
<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">
<div class="gsIContent">
<div id="cityLink">
<a href="https://www.gismeteo.ua/weather-sochi-adler-13028/" target="_blank">天気 ソチ (アドラー) (空港)</a>
</div>
<div class="gsLinks">
<テーブル>
<tr>
<td>
<div class="leftCol">
<a href="https://www.gismeteo.ua" target="_blank">
<img alt="ギスメテオ" title="ギスメテオ" src=https://www.gismeteo.ua/static/images/informer2/logo-mini2.png" align="absmiddle" border="0" />
<span>ギスメテオ</span>
</a>
</div>
<div class="rightCol">
<a href="https://www.gismeteo.ua/weather-sochi-adler-13028/14-days/" target="_blank">2 週間の天気</a>
</div>
</td>
</tr>
</テーブル>
</div>
</div>
</div>
<スクリプトソース=https://www.gismeteo.ua/ajax/getInformer/?hash=E0SdS1OYb73qK2" type="text/javascript"></script>
<!-- Gismeteo 情報提供者 END -->
ホテルカード
<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>
ホテル
<スクリプト非同期src="//www.travelpayouts。 com/chansey/iframe.js?width=500&hotel_id=34738853&locale=ru&host=hotellook.ru%2Fsearch&marker=36242.¤cy=rub"></script>
<スクリプト非同期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>