<%@ page contentType="text/html; charset=UTF-8" %> <%@ page language="java" %> <%@ page errorPage="../common/error.jsp" %> <%@ page import = "com.hp.lib.*" %> <%@ page import = "com.hp.beans.*" %> <%@ page import = "com.hp.dao.*" %> <%@ page import="java.util.*" %> <%@ page import="java.io.*" %> <%@ include file="include/ktop.jsp" %> <% String bbs_down_dir = DirectoryBundle.getProperty("bbs_download"); String bbs_down_up = "bbs_upload"; int max = Util.parseInt(DirectoryBundle.getProperty("MAX_ROW_TEST_BBS","0")); int currentPage = 1; //현재 페이지 번호 int position = 1; // 바로가기에서 현재 페이지 위치 int allCount = 0; // 전체 데이터 갯수 int pageCount = 1; // 전체 페이지 수 int dataNum = 0; //데이터 번호 int requestPage = Util.parseInt(request.getParameter("page"), 1); int type = Util.parseInt(request.getParameter("type"), 2); int bbs_oid = Util.parseInt(request.getParameter("oid"), 0); String orderby_str = Util.getString(request.getParameter("orderby_str"), "bbs_regdt desc"); BbsDB bbsDB = BbsDB.getInstance(); BbsBean[] recode = bbsDB.getBbsBeanRec2(requestPage,max,type,orderby_str); // 검색된 데이터가 있을때만 페이지에 관한 값들을 가져온다. if(recode != null && recode.length > 0){ currentPage = Util.parseInt(request.getParameter("page"), 1); position = Util.parseInt(request.getParameter("position"), 1); allCount = bbsDB.getBbsBeanRecCount2(type); pageCount = Util.getPageCount(max, allCount); dataNum = Util.getDataNum(max, currentPage, allCount); //최신데이타 if(bbs_oid>0) mbean = (BbsBean)JspUtil.setInstance(pageContext, "mbean", bbsDB.getBbsBean(bbs_oid)); else mbean = (BbsBean)JspUtil.setInstance(pageContext, "mbean", recode[0]); } //파라미터 String param = "type="+type; %> <%@ include file="include/kcsstop.jsp" %> <%@ include file="include/knavi.jsp" %>
<%@ include file="include/kfoot.jsp" %> <%@ include file="include/kcssfoot.jsp" %>