dim i
dim k
%>
<tr align="center" valign="middle">
<td width="25%">ID1</td>
<td width="25%">name1</td>
<td width="25%">ID2</td>
<td width="25%">name2</td>
</tr>
<%do while not rs.eof and rowcount > 0%>
<tr align="center" valign="middle">
<td width="25%"><%=rs("id")%></td>
<td width="25%"><%=rs("testname")%></td>
<td>
<%
rowcount=rowcount-1
rs.MoveNext
if not rs.EOF then
%>
<%=rs("id")%>
</td>
<td width="25%"><%=rs("testname")%></td>
</tr>
<%
rowcount=rowcount-1
rs.MoveNext
else
Response.Write " </td><td> </td></tr>"
end if
loop
end if
end if
rs.close
set rs=nothing
%>
</table>
<table border="0" align="center">
<tr>
<td align="center" valign="middle">
<%call listPages()%>
</td>
</tr>
</table>
</body>
</html>
<%
sub listPages()
if n <= 1 then exit sub
%>
<p><span class=smallFont>>>
<%if currentpage = 1 then%>
<font color=darkgray face="arial" >Top Previous</font>
<%else%>
<font color=black face="arial"><a href="<%=request.ServerVariables("script_name")%>?page=1">Top</font></a>
 <a href="<%=request.ServerVariables("script_name")%>?page=<%=currentpage-1%>">
<font color=black face="arial" >Previous</a></font>
<%end if%>
<%if currentpage = n then%>
<font color=darkgray face="arial" >Next Bottom</font>
<%else%>
<font color=black face="arial" ><a href="<%=request.ServerVariables("script_name")%>?page=<%=currentpage+1%>">Next</a>
 <a href="<%=request.ServerVariables("script_name")%>?page=<%=n%>">Bottom</a></font>
<%end if%>
<font color=black face="arial" >
  Page:<%=currentpage%>/<%=n%>pages  <%=msg_per_page%>notes/page   Total:<%=totalrec%>notes</font></span></p>
<%end sub%>