assigns=$assigns; $error->e_message="404 企業URLが存在しません。"; $error->error(); exit(); }else if($result["count"] > 1){ $error = new ERROR_DISP_BC; $error->assigns=$assigns; $error->e_message="企業URLが重複しています。管理者までお問い合わせ下さい。"; $error->error(); exit(); }else{ $shop = $result["result"][0]; //直営の時はdetailに飛ばす if( $shop["user_bp_type"] == 1 and $shop["user_test"] != 1){ header("Location: /shop/detail_".$shop["user_id"]."/"); exit(); } if( $shop["user_test"] == 1 and EASY != 1 and YUME != 1){ //ショップがテストの時は非表示 header("HTTP/1.0 403 Not Found"); $error = new ERROR_DISP_BC; $error->assigns=$assigns; $error->e_message="403 該当のページは閲覧できません。"; $error->error(); exit(); } //コンテンツ確認 $page["special"] = 0; $page["jiyu"] = 0; $page["sato"] = 0; $page["reset"] = 0; $page["tsumiki"] = 0; $page["ceo"] = 0; $page["event"] = 0; $page["model"] = 0; $page["company"] = 1; $page["contact"] = 0; $page["reservation"] = 0; //取材サービス $table_name = "`page_special`"; $where = "`page_special_user_id` = ".$shop["user_id"]." AND `page_special_status` = 0 "; $order = ""; $special_result=serach($table_name,$where,$order,1,1); if( $special_result["count"] == 1 ){ $page["special"] = 1; } //自由設計 if($shop["user_free"] == 1){ $page["jiyu"] = 1; } //郷の家 if($shop["user_sato"] == 1){ $page["sato"] = 1; } //リセットハウス if($shop["user_rst"] == 1){ $page["reset"] = 1; } //tsumiki if($shop["user_tsumiki"] == 1){ $page["tsumiki"] = 1; } //hiraya if($shop["user_hiraya"] == 1){ $page["hiraya"] = 1; } //代表者挨拶 $table_name = "`page_ceo`"; $where = "`page_ceo_user_id` = ".$shop["user_id"]." AND `page_ceo_status` = 0 "; $order = ""; $ceo_result=serach($table_name,$where,$order,1,1); if( $ceo_result["count"] > 0 ){ $page["ceo"] = 1; } //イベント $table_name = "`event`"; $where = "event_user_id = ".$shop["user_id"]." "; $event_result=serach($table_name,$where,$order,1,1); $order = ""; if( $event_result["count"] > 0 ){ $page["event"] = 1; } //モデルハウス $table_name = "`model`"; $where = "model_user_id = ".$shop["user_id"]." "; $order = ""; $model_result=serach($table_name,$where,$order,1,1); if( $model_result["count"] > 0 ){ $page["model"] = 1; } //お問い合わせ if($shop["user_mail"] != ""){ $page["contact"] = 1; } //オンライン予約 if($shop["user_reservation_mail"] != ""){ $page["reservation"] = 1; } $assigns[] = array("shop",$shop); $assigns[] = array("page",$page); //ページ出力 if(!isset($_GET["menu"]) or $_GET["menu"] == ""){ include("./top.php"); }else if($_GET["menu"] == "special"){ //取材サービス include("./special.php"); }else if($_GET["menu"] == "jiyu"){ //自由設計 include("./jiyu.php"); }else if($_GET["menu"] == "sato"){ //自由設計 include("./sato.php"); }else if($_GET["menu"] == "reset"){ //リセット include("./reset.php"); }else if($_GET["menu"] == "tsumiki"){ //tsumiki include("./tsumiki.php"); }else if($_GET["menu"] == "hiraya"){ //tsumiki include("./hiraya.php"); }else if($_GET["menu"] == "greeting"){ //greeting include("./greeting.php"); }else if($_GET["menu"] == "company"){ //会社概要 include("./company.php"); }else if($_GET["menu"] == "event"){ //イベント if($_GET["menu2"] == "/" or $_GET["menu2"] == ""){ include("./event.php"); }else{ include("./event_detail.php"); } }else if($_GET["menu"] == "model"){ //モデル if($_GET["menu2"] == "/" or $_GET["menu2"] == ""){ include("./model.php"); }else{ include("./model_detail.php"); } }else if($_GET["menu"] == "contact"){ //お問い合わせ include("./contact/contact.php"); } } exit(); ?>