<!--#include file="../0.asp"--><!--#include file="../../../conn/zkconn.asp"-->
<html>
<head>
<title>订单管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../../css/css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div align="center"><br>
  <% set rs=server.createobject("adodb.recordset")
  sql="select * from sh_sj where user_name='"&session("www.loogoo.com")&"' order by id desc "
	rs.open sql,conn,3,1
	if rs.eof then 
	  response.write "没有！"
	 end if 
 rs.pagesize = 20
if request("page")=""  or isempty(request("page")) then
page = 1
else
page=int(request("page"))
end if
if page>rs.pagecount then
page=rs.pagecount
end if
if not rs.BOF then
Rs.Move Rs.PageSize*(page-1)
end if%>
</div>
<table width="500" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
  <form name="form1" method="post" action="?">
    <tr align="center" valign="top"> 
      <td> <div align="center"></div>
        <a href="add.asp?add=t">&gt;&gt;添加新送货清单</a></td>
    </tr>
  </form>
</table>
  
<table width="500" border="0" align="center" bgcolor="#CCCCCC" cellpadding="0" cellspacing="1">
  <tr bgcolor="#f1f1f1" valign="middle" align="center"> 
    <td width="100" height="20"> 
      <div align="center">id</div></td>
    <td width="200" height="20"> 
      <div align="center">送货日期</div></td>
    <td width="100" height="20">修改</td>
    <td width="100">删除</td>
  </tr>
  <%
i=1
do while not rs.eof and i<=rs.pagesize
%>
  <tr bgcolor="#FFFFFF" valign="middle" align="center"> 
    <td width="100" > 
      <% =rs("id")%>
      </td>
    <td width="200"> 
      <div align="center"> <a href="ok.asp?id=<%=rs("id")%>"><%=rs("n")%>年<%=rs("y")%>月<%=rs("r")%>日</a></div></td>
    <td width="100"> <a href="add2.asp?add=x&id=<% =rs("id")%>">修改</a></td>
    <td width="100"><a href="del.asp?x=b&id=<% =rs("id")%>&page=<%= page %>">删除</a></td>
  </tr>
  <%
i=i+1
 rs.MoveNext                                              
 loop 
%>
  <tr bgcolor="#FFFFFF" valign="middle" align="center"> 
    <form name=form method=post action=?>
      <td height="30" colspan="4" > <%
if rs.recordcount<>0 then
if page-1 mod 10=0 then
		p=(page-1) \ 10
	else
		p=(page-1) \ 10
	end if

	response.write "页次："& page &"/"& rs.pagecount &"页 每页"& rs.pagesize &" 共"& rs.recordcount &"条记录"&_
					" <br>分页："

	if p*10>0 then response.write "<a href='?page="&p*10&"' title=上十页>[&lt;&lt;]</a>   "
    uming_i=1
	for ii=p*10+1 to P*10+10
		   if ii=page then
	          response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
		   else
		      response.write "<a href='?page="&ii&"'>["+Cstr(ii)+"]</a>   "
		   end if
		if ii=rs.pagecount then exit for
		 uming_i=uming_i+1
	next
	if ii<=rs.pagecount and uming_i=11 then response.write "<a href='?page="&ii&"' title=下十页>[&gt;&gt;]</a>   "
response.write(" 　跳页：<input type=text name=page size=2 maxlength=3 class=wenbenkuang> <input type=submit name=Submit value=Go class=go-wenbenkuang>")
end if
rs.close
set rs=nothing%> </td>
    </form>
  </tr>
</table>

</body>
</html>

