PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/beta/dialog_printManager.asp

http://github.com/khaneh/Orders
ASP | 80 lines | 74 code | 6 blank | 0 comment | 6 complexity | 94823ff808b4d796077105a1b5ba1a7b MD5 | raw file
 1<%@LANGUAGE="VBSCRIPT" CODEPAGE="1256"%>
 2<HTML>
 3<HEAD>
 4<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
 5<meta http-equiv="Content-Language" content="fa">
 6<style>
 7	body { font-family: tahoma; font-size: 8pt; background-color:#DDDDDD;}
 8	Input { font-family: tahoma; font-size: 9pt;}
 9	td { font-family: tahoma; font-size: 8pt;}
10</style>
11<TITLE> �ǁ </TITLE>
12<script language="JavaScript">
13<!--
14function documentKeyDown() {
15	var theKey = event.keyCode;
16	if (theKey == 27) { 
17		window.close();
18	}
19}
20
21document.onkeydown = documentKeyDown;
22
23//-->
24</script>
25</HEAD>
26<BODY>
27<%
28act=request.queryString("act")
29if act="Fin" then
30%>
31	<div dir=RTL align=center>
32		<br>
33		<br>
34		<br>
35		<br> ���� ���� �� �ǁ �����! 
36		<br>
37		<br>
38		<br>
39		<br>
40		<INPUT TYPE="button" onclick="window.close();" value=" Close ">
41	</div>
42<%
43else
44%>
45<!--#Include file='config.asp' -->
46<!--#include File="include_farsiDateHandling.asp"-->
47<!--#include File="include_UtilFunctions.asp"-->
48<%
49	if act="print" OR act="view" then
50		RFN=	request.queryString("RFN")
51		RPNs=	request.queryString("RPNs")
52		RPVs=	request.queryString("RPVs")
53		RURL=	request.queryString("RURL")
54
55		ReportFileName=			sqlSafe(RFN)
56		ReportParameterNames=	sqlSafe(RPNs)
57		ReportParameterValues=	sqlSafe(RPVs)
58		ReturnURL=				sqlSafe(RURL)
59
60		ReportLogRow = PrepareReport (ReportFileName, ReportParameterNames, ReportParameterValues, ReturnURL)
61
62		if act="print" then
63			response.redirect "/Reports/PrintReport.aspx?" & ReportLogRow
64		else 
65			response.redirect "/Reports/ViewReport.aspx?" & ReportLogRow
66		end if
67
68	else
69	%>
70		<div dir=RTL align=center>
71			<br> ����� 
72			<br> ��� ! ��� !<br> 
73			<INPUT TYPE="button" onclick="window.close();" value=" Close ">
74		</div>
75	<%
76	end if
77end if
78%>
79</BODY>
80</HTML>