<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.pagenum { margin:2px 2px 2px 2px;display:inline-block;border:#95C0D0 1px solid; padding:1px 7px 0px 7px; line-height:21px; font-size:14px;}
.pagecur{ margin:2px 2px 2px 2px;display:inline-block;border:#95C0D0 1px solid;background-color:#A8D0C0;font-weight:bold; font-size:14px; line-height:21px; color:Red; padding:0px 5px 0px 5px;}
-->
</style>
<%
function wzdataset(WzDsRs,WzPageSize,linkStr,wztablewidth)
%>
<TABLE width="<%=wztablewidth%>" border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
<%
if WzDsRs.eof then
%>
<TR align="center">
<TD height="50">暂时无信息</TD>
</TR>
<%
else
WzDsRs.PageSize=WzPageSize
WzDsRs_Page= clng(Request("page"))
if WzDsRs_Page=""or WzDsRs_Page<1 then WzDsRs_Page=1
if WzDsRs_Page>WzDsRs.PageCount then WzDsRs_Page=WzDsRs.PageCount
WzDsRs.AbsolutePage=WzDsRs_Page
%>
<tr height="25">
<%
for WzDsRsTd_i=0 to WzDsRs.Fields.count-1
%>
<td nowrap align="center"><b><%=WzDsRs.fields(WzDsRsTd_i).name%></b></td>
<%
next
%>
</tr>
<%
for WzDsRsTr_i=1 to WzDsRs.PageSize
%>
<TR onMouseOver="ItemOver(this)"<%if WzDsRsTr_i mod 2 = 0 then%> style="background-color:#F2F2F2 "<%end if%>>
<%
for WzDsRsTd_i=0 to WzDsRs.Fields.count-1
%>
<TD height="25" align="center"><%=WzDsRs.fields(WzDsRsTd_i).value%></TD>
<%
next
%>
</TR>
<%
WzDsRs.MoveNext
if WzDsRs.EOF then exit for
next
if WzDsRs.pagecount>1 then
%>
<TR align="center">
<TD colspan="<%=WzDsRs.Fields.count%>">
<table width="98%" border="0">
<tr>
<td height="50" align="center">
<%
dim wzleft,wzright,wzpagecount,wzcurrentpage
wzcurrentpage= WzDsRs_Page
wzpagecount=WzDsRs.pagecount
if len(wzcurrentpage)<2 then
wzleft=0
else
wzleft=left(wzcurrentpage,len(wzcurrentpage)-1)
end if
wzright=right(wzcurrentpage,1)
if wzright=0 then
wzleft=cint(wzleft)-1
end if
if cint(wzcurrentpage)<>1 then
response.Write("<a class=pagenum title=首页 href="&linkStr&"&page=1> << </a>")
end if
if WzDsRs_Page>10 then
response.Write("<a class=pagenum title=上十页 href="&linkStr&"&page="&wzleft*10&"> < </a> ")
end if
for i=1 to 10
if wzleft*10+i=WzDsRs_Page then
response.Write("<font class=pagecur>"&wzleft*10+i&"</font>")
else
response.Write("<a class=pagenum href="&linkStr&"&page="&wzleft*10+i&">"&wzleft*10+i&"</a>")
end if
if wzleft*10+i=wzpagecount then exit for
next
dim wzpagecountleft
wzpagecountleft=left(wzpagecount,len(wzpagecount)-1)
if right(wzpagecount,1)=0 then
wzpagecountleft=cint(wzpagecountleft)-1
end if
if wzpagecountleft="" then
wzpagecountleft=0
end if
if cint(wzleft)<cint(wzpagecountleft) then
response.Write("<a class=pagenum title=下十页 href="&linkStr&"&page="&wzleft*10+11&"> > </a>")
end if
if wzcurrentpage<>wzpagecount then
response.Write("<a class=pagenum title=尾页 href="&linkStr&"&page="&wzpagecount&"> >> </a>")
end if
%>
<span class=pagenum>【<%=WzDsRs_Page%>/<%=WzDsRs.pagecount%>】 【总记录:<%=WzDsRs.recordcount%>】</span>
</td>
</tr>
</table>
</TD>
</TR>
<%
end if
end if
%>
</TABLE>
<%
end function
%>
<script language="javascript" type="text/javascript">
// 鼠标经过改变行的颜色
if (!objbeforeItem)
{
var objbeforeItem=null;
var objbeforeItembackgroundColor=null;
}
function ItemOver(obj)
{
if(objbeforeItem)
{
objbeforeItem.style.backgroundColor = objbeforeItembackgroundColor;
}
objbeforeItembackgroundColor = obj.style.backgroundColor;
objbeforeItem = obj;
obj.style.backgroundColor = "#B9D1F3";
}
//
</script>