'お店ID', 'ShopNameKana' => '掲載店名かな', 'ShopName' => '掲載店名', 'ShopAddress' => '住所', 'StationName' => '最寄駅名', 'KtaiCoupon' => '携帯用クーポン掲載', 'LargeServiceAreaCD' => '大サービスエリアCD', 'LargeServiceAreaName' => '大サービスエリア名', 'ServiceAreaCD' => 'サービスエリアCD', 'ServiceAreaName' => 'サービスエリア名', 'LargeAreaCD' => '大エリアCD', 'LargeAreaName' => '大エリア名', 'MiddleAreaCD' => '中エリアCD', 'MiddleAreaName' => '中エリア名', 'SmallAreaCD' => '小エリアCD', 'SmallAreaName' => '小エリア名', 'Latitude' => '緯度', 'Longitude' => '経度', 'GenreCD' => 'お店ジャンルCD', 'GenreName' => 'お店ジャンル', 'FoodCD' => '料理名CD', 'FoodName' => '料理名', 'GenreCatch' => 'お店ジャンルキャッチ', 'ShopCatch' => 'お店キャッチ', 'BudgetCD' => '検索用予算CD', 'BudgetDesc' => '検索用予算', 'BudgetAverage' => '平均予算', 'Capacity' => '総席数', 'Access' => 'アクセス', 'KtaiAccess' => '携帯用アクセス', 'ShopUrl' => '店舗URL', 'KtaiShopUrl' => '店舗URL', 'KtaiQRUrl' => 'QRコードURL', 'PcLargeImg' => 'PC用店舗トップ写真(大)', 'PcMiddleImg' => 'PC用店舗トップ写真(中)', 'PcSmallImg' => 'PC用店舗トップ写真(小)', 'MbLargeImg' => 'モバイル用店舗トップ写真(大)', 'MbSmallImg' => 'モバイル用店舗トップ写真(小)', 'Open' => '営業時間', 'Close' => '定休日', 'PartyCapacity' => '最大宴会収容人数', 'Wedding' => 'ウェディング・二次会', 'Course' => 'コース', 'FreeDrink' => '飲み放題', 'FreeFood' => '食べ放題', 'PrivateRoom' => '個室', 'Horigotatsu' => '掘りごたつ', 'Tatami' => '座敷', 'Card' => 'カード可', 'NonSmoking' => '禁煙席', 'Charter' => '貸切可', 'Ktai' => '携帯電話OK', 'Parking' => '駐車場', 'BarrierFree' => 'バリアフリー', 'Sommelier' => 'ソムリエ', 'OpenAir' => 'オープンエア', 'Show' => 'ライブ・ショー', 'Equipment' => 'エンタメ設備', 'Karaoke' => 'カラオケ', 'Band' => 'バンド演奏可', 'Tv' => 'TV・プロジェクター', 'English' => '英語メニュー', 'Pet' => 'ペット可', 'Child' => 'お子様連れ', ); $latlon = array( "SS10" => array(35.68069, 139.76699), "SS20" => array(34.679947, 135.514641), "SS30" => array(35.170458, 136.881709), "SS40" => array(43.068668, 141.350784), "SS50" => array(38.260255, 140.882106), "SS60" => array(37.912141, 139.061787), "SS70" => array(34.398305, 132.475934), "SS80" => array(34.350576, 134.045734), "SS90" => array(33.589634, 130.420804), ); $rice = "" ; $genreCd = "" ; $foodCd = "" ; $budgetCd = "" ; $keyword = "" ; $nullflag = 1; $food = "" ; //$title = "" ; $title_main = "" ; $num = "" ; if(isset($_GET['GenreCD']))$genreCd = $_GET['GenreCD']; if(isset($_GET['FoodCD']))$foodCd = $_GET['FoodCD']; if(isset($_GET['BudgetCD']))$budgetCd = $_GET['BudgetCD']; if(isset($_GET['Keyword']))$keyword = $_GET['Keyword']; $link_coupon = ""; $link_map = ""; $kutikomi = ""; $map_list = ""; $result = "" ; $now_service = "" ; $now_middle = "" ; $now_small = "" ; $button_kutikomi = "" ; $button_hotel = "" ; $button_cookie = "" ; $pref_menu_z0 = "" ; $pref_menu_z0_text = "" ; $pref_menu_ss = "" ; $pref_menu_ss_text = "" ; $pref_menu_y = "" ; $requestUrl_ss = "" ; $requestUrl_z0 = "" ; $requestUrl_y = "" ; $variables = "" ; if(isset($_GET["ss"])){ $variables = "ss=" . $_GET["ss"] ; $requestUrl_ss = "servicearea.xml"; // $requestUrl_ss = "http://api.hotpepper.jp/ServiceArea/V110/?key=guest"; //北海道の場合、自動的に都道府県も北海道にする if($_GET["ss"] == "SS40")$_GET["z0"] = "Z041"; } if(isset($_GET["z0"])){ $variables = "ss=" . $_GET["ss"] . "&z0=" . $_GET["z0"]; $requestUrl_z0 = "http://api.hotpepper.jp/MiddleArea/V110/?key=guest&LargeAreaCD=" . $_GET["z0"]; } if(isset($_GET["y"])) { // if($_GET["y"]){ // $variables = "ss=" . $_GET["ss"] . "&z0=" . $_GET["z0"] . "&y=" . $_GET["y"]; if(isset($_GET["ss"]))$variables = "ss=" .$_GET["ss"]; if(isset($_GET["z0"]))$variables .= "&z0=" . $_GET["z0"] ; if(isset($_GET["y"]))$variables .= "&y=" . $_GET["y"]; $requestUrl_y = "http://api.hotpepper.jp/SmallArea/V110/?key=guest&MiddleAreaCD=" ; if(isset($_GET["y"]))$requestUrl_y .= $_GET["y"]; // } } $variables_all = ""; $variables_all_for_squeeze = ""; foreach ($_GET as $key => $var) { if(!$key)continue; if($key == "page")continue; if($key == "Keyword")$var = urlencode($var); $variables_all .= $key . "=" . $var . "&"; /* if($key != "GenreCD"){ //ジャンル選択メニュー用 $variables_all_for_genre .= $key . "=" . $var . "&"; } if($key != "FoodCD"){ //料理名選択メニュー用 $variables_all_for_food .= $key . "=" . $var . "&"; } if($key != "BudgetCD"){ //予算選択メニュー用 $variables_all_for_budget .= $key . "=" . $var . "&"; } */ if($key != "GenreCD" && $key != "FoodCD" && $key != "BudgetCD"){ //絞込みメニュー用 $variables_all_for_squeeze .= $key . "=" . $var . "&"; } } $page =""; if (isset($_GET["page"])) $page = $_GET['page']; if(!$page)$page = 1; $Start = 10 * ($page - 1) + 1; //$variables = "ss=" . $_GET["ss"] ; $LargeServiceAreaName = array( "SS10" => "関東", "SS20" => "関西", "SS30" => "東海", "SS40" => "北海道", "SS50" => "東北", "SS60" => "北陸・甲信越", "SS70" => "中国", "SS80" => "四国", "SS90" => "九州", ); /* ******** エリアマスタ ********* ******** API呼び出し ********* ここから ******** ********* */ /** 小エリア **/ if($requestUrl_y){ $URL = $requestUrl_y ; // Get XML Query Results $aurl=@fopen($URL,"r"); $xml = ""; while (!@feof ($aurl)) $xml .= @fgets($aurl, 4096); @fclose ($aurl); // Fire up the built-in XML parser $parser = xml_parser_create( ); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); // Set tag names and values xml_parse_into_struct($parser,$xml,$values,$index); // Close down XML parser xml_parser_free($parser); /* print "Index array\n
"; print_r($index); print "Vals array\n
"; print_r($values); */ //$variables .= "&z0=" . $_GET["z0"]; if(isset($_GET["ss"] )) $variables = "ss=" . $_GET["ss"] ; if(isset($_GET["z0"] )) $variables .= "&z0=" . $_GET["z0"]; if(isset($index['SmallAreaCD'])) $num = count( $index['SmallAreaCD'] ); //print $requestUrl_y; for($i = 0; $i < $num; $i++){ $SmallAreaCD = $values[$index['SmallAreaCD'][$i]]['value']; $MiddleAreaCD = $values[$index['MiddleAreaCD'][$i]]['value']; $SmallAreaName = $values[$index['SmallAreaName'][$i]]['value']; // if($LargeServiceAreaCD != $_GET["ss"])continue; //print $ServiceAreaName.$ServiceAreaCD.$LargeServiceAreaCD; $now = 0; if(isset($_GET["x"])){ if($_GET["x"] == $SmallAreaCD){ // $pref_menu_z0 .= $pref_menu_y; $now_small = $SmallAreaName; $now = 1; } } //選択中ならa hrefでリンクさせない if($now ) { $link = <<$SmallAreaName EOF; }else{ $link = <<$SmallAreaName EOF; } $pref_menu_y .= << $link EOF; }//end for }//end if /** 中エリア **/ if($requestUrl_z0){ $URL = $requestUrl_z0 ; // Get XML Query Results $aurl=@fopen($URL,"r"); $xml = ""; while (!@feof ($aurl)) $xml .= @fgets($aurl, 4096); fclose ($aurl); // Fire up the built-in XML parser $parser = xml_parser_create( ); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); // Set tag names and values xml_parse_into_struct($parser,$xml,$values,$index); // Close down XML parser xml_parser_free($parser); /* print "Index array\n
"; print_r($index); print "Vals array\n
"; print_r($values); */ $variables = "ss=" . $_GET["ss"] ; $num = count( $index['MiddleAreaCD'] ); for($i = 0; $i < $num; $i++){ $MiddleAreaCD = $values[$index['MiddleAreaCD'][$i]]['value']; $LargeAreaCD = $values[$index['LargeAreaCD'][$i]]['value']; $MiddleAreaName = $values[$index['MiddleAreaName'][$i]]['value']; // if($LargeServiceAreaCD != $_GET["ss"])continue; //print $ServiceAreaName.$ServiceAreaCD.$LargeServiceAreaCD; $now = 0; if(isset($_GET["y"])){ if($_GET["y"] == $MiddleAreaCD){ // $pref_menu_z0 .= $pref_menu_y; $now_middle = $MiddleAreaName; $now = 1; } } //選択中ならa hrefでリンクさせない if($now && !isset($_GET["x"])) { $link = <<$MiddleAreaName EOF; }else{ $link = <<$MiddleAreaName EOF; } $pref_menu_z0 .= << $link EOF; $pref_menu_z0_text .= <<"; print_r($index); print "Vals array\n
"; print_r($values); */ $variables = "ss=" . $_GET["ss"] ; $num = count( $index['LargeServiceAreaCD'] ); for($i = 0; $i < $num; $i++){ $ServiceAreaCD = $values[$index['ServiceAreaCD'][$i]]['value']; $LargeServiceAreaCD = $values[$index['LargeServiceAreaCD'][$i]]['value']; $ServiceAreaName = $values[$index['ServiceAreaName'][$i]]['value']; $LargeAreaCD = "Z0" . substr($ServiceAreaCD, 2, 2); if($LargeServiceAreaCD != $_GET["ss"])continue; //print $ServiceAreaName.$ServiceAreaCD.$LargeServiceAreaCD; $now = 0; if(isset($_GET["z0"])){ if($_GET["z0"] == $LargeAreaCD){ // $pref_menu_ss .= $pref_menu_z0; $now_service = $ServiceAreaName; $now = 1; } } //選択中ならa hrefでリンクさせない if($now && !isset($_GET["y"]) && !isset($_GET["x"])) { //if($now && !$_GET["y"] && !$_GET["x"]) { $link = <<$ServiceAreaName EOF; }else{ $link = <<$ServiceAreaName EOF; }//end if $pref_menu_ss .= << $link EOF; $pref_menu_ss_text .= << $val){ $pref_menu_ss .= << $val EOF; $pref_menu_ss_text .= <<$val / EOF; }//end foreach $val1="";$val2="";$val3=""; if(isset($_GET['ShopIdFront'])) $val1 = $_GET['ShopIdFront']; if(isset($_GET['Latitude'])) $val2 = $_GET['Latitude']; if(isset($_REQUEST['sitemap'])) $val3 = $_REQUEST['sitemap']; if(!isset($val1) && !isset($keyword) && !isset($val2) && !isset($val3)){ // if(!isset($_GET['ShopIdFront']) && !isset($keyword) && !isset($_GET['Latitude']) && !isset($_REQUEST['sitemap'])){ $rice = <<
忘年会・新年会の飲食店・クーポン情報満載 店の予約.com
全国のグルメ・飲食店を探すことができます。
EOF; } }//end if /* ******** ********* ******** API呼び出し ********* ここまで ******** ********* */ $navigator = ""; $navi = ""; $requestUrl = "" ; if(isset($_GET['ShopIdFront'])){ //if($_GET['ShopIdFront']){ $navigator = "詳細情報"; $requestUrl = "http://api.hotpepper.jp/GourmetSearch/V110/?key=guest&ShopName=&Order=1&ShopIdFront=" . $_GET["ShopIdFront"]; if(isset($_GET['ShopName'])) $title_main = $_GET['ShopName'] . " - "; // $_GET["z0"]= $values[$index['LargeAreaCD'][0]]['value'];//$_GET["LargeAreaCD"]; } if($now_service){ $navigator = $now_service; $requestUrl = "http://api.hotpepper.jp/GourmetSearch/V110/?key=guest&ShopName=&Order=1&LargeAreaCD=" . $_GET["z0"]; $title_main = $now_service . "の"; } if($now_middle){ $navigator .= " > " . $now_middle; $requestUrl = "http://api.hotpepper.jp/GourmetSearch/V110/?key=guest&ShopName=&Order=1&MiddleAreaCD=" . $_GET["y"]; $title_main = $now_middle . "の"; } if($now_small){ $navigator .= " > " . $now_small; $requestUrl = "http://api.hotpepper.jp/GourmetSearch/V110/?key=guest&ShopName=&Order=1&SmallAreaCD=" . $_GET["x"]; $title_main = $now_small . "の"; } if($now_service)$navigator .= "のお店の予約"; if(isset($_GET['Keyword'])){ $navigator = "キーワードで検索: [ " . $_GET['Keyword'] . " ]"; $requestUrl = "http://api.hotpepper.jp/GourmetSearch/V110/?key=guest&ShopName=&Order=1&Keyword=" . urlencode($_GET["Keyword"]); $title_main = "[" . $_GET['Keyword'] . "]を含む"; } if(isset($_GET['Latitude']) && !isset($_GET['Keyword'])){ //if($_GET['Latitude'] && !$_GET['Keyword']){ $range = array( 1 => "300m", 2 => "500m", 3 => "1km", 4 => "2km", 5 => "3km", ); // $navigator = "地図から検索"; $lattoshow = substr($_GET["Latitude"] , 0, 5); $lontoshow = substr($_GET["Longitude"], 0, 5); $navigator = "経度" . $lattoshow . "度/緯度" . $lontoshow . "度から半径" . $range[$_GET["Range"]] . "以内のお店"; $requestUrl = "http://api.hotpepper.jp/GourmetSearch/V110/?key=guest&Latitude=" . $_GET["Latitude"] . "&Longitude=" . $_GET["Longitude"] . "&Range=" . $_GET["Range"]; //おすすめ順にするOrder=4 $requestUrl .= "&Order=4"; $title_main = ""; } //ジャンルで絞込んでいる場合 if(isset($_GET['GenreCD'])){ $requestUrl .= "&GenreCD=" . $_GET['GenreCD']; }else if(isset($_GET['FoodCD'])){ $requestUrl .= "&FoodCD=" . $_GET['FoodCD']; }else if(isset($_GET['BudgetCD'])){ $requestUrl .= "&BudgetCD=" . $_GET['BudgetCD']; } if($requestUrl){ /* ******** グルメサーチ ********* ******** API呼び出し ********* ここから ******** ********* */ $URL = $requestUrl . "&Start=$Start" ; //$URL = $requestUrl ; print ""; // Get XML Query Results $aurl=@fopen($URL,"r"); $xml = ""; //while (!feof ($aurl)) // $xml .= fgets($aurl, 4096); while (!@feof ($aurl)) $xml .= @fgets($aurl, 4096); fclose ($aurl); // Fire up the built-in XML parser $parser = xml_parser_create( ); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); // Set tag names and values xml_parse_into_struct($parser,$xml,$values,$index); // Close down XML parser xml_parser_free($parser); /* print "Index array\n
"; print_r($index); print "Vals array\n
"; print_r($values); */ $result .= <<XML --> EOF; $num_now = count( $index['ShopName'] ); $num = $values[$index['NumberOfResults'][0]]['value']; if($num){ //検索結果がある場合 $jenres = showjenre ($program, $variables_all_for_squeeze, $genreCd); $foods = showfood ($program, $variables_all_for_squeeze, $foodCd); $budgets = showbudget ($program, $variables_all_for_squeeze, $budgetCd); /* $jenres = showjenre ($program, $variables_all_for_squeeze, $_GET['GenreCD']); $foods = showfood ($program, $variables_all_for_squeeze, $_GET['FoodCD']); $budgets = showbudget ($program, $variables_all_for_squeeze, $_GET['BudgetCD']); */ if(!isset($_GET['ShopIdFront'])){ $result .= << $num件見つかりました. $page頁を表示中. EOF; $pager = pager($variables_all , $num, $page, $keyword, $program); if($pager != "1 "){ $result .= << $pager EOF; } } if(!isset($_GET['Keyword']) && !isset($_GET['ShopIdFront'])){ //キーワード検索でなく詳細情報でもない場合のみ絞込みメニューを表示する $result .= << $jenres $foods $budgets EOF; } $hyouji = min($num_now, 10); //$from = 0; //for($i = 0; $i < $hyouji; $i++){ for($i = 0; $i < $hyouji; $i++){ if(!isset($_GET['ShopIdFront'])){ $responce_to_show = array( 'ShopName' => '掲載店名', 'GenreName' => 'お店ジャンル', 'GenreCD' => 'お店ジャンルCD', 'FoodName' => '料理名', 'FoodCD' => '料理名CD', 'ShopUrl' => '店舗URL', 'PcLargeImg' => 'PC用店舗トップ写真(大)', 'PcMiddleImg' => 'PC用店舗トップ写真(中)', 'PcSmallImg' => 'PC用店舗トップ写真(小)', 'GenreCatch' => 'お店ジャンルキャッチ', 'ShopCatch' => 'お店キャッチ', 'ShopIdFront' => 'お店ID', 'Latitude' => '緯度', 'Longitude' => '経度', 'LargeServiceAreaCD' => '大サービスエリアCD', 'MiddleAreaCD' => '中エリアCD', 'LargeAreaCD' => '大エリアCD', 'SmallAreaCD' => '小エリアCD', 'LargeAreaName' => '大エリア名', 'MiddleAreaName' => '中エリア名', 'SmallAreaName' => '小エリア名', ); /* $ShopName = $values[$index['ShopName'][$i]]['value']; $GenreName = $values[$index['GenreName'][$i]]['value']; $ShopUrl = $values[$index['ShopUrl'][$i]]['value']; $PcLargeImg = $values[$index['PcLargeImg'][$i]]['value']; $PcMiddleImg = $values[$index['PcMiddleImg'][$i]]['value']; $PcSmallImg = $values[$index['PcSmallImg'][$i]]['value']; $ShopCatch = $values[$index['ShopCatch'][$i]]['value']; $ShopIdFront = $values[$index['ShopIdFront'][$i]]['value']; $ShopUrl = returnAffUrl($ShopUrl); */ foreach($responce_to_show as $key => $val){ if(isset($values[$index[$key][$i]]['value'])) $detail[$key] = $values[$index[$key][$i]]['value']; } $detail['ShopUrl'] = returnAffUrl($detail['ShopUrl']); //クーポンページへのリンク作成 if(strstr ($detail['ShopUrl'], "%2FA_20100%2F")){ $link_coupon_url = str_replace("%2FA_20100%2F", "%2FA_20700%2F", $detail['ShopUrl']); $link_coupon = <<クーポン印刷へ EOF; $link_map = <<地図印刷へ EOF; $kutikomi = str_replace("%2FA_20100%2F", "%2Freport%2F", $detail['ShopUrl']); $kutikomi = str_replace("report%2Fstr", "report%2F", $kutikomi); // $kutikomi = " - クチコミ"; }else{ $link_coupon = ""; $kutikomi = ""; } //詳細情報へのリンクもつなげる $link_coupon .= <<$detail[ShopName]の詳細情報へ EOF; }else{ $responce_to_show = array( 'ShopIdFront' => 'お店ID', 'ShopNameKana' => '掲載店名かな', 'ShopName' => '掲載店名', 'ShopAddress' => '住所', 'StationName' => '最寄駅名', 'KtaiCoupon' => '携帯用クーポン掲載', 'LargeServiceAreaCD' => '大サービスエリアCD', 'LargeServiceAreaName' => '大サービスエリア名', 'ServiceAreaCD' => 'サービスエリアCD', 'ServiceAreaName' => 'サービスエリア名', 'LargeAreaCD' => '大エリアCD', 'LargeAreaName' => '大エリア名', 'MiddleAreaCD' => '中エリアCD', 'MiddleAreaName' => '中エリア名', 'SmallAreaCD' => '小エリアCD', 'SmallAreaName' => '小エリア名', 'Latitude' => '緯度', 'Longitude' => '経度', 'GenreCD' => 'お店ジャンルCD', 'GenreName' => 'お店ジャンル', 'FoodCD' => '料理名CD', 'FoodName' => '料理名', 'GenreCatch' => 'お店ジャンルキャッチ', 'ShopCatch' => 'お店キャッチ', 'BudgetCD' => '検索用予算CD', 'BudgetDesc' => '検索用予算', 'BudgetAverage' => '平均予算', 'Capacity' => '総席数', 'Access' => 'アクセス', 'KtaiAccess' => '携帯用アクセス', 'ShopUrl' => '店舗URL', 'KtaiShopUrl' => '店舗URL', 'KtaiQRUrl' => 'QRコードURL', 'PcLargeImg' => 'PC用店舗トップ写真(大)', 'PcMiddleImg' => 'PC用店舗トップ写真(中)', 'PcSmallImg' => 'PC用店舗トップ写真(小)', 'MbLargeImg' => 'モバイル用店舗トップ写真(大)', 'MbSmallImg' => 'モバイル用店舗トップ写真(小)', 'Open' => '営業時間', 'Close' => '定休日', 'PartyCapacity' => '最大宴会収容人数', 'Wedding' => 'ウェディング・二次会', 'Course' => 'コース', 'FreeDrink' => '飲み放題', 'FreeFood' => '食べ放題', 'PrivateRoom' => '個室', 'Horigotatsu' => '掘りごたつ', 'Tatami' => '座敷', 'Card' => 'カード可', 'NonSmoking' => '禁煙席', 'Charter' => '貸切可', 'Ktai' => '携帯電話OK', 'Parking' => '駐車場', 'BarrierFree' => 'バリアフリー', 'Sommelier' => 'ソムリエ', 'OpenAir' => 'オープンエア', 'Show' => 'ライブ・ショー', 'Equipment' => 'エンタメ設備', 'Karaoke' => 'カラオケ', 'Band' => 'バンド演奏可', 'Tv' => 'TV・プロジェクター', 'English' => '英語メニュー', 'Pet' => 'ペット可', 'Child' => 'お子様連れ', ); foreach($responce_to_show as $key => $val){ $detail[$key] = $values[$index[$key][$i]]['value']; } $detail['ShopUrl'] = returnAffUrl($detail['ShopUrl']); $_GET["z0"] = $detail['LargeAreaCD'];// $keywords = $detail['LargeAreaName'] . "," . $detail['ShopName'] . "," . $keywords;// //クーポンページへのリンク作成 if(strstr ($detail['ShopUrl'], "%2FA_20100%2F")){ $link_coupon_url = str_replace("%2FA_20100%2F", "%2FA_20700%2F", $detail['ShopUrl']); $link_coupon = <<$link_couponのクーポン印刷へ EOF; $link_map = <<地図印刷へ EOF; $kutikomi = str_replace("%2FA_20100%2F", "%2Freport%2F", $detail['ShopUrl']); $kutikomi = str_replace("report%2Fstr", "report%2F", $kutikomi); // $kutikomi = " - クチコミ"; }else{ // $link_coupon = ""; // $link_map = ""; // $kutikomi = ""; } $navi .= "$detail[LargeAreaName]"; $navi .= " > $detail[MiddleAreaName]"; $navi .= " > $detail[SmallAreaName]"; $kinrin = "$detail[SmallAreaName]から探す"; //クチコミへのリンク if($kutikomi){ $button_kutikomi = <<$detail[ShopName]のくちこみ情報 EOF; } //近くのホテルへのリンク if($detail['Longitude']){ $hotel = "http://yado-kensaku.com/search.php?x=".$detail['Latitude']."&y=".$detail['Longitude']."&range=1"; $button_hotel = <<近くのホテルを探す EOF; } //お気に入りクッキー $ShopNameEnc = urlencode($detail["ShopName"]); $ShopNameCookie = str_replace("'", "’", $detail["ShopName"]); $button_cookie = << EOF; $result .= << $detail[ShopName] $detail[GenreCatch] $detail[ShopCatch]
$detail[ShopName]の予約へ$link_coupon$link_map
$button_kutikomi $button_cookie $button_hotel
地域:$navi 近隣の店:$kinrin ジャンル:$detail[GenreName] 主な料理:$detail[FoodName] $detail[ShopName]
写真提供:ホットペッパー.jp
EOF; $responce_to_show = array( 'ShopAddress' => '住所', 'StationName' => '最寄駅名', 'GenreName' => 'お店ジャンル', 'FoodName' => '料理名', 'GenreCatch' => 'お店ジャンルキャッチ', 'ShopCatch' => 'お店キャッチ', 'BudgetAverage' => '平均予算', 'Capacity' => '総席数', 'Access' => 'アクセス', 'Open' => '営業時間', 'Close' => '定休日', 'PartyCapacity' => '最大宴会収容人数', 'Wedding' => 'ウェディング・二次会', 'Course' => 'コース', 'FreeDrink' => '飲み放題', 'FreeFood' => '食べ放題', 'PrivateRoom' => '個室', 'Horigotatsu' => '掘りごたつ', 'Tatami' => '座敷', 'Card' => 'カード可', 'NonSmoking' => '禁煙席', 'Charter' => '貸切可', 'Ktai' => '携帯電話OK', 'Parking' => '駐車場', 'BarrierFree' => 'バリアフリー', 'Sommelier' => 'ソムリエ', 'OpenAir' => 'オープンエア', 'Show' => 'ライブ・ショー', 'Equipment' => 'エンタメ設備', 'Karaoke' => 'カラオケ', 'Band' => 'バンド演奏可', 'Tv' => 'TV・プロジェクター', 'English' => '英語メニュー', 'Pet' => 'ペット可', 'Child' => 'お子様連れ', ); foreach($responce_to_show as $key => $val){ if(!$detail[$key])continue; if($detail[$key] == "あり" or $detail[$key] == "利用可" or $detail[$key] == "可" or $detail[$key] == "お子様連れ歓迎" or $detail[$key] == "貸切可" or $detail[$key] == "禁煙席あり" or $detail[$key] == "いる" or $detail[$key] == "つながる" or $detail[$key] == "OK" or $detail[$key] == "お子様連れOK" ){ $color = "red"; $bold = ""; $bold_2 = ""; }else{ $color = "black"; $bold = ""; $bold_2 = ""; } $result .= << EOF; } $result .= <<
$bold$val$bold_2 $bold$detail[$key]$bold_2
$detail[ShopName]の予約ページへ$link_coupon$link_map
$button_kutikomi $button_cookie $button_hotel
EOF; $iplus1 = $i + 1; $ShopNameEnc = urlencode($detail["ShopName"]); $map_list .= <<$detail[ShopName]
\"$detail[ShopName]\"" ); EOF; continue;//詳細情報は一軒だけなので出る }//end if(!$_GET[ShopIdFront]) //クチコミへのリンク if($kutikomi){ $button_kutikomi = <<$detail[ShopName]のくちこみ情報 EOF; } //お気に入りクッキー $ShopNameEnc = urlencode($detail["ShopName"]); $ShopNameCookie = str_replace("'", "’", $detail["ShopName"]); $button_cookie = << EOF; // $navi_area = "$detail[LargeAreaName]"; $navi_area .= " > $detail[MiddleAreaName]"; $navi_area .= " > $detail[SmallAreaName]"; // if(isset($detail['LargeServiceAreaCD'])){ $LSA=$detail['LargeServiceAreaCD']; }else{ $LSA=""; } if(isset($detail['LargeAreaCD'])){ $LAC=$detail['LargeAreaCD']; }else{ $LAC=""; } if(isset($detail['MiddleAreaCD'])){ $MAC=$detail['MiddleAreaCD']; }else{ $MAC=""; } if(isset($detail['SmallAreaCD'])){ $SAC=$detail['SmallAreaCD']; }else{ $SAC=""; } if(isset($detail['GenreCD'])){ $GC=$detail['GenreCD']; }else{ $GC=""; } if(isset($detail['GenreName'])){ $GN=$detail['GenreName']; }else{ $GN=""; } $result .= <<
写真提供:ホットペッパー.jp
$detail[ShopName]
ジャンル:$GN - 主な料理:$detail[FoodName]
地域:$navi_area
$detail[GenreCatch]
$detail[ShopCatch]
店の予約へ$link_coupon
$link_map $button_kutikomi $button_cookie
EOF; if($i == 4 || $i == 9){ $result .= <<
EOF; } $iplus1 = $i + 1; $ShopNameEnc = urlencode($detail["ShopName"]); $map_list .= <<$detail[ShopName]
\"\"" ); EOF; }//end for if(!isset($_GET['ShopIdFront'])){ // $pager = pager($variables_all , $num, $page, $keyword, $program); if($pager != "1 "){ $result .= << $pager EOF; } } }else{ //検索結果がない場合 $result .= << この地域にお店は見つかりませんでした. 前のページに戻る. EOF; } /* ******** ********* ******** API呼び出し ********* ここまで ******** ********* */ $result .= << EOF; }else if(!isset($_REQUEST['sitemap'])){ if($nullflag){ if(isset($_GET['searchflag'])){ $result .= << キーワードが入力されていません. EOF; } $result .= << 地域を選択してください. $pref_menu_ss_text EOF; }else{ $result .= << 都道府県を選択してください. $pref_menu_ss_text EOF; } }//end if if(isset($_GET['ShopIdFront'])){ // $title_main = $detail[ShopName] . " - "; $title_main = $detail['ShopName'] . " - " . $detail['LargeAreaName'] . "の"; // $description = $detail[LargeAreaName] . "の" . $detail[GenreName] . "のお店「" . $detail[ShopName] . "」の予約、地図やクーポン券、くちこみ情報など。" . $detail[GenreCatch]; $description = $detail['LargeAreaName'] . "の" . $detail['GenreName'] . "のお店「" . $detail['ShopName'] . "」。" . $detail['GenreCatch'] ."。便利なネット予約、地図印刷やクーポン券印刷、くちこみ情報など。"; } //サイトマップ if(isset($_REQUEST['sitemap'])){ $result = "\nサイトマップ"; $result .= returnSitemap($_REQUEST['l_area'], $_REQUEST['m_area']); } // HTML スタート ?> <?print $title_main . $food . $title;?>
サイトマップ  全文検索
関東地方の店の予約 関西・近畿地方の店の予約 東海地方の店の予約 北海道地方の店の予約 東北地方の店の予約 北陸・甲信越地方の店の予約 中国地方の店の予約 四国地方の店の予約 九州・沖縄地方の店の予約
 
EOF; } ?>
地域で絞り込む
" . $now_service .">".$now_middle .">".$now_small ;?>
お気に入りのお店
テーマのおすすめ
$osusume

このサイトを

店の予約.comはリンクフリーです<?print $title;?>

店の予約.com携帯版店の予約.com携帯版
お店の情報
EOF; } ?> "; if(!$map_list){ $map_list = returnMapList($_GET["ss"]); // $map_list = $map_list[$_GET["ss"]]; } ?>
$navigator
 
お店の地図情報
マーカーの番号はリストの表示順です.

この地図の中心から
半径以内のお店を
地名から検索


スマートフォン | PC版
Powered by ホットペッパー.jp & Copyright 2006 店の予約ドットコム all rights reserved
$prefのおすすめ
  • 夜景がきれい
  • ハイクラス
  • 宴会に便利
  • 個室が使える
  • 食べ放題
  • 飲み放題
  • 合コンに便利 EOF; return $ret; } ?>