📄 inclist.asp
字号:
<!--#include file="../../Conndb.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>资料入库管理</title>
<link href="../../style.css" rel="stylesheet">
<script language="javascript">
function newView(url) {
var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
oth = oth+",width=550,height=350";
var newView=window.open(url,"newView",oth);
newView.focus();
return false;
}
function newView1(url) {
var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
oth = oth+",width=200,height=100";
var newView1=window.open(url,"newView1",oth);
newView1.focus();
return false;
}
</script>
</head>
<body link="#000080" vlink="#080080">
<%
Dim rs,sch,sno
sch = ""
sno = Request("ino")
If sno<>"" Then
sch = " And i.InfoNo Like '%" & sno & "%'"
End If
Set rs = Server.CreateObject("ADODB.RecordSet")
%>
<form id="form1" name="form1" method="POST" action="InCList.asp">
<p align="center"><font color="#000080"><b><font style="font-size: 12pt">资料入库管理</font></b></font></p>
<p>输入资料编号 <input type="text" value="" name="ino">
<input type="submit" value=" 查询 " name=sts></P>
<table align=center border="1" cellspacing="0" width="100%" bordercolorlight="#000080" bordercolordark="#FFFFFF">
<tr>
<td width="12%" align="center" bgcolor="#C1E0FF"><strong>资料编号</strong></td>
<td width="16%" align="center" bgcolor="#C1E0FF"><strong>资料名称</strong></td>
<td width="12%" align="center" bgcolor="#C1E0FF"><strong>入库单价</strong></td>
<td width="12%" align="center" bgcolor="#C1E0FF"><strong>入库数量</strong></td>
<td width="12%" align="center" bgcolor="#C1E0FF"><strong>入库日期</strong></td>
<td width="10%" align="center" bgcolor="#C1E0FF"><strong>状态</strong></td>
<td width="16%" align="center" bgcolor="#C1E0FF"><strong>操作</strong></td>
</tr>
<%
'读取数据到记录集rs中
sql = "SELECT f.*,i.InfoName,(CASE WHEN f.Flag=0 THEN '未审核' ELSE '已审核' END) AS st" _
+ " FROM InfoIn f,Information i WHERE f.InfoNo=i.InfoNo " & sch & " ORDER BY f.InDate DESC"
rs.Open sql,conn,1,1
'在表格中显示记录
If rs.Eof Then
Response.Write "<tr><td colspan=7 align=center>目前还没有记录。</td></tr></table>"
Else
Do While Not rs.EOF
%>
<tr>
<td align="center"><%=rs("InfoNo")%></td>
<td align="left"><%=rs("InfoName")%> </td>
<td align="right"><%=rs("InPrice")%> </td>
<td align="right"><%=rs("InCount")%> </td>
<td align="center"><%=rs("InDate")%> </td>
<td align="center"><%=rs("st")%> </td>
<td align="center">
<%If rs("Flag")=0 Then%>
<a href="InCEdit.asp?action=edit&id=<%=rs("InId")%>" onClick="return newView(this.href)">修改</a>
<a href="InCDelt.asp?id=<%=rs("InId")%>" onClick="return newView1(this.href)">删除</a>
<a href="InCAudit.asp?id=<%=rs("InId")%>" onClick="if(confirm('确定要审核记录吗?')){return newView1(this.href);}return false;">审核</a>
<%End If%> </td>
</tr>
<%
rs.MoveNext()
Loop
%>
</table>
<%End If%>
<p align="center">
<input type="button" value="新建资料入库" onclick="newView('InCEdit.asp?action=add')" name=add></p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -