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

📄 exclejinlist2.asp

📁 本软件程序是一个基于WEB的进销存管理平台,代码十分完整,无错!
💻 ASP
字号:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../../Connections/jxc.asp" -->
<%
if Session("quanxian")="" or Session("quanxian")>"e" or Session("quanxian")<"a" then
	Response.Redirect ("err.asp")
	end if%>

<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Request.QueryString("huo") <> "") Then 
  Recordset1__MMColParam = Request.QueryString("huo")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_jxc_STRING
Recordset1.Source = "SELECT *  FROM jin  WHERE huo LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%'  ORDER BY id DESC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()


Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = -1
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<%
'  *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

Dim Recordset1_total
Dim Recordset1_first
Dim Recordset1_last

' set the record count
Recordset1_total = Recordset1.RecordCount

' set the number of rows displayed on this page
If (Recordset1_numRows < 0) Then
  Recordset1_numRows = Recordset1_total
Elseif (Recordset1_numRows = 0) Then
  Recordset1_numRows = 1
End If

' set the first and last displayed record
Recordset1_first = 1
Recordset1_last  = Recordset1_first + Recordset1_numRows - 1

' if we have the correct record count, check the other stats
If (Recordset1_total <> -1) Then
  If (Recordset1_first > Recordset1_total) Then
    Recordset1_first = Recordset1_total
  End If
  If (Recordset1_last > Recordset1_total) Then
    Recordset1_last = Recordset1_total
  End If
  If (Recordset1_numRows > Recordset1_total) Then
    Recordset1_numRows = Recordset1_total
  End If
End If
%>
<%
' *** Recordset Stats: if we don't know the record count, manually count them

If (Recordset1_total = -1) Then

  ' count the total records by iterating through the recordset
  Recordset1_total=0
  While (Not Recordset1.EOF)
    Recordset1_total = Recordset1_total + 1
    Recordset1.MoveNext
  Wend

  ' reset the cursor to the beginning
  If (Recordset1.CursorType > 0) Then
    Recordset1.MoveFirst
  Else
    Recordset1.Requery
  End If

  ' set the number of rows displayed on this page
  If (Recordset1_numRows < 0 Or Recordset1_numRows > Recordset1_total) Then
    Recordset1_numRows = Recordset1_total
  End If

  ' set the first and last displayed record
  Recordset1_first = 1
  Recordset1_last = Recordset1_first + Recordset1_numRows - 1
  
  If (Recordset1_first > Recordset1_total) Then
    Recordset1_first = Recordset1_total
  End If
  If (Recordset1_last > Recordset1_total) Then
    Recordset1_last = Recordset1_total
  End If

End If
%>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>WEB-EXCEL</title>



<link href="CSS.CSS" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="65%">&nbsp; 记录 <%=(Recordset1_first)%> 到 <%=(Recordset1_last)%> (总共 <%=(Recordset1_total)%>) </td>
    <td><a href="#" onClick="MM_openBrWindow('mo.asp','','width=500,height=300')">**将本页面表式EXCEL文件保存方法**</a></td>
  </tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#666666">
  <tr bgcolor="#00FFFF">
    <td>入库编号</td>
    <td>货品</td>
    <td>日期</td>
    <td>部门</td>
    <td>操作员</td>
    <td>客户编号</td>
    <td>货品编号</td>
    <td>数</td>
    <td>量</td>
    <td>价格</td>
    <td>总价格</td>
    <td>付款方式</td>
    <td>所在库</td>
    <td>状态</td>
    <td>性质</td>
    <td>完好性</td>
    <td>备注</td>
  </tr>
  <% While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) %>
  <tr bgcolor="#FFFFFF">
    <td><%=Recordset1("jidcode")%></td>
    <td><%=Recordset1("huo")%></td>
    <td><%=Recordset1("date")%></td>
    <td><%=Recordset1("bumeng")%></td>
    <td><%=Recordset1("man")%></td>
    <td><%=Recordset1("gidcode")%></td>
    <td><%=Recordset1("hidcode")%></td>
    <td><%=Recordset1("shu")%></td>
    <td><%=Recordset1("liang")%></td>
    <td><%=Recordset1("jiage")%></td>
    <td><%=Recordset1("zongjia")%></td>
    <td><%=Recordset1("fukuanfangshi")%></td>
    <td><%=Recordset1("ku")%></td>
    <td><%=Recordset1("zhuangtai")%></td>
    <td><%=Recordset1("xingzhi")%></td>
    <td><%=Recordset1("wanhao")%></td>
    <td><%=Recordset1("other")%></td>
  </tr>
  <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset1.MoveNext()
Wend
%>
</table>
<p align="center">&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
</body>
</html>

⌨️ 快捷键说明

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