PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/beta/CRM/include_CRM_Cash.asp

http://github.com/khaneh/Orders
ASP | 98 lines | 89 code | 9 blank | 0 comment | 10 complexity | 132eab15793f190522d6d66f0b421b5e MD5 | raw file
 1	  <Tr><Td colspan="3" height="10px">
 2<STYLE>
 3	.GetCustTbl {font-family:tahoma; background-color: #DDDDDD; width:630; direction: RTL; }
 4	.GetCustTbl td {padding:2; font-size: 9pt; height:25;}
 5	.GetCustInp { font-family:tahoma; font-size: 9pt;}
 6	.CusTableHeader {background-color: #33AACC; text-align: center; font-weight:bold;}
 7	.CustContactTable {font-family:tahoma; width:100%; border:1 solid black; direction: RTL; background-color:#CCCCCC;}
 8	.CustContactTable td {padding:5;}
 9	.CustTable {font-family:tahoma; width:80%; border:1 solid black; direction: RTL; background-color:black;}
10	.CustTable td {padding:5;}
11	.CustTable a {text-decoration:none;color:#000088}
12	.CustTable a:hover {text-decoration:underline;}
13	.CusTD1 {background-color: #CCCC66; text-align: left; font-weight:bold;}
14	.CusTD2 {background-color: #DDDDDD; direction: LTR; text-align: right; font-size:9pt;}
15	.CusTD3 {background-color: #DDDDDD; direction: LTR; text-align: center; font-size:9pt;}
16	.CusTD4 {background-color: #CCCC66; direction: LTR; text-align: center; font-size:9pt;}
17</STYLE>
18
19
20	  &nbsp;</Td></Tr>
21	  <Tr>
22		<Td colspan="3" valign="top" align="center">
23
24				<% if Auth(9 , 1) then %><input class="GenButton" type="Button" value="������ ���"onclick="window.open('../cashReg/ReceiptInput.asp?act=getReceipt&selectedCustomer=<%=cusID%>');" <% if AccountIsDisabled then %> disabled <% end if %>> <% end if %> 
25
26				<% if Auth("A" , 4) then %><input class="GenButton" type="Button" value="������ ����� ���� "onclick="window.open('../bank/submitDraft.asp?selectedCustomer=<%=cusID%>');" <% if AccountIsDisabled then %> disabled <% end if %>> <% end if %> 
27
28				<% if Auth(9 , 2) then %><input class="GenButton" type="button" value="������ ��� " onclick="window.open('../cashReg/CashPaymentInput.asp?act=getPayment&selectedCustomer=<%=cusID%>');" <% if AccountIsDisabled then %> disabled <% end if %>> <% end if %> 
29
30				<% if Auth("A" , 1) then %><input class="GenButton" type="button" value="������ ��" onclick="window.open('../bank/cheq.asp?act=enterCheque&selectedCustomer=<%=cusID%>');" <% if AccountIsDisabled then %> disabled <% end if %>>		 <% end if %> 
31				
32				<BR><BR><BR>
33
34		</Td>
35	  </Tr>
36
37  	  <Tr>
38		<Td valign="top" align="left">
39		</Td>
40		<Td valign="top" align="center">
41			<table class="CustTable" cellspacing='1'>
42				<tr>
43					<td colspan="2" class="CusTableHeader">�����ʝ��</td>
44				</tr>
45				<%
46				mySQL="SELECT Payments.ID, Payments.CreationDate, Users.RealName Creator FROM Payments INNER JOIN Users ON Payments.CreatedBy = Users.ID WHERE (Payments.Account='"& cusID & "') ORDER BY CreationDate DESC, Payments.ID"
47				Set RS1 = conn.execute(mySQL)
48				if RS1.eof then
49				%>
50					<tr>
51						<td class="CusTD3">���</td>
52					</tr>
53				<%
54				end if
55				tmpCounter=0
56				while not RS1.eof 
57					tmpCounter=tmpCounter+1
58				%>
59					<tr class="<%if (tmpCounter MOD 2) = 1 then response.write "CusTD3" else response.write "CusTD4" %>">
60						<td><%=tmpCounter%></td>
61						<td><a href='../AO/AccountReport.asp?act=showPayment&Payment=<%=RS1("ID")%>' target='_blank'><%=RS1("ID")%><br><%=RS1("Creator")%><br><%=RS1("CreationDate")%></a></td>
62					</tr>
63				<%
64					RS1.moveNext
65				wend
66				%>
67			</table>
68		</Td>
69		<Td valign="top" align="center">
70			<table class="CustTable" cellspacing='1'>
71				<tr>
72					<td colspan="2" class="CusTableHeader">�����ʝ��</td>
73				</tr>
74				<%
75				mySQL="SELECT Receipts.ID, Receipts.SYS, Receipts.CreatedDate, Users.RealName AS Creator FROM Receipts INNER JOIN Users ON Receipts.CreatedBy = Users.ID WHERE (Customer='"& cusID & "') ORDER BY Receipts.CreatedDate DESC, Receipts.ID"
76				Set RS1 = conn.execute(mySQL)
77				if RS1.eof then
78				%>
79					<tr>
80						<td class="CusTD3">���</td>
81					</tr>
82				<%
83				end if
84				tmpCounter=0
85				while not RS1.eof 
86					tmpCounter=tmpCounter+1
87				%>
88					<tr class="<%if (tmpCounter MOD 2) = 1 then response.write "CusTD3" else response.write "CusTD4" %>">
89						<td><%=tmpCounter%></td>
90						<td><a href='../<%=RS1("SYS")%>/AccountReport.asp?act=showReceipt&receipt=<%=RS1("ID")%>' target='_blank'><%=RS1("ID")%><br><%=RS1("Creator")%><br><%=RS1("CreatedDate")%></a></td>
91					</tr>
92				<%
93					RS1.moveNext
94				wend
95				%>
96			</table>
97		</Td>
98  	  </Tr>