<%@ 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"); } %>
◎ Community information
Name <%=rs_c.getString("c_name")%>
Target <%=rs_c.getString("c_target")%>
Date <%=rs_c.getString("c_date").substring(0,10)%>
Master <%=rs_c.getString("m_name")%> / <%=rs_c.getString("m_id")%>
Boards <% String sql_b = "select * from tbl_community_board where c_community_no = "+ c_no +" and c_use = 0 and c_view = 0 order by c_order asc "; ResultSet rs_b = stmt.executeQuery(sql_b); int b_no = 0; while (rs_b.next()) { b_no = b_no + 1; %> <%if(b_no > 1){ c_board_no = c_board_no + ","; %> / <%} c_board_no = c_board_no + rs_b.getInt("c_no"); %> <%=rs_b.getString("c_name")%> <%} rs_b.close(); %>
<%=rs_c.getString("c_exp").replaceAll("\n","
")%>
◎ Community Members ( Total : <%=rs_c.getInt("m_number") + 1%> Members )
5){%>height:200px;<%}else{%>height:80px;<%}%>overflow:auto;"> <%if(rs_c.getString("c_member_no").equals(session.getAttribute("member_no"))){%> <%}%> <%=rs_c.getString("m_name")%> / <%=rs_c.getString("m_id")%> <%if(rs_c.getString("c_member_no").equals(session.getAttribute("member_no"))){%> / I'm .. <%}%> / Master <% String sql_m = " select b.c_no, b.c_name, b.c_id, a.c_now "; sql_m = sql_m + " from tbl_community_member a "; sql_m = sql_m + " inner join tbl_member b on b.c_no = a.c_member_no and b.c_use = 0 "; sql_m = sql_m + " where a.c_community_no = "+ c_no + " and a.c_use = 0 and a.c_now in(0,1) "; sql_m = sql_m + " order by a.c_now desc "; ResultSet rs_m = stmt.executeQuery(sql_m); while (rs_m.next()) { %>
<%if(rs_m.getString("c_no").equals(session.getAttribute("member_no"))){%> <%}%> <%=rs_m.getString("c_name")%> / <%=rs_m.getString("c_id")%> <%if(rs_m.getString("c_no").equals(session.getAttribute("member_no"))){%> / I'm .. <%}%> / <%if(rs_m.getInt("c_now") == 0){%> Waiting.. <%}else{%> Member <%}%> <%} rs_m.close(); %>
◎ New post in this community
<% if(!c_board_no.equals("")){ String sql_p = "select a.*, b.c_name as board_name from tbl_board a "; sql_p = sql_p + " inner join tbl_community_board b on b.c_no = a.c_community_board_no and b.c_use = 0 and b.c_view = 0 "; sql_p = sql_p + " where a.c_relation = 2021 and a.c_relation2 = 1077 and a.c_community_board_no in ( "+ c_board_no +" ) "; sql_p = sql_p + " and a.c_use = 0 order by c_no desc limit 15 "; ResultSet rs_p = stmt.executeQuery(sql_p); while (rs_p.next()) { %> <% } rs_p.close(); } %>
Board type Title Writer Date
<%=rs_p.getString("board_name")%> <%=rs_p.getString("c_title")%> <%=rs_p.getString("c_name")%> <%=rs_p.getString("c_date").substring(0,10)%>
<% if(master_no.equals(session.getAttribute("member_no"))){ %> <%}else{%> <%if(my_now > -1){%> <%}else{%>
◎ Join this community
* The reason to join this community
Join
<%}%> <%}%>
<% if(master_no.equals(session.getAttribute("member_no"))){ %> Goto Community     Management <%}else{%> <%if(my_now > -1){%> Goto Community <%}else{%> <%}%> <%}%>     Community List
<% }else{ %> <% } rs_c.close(); }%> <%@include file="/cms_for_bcb/show_bottom.jsp"%> <%@include file="/include/bottom.jsp"%> <%@include file="/include/include_b.jsp"%>