<%@ page contenttype= "text/html charset=gb2312" language= "Java"%>
<%@ Page import = "java.util.*"%>
<%@ page import = "java.io.*"%>
<%@ page import = "java.sql.*" %>
<title> teacher information Query </title>
<style type= "Text/css"
<!--
. Style1 {
font-family: "XXFarEastFont-Xingkai";
color: #FFFFFF;
}
</style>
<link href= "Default.css" rel= "stylesheet" type= "text/css"
<style type = "Text/css"
<!--
. style6 {
color: #000000;
font-size:24px;
}
. style9 {font-size:24px}
</style>
<body bgcolor= "#ffffff"
& Lt;%session.getattribute ("A_name");%>
<jsp:usebean id= "Tmessgebean" scope= "page" class= "Computer.sqlbean"/>
<table Width= "100%" border= "0" cellpadding= "0" cellspacing= "0",
<tr align= "center" bgcolor= "#00FFFF"
<TD colspan= "5" bgcolor= "#666666" class= "style4" ><div align= "right" ><a href= "index.html" > Return home </ A></div></td>
</tr>
<tr align= "center" bgcolor= "#999999"
<TD class= "Style4" > </td>
<TD class= "style4" > Name </td>
<TD class= "Style4" > Department </td>
<TD class= "style4" > Professional </td>
<TD class= "style4" > Operation options </td>
</tr>
<%
request.setcharacterencoding ("gb2312");
int nowpages;//current page
int pages;//request pages
int countperpage = 10;//per page display bars
int pagecount;//total pages
int Recordcount=tmessgebean.getcounter ("SELECT count (*) From Dysf_teacher ");
PageCount = (int) Math.ceil ((RecordCount + countPerPage-1)/countperpage);//Work out the total number of pages
if (Request.getparameter ("pages") = = null) {
pages = 1;
}else{
pages = new Integer (Request.getparameter ("pages")). Intvalue ();
}