人力资源
人力资源
<% set rs=server.createobject("adodb.recordset") exec="select top "&config("jobclass")&" * from job order by id desc" rs.open exec,conn,1,1 if rs.eof then response.Write "暂无记录!"
response.End()
else
rs.PageSize =""&TD_jobclass&""
iCount=rs.RecordCount
iPageSize=rs.PageSize
maxpage=rs.PageCount
page=b
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
end if
%>
|
<%
if i mod 1 =0 then
response.Write "|||||||||
-
<%'以下显示分页
call PageControl(iCount,maxpage,page,"border=0 align=center","
") rs.close set rs=nothing %>