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

📄 business.asp

📁 仓库管理实现包括入库、出库、盘存、统计等功能
💻 ASP
字号:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>四季花啤酒公司仓库管理系统查询界面</title>
</head>


<body>
<form name="form1" method="post" action="business.asp">
  <table width="75%" border="1">
    <tr> 
      <td width="19%">库存信息查询</td>
      <td width="30%"><a href="insertinto.asp">显示全部的货品信息</a></td>
      <td width="51%"><a href="storeinfo_select.asp">显示库存管理信息</a> <a href="sif.asp">显示库房信息</a></td>
    </tr>
    <tr> 
      <td>按照类别</td>
      <td><select name="stype">
          <option selected  value='材料'>材料</option>
          <option  value='产品'>产品</option>
        </select></td>
      <td><input type="submit" name="cx" value="查询"></td>
    </tr>
    <tr> 
      <td><a href="searchname.asp">按货物名称</a></td>
      <td><p><a href="count.asp"> </a></p>
        <p><a href="index.html">返回主页</a></p></td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>


<!--#include file="conned.asp"-->


<%

t=Request("stype")

if(t.Count>0){

sql="select * from  gdinfo where  类别='"+t+"'";

rs=Server.CreateObject("ADODB.Recordset");
rs.Open(sql,con,3)
rstable(rs)
}

function rstable(rs){
Response.Write("<table border=-1>")
Response.Write("<tr>")
for(var i=0;i<rs.Fields.Count;i++){
Response.Write("<td>"+rs(i).Name+"</td>")
}
Response.Write("</tr>")
Response.Write("<tr>")
while(!rs.Eof){
for(var s=0; s<rs.Fields.Count;s++){
Response.Write("<td>"+rs(s)+"</td>")
}
rs.movenext()
Response.Write("</tr>")
}
Response.Write("</table>")
}


con.Close()
%>
</body>
</html>

⌨️ 快捷键说明

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