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

📄 checkspindex.asp

📁 企业进销存管理系统
💻 ASP
字号:
<%
path=request.servervariables("path_info")
set conn=server.createobject("adodb.connection")
set rs=server.createobject("adodb.recordset")
conn.open application("dsn")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>显示商品查询信息</title>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body>
<br>
<%
if request("tptsel")<>"" then 
	tj=request("tptsel")
	lname=request("qname")
	jname=request("sel")
	session("tj")=tj
	session("lname")=lname
	session("jname")=jname
end if
%>
<%    '查询
if session("tj")="=" then
	sql="select * from tab_spinfo where "&session("jname")&"='"&session("lname")&"'"
end if
if session("tj")="like" then
	sql="select * from tab_spinfo where "&session("jname")&" like '%"&session("lname")&"%'"
end if 
if session("tj")="all" then
	sql="select * from tab_spinfo"
end if 
rs.open sql,conn,1,3
if rs.eof then%>
<script language="javascript">
alert("您输入的商品不存在!")
history.back(1)
</script>
<%response.end() 
end if %>
<%'分页
rs.pagesize=5
page=clng(request("page"))
if page<1 then page=1
if page>rs.pagecount then page=rs.pagecount
 show rs,page
'分页子程序开始
sub show(rs,page)
rs.absolutepage=page
for i=1 to rs.pagesize
%>
<table width="590" height="82" border=1 align="center" cellpadding=-1 cellspacing=0 bordercolor="#ffffff" 
                  bordercolorlight="#9CA6C6" bordercolordark="#ffffff">
  <tr bgcolor="#dddddd"> 
    <td width="202" height="14" bgcolor="#D9ECFF"><font color="#336699">商品名称:
      <%=rs("spname") %>
      </font></td>
    <td width="185" bgcolor="#D9ECFF"><font color="#336699">简称: 
      <%=rs("jc")%>
      </font></td>
    <td bgcolor="#D9ECFF" width="195"><font color="#336699">产地: 
      <%=rs("cd")%>
      </font></td>
  </tr>
  <tr bgcolor="#dddddd"> 
    <td width="202" height="14" bgcolor="#D9ECFF"><font color="#336699">规格: 
      <%=rs("gg") %>
      </font></td>
    <td width="185" bgcolor="#D9ECFF"><font color="#336699">包装: 
      <%=rs("bz")%>
      </font></td>
    <td bgcolor="#D9ECFF" width="195"><font color="#336699">单位: 
      <%=rs("dw")%>
      </font></td>
  </tr>
  <tr bgcolor="#dddddd"> 
    <td width="202" height="14" bgcolor="#D9ECFF"><font color="#336699">批号: 
      <%=rs("ph")%>
      </font></td>
    <td colspan="2" bgcolor="#D9ECFF"><font color="#336699">供应商全称: 
      <%=rs("gysname")%>
      </font></td>
  </tr>
  <tr bgcolor="#dddddd"> 
    <td height="14" bgcolor="#D9ECFF"><font color="#336699">批准文号: 
      <%=rs("pzwh") %>
      </font></td>
    <td colspan="2" bgcolor="#D9ECFF"><font color="#336699">备注: 
      <%=rs("memo")%>
      </font></td>
  </tr>
</table>
<p>
  <%rs.movenext
if rs.eof then exit for
next%>
  <%end sub%>
</p>
<p align="center"> 
<form action="checkspindex.asp" method="post">
  <div align="center">
    <% if page<>1 then%>
    <font size="2"> <a href=<%=path%>?page=1>第一页</a> 
    </font><a href=<%=path%>?page=<%=(page-1)%> >上一页</a> 
    <%end if 
if page<>rs.pagecount then%>
    <a href=<%=path%>?page=<%=(page+1)%>>下一页</a> 
    <a href=<%=path%>?page=<%=rs.pagecount%>>最后一页</a> 
    <%end if%>
   <font color="#336699">输入页次 
    <input type="text" name="page" size="3">
    页次 </font><font color=red><%=page%>/<%=rs.pagecount%></font> [ <a href="spindex.asp">返回</a> ]</div>
</form>
</body>
</html>

⌨️ 快捷键说明

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