<%@ Language=JavaScript%>
<% //no more cashing
Response.Expires = 0;
Response.ExpiresAbsolute = "01/01/1999";
Response.AddHeader ("pragma","no-cache");
Response.AddHeader ("cache-control","private");
Response.CacheControl = "no-cache";
//end no more cashing
%>
<html>
<head>
<meta http-equiv="Content-Language" content="hr">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Customer Credits</title>
<style>
</style>
</head>
<!-- #include VIRTUAL=/ema/modul.inc -->
<!-- #include VIRTUAL=/ema/cmodul.inc -->
<body id="CCredits" leftmargin="0" topmargin="0" style="font-family: Tahoma; font-size: 10pt; font-weight: bold" bgcolor="#006496" link="#FFFF00" vlink="#FFFF00">
<h4><a href="ListTransactions.asp"><font size="2" color="#CCCC00"><< back</font></a></h4>
<table border="0" width="100%" bgcolor="#0096BE" height="25">
<tr>
<td width="681" align="right" colspan="4" bgcolor="#000000" height="25"><b><font color="#FFFF00"><font size="5" face="Arial">
</font></font><font size="5" face="Arial" color="#FFFF00">C</font><font face="Arial" size="3" color="#FFFF00">USTOMER CREDITS</font><font face="Arial" size="3"> </font></b></td>
</tr>
</table>
<%
try {
var CurrentPage;
var returnResults = null;
if((String(Request.QueryString("CurrentPage"))) == "undefined")
{
CurrentPage = 1;
}
else
{
CurrentPage = Request.QueryString("CurrentPage");
}
var rs = getRS("STFB", "SELECT CustomerCreditID, CONVERT(varchar,Date,101) AS Date, Total, Memo FROM csCustomerCredits ORDER BY Date");
if (rs.RecordCount<=0) throw "no more records";
returnResults=getTable(rs,new Array("Date","Total","Memo"),new Array("Date"),new Array("../CustomrtsSales/CustomerCredits.asp?direction=idnumber"),new Array("CustomerCreditID"),parseInt(CurrentPage),"undefined","Date|Total|Memo");
Response.Write(returnResults["table"]);
%> <p><a href="../../main.htm" target="main"><img border="0" src="../../Images/homeico.gif" alt="Home Page" width="20" height="20"></a>
<img border="0" src="../../Images/helpico.gif" alt="Help" width="20" height="20" onclick="window.open('../../help/help.asp?HelpLink=../help/Lists/customercreditslist.htm','generallist','width=400,height=500,toolbar=no,menubar=no,status=yes,resizable=yes');" style="CURSOR: hand" >
<img border="0" src="../../Images/logoffico.gif" alt="LogOff" width="20" height="20">
</p>
<h4 align="center"> Records: <%=returnResults["start"]%> through <%=returnResults["finish"]%>.</h4>
<p align="center"> <%
if (CurrentPage > 1)
{
%> <a align="center" href="CCredits.asp?CurrentPage=<%=CurrentPage - 1%>"><font color="#CCCC00"><<
Prev</font></a> <%}%> <%
if (CurrentPage < returnResults["pagecount"])
{
%> <a align="center" href="CCredits.asp?CurrentPage=<%=parseInt(CurrentPage) + 1%>"><font color="#CCCC00">Next
>></font> </a> <%}
} catch(e) {}%>
</body>
</html>