/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. <!--
  14. function documentKeyDown() {
  15. var theKey = event.keyCode;
  16. if (theKey == 27) {
  17. window.close();
  18. }
  19. }
  20. document.onkeydown = documentKeyDown;
  21. //-->
  22. </script>
  23. </HEAD>
  24. <BODY>
  25. <%
  26. act=request.queryString("act")
  27. if act="Fin" then
  28. %>
  29. <div dir=RTL align=center>
  30. <br>
  31. <br>
  32. <br>
  33. <br> ǁ !
  34. <br>
  35. <br>
  36. <br>
  37. <br>
  38. <INPUT TYPE="button" onclick="window.close();" value=" Close ">
  39. </div>
  40. <%
  41. else
  42. %>
  43. <!--#Include file='config.asp' -->
  44. <!--#include File="include_farsiDateHandling.asp"-->
  45. <!--#include File="include_UtilFunctions.asp"-->
  46. <%
  47. if act="print" OR act="view" then
  48. RFN= request.queryString("RFN")
  49. RPNs= request.queryString("RPNs")
  50. RPVs= request.queryString("RPVs")
  51. RURL= request.queryString("RURL")
  52. ReportFileName= sqlSafe(RFN)
  53. ReportParameterNames= sqlSafe(RPNs)
  54. ReportParameterValues= sqlSafe(RPVs)
  55. ReturnURL= sqlSafe(RURL)
  56. ReportLogRow = PrepareReport (ReportFileName, ReportParameterNames, ReportParameterValues, ReturnURL)
  57. if act="print" then
  58. response.redirect "/Reports/PrintReport.aspx?" & ReportLogRow
  59. else
  60. response.redirect "/Reports/ViewReport.aspx?" & ReportLogRow
  61. end if
  62. else
  63. %>
  64. <div dir=RTL align=center>
  65. <br>
  66. <br> ! !<br>
  67. <INPUT TYPE="button" onclick="window.close();" value=" Close ">
  68. </div>
  69. <%
  70. end if
  71. end if
  72. %>
  73. </BODY>
  74. </HTML>