get_top_page(); // <> $get_p_id = ( !isset( $get_p_id ) || $get_p_id == "" ) ? $top_page_id : $get_p_id; $KEYWORD = ""; $DESC = ""; $SHOP_STATUS = $oShop->get_status(); // <> if ( $get_s_id == "00000" ) { $SHOP_STATUS = "0"; } $PAGE_FILE = "pshop.htm"; if ( $get_p_id != "" ) { $oPage = new Page( $get_p_id ); $DESC = $oPage->get_pg_desc(); // <> $KEYWORD = $oPage->get_pg_keyword(); // <> $HTML_TITLE = $oPage->get_pg_title(); // <> $PG_LAYOUT = $oPage->get_pg_layout(); // <> $BG_COLOR = $oPage->get_bg_color(); // <> $PAGE_STATUS = $oPage->get_status(); // <> } $sql = "select cate_name from m_page_cate where cate_id=".$oShop->get_s_cate_id1(); foreach ( $oDB->query( $sql ) as $row ) { // <> $cate_page_name = $row['cate_name']; } $sub_cate_name = ""; if ( $get_sub_cate_id != "" ) { $sql = "select sub_cate_name from m_sub_cate where sub_cate_id=".$get_sub_cate_id; foreach ( $oDB->query( $sql ) as $row ) { // <> $sub_cate_name = $row['sub_cate_name']; } } $area_cate_name = ""; if ( $get_area_cate_id != "" ) { $sql = "select area_cate_name from m_area_cate where area_cate_id=".$get_area_cate_id; foreach ( $oDB->query( $sql ) as $row ) { // <> $area_cate_name = $row['area_cate_name']; } } $aaaa = 0; $mapsql = "select count(*) from m_shop_map where s_id='".$get_s_id."'"; if ( $res = $oDB->query( $mapsql ) ) { // <> if ( $res->fetchColumn() > 0 ) { // <> $mapsql = "select * from m_shop_map where s_id='".$get_s_id."'"; $aaaa = $mapsql; foreach ( $oDB->query( $mapsql ) as $row ) { // <> $get_n_point = $row["n_point"]; $get_e_point = $row["e_point"]; } } else { $aaaa = "1"; $get_n_point = "0"; $get_e_point = "0"; } } $DESC = $DESC == "" ? $oShop->get_s_desc() : $DESC; // <> $KEYWORD = $KEYWORD == "" ? $oShop->get_s_keyword() : $KEYWORD; // <> $HTML_TITLE = $HTML_TITLE == "" ? "店舗ページ -" : $HTML_TITLE; // 各インクルードHTMLベースファイル設定 $inc_head_file = '/include/head.php'; //echo "[".$SHOP_STATUS."]"; //echo "[".shop_already_login( DEF_YKS_SHOP_ADMIN)."]"; //if ( $SHOP_STATUS == "1" && $PAGE_STATUS == "1" ) { //echo "[".$PG_LAYOUT."]"; if ( ( $SHOP_STATUS == "1" && $PAGE_STATUS == "1" ) || shop_already_login( DEF_YKS_SHOP_ADMIN) ) { if ( $PG_LAYOUT == "1" ) { $GAD_FLAG = "ON"; $inc_shop_head_file = '/include/shop_head.php'; $inc_main_file = '/include/shop01.php'; $inc_right_file = '/include/right01.php'; } else if ( $PG_LAYOUT == "S" || $PG_LAYOUT == "T" ) { $inc_shop_head_file = '/include/special_head.php'; $inc_shop_head_img = '/include/special_img.php'; $inc_main_file = '/include/shop_'.$PG_LAYOUT.'.php'; $inc_right_file = '/include/special_right.php'; } else { $GAD_FLAG = "ON"; $inc_shop_head_file = '/include/shop_head.php'; $inc_main_file = '/include/shop_'.$PG_LAYOUT.'.php'; $inc_right_file = '/include/right01.php'; } } else { $GAD_FLAG = "ON"; $inc_shop_head_file = '/include/dummy.php'; $inc_main_file = '/include/shop_nothing.php'; $inc_right_file = '/include/dummy.php'; } $inc_foot_file = '/include/footer.php'; // HTMLの本体ファイルをインクルード include DEF_DOCS_YKS.'/include/html_body_pg.php'; ?>