?? tuyun3.asp
字號(hào):
<!--#include file="conn.asp" -->
<%
'if session("pwd")<>"pass" then
'' response.Redirect "../huoyun/login.asp"
'response.end
' end if
%>
<% set rs=server.CreateObject("adodb.recordset")
sql="select * from tuyun order by number asc"
rs.open sql,conn,3 ,3
if not isnumeric(request("page")) or isempty(request("page")) then
page=1
else
page=int(abs(request("page")))
end if
rs.pagesize=20
total=rs.recordcount
mypagesize=rs.pagesize
if rs.bof or rs.eof then
response.write"no inofrmation"
response.end
end if
If total mod rs.pagesize=0 then
num=total\rs.pagesize
Else
num=total\rs.pagesize+1
end if
rs.absolutepage=page
%>
<html>
<head>
<link href="../appmain.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>公鐵聯(lián)運(yùn)貨運(yùn)站托運(yùn)單統(tǒng)計(jì)信息</title>
</head>
<body>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="FORMTABLE">
<tr>
<td bgcolor="#66CCFF">
<div align="center">公鐵聯(lián)運(yùn)貨運(yùn)站托運(yùn)單統(tǒng)計(jì)信息</div></td>
</tr>
</table>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="FORMTABLE">
<tr>
<td background="image/titlebg.gif">
<div align="center">托運(yùn)時(shí)間</div></td>
<td background="image/titlebg.gif">
<div align="center">托運(yùn)單位</div></td>
<td background="image/titlebg.gif">
<div align="center">收貨單位</div></td>
<td background="image/titlebg.gif">
<div align="center">到 站</div></td>
<td background="image/titlebg.gif">
<div align="center">貨物名稱(chēng)</div></td>
</tr> <% dim i
i=1
do while not rs.eof and mypagesize>0 %>
<tr>
<td><div align="center"><a href=javascript:winopen('../huoyun/tuyun1.asp?id=<%=rs("id")%>')><%=rs("ziqi") %></a></div></td>
<td><div align="center"><%=rs("send_people")%></div></td>
<td><div align="center"><%=rs("accept_people") %></div></td>
<td><div align="center"><%=rs("send_last") %></div></td>
<td><div align="center"><%=rs("goods") %></div></td>
</tr> <% mypagesize=mypagesize-1
i=i+1
rs.movenext
loop
%>
</table>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td height="20"><div align="center">
<p align="left" >頁(yè)數(shù):
<%
if page>1 then%>
<a href='tuyun3.asp?page=<%=page-1%>'>上一頁(yè)</a>
<%
end if
%>
<%
if rs.pagecount <= 8 then
for j=1 to rs.pagecount
response.write "[<a href='tuyun3.asp?page="&j&"'>"&j&"</a>]"'--------------暫時(shí)先用這吧
next
else
for j=1 to 8
response.write "[<a href='tuyun3.asp?page="&j&"'>"&j&"</a>] "
next
response.write "[<a href='tuyun3.asp?page="&rs.pagecount&"' title='最后一頁(yè)'>末頁(yè)</a>]"
end if
%>
<%
if page<rs.pagecount then%>
<a href='tuyun3.asp?page=<%=page+1%>'>下一頁(yè)</a>
<%
end if
%>
總記錄數(shù):<%=total%>條 <%=rs.pagesize%>條/每頁(yè) 共<%=num%>頁(yè)</div></td>
<td><div align="right">
<%
response.write"<form >"
response.write "<input type='text' name='page' size=4 maxlength=4 value="&page&"> "
response.write "<input class=buttonface type='submit' value='轉(zhuǎn)到' name='cndok' style='background-color: #e1f0ff'></span> "
response.write"</form>"
%>
</div></td>
</tr>
</table>
</body>
</html>
<script language="javascript">
function winopen(url)
{
window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=795,height=550,top=0,left=0");
}
</script>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -