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

📄 paymentdetail.asp

📁 1 除掉了 时间 限制 2 除掉了 人数 限制 改为 500人 原为5人 3 发现一点小缺陷 增加人员的时候没有判断 登陆名是否重复! 自己写吧~~~:) 4 又 是一点缺陷
💻 ASP
字号:
<!--#include file="../config.ini" -->
<!--#include file="../commfunction.inc" -->
<%
Dim objcheck
Set objcheck=Server.CreateObject("SmartSales.CheckFunction")
objcheck.CheckUserFunction "popayment","read"
set objcheck=nothing

dim conn
dim rs 
set conn=server.CreateObject("adodb.connection")
set rs=server.CreateObject("adodb.recordset")
conn.Open connstring
rs.Open "select * from v_popayment where paymentid="&request("paymentid"),conn,1,1
if rs.EOF then
	Response.Write "记录不存在"
	Response.End 
end if
%>
<html>
<head>
<LINK href="../global.css" rel=STYLESHEET type=text/css>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=rs("paymentno")%></title>
</head>
<script language="JavaScript">
function window_onload()
{
window.moveTo(-2,-2);
window.resizeTo(screen.availWidth, screen.availHeight);
}
</script>
<body bgcolor="#ffffff" onload="window_onload()">
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="35%"><b><font  class="title">应付款:<%=rs("paymentno")%></font></b></td>
    <td width="65%">&nbsp;&nbsp;</td>
  </tr>
    <tr > 
      <td height="16" colspan="2" background="../images/title.gif"></td>
    </tr>
    <tr>
      <td height=4></td>
    </tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="DECFAD">
  <tr> 
    <td align=center height=20 bgcolor="DEDFDE">应付款编号</td>
    <td align=center bgcolor="efefef"><%=rs("paymentno")%></td>
    <td align=center bgcolor="DEDFDE">供应商</td>
    <td align=center bgcolor="efefef">
		<%if rs("poaccount")<>"" then
			response.Write rs("poaccount")
		  else
		  	response.Write rs("account")
		  end if
		%>
	</td>
    <td align=center bgcolor="DEDFDE">销售员</td>
    <td align=center bgcolor="efefef"><%=rs("username")%></td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td align=center height=18  bgcolor="DEDFDE">应付日期</td>
    <td align=center bgcolor="efefef"><%=rs("paymentdate")%></td>
    <td align=center bgcolor="DEDFDE">金额</td>
    <td align=center bgcolor="efefef"><%=formatnumber(rs("amount"),2)%></td>
    <td align=center bgcolor="DEDFDE">&nbsp;</td>
    <td align=center bgcolor="efefef">&nbsp;</td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td align=center height=18  bgcolor="DEDFDE">付款状态</td>
    <td align=center bgcolor="efefef"><%=rs("paymentstatus")%></td>
    <td align=center bgcolor="DEDFDE">发票状态</td>
    <td align=center bgcolor="efefef"><%=rs("invoicestatus")%></td>
    <td align=center bgcolor="DEDFDE">&nbsp;</td>
    <td align=center bgcolor="efefef">&nbsp;</td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td align=center height=18  bgcolor="DEDFDE">描述</td>
    <td colspan="5" align=center bgcolor="efefef"> 
      <div align="left"><%=rs("description")%></div></td>
  </tr>
</table>

  <%
  rs.Close
  set rs=nothing
  conn.Close 
  set conn=nothing
  %>
</body>
</html>

⌨️ 快捷键说明

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