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

📄 outlist.asp

📁 对学校物资管理系统的一份设计
💻 ASP
字号:
<!--#include file = "Startup.asp"-->
<!-- #include file="Function.asp" -->
<%
call adminer()
Call ComeUrl()
  page=request("page")
  ckname=request("ckname")
  set rs=server.createobject("adodb.recordset")
  sql="select * from out where 仓库名称='"&ckname&"' order by id desc"
  rs.open sql,oconn,1,1
  if rs.eof then
  response.Write("<br><br><center><font size=3>暂无数据!</font></center>")
  else
  rs.PageSize =20  '每页记录
		  totalput = rs.RecordCount '总记录数
		  pgnum=rs.Pagecount    '总页数
		  if page="" then page=1   
		  if page-pgnum>0 then page=pgnum   
		  rs.AbsolutePage=page 
		  n=0
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="common.css" type="text/css" rel="stylesheet">
<title>无标题文档</title>
</head>
<body>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC" >
  <tr align="center" bgcolor="#E0E0E0"> 
    <td height="20"><strong> <font color="#FF0000">物资名称</font></strong></td>
    <td height="20"><strong> <font color="#FF0000">出库去向</font></strong></td>
    <td><strong><font color="#FF0000">出库数量</font></strong></td>
    <td><strong><font color="#FF0000">接收人</font></strong></td>
    <td><strong><font color="#FF0000">出库时间</font></strong></td>
    <td><strong><font color="#FF0000">备注</font></strong></td>
  </tr>
  <%
  do while not rs.eof and n<rs.pagesize
          n=n+1
		  response.write "<tr align=left bgcolor=#ffffff>"
		  response.write "<td bgcolor=#ffffff align=center>"& rs("物资名称")&"</td>"
		  response.write "<td bgcolor=#ffffff align=center>"& rs("出库去向")&"</td>"
		  response.write "<td bgcolor=#ffffff align=center>"& rs("出库数量")&"</td>"
		  response.write "<td bgcolor=#ffffff align=center>"& rs("接收人")&"</td>"
		  response.write "<td bgcolor=#ffffff align=center>"& rs("出库时间")&"</td>"
		  response.write "<td bgcolor=#ffffff align=center>"& rs("备注")&"</td>"
		  response.write "</td>" 
		  response.write "</tr>"  
  rs.movenext
  loop
  end if
  %>
</table>
<table align=center width="80%" cellpadding="0" cellspacing="0" border="0">
  <tr> 
    <td align=center> <font color="#FF6600"><br>
      </font> 
      <% 
			if page>1 then
		  sstr=request.servervariables("query_string")
          sstr=right(sstr,len(sstr)-instr(sstr,"&"))
          'sstr=replace(sstr,restr,"")
		  else
		  sstr=request.servervariables("query_string")
		  end if 
		  
				  if totalput>rs.pagesize then %>
      [<%=rs.pagesize%>条/页 共<%=totalput%>条] 
      <%
                  if page=1 then%>
      [首 页] [上一页] 
      <% else %>
      [<a href="?page=1&<%=sstr%>">首 页</a>] [<a href="?page=<%=page-1%>&<%=sstr%>">上一页</a>] 
      <%end if%>
      <%if rs.pagecount-page=0 then%>
      [下一页] [尾 页] 
      <%else%>
      [<a href="?page=<%=page+1%>&<%=sstr%>">下一页</a>] [<a href="?page=<%=rs.pagecount%>&<%=sstr%>">尾 
      页</a>] 
      <% 
				    end if
				  else 
				  end if
				  rs.close
				  %>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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