<%
request.setCharacterEncoding("gb2312");
int nowPages;//當前頁
int pages;//請求頁數
int countPerPage = 10 ; //每頁顯示條數
int pageCount;//總頁數
int recordCount=tmessgeBean.getCounter("select count(*) from dysf_teacher ");
ResultSet rs = tmessgeBean.executeQuery("Select top "+ countPerPage +" * from dysf_teacher where id not in (select top "+ (nowPages-1)*countPerPage +" id from dysf_teacher order by id desc) order by id desc ");
while(rs.next()){
String ID = rs.getString("id");
String tdepartment = rs.getString("department");
String tspecial = rs.getString("special");
String tname = rs.getString("name");
%>