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

📄 submitsub.asp

📁 简单的servlet/jsp注册
💻 ASP
字号:
<%
if session("admin_name")="" then response.end
set rs=server.createobject("adodb.recordset")
%>
<!--#include file="../inc/adconn.asp"-->
<!--#include file="../css.asp"-->
<%
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 dg where sub_check=true order by 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(),sub_to(),sub_number(),sub_adds(),sub_date()
    do while not rs.eof and (i<rs.pagesize)
        i=i+1
        redim preserve sub_id(i),sub_to(i),sub_number(i),sub_adds(i),sub_date(i)
        sub_id(i)=rs("id")
        sub_to(i)=rs("name")
        'sub_number(i)=rs("sub_number")
        sub_adds(i)=rs("adds")
        sub_date(i)=rs("date")
        rs.movenext
    loop
    rs.close
    %>
    
<TABLE cellSpacing=1 cellPadding=0 width="540" align=center bgColor=#999999 
border=0>
  <TBODY> 
  <TR> 
      <TD width="735" bgcolor="#f0f0f0" 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='viewsub.asp?sub_id=<%=sub_id(i)%>'><font color="#000000"><strong>详细信息</strong></font> 
                  <%'=sub_number(i)%></a></div></TD>
              <TD width=25% height="30" align=middle bgColor=#ffffff><div align="center"><%=sub_to(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="../submitsub.asp?page=<%=page-1%>">上一页</a>
                  <%else%>
                  上一页
                  <%end if%>
                   
                  <%if page+1<=totalpage then%>
                  <a href="../submitsub.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 + -