<%@ page language="java" contentType="text/html; charset=euc-kr" %> <%@ include file="/public/usercheck_online.jsp"%> <% // ÄÁÅÙÃ÷ÀÇ È¸Â÷º° ½ÃÀÛ ÇÏ´Â ÆäÀÌÁö String[] als_contents_url= { "/contents/°ú¸ñ¸í/01/½ÃÀÛÆäÀÌÁö", "/contents/°ú¸ñ¸í/02/½ÃÀÛÆäÀÌÁö", "/contents/°ú¸ñ¸í/03/½ÃÀÛÆäÀÌÁö" }; String conid=(String)session.getAttribute("CONTENTS_ID"); String folder=request.getParameter("folder"); String cbig=request.getParameter("cbig"); String csmall=request.getParameter("csmall"); String ctype=request.getParameter("ctype"); String cpage=request.getParameter("cpage"); String ctotpage=request.getParameter("csmall"); session.setAttribute("CONTENTS_WEB_FRAME_CNT",ctotpage); session.setAttribute("BIG_NO",cbig); session.setAttribute("SMALL_NO",ctotpage); session.setAttribute("folder",folder); session.setAttribute("ctype",ctype); int li_study_count = 1; if ( ! ( folder == null || folder.equals("") || folder.equalsIgnoreCase("null") ) ) li_study_count = Integer.parseInt(folder); String ls_studyURL = ""; /* if ( ctype.equals("progress")) if ( als_contents_url[(li_study_count-1)].indexOf("?") > 0 ) ls_studyURL = als_contents_url[(li_study_count-1)]+"&ctype=progress&cpage="+cpage; else ls_studyURL = als_contents_url[(li_study_count-1)]+"?ctype=progress&cpage="+cpage; else ls_studyURL = als_contents_url[(li_study_count-1)]; */ if ( ctype.equals("progress")) { if ( als_contents_url[(li_study_count-1)].indexOf("?") > 0 ) { // ls_studyURL = als_contents_url[(li_study_count-1)]+"&ctype=progress&cpage="+cpage; // ¿©±âºÎÅÍ JM // ÄÁÅÙÃ÷ Á¦ÀÛ±Ô°Ý¿¡ ¸Â´Â °æ·Î¸íÀ¸·Î ¹Ù²ãÁÖ¾ú½À´Ï´Ù // set_ °úÁ¤ÄÚµå _ ȸÂ÷ _ ÆäÀÌÁö ·Î µÇ¾îÀÖ½À´Ï´Ù String ls_tmp_cnt = ""; if(li_study_count < 10) { ls_tmp_cnt = "0" + li_study_count; } else { ls_tmp_cnt = Integer.toString(li_study_count); } if(cpage == null) cpage = "0"; if(Integer.parseInt(cpage) < 10) { cpage = "0" + cpage; } //ls_studyURL = "/contents/59/" + ls_tmp_cnt + "/" + cpage + ".htm"; ls_studyURL = als_contents_url[li_study_count - 1] + "?cpage=" + cpage; } else { // ls_studyURL = als_contents_url[(li_study_count-1)]+"?ctype=progress&cpage="+cpage; String ls_tmp_cnt = ""; if(li_study_count < 10) { ls_tmp_cnt = "0" + li_study_count; } else { ls_tmp_cnt = Integer.toString(li_study_count); } if(cpage == null) cpage = "0"; if(Integer.parseInt(cpage) < 10) { cpage = "0" + cpage; } ls_studyURL = als_contents_url[li_study_count - 1] + "?cpage=" + cpage; } } else { ls_studyURL = als_contents_url[(li_study_count-1)]; } if ( ls_studyURL.indexOf("?") > 0) ls_studyURL = ls_studyURL+"&strId="+session.getAttribute("MBR_ID"); else ls_studyURL = ls_studyURL+"?strId="+session.getAttribute("MBR_ID"); if (csmall==null) csmall="1" ; if (ctotpage==null) ctotpage="1" ; if (ctype==null) ctype="" ; if (cpage==null) cpage="1" ; %> °ú¸ñ¸í <% //folder //cbig //csmall //cpage //ctotpage %>