<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@include file="/field_manager/include/manager_head.jsp"%> <% int c_home = Integer.parseInt(r_call(request.getParameter("c_home"))); String s_year = r_call(request.getParameter("s_year")); Calendar currentCalendar = Calendar.getInstance(); int now_year = currentCalendar.get(Calendar.YEAR); int now_month = currentCalendar.get(Calendar.MONTH) + 1; int c_year = now_year; if(!s_year.equals("")){ c_year = Integer.parseInt(s_year); } %>
Apply 접속 통계
<%for(int m = 1 ; m < 13 ; m++){%> <%}%> <% int m_co[] = new int[13]; String sql_co = "select c_visit, c_month from tbl_visit where c_home = "+ c_home +" and c_project_no = 0 and c_show_no = -1 and c_c_no = 0 and c_year = " + c_year + " order by c_month asc "; ResultSet rs_co = stmt.executeQuery(sql_co); while(rs_co.next()){ m_co[rs_co.getInt("c_month")] = rs_co.getInt("c_visit"); } rs_co.close(); if(c_home == 33){ %> <%for(int m = 1 ; m < 13 ; m++){%> <%}%> <% } %> <% for(int cho = 0; cho < 13; cho++){ m_co[cho] = 0; } sql_co = "select c_visit, c_month from tbl_visit where c_home = "+ c_home +" and c_project_no = 0 and c_show_no = 0 and c_c_no = 0 and c_year = " + c_year + " order by c_month asc "; rs_co = stmt.executeQuery(sql_co); while(rs_co.next()){ m_co[rs_co.getInt("c_month")] = rs_co.getInt("c_visit"); } rs_co.close(); %> <%for(int m = 1 ; m < 13 ; m++){%> <%}%> <% String sql1=" SELECT * from tbl_menu where c_up_no = 0 and c_home="+ c_home +" order by c_order asc"; ResultSet rst = stmt.executeQuery(sql1); while (rst.next()) { %> <% String sql12=" SELECT * from tbl_menu where c_up_no = "+ rst.getInt("c_no") +" order by c_order asc"; ResultSet rst2 = stmt2.executeQuery(sql12); while (rst2.next()) { %> <% for(int cho = 0; cho < 13; cho++){ m_co[cho] = 0; } sql_co = "select c_visit, c_month from tbl_visit where c_home = "+ c_home +" and c_project_no = 0 and c_show_no = "+ rst2.getInt("c_no") +" and c_c_no = 0 and c_year = " + c_year + " order by c_month asc "; rs_co = stmt.executeQuery(sql_co); while(rs_co.next()){ m_co[rs_co.getInt("c_month")] = rs_co.getInt("c_visit"); } rs_co.close(); %> <%for(int m = 1 ; m < 13 ; m++){%> <%}%> <% } rst2.close(); %> <% } rst.close(); %> <% String sql121=" SELECT * from tbl_menu where c_up_no = 1 order by c_order asc"; ResultSet rst2 = stmt2.executeQuery(sql121); while (rst2.next()) { %> <% for(int cho = 0; cho < 13; cho++){ m_co[cho] = 0; } sql_co = "select c_visit, c_month from tbl_visit where c_home = "+ c_home +" and c_project_no = 0 and c_show_no = "+ rst2.getInt("c_no") +" and c_c_no = 0 and c_year = " + c_year + " order by c_month asc "; rs_co = stmt.executeQuery(sql_co); while(rs_co.next()){ m_co[rs_co.getInt("c_month")] = rs_co.getInt("c_visit"); } rs_co.close(); %> <%for(int m = 1 ; m < 13 ; m++){%> <%}%> <% } rst2.close(); %>
메뉴<%=m%>월
Intro Page <%if(m_co[m]>0){%> <%=m_co[m]%> <%}%>
Main Page <%if(m_co[m]>0){%> <%=m_co[m]%> <%}%>
<%=rst.getString("c_name")%>
└ <%=rst2.getString("c_name")%> <%if(m_co[m]>0){%> <%=m_co[m]%> <%}%>
Membership
└ <%=rst2.getString("c_name")%> <%if(m_co[m]>0){%> <%=m_co[m]%> <%}%>




<%@include file="/field_manager/include/manager_bottom.jsp"%>