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

📄 subpass.asp

📁 一套完整的毕业论文。物资管理信息系统。 请大家指点
💻 ASP
字号:
<%
if session("admin_name")="" then response.end
set rs=server.createobject("adodb.recordset")
%>
<!--#include file="conn.asp"-->
<script>
  function openbag(id) { window.open("submore.asp?sub_id="+id,"","height=400,width=600,left=190,top=0,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");} 
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<link href=../style.css rel=STYLESHEET type=text/css>
</head>

<%
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 border="0" width="100%" cellspacing="1">
      <tr>
        <td width="100%" colspan="4">共<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%></td>
      </tr>
      <tr>
        <td width="25%">订单号</td>
        <td width="25%">订货人</td>
        <td width="25%">地址</td>
        <td width="25%">日期</td>
      </tr>
    <%for i=1 to ubound(sub_id)%>
      <tr>
        <td width="25%"><a href='javascript:openbag(<%=sub_id(i)%>)'><%=sub_number(i)%></td>
        <td width="25%"><%=user_name(i)%></td>
        <td width="25%"><%=sub_adds(i)%></td>
        <td width="25%"><%=sub_date(i)%></td>
      </tr>
      <%next%>
      <tr>
        <td width="100%" colspan="4">共<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%></td>
      </tr>
    </table>
<%end if
set rs=nothing
conn.close
set conn=nothing%>

⌨️ 快捷键说明

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