If strBj <> "" And strBy <> "" and strKc <> "" and strby0 <> "" Then
If strBy = "zp" and strby0 = "全部" Then
strSearchSql = "WHERE class = '"& strBj &"' and xueqi = '"& strxq &"' and kemu = '"& strKc &"'"
elseIf strBy = "zp" and strby0 = "及格" then
strSearchSql = "WHERE class = '"& strBj &"' and xueqi = '"& strxq &"' and kemu = '"& strKc &"' and zongpingfen > 59"
elseIf strBy = "zp" and strby0 = "不及格" then
strSearchSql = "WHERE class = '"& strBj &"' and xueqi = '"& strxq &"' and kemu = '"& strKc &"' and zongpingfen < 60"
elseIf strBy = "bukao1" and strby0 = "及格" then
strSearchSql = "WHERE class = '"& strBj &"' and xueqi = '"& strxq &"' and kemu = '"& strKc &"' and bukao1 > 59"
elseIf strBy = "bukao1" and strby0 = "不及格" then
strSearchSql = "WHERE class = '"& strBj &"' and xueqi = '"& strxq &"' and kemu = '"& strKc &"' and bukao1 < 60"
elseIf strBy = "bukao2" and strby0 = "及格" then
strSearchSql = "WHERE class = '"& strBj &"' and xueqi = '"& strxq &"' and kemu = '"& strKc &"' and bukao2 > 59"
elseIf strBy = "bukao2" and strby0 = "不及格" then
strSearchSql = "WHERE class = '"& strBj &"' and xueqi = '"& strxq &"' and kemu = '"& strKc &"' and bukao2 < 60"
elseIf strBy = "bukao3" and strby0 = "及格" then
strSearchSql = "WHERE class = '"& strBj &"' and xueqi = '"& strxq &"' and kemu = '"& strKc &"' and bukao3 > 59"
elseIf strBy = "bukao3" and strby0 = "不及格" then
strSearchSql = "WHERE class = '"& strBj &"' and xueqi = '"& strxq &"' and kemu = '"& strKc &"' and bukao3 < 60"
Else
strSearchSql = "WHERE "& strBy &" = '"& strBj &"' and kemu = '"& strKc &"'"
End If
Else
strSearchSql = "WHERE class = '"& bj &"'"
End If
Dim rs,rs11,rs22 ,strSql ,Num ,pageNum ,page ,loopNum
strSql = "SELECT * FROM Student_cj " & strSearchSql
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSql,conn,3,3
'If rs.EOF Then
' Response.Write("对不起,没有记录!")
' Response.End
'End If
%>
<%
If rs.recordcount > 0 Then
rs.pagesize = 14
Num = rs.recordcount
pageNum = rs.pagecount
page = Request.QueryString("page")
If page <> "" Then
page = Cint(page)
ElseIf page < 1 Then
page = 1
Else
page =1
End If
If page < 1 then
page =1
End If
If page*rs.pagesize >Num and Not ((page-1)*rs.pagesize <Num) Then
page = 1
End If
rs.absolutepage = page
If page <> pageNum Then
LoopNum = rs.pagesize
Else
LoopNum = Num - (page-1)*rs.pagesize
End If