You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
4.6 KiB
93 lines
4.6 KiB
|
|
<%@page import="java.net.URLEncoder"%> |
|
<% |
|
/************************************************************@@ |
|
* Program Name : doc_list.jsp |
|
* Description : /집계자/내문서함/등록함/문서 목록 |
|
* Author : 강원중 |
|
* Create Date : 2004.10.11 |
|
* History : |
|
@@************************************************************/ |
|
%> |
|
|
|
<%@ page contentType="text/html; charset=UTF-8" |
|
import="java.net.URLDecoder" import="kr.co.kihyun.lang.Encoder" |
|
import="kr.co.kihyun.lang.MString" import="kr.co.kihyun.lang.MInteger"%> |
|
|
|
<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%> |
|
|
|
<% try { |
|
/******* Parameter *********/ |
|
request.setCharacterEncoding("UTF-8"); |
|
//String uri = URLDecoder.decode(MString.checkNull(request.getParameter("uri")), "UTF-8"); |
|
String pageFunction = MString.checkNull(request.getParameter("pageFunction")); |
|
//uri += "&findWord=" + findWord; |
|
int pageSize = MInteger.parseInt(request.getParameter("pageSize")); |
|
int currentPage = MInteger.parseInt(request.getParameter("currentPage")); |
|
int currentPageSetUp = MInteger.parseInt(request.getParameter("currentPageSetUp"));%> |
|
<div class="center"> |
|
<span> |
|
<% //이전 40개 |
|
//System.out.println("currentPageSetUp::::::" + currentPageSetUp + ":::currentPage::" + currentPage + ":::::pageSize:::" + pageSize); |
|
if (currentPage > 10) {%> |
|
<a href="javascript:<%= pageFunction%>(1)" style="text-decoration: none;"> |
|
<img alt="처음목록" src="/totsys/common/images/bt_list_pre.gif" /> |
|
</a> |
|
<%} else {%> |
|
<img alt="처음목록" src="/totsys/common/images/bt_list_pre.gif" /> |
|
<%}%> |
|
<%if (currentPage > 10) {//이전 10개%> |
|
<a href="javascript:<%= pageFunction%>(<%= (currentPageSetUp - 9)%>)" style="text-decoration: none;"> |
|
<img alt="이전목록" src="/totsys/common/images/prev_text.gif" /> |
|
</a> |
|
<%} else {%> |
|
<img alt="이전목록" src="/totsys/common/images/prev_text.gif" /> |
|
<%}%> |
|
</span> |
|
<% //페이지 선택 |
|
//System.out.println("pageSize:::::" + pageSize); |
|
for (int i = (currentPageSetUp + 1); i <= pageSize && i <= (currentPageSetUp + 10); i++) { |
|
if (i != 1) {%> |
|
<!--td nowrap> <img src="/totsys/common/images/pagebar.gif"> </td--> |
|
<%} |
|
if (i != currentPage) {%> |
|
<span> |
|
<a border=0 href="javascript:<%= pageFunction%>(<%= i%>)" style="text-decoration: none;"> |
|
<span style="font-family: 돋움; font-size: 12px; color: #7a7a7a; font-weight: bold;"><%= i%></span> |
|
</a> |
|
</span> |
|
<% |
|
} else {%> |
|
<span> |
|
<span style="font-family: 돋움; font-size: 12px; color: #508ac3; font-weight: bold;"><%= i%></span> |
|
</span> |
|
<% |
|
} |
|
} |
|
%> |
|
<span> |
|
<%if ((pageSize - currentPageSetUp) > 10) {//다음 10개%> |
|
<a href="javascript:<%= pageFunction%>(<%= (currentPageSetUp + 11)%>)" style="text-decoration: none;"> |
|
<img alt="다음목록" src="/totsys/common/images/next_text.gif" /> |
|
</a> |
|
<%} else {%> |
|
<img alt="다음목록" src="/totsys/common/images/next_text.gif" /> |
|
<%}%> |
|
<% //다음 40개 |
|
//System.out.println("currentPageSetUp End::::::" + currentPageSetUp + ":::currentPage::" + currentPage + ":::pageSize:::" + pageSize); |
|
if ((pageSize - currentPageSetUp) > 20) {%> |
|
<a href="javascript:<%= pageFunction%>(<%= pageSize%>)" style="text-decoration: none;"> |
|
<img alt="마지막목록" src="/totsys/common/images/bt_list_next.gif" /> |
|
</a> |
|
<%} else {%> |
|
<img alt="마지막목록" src="/totsys/common/images/bt_list_next.gif" /> |
|
<%}%> |
|
</span> |
|
</div> |
|
<% |
|
} catch (Exception ex) { |
|
ex.printStackTrace(); |
|
out.println(kr.co.kihyun.text.html.ServletUtil.getJavaScript("location='/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?mode=logout';")); |
|
} finally { |
|
} |
|
%>
|
|
|