|
|
|
|
번호 |
제목 |
등록일 |
조회 |
|
|
<%
int k1 = 0;
int Num1 = 0;
String RegDate1 = "";
String strBgColor1 = "";
while( k1 < x)
{
Num1 = (TotalRow - (ipage-1) * MAXROW) - k1;
if (AryTitle[k1].length() > 40)
{
strNTitle = AryTitle[k1].substring(0,38) + "...";
}else
{
strNTitle = AryTitle[k1];
}
RegDate1 = AryRegDate[k1].substring(0,4) + "-" + AryRegDate[k1].substring(4,6) + "-" + AryRegDate[k1].substring(6,8);
if (k1 % 2 ==0 )
{
strBgColor1 = "";
}else
{
strBgColor1 = " bgcolor=\"f7f7f7\"";
}
%>
>[공지] |
><%= strNTitle %> |
><%= RegDate1 %> |
><%= AryCount[k1] %> |
|
<%
k1++;
}
%>
<%
int k = 0;
int Num = 0;
String RegDate = "";
String strBgColor = "";
while( k < i)
{
Num = (TotalRow - (ipage-1) * MAXROW) - k;
if (ArryTitle[k].length() > 40)
{
strTitle = ArryTitle[k].substring(0,38) + "...";
}else
{
strTitle = ArryTitle[k];
}
RegDate = ArryRegDate[k].substring(0,4) + "-" + ArryRegDate[k].substring(4,6) + "-" + ArryRegDate[k].substring(6,8);
if (k % 2 ==0 )
{
strBgColor = "";
}else
{
strBgColor = " bgcolor=\"f7f7f7\"";
}
%>
><%= Num %> |
><%= strTitle %> |
><%= RegDate %> |
><%= ArryCount[k] %> |
|
<%
k++;
}
%>
<%
/*-----------------------------------------------------------------------------
----------------------- 네비게이션 부분 Start --------------------------------
------------------------------------------------------------------------------*/
i = 0;
TotalPage = nTotalPage;
if(TotalRow % MAXROW==0) TotalPage = TotalPage - 1;
if(TotalPage==0) TotalPage = 1;
PAGE_FLAG=((ipage-1)/BLOCK)*BLOCK;
if(ipage>BLOCK){
p_page = PAGE_FLAG-BLOCK+1;
out.println("이전 | ");
} else {
out.println( "이전 | ");
}
for( i=1+PAGE_FLAG; i<=TotalPage+PAGE_FLAG && i<=BLOCK+PAGE_FLAG;i++){
if(ipage!=i){
out.println("" + i + " | ");
}else{
out.println("" + i + " | ");
}
if(i>=TotalPage) break;
}
if (TotalPage >=PAGE_FLAG+BLOCK+1){
n_page = PAGE_FLAG+BLOCK+1;
out.println("");
out.println("다음");
} else {
out.println( "다음");
}
/*-----------------------------------------------------------------------------
----------------------- 네비게이션 부분 END ----------------------------------
------------------------------------------------------------------------------*/
%> |
|
|
|
|
|
|