<%//indicates that count is the number of bars for the total record
//page is a user-submitted parameter that controls paging, the allowable values are positive integers, and negative integers
int I=COUNT/15//Total page, 15 records per page
int J=I/10//Total Large page, No 10 pages divided into one big page
//page Display page
int startpage;
//int hrefpage;
if (page<0) page=0-page*10//10 page divided once
STARTPAGE=PAGE/10//10 page is divided one time
Out.print ("[A total of" +i+ "page]");
//out.print ("Common" +j+ "screen");
//out.print ("show the First" +page+ "page");
//out.print ("startpage=" +startpage);
if (startpage>0)
out.print ("| first 10 pages ");
for (int k=0;k<10;k++)
{int p=startpage*10+k;
if (p>i) break;
if (p==page)
out.print ("| +integer.tostring" (p+1) + "page");
Else
out.print ("| +integer.tostring (p+1) + "page ");
}
if (startpage
Out.print ("| 10 pages");
Out.print ("|");
%>