%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%request.setCharacterEncoding("utf-8");%> <%@include file="/include/include.jsp"%> <% login_tag = 1; %> <%@include file="/include/head.jsp"%> <%@include file="/cms_for_bcb/show_top.jsp"%>
<% String para_t = "show_no="+ show_no +"&check_no="+ check_no + "&c_relation=" + c_relation + "&c_relation2=" + c_relation2; String c_no = r_call(request.getParameter("c_no")); %> <% if(c_no.equals("")){ %> <% }else{ String c_board_no = ""; String master_no = ""; int my_now = -1; String sql_c = "select a.* , b.c_name as m_name, b.c_id as m_id "; sql_c = sql_c + ", (select c_now as my_now from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) and c_member_no = "+ session.getAttribute("member_no") +" ) as my_now "; sql_c = sql_c + ", (select count(c_no) as m_number from tbl_community_member where c_community_no = a.c_no and c_use = 0 and c_now in (0,1) ) as m_number "; sql_c = sql_c + " from tbl_community a "; sql_c = sql_c + " inner join tbl_member b on b.c_no = a.c_member_no "; sql_c = sql_c + " where a.c_no = "+ c_no +" and a.c_use = 0 and a.c_home = "+ c_home +" "; ResultSet rs_c = stmt.executeQuery(sql_c); if (rs_c.next()) { master_no = rs_c.getString("c_member_no"); if(rs_c.getString("my_now") != null){ my_now = rs_c.getInt("my_now"); } %> <% }else{ %> <% } rs_c.close(); }%> <%@include file="/cms_for_bcb/show_bottom.jsp"%> <%@include file="/include/bottom.jsp"%> <%@include file="/include/include_b.jsp"%>