⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subpass.asp

📁 自做的购物网站
💻 ASP
字号:
<%
if session("admin_name")="" then response.end
set rs=server.createobject("adodb.recordset")
%>
<!--#include file="conn.asp"-->
<!--#include file="css.asp"-->
<script>
  function openbag(id) { window.open("submore.asp?sub_id="+id,"","height=420,width=750,left=190,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");} 
</script>
<%
page=request.querystring("page")
if page="" then page=1
if not(isnumeric(page)) then page=1
if page<1 then page=1
page=int(page)


sql="select * from sub where sub_check=false order by sub_id DESC"
rs.open sql,conn,3,3
if rs.eof then
    response.write "暂且没有任何订单"
    rs.close
else
    rs.pagesize=10
    totalrec=rs.recordcount
    totalpage=rs.pagecount
    if page>totalpage then page=totalpage
    rs.absolutepage=page
    rs.cachesize=rs.pagesize
    i=0
    dim sub_id(),user_name(),sub_number(),sub_adds(),sub_date()
    do while not rs.eof and (i<rs.pagesize)
        i=i+1
        redim preserve sub_id(i),user_name(i),sub_number(i),sub_adds(i),sub_date(i)
        sub_id(i)=rs("sub_id")
        user_name(i)=rs("user_name")
        sub_number(i)=rs("sub_number")
        sub_adds(i)=rs("sub_adds")
        sub_date(i)=rs("sub_date")
        rs.movenext
    loop
    rs.close
    %>
<TABLE cellSpacing=1 cellPadding=0 width="540" align=center bgColor=#999999 
border=0>
  <TBODY> 
  <TR> 
      <TD width="735" background=images/pics/tile_back.gif id=maintitleback> <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
          <TBODY>
            <TR> 
              <TD><IMG height=8 src="images/pics/nav_m.gif" width=8 
            border=0></TD>
              <TD width="100%" height="30" valign="bottom" id=maintitle>订单管理 -&gt;<b>订单管理 
                </b></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
    <TR> 
      <TD id=mainbg> <TABLE cellSpacing=1 cellPadding=4 width="100%" border=0 height="125">
          <TBODY>
            <TR> 
              <TD width="25%" height="30" noWrap 
          background=images/pics/tile_sub.gif id=titlemedium><div align="center"><font color="#FFFFFF">订单号</font></div></TD>
              <TD width="25%" height="30" noWrap 
          background=images/pics/tile_sub.gif id=titlemedium><div align="center"><font color="#FFFFFF">订货人</font> 
                </div></TD>
              <TD width="25%" height="30" align=middle noWrap 
          background=images/pics/tile_sub.gif id=titlemedium> <div align="center"><font color="#FFFFFF">地址</font></div></TD>
              <TD width="25%" height="30" align=middle noWrap 
          background=images/pics/tile_sub.gif id=titlemedium><div align="center"><font color="#FFFFFF">日期</font></div></TD>
            </TR>
            <%for i=1 to ubound(sub_id)%>
            <TR> 
              <TD width="25%" height="30" bgColor=#ffffff><div align="center"><a href='javascript:openbag(<%=sub_id(i)%>)'><%=sub_number(i)%></a></div></TD>
              <TD width=25% height="30" align=middle bgColor=#ffffff><div align="center"><%=user_name(i)%></div></TD>
              <TD height="30" align=middle bgColor=#ffffff><div align="center"><%=sub_adds(i)%></div></TD>
              <TD width=25% height="30" align=middle bgColor=#ffffff> <div align="center"><%=sub_date(i)%></div></TD>
            </TR>
            <%next%>
            <TR> 
              <TD height="30" colspan="4" bgColor=#ffffff><div align="center"><img src="../IMAGES/pics/seperator.gif" width="359" height="1"></div></TD>
            </TR>
            <TR> 
              <TD id=mainfoot 
colSpan=4 height="30"> <div align="center">共<font color=red><%=totalpage%></font>页 
                  第<%=page%>页 <font color=666666> 
                  <%if page-1>0 then%>
                  <a href="subpass.asp?page=<%=page-1%>">上一页</a> 
                  <%else%>
                  上一页 
                  <%end if%>
                    
                  <%if page+1<=totalpage then%>
                  <a href="subpass.asp?page=<%=page+1%>">下一页</a> 
                  <%else%>
                  下一页</font> 
                  <%end if%>
                </div></TD>
            </TR>
          </TBODY>
        </TABLE>
		<%end if
set rs=nothing
conn.close
set conn=nothing%>
		</TD>
    </TR>
  </TBODY>
</TABLE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -