📄 zhichu.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="include/const.asp"-->
<%
dim rs,sql
dim classid, classname, nclassid, Nclassname
dim totalPut
dim CurrentPage, TotalPages
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
%>
<html>
<head>
<meta NAME="GENERATOR" Content="Microsoft FrontPage 4.0">
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">
<LINK href="include/STYLE.CSS" rel=stylesheet>
<title><%=classname%></title>
<style type="text/css">
<!--
.bor {
border: 1px solid #009900;
}
-->
</style>
<style type="text/css">
<!--
.lb {
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: solid;
border-top-color: #009900;
border-right-color: #009900;
border-bottom-color: #009900;
border-left-color: #009900;
}
-->
</style>
<style type="text/css">
<!--
.14 {
font-family: "宋体";
font-size: 14px;
line-height: 25px;
}
.style2 {font-family: "宋体"; font-size: 14px; line-height: 25px; color: #000000; }
-->
</style>
</head>
<body bgcolor="#d9d9ff">
<div align="center"><span class="b1">项目经费支出</span>
<br>
</div>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><TABLE width="100%" border=0 align="center" cellPadding=0 cellSpacing=0>
<TR> </TR>
<TR>
<TD> <font style=line-height:150%> </font>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000" class="bor">
<tr>
<td width="25"> <div align="center"><img src="images/computer.gif" width="20" height="20"></div></td>
<td width="141" class="lb"><div align="center" class="14">项目名 </div></td>
<td width="128" class="lb"><div align="center" class="14">项目属性 </div></td>
<td width="128" class="lb"><div align="center" class="14">项目负责人 </div></td>
<td width="249" class="lb"><div align="center" class="14">支出/收入</div></td>
<td width="87" height="30" class="lb"><font color=green> </font><span class="style2">经费来源</span> </td>
<td width="87" class="14">经办人 </td>
<td width="87" class="14">立项日期</td>
</tr>
</table>
<font style=line-height:150%>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from jingfei where zc<>'' order by id desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'>没有或没有找到任何信息</p>"
else
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showContent
showpage totalput,MaxPerPage,"zhichu.asp"
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
showContent
showpage totalput,MaxPerPage,"zhichu.asp"
else
currentPage=1
showContent
showpage totalput,MaxPerPage,"zhichu.asp"
end if
end if
rs.close
end if
sub showContent
dim i
i=0
do while not rs.eof
%>
</font>
<table width="100%" border="0" cellspacing="0" cellpadding="0" >
<tr> </tr>
<tr> </tr>
<tr>
<td class="bor"><table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td width="25"> <div align="center"><img src="images/computer.gif" width="20" height="20"></div></td>
<td width="141" class="lb"><div align="center"><font style=line-height:150%><font style=line-height:150%><%=rs("xmm")%></font></font></div></td>
<td width="128" class="lb"><div align="center"><font style=line-height:150%><font style=line-height:150%><%=rs("xmsx")%>
</font> </font></div></td>
<td width="128" class="lb"><div align="center"><font style=line-height:150%><font style=line-height:150%><%=rs("xmfzr")%></font></font></div></td>
<td width="249" class="lb"><div align="center"><font style=line-height:150%><font style=line-height:150%><%=rs("zc")%> <font style=line-height:150%>元 </font></font></font></div></td>
<td width="87" height="30" class="lb"><font color=green> </font><font style=line-height:150%><font style=line-height:150%><%=rs("jfly")%></font></font></td>
<td width="87" class="lb"><font style=line-height:150%><font style=line-height:150%><%=rs("jbr")%></font></font></td>
<td width="87" class="lb"><font style=line-height:150%><font style=line-height:150%><%=rs("rq")%></font></font></td>
</tr>
</table></td>
</tr>
</table>
<%
i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
end sub
%>
<div align="center">
<%
function showpage(totalnumber,maxperpage,filename)
dim n, i
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
response.write "<form method=Post action="&filename&">"
response.write "<font color='red'>"&Nclassname&"</font>"
if CurrentPage<2 then
response.write "共"&totalnumber&"篇 首页 上一页 "
else
response.write "共"&totalnumber&"篇 <a href="&filename&"?page=1>首页</a> "
response.write "<a href="&filename&"?page="&CurrentPage-1&">上一页</a> "
end if
if n-currentpage<1 then
response.write "下一页 尾页"
else
response.write "<a href="&filename&"?page="&(CurrentPage+1)&">"
response.write "下一页</a> <a href="&filename&"?page="&n&">尾页</a>"
end if
response.write " 页次:<strong><font color=red>"&CurrentPage&"</font>/"&n&"</strong>页 "
response.write " <b>"&maxperpage&"</b>篇产品/页 "
%>
转:
<select name='page' size='1' onchange='javascript:submit()' class="smallinput" >
<%for i = 1 to n%>
<option value='<%=i%>' <%if cint(CurrentPage)=cint(i) then%> selected <%end if%>>第<%=i%>页</option>
<%next%>
</select>
<%
end function
set rs=nothing
conn.close
set conn=nothing
%>
</div></TD>
</TR>
</table></td>
</tr>
</table></td>
</tr>
</table>
<br>
<div align="center"> <center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -