📄 exchangelist.asp
字号:
<!--#include file="../Conndb.asp"-->
<%
Dim rs,EName,nType
nType = CInt(Request.QueryString("ntype"))
If nType = 0 Then
EName = "收 款 管 理"
Else
EName = "付 款 管 理"
End If
Set rs = Server.CreateObject("ADODB.RecordSet")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=EName%></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=500,height=300";
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">
<form id="form1" name="form1" method="POST">
<p align="center"><font color="#000080"><b><font style="font-size: 12pt"><%=EName%></font></b></font></p>
<table align=center border="1" cellspacing="0" width="100%" bordercolorlight="#000080" bordercolordark="#FFFFFF">
<tr>
<td width="20%" align="center" bgcolor="#C1E0FF"><strong>客户名称</strong></td>
<td width="14%" align="center" bgcolor="#C1E0FF"><strong>收付款类型</strong></td>
<td width="16%" align="center" bgcolor="#C1E0FF"><strong>收付款金额</strong></td>
<td width="14%" align="center" bgcolor="#C1E0FF"><strong>收付款日期</strong></td>
<td width="20%" align="center" bgcolor="#C1E0FF"><strong>备注</strong></td>
<td width="16%" align="center" bgcolor="#C1E0FF"><strong>操作</strong></td>
</tr>
<%
'读取数据到记录集rs中
sql = "SELECT e.*,c.CustName,t.TypeName FROM Exchange e,Customer c ,Types t " _
+ " WHERE e.CustId=c.CustId AND e.TypeId=t.TypeId AND e.nType=" & nType & " ORDER BY e.ExcDate DESC"
rs.Open sql,conn,1,1
'在表格中显示记录
If rs.Eof Then
Response.Write "<tr><td colspan=6 align=center>目前还没有记录。</td></tr></table>"
Else
Do While Not rs.EOF
%>
<tr>
<td align="left"><%=rs("CustName")%></td>
<td align="center"><%=rs("TypeName")%> </td>
<td align="right"><%=rs("ExcSum")%> </td>
<td align="center"><%=rs("ExcDate")%> </td>
<td align="left"><%=rs("Memo")%> </td>
<td align="center">
<%If rs("Flag")=0 Then%>
<a href="ExchangeEdit.asp?action=edit&eid=<%=rs("ExcId")%>&ntype=<%=nType%>" onClick="return newView(this.href)">修改</a>
<a href="ExchangeDelt.asp?eid=<%=rs("ExcId")%>" onClick="if(confirm('确定要删除记录吗?')){return newView(this.href);}return false;">删除</a>
<a href="ExchangeAudit.asp?eid=<%=rs("ExcId")%>" onClick="if(confirm('确定要审核记录吗?')){return newView(this.href);}return false;">审核</a>
<%End If%>
</td>
</tr>
<%
rs.MoveNext()
Loop
%>
</table>
<%End If%>
<p align="center">
<input type="button" value="新建收付款" onclick="newView('ExchangeEdit.asp?action=add&ntype=<%=nType%>')" name=add></p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -