パラメータが不正です。
"; } } if($hotel_id != ""){ $shop_id = $_GET['shop_id']; // 検索条件表示(支配人情報) $retGourmetData = gfncGetGourmetData($shop_id,$row); if($row==0){ $HTML_MSG = "
データが存在しません。
"; }else{ if($retGourmetData['disp']!=GCNS_BOOL_FALSE){ // ホテル名称の取得 $retHotelData = gfncGetHotelData($hotel_id,$row); // @ add $ken_query = implode(" ", [ "SELECT *", "FROM mst_todouhuken", "where ken_id = '". $retHotelData["ken_id"] ."'" ]); $retKenData = pg_fetch_array(gfncExecQuery($con, $ken_query), null, PGSQL_ASSOC); $pref_area_id = $retKenData["pref_area_id"]; $area_query = implode(" ", [ "SELECT *", "FROM mst_pref_area", "where id = '". $pref_area_id ."'" ]); $retAreaData = pg_fetch_array(gfncExecQuery($con, $area_query), null, PGSQL_ASSOC); $area_name = $retAreaData["name"]; $area_url = $retAreaData["link_name"]; $pref_name = $retKenData["ken_name"]; $pref_url = $retKenData["link_name"]; // @ add $hotel_name = $retHotelData['hotel_name']; $hotel_name_s = $retHotelData['hotel_name_short']; //20191224 $hotel_url = $retHotelData['url']; $hotel_url = JP_BASE_URL.$retHotelData['path']; //$shop_info_title = "

店舗情報

"; $osusume_title = '

支配人おすすめ情報

'; // 承認済データ $from_date = $retGourmetData['from_date']; $to_date = $retGourmetData['to_date']; $shop_name = $retGourmetData['shop_name']; $address = $retGourmetData['address']; $access = $retGourmetData['access']; $tel = $retGourmetData['tel']; $shop_hour = $retGourmetData['shop_hour']; $rest = $retGourmetData['rest']; $average = $retGourmetData['average']; $url = $retGourmetData['url']; $url_info = $retGourmetData['url_info']; $shop_info1 = str_replace("\n","
",$retGourmetData['shop_info1']); $shop_info2 = $retGourmetData['shop_info2']; $shop_info3 = $retGourmetData['shop_info3']; // 2021/05/19 画像非表示対応 $image1 = ""; $image2 = ""; $image3 = ""; // 2021/05/21 許可ホテルのみ表示対応 if( $retHotelData["allow_gourmetimg"] == GCNS_BOOL_TRUE ){ $image1 = $retGourmetData['image1']; $image2 = $retGourmetData['image2']; $image3 = $retGourmetData['image3']; } $width1 = (int)$retGourmetData['width1']; $height1 = (int)$retGourmetData['height1']; $width2 = (int)$retGourmetData['width2']; $height2 = (int)$retGourmetData['height2']; $width3 = (int)$retGourmetData['width3']; $height3 = (int)$retGourmetData['height3']; if( $width1 <= 0 ) $width1 = PIC_GOURMET1_WIDTH; if( $height1 <= 0 ) $height1 = PIC_GOURMET1_HEIGHT; if( $width2 <= 0 ) $width2 = PIC_GOURMET2_WIDTH; if( $height2 <= 0 ) $height2 = PIC_GOURMET2_HEIGHT; if( $width3 <= 0 ) $width3 = PIC_GOURMET3_WIDTH; if( $height3 <= 0 ) $height3 = PIC_GOURMET3_HEIGHT; $title = $retGourmetData['title']; $privilege = $retGourmetData['privilege']; $contents = str_replace("\n","
",$retGourmetData['contents']); $type1 = $retGourmetData['type1']; $type2 = $retGourmetData['type2']; $type3 = $retGourmetData['type3']; $type4 = $retGourmetData['type4']; $type5 = $retGourmetData['type5']; $type6 = $retGourmetData['type6']; $type7 = $retGourmetData['type7']; // URL表題 if($retGourmetData['url_info']==""){ $url_info = $url; } // 編集 //画像を入れる // 2021/05/19 画像非表示対応 if($image1!=""){ // $image1_img=""; $image1_img=''.$shop_name.''; }else{ // $image1_img=""; // $image1_img=""; // 2021/05/19 画像非表示対応 //$image1_img=''.$shop_name.''; } $type_img =""; // 店舗情報 $tenpo_txt=""; if($address!=""){ $address = mb_ereg_replace("[\\\]","¥", $address, "p"); $tenpo_txt.=''; $tenpo_txt.='住所'; $tenpo_txt.=''.$address.''; $tenpo_txt.=''; } if($access!=""){ $access = changeAccessRule( $access ); // URL情報をリンクに変換する $access = mb_ereg_replace("[\\\]","¥", $access, "p"); $tenpo_txt.=''; $tenpo_txt.='アクセス'; $tenpo_txt.=''.$access.''; $tenpo_txt.=''; } if($tel!=""){ $tel = mb_ereg_replace("[\\\]","¥", $tel, "p"); $tenpo_txt.=''; $tenpo_txt.='電話番号'; $tenpo_txt.=''.$tel.''; $tenpo_txt.=''; } if($shop_hour!=""){ $shop_hour = mb_ereg_replace("[\\\]","¥", $shop_hour, "p"); $tenpo_txt.=''; $tenpo_txt.='営業時間'; $tenpo_txt.=''.$shop_hour.''; $tenpo_txt.=''; } if($rest!=""){ $rest = mb_ereg_replace("[\\\]","¥", $rest, "p"); $tenpo_txt.=''; $tenpo_txt.='定休日'; $tenpo_txt.=''.$rest.''; $tenpo_txt.=''; } if($average!=""){ $average = mb_ereg_replace("[\\\]","¥", $average, "p"); $tenpo_txt.=''; $tenpo_txt.='平均予算'; $tenpo_txt.=''.$average.''; $tenpo_txt.=''; } if($url!=""){ $url_info = mb_ereg_replace("[\\\]","¥", $url_info, "p"); $tenpo_txt.=''; $tenpo_txt.='ホームページ'; $tenpo_txt.=''.$url_info.''; $tenpo_txt.=''; } // 支配人おすすめ情報 $title_txt=""; if($title!=""){ $title = mb_ereg_replace("[\\\]","¥", $title, "p"); $title_txt='

'.$title.'

'; }else{ // $title_txt="

 

"; } $privilege_txt=""; if($privilege!=""){ // $privilege_txt="".$privilege.""; $privilege = mb_ereg_replace("[\\\]","¥", $privilege, "p"); $privilege_txt=''.$privilege.''; }else{ // $privilege_txt=" "; } $contents_txt=""; if($contents!=""){ $contents = mb_ereg_replace("[\\\]","¥", $contents, "p"); $contents_txt=''.$contents.''; }else{ // $contents_txt=""; } // おすすめ情報が存在するかチェック if( $title_txt == "" && $privilege_txt == "" && $contents_txt == "" ){ // 全て未入力 $osusume_title = ""; // 支配人おすすめ情報の画像を非表示にする } // 紹介画像1 if($image2!=""){ // $image2_txt=""; $image2_txt='イメージ'; }else{ // $image2_txt="紹介画像1"; $image2_txt=""; } $shop_info2_txt=""; if($shop_info2!=""){ $shop_info2 = mb_ereg_replace("[\\\]","¥", $shop_info2, "p"); // $shop_info2_txt="

".$shop_info2."

"; $shop_info2_txt='
'.$shop_info2.'
'; }else{ $shop_info2_txt=""; } // 紹介画像2 $image3_txt=""; if($image3!=""){ // $image3_txt=""; $image3_txt='イメージ'; }else{ // $image3_txt="紹介画像2"; $image3_txt=""; } $shop_info3_txt=""; if($shop_info3!=""){ // $shop_info3_txt="".$shop_info3.""; $shop_info3 = mb_ereg_replace("[\\\]","¥", $shop_info3, "p"); // $shop_info3_txt="

".$shop_info3."

"; $shop_info3_txt='
'.$shop_info3.'
'; }else{ // $shop_info3_txt=" "; $shop_info3_txt=""; } }else{ $HTML_MSG = "
非掲載情報です。
"; } } // meta $hotel_area_define = [ // hokkaido 103 => "旭川・層雲峡", // asahikawa 156 => "札幌・小樽・千歳", // ishikari 86 => "札幌・小樽・千歳", // susukino 168 => "札幌・小樽・千歳", // sapporo 3 => "函館・松前", // hakodate 2 => "釧路・根室", // kushiro 76 => "釧路・根室", // kushiroekimae 1 => "北見・網走・知床", // kitami // tohoku 147 => "十勝・帯広", // obihiro 4 => "青森・弘前・八戸", // aomori 87 => "十和田・奥入瀬", // towada 5 => "青森・弘前・八戸", // hirosaki 6 => "青森・弘前・八戸", // hachinohe 78 => "青森・弘前・八戸", // hachinohekinen 7 => "盛岡・盛岡駅前", // morioka 155 => "花巻・北上・遠野", // yahaba 191 => "仙台", // sendai_e 9 => "仙台", // hirose 8 => "仙台", // sendai 162 => "仙台空港・名取", // mitazono 166 => "仙台空港・名取", // natori 134 => "いわき・双葉", // iwaki 10 => "山形・蔵王", // yamagata 136 => "山形・蔵王", // higashine 138 => "山形・鶴岡", // tsuruoka // kanto 21 => "栃木・宇都宮", // utsunomiya 195 => "栃木・上三川", // kaminokawa 79 => "栃木・小山", // oyama 176 => "栃木・佐野藤岡", // sano 11 => "茨城・水戸", // mito 125 => "茨城・鹿島", // kashima 80 => "銀座・新橋・東京駅周辺", // shinbashi 114 => "赤坂・六本木・麻布", // akasaka 137 => "三田・芝・浜松町", // shiba 105 => "日本橋・神田・秋葉原", // tokyo_nihonbashi 109 => "銀座・新橋・東京駅周辺", // yaesu 139 => "銀座・新橋・東京駅周辺", // ginza 96 => "上野・浅草", // okachimachi 115 => "日本橋・神田・秋葉原", // akihabara 148 => "日本橋・神田・秋葉原", // p_akiba 104 => "上野・浅草", // asakusa 12 => "上野・浅草", // ueno 13 => "池袋・大塚・赤羽", // akabane 170 => "池袋・大塚・赤羽", // akabaneminami 106 => "池袋・大塚・赤羽", // otsuka 14 => "池袋・大塚・赤羽", // ikebukuro 188 => "池袋・大塚・赤羽", // p_ikebukuro 92 => "池袋・大塚・赤羽", // jrikebukuro 113 => "新宿・歌舞伎町", // kabukicho 108 => "亀戸・錦糸町・新小岩", // shinkoiwa 15 => "亀戸・錦糸町・新小岩", // kameido 126 => "亀戸・錦糸町・新小岩", // kinshicho 73 => "蒲田・品川・羽田空港", // kamata 141 => "三田・芝・浜松町", // hamamatsucho 112 => "蒲田・品川・羽田空港", // shinbanba 72 => "蒲田・品川・羽田空港", // aomonoyokocho 74 => "立川・国立", // tachikawakita 16 => "横浜・川崎", // shinyokohama 17 => "横浜・川崎", // kannai 123 => "横浜・川崎", // totsuka 143 => "横浜・川崎", // fujisawa 133 => "横浜・川崎", // musashikosugi 18 => "千葉駅前", // chiba 19 => "市川・浦安", // myoden 124 => "千葉・市原", // ichihara 20 => "川越・大宮・浦和", // omiya 153 => "川越・大宮・浦和", // p_omiya 97 => "和光・朝霞", // wako 132 => "久喜・幸手", // kuki 144 => "川越・大宮・浦和", // kawagoe 187 => "春日部・越谷", // kasukabe 190 => "本庄・熊谷", // honjo // koshinetsu 22 => "新潟・万代", // nigata 23 => "新井・妙高", // arai 154 => "新井・妙高", // jyoetsu 24 => "長野・松本駅周辺", // matumoto 70 => "長野・松本駅周辺", // matsumotohigashi 142 => "飯田", // iida 102 => "甲府・甲斐・南アルプス", // kofu 131 => "甲府・甲斐・南アルプス", // minamialps 181 => "富士吉田・富士河口湖", // kawaguchiko // hokuriku 25 => "高岡・射水", // takaoka 197 => "富山・城址公園", // p_toyama 169 => "高岡・射水", // imizu 167 => "金沢・能美", // kanazawa 171 => "金沢・能美", // nomi 151 => "福井・越前・武生", // takefu // tokai 81 => "沼津・三島", // nagaizumi 82 => "御殿場・富士", // gotenba 101 => "御殿場・富士", // gotenba2 118 => "御殿場・富士", // fujinomiya 27 => "御殿場・富士", // fuji 26 => "御殿場・富士", // jrfuji 28 => "御殿場・富士", // fujihon 140 => "浜松・浜名湖", // hamamatsu 91 => "岡崎・安城", // okazaki 29 => "岡崎・安城", // anjo 30 => "名古屋・栄・金山", // nagoya 183 => "名古屋・栄・金山", // nagoyashin 186 => "名古屋・栄・金山", // p_nagoya 90 => "飛騨・高山", // takayama 31 => "岐阜・大垣・養老", // ogaki 32 => "四日市・鈴鹿・桑名", // yokkaichi 99 => "四日市・鈴鹿・桑名", // kokudo_yokkaichi 100 => "四日市・鈴鹿・桑名", // suzuka 69 => "四日市・鈴鹿・桑名", // kuwanaekimae 33 => "松阪・伊勢・津", // matusaka // kansai 34 => "彦根・長浜", // hikone 198 => "彦根・長浜", // nagahama 116 => "大津・草津", // kusatsu 35 => "大津・草津", // otsu 161 => "舞鶴・宮津・天橋立", // maizuru 36 => "京都・三条・四条", // karasuma 88 => "京都・三条・四条", // shijyo 89 => "奈良・大和郡山・天理", // lohasnara 37 => "奈良・大和郡山・天理", // jrnara 93 => "奈良・大和郡山・天理", // yamatokoriyama 38 => "奈良・大和郡山・天理", // nara 39 => "新大阪・江坂", // shinosaka 43 => "阿波座", // osakaspa 42 => "梅田・淀屋橋・本町", // higo 44 => "梅田・淀屋橋・本町", // tanimachi 122 => "梅田・淀屋橋・本町", // honmachi 45 => "なんば・心斎橋", // nihonbashi 184 => "なんば・心斎橋", // shinsaibashi 46 => "天王寺", // tennouji 40 => "新大阪・江坂", // esaka 41 => "門真・寝屋川", // kadoma 47 => "堺・泉大津", // sakai 172 => "関西空港・貝塚", // kumatori 48 => "神戸・明石・西宮", // kobe 150 => "姫路・加古川", // kakogawa // chugoku 49 => "米子・倉吉・鳥取", // tottori 85 => "米子・倉吉・鳥取", // tottorikita 95 => "米子・倉吉・鳥取", // yonago 129 => "松江・出雲・神津", // matsue 51 => "松江・出雲・神津", // izumo 121 => "松江・出雲・神津", // gotsu 50 => "倉敷・井原・瀬戸内", // kurasiki 158 => "倉敷・井原・瀬戸内", // p_okayama 75 => "広島・福山・呉", // hiroshima 127 => "広島・福山・呉", // mihara 177 => "広島・福山・呉", // yagenbori 52 => "山口・防府", // yuda 83 => "山口・防府", // houfuekimae 53 => "下関・宇部", // ube 149 => "下関・宇部", // shimonoseki // shikoku 54 => "高松・さぬき・琴平", // takamatsu 55 => "高松・さぬき・琴平", // takamatsutamachi 157 => "高松・さぬき・琴平", // marugame 145 => "阿南・徳島・鳴門", // anan 159 => "阿南・徳島・鳴門", // anan_shiyakusho 182 => "阿南・徳島・鳴門", // komatsushima 56 => "高知・土佐・南国", // kouchi 57 => "松山・今治", // matuyama 98 => "八幡浜・大洲・宇和島", // yawatahama 71 => "西条・新居浜・四国中央", // niihama 165 => "西条・新居浜・四国中央", // saijyo 135 => "八幡浜・大洲・宇和島", // ehime_ozu 107 => "西条・新居浜・四国中央", // shikokuchuo 178 => "松山・今治", // imabari 189 => "八幡浜・大洲・宇和島", // uwajima // kyushu 130 => "博多・天神", // lohas_hakata 58 => "博多・天神", // hakata 94 => "北九州・小倉", // kokura 196 => "玉名・山鹿・阿蘇", // p_aso 185 => "玉名・山鹿・阿蘇", // kumamoto_e 60 => "玉名・山鹿・阿蘇", // kumamoto 160 => "水俣・八代", // yatsushiro 128 => "玉名・山鹿・阿蘇", // yamaga 61 => "水俣・八代", // minamata 84 => "中津・国東", // nakatsu 164 => "大分・別府", // beppu 62 => "宮崎・日南", // miyazaki 152 => "宮崎・日南", // p_miyazaki 63 => "川内・北薩", // satumasendai 66 => "那覇・糸満", // shintoshin // okinawa 64 => "名護・国頭・本部", // nago 67 => "石垣・市役所通り", // ishigakijima // oversea // 119 => "", // candle // 120 => "", // yangon // 111 => "", // hanoi 146 => "ティラワ・ヤンゴン南部", // thilawa ]; $hotspring_name = $retHotelData["hotspring_name"]; $area_info = implode(" ", [ $hotel_area_define[$retHotelData["hotel_id"]], $retHotelData["ken_name"], in_array($retHotelData["area_name"],["北海道", "沖縄"]) ? "" : $retHotelData["area_name"] ]); $superhotel_label = in_array($hotel_id, [43]) ? "" : "スーパーホテル"; $meta_welcomebar = [ "" => "", 1 => "ウェルカムバーや", 2 => "ウェルカムドリンクや", ][$retHotelData["welcomebar"]]; $meta_spa = $retHotelData["hotspring_type_name"] ? $retHotelData["hotspring_type_name"] . "で" : ""; $meta_description = "{$superhotel_label}{$hotel_name}店舗のホテル周辺グルメ‧飲食店情報ページです。{$retHotelData["access_ja"]}の好⽴地ながら、出張や観光で疲れた⼼と体を{$meta_spa}ゆっくり癒やせるビジネスホテルです。{$meta_welcomebar}栄養豊富な健康朝⾷も楽しんでいただけます。公式サイトからのご予約が最安値です。"; // TODO) DB参照手伝ってもらいたい @ 260116 $breadcrumb_area_name = "__TODO_area_name__"; $breadcrumb_area_link = "__TODO_area_link__"; $breadcrumb_ken_name = "__TODO_ken_name__"; $breadcrumb_ken_link = "__TODO_ken_link__"; $current_url = parse_url( (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}" ); }else{ $HTML_MSG = "
パラメータが不正です。
"; } // リンク先URL変換 if( dirname($_SERVER['REQUEST_URI']) == '/vicinity' ) { // $sightseeing_link = '/vicinity/sightsee.php?hotel_id=' . $hotel_id; $event_link = '/vicinity/event.php?hotel_id=' . $hotel_id; $gourmet_link = '/vicinity/gourmet.php?hotel_id=' . $hotel_id; $back_url = $gourmet_link; } else { // 置換 $sightseeing_link = 'sightsee.html'; $event_link = 'event.html'; $gourmet_link = 'gourmet.html'; $back_url = 'gourmet.html'; } //-------------------------------------------------------------- // buffer //-------------------------------------------------------------- $HTML_MSG = ""; if( DEF_CHARSET == 'Shift_JIS' ) { // sjis /* Buffer the output */ ob_start(); // template 読み込み //赤坂(114),JR奈良駅(89),東京駅八重州中央口(109),熊本天然温泉(60) if($hotel_id == 60 || $hotel_id == 89 || $hotel_id == 109 || $hotel_id == 114 || $hotel_id == 122 || $hotel_id == 14){ //別所 edit //if(false){ //別所 デバッグ require_once DEF_BASE_TEMPLATE_DIR . 'template_gourmet_detail_lohas.php'; } else { require_once DEF_BASE_TEMPLATE_DIR . 'template_gourmet_detail.php'; } $buffer = ob_get_contents(); @ob_end_clean(); // conten-type header('Content-Type: text/html; charset=Shift_JIS'); echo mb_convert_encoding($buffer,'sjis','utf-8'); exit; } else { // utf-8 // template 読み込み require_once DEF_BASE_TEMPLATE_DIR . 'template_gourmet_detail.php'; } ?>