%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <% if(login_tag == 1 && (session.getAttribute("member_no") == null || session.getAttribute("member_no").equals(""))){ %> <%}else{ int now_community = 0; int now_community_board = 0; String visit_show_no = "0"; String visit_c_no = "0"; String page_title = ""; int menu1 = 0; String menu1_title = ""; int menu2 = 0; int menu3 = 0; String navi_text = "Home > "; String page_content = ""; int page_type = 0; String show_no = r_call(request.getParameter("show_no")); String check_no = r_call(request.getParameter("check_no")); String c_relation = r_call(request.getParameter("c_relation")); String c_relation2 = r_call(request.getParameter("c_relation2")); if(!show_no.equals("")){ visit_show_no = show_no; } int page_ok = 0; if(!show_no.equals("")){ String sql_page = "select a.*,(select c_up_no from tbl_menu where c_no = a.c_up_no ) as c_up_up_no "; sql_page = sql_page + " ,(select c_name from tbl_menu where c_no = a.c_up_no ) as c_up_name "; sql_page = sql_page + " from tbl_menu a "; sql_page = sql_page + " where a.c_no = "+ show_no +" and a.c_up_no = "+ check_no +" and a.c_relation = "+ c_relation +" and a.c_relation2 = "+ c_relation2 +" "; if(home_fact != 1){ sql_page = sql_page + " and a.c_home = "+ c_home +" "; } ResultSet rs_page = stmt.executeQuery(sql_page); if(rs_page.next()){ page_title = rs_page.getString("c_name"); page_content = rs_page.getString("c_content"); page_type = rs_page.getInt("c_type"); if(rs_page.getInt("c_up_up_no") == 0){ menu1 = rs_page.getInt("c_up_no"); menu1_title = rs_page.getString("c_up_name"); menu2 = rs_page.getInt("c_no"); navi_text = navi_text + rs_page.getString("c_up_name") + " > " + rs_page.getString("c_name"); }else{ String sql_page2 = "select c_name from tbl_menu where c_no = " + rs_page.getInt("c_up_up_no"); ResultSet rs_page2 = stmt.executeQuery(sql_page2); if(rs_page2.next()){ menu1 = rs_page.getInt("c_up_up_no"); menu1_title = rs_page2.getString("c_name"); menu2 = rs_page.getInt("c_up_no"); menu3 = rs_page.getInt("c_no"); navi_text = navi_text + rs_page2.getString("c_name") + " > " + rs_page.getString("c_up_name") + " > " + rs_page.getString("c_name"); }else{ page_ok = 1; } rs_page.close(); } }else{ page_ok = 1; } rs_page.close(); } if(page_ok == 0 || home_fact == 1){ %>