/beta/shopfloor/tinyOrderDetails.asp

http://github.com/khaneh/Orders · ASP · 93 lines · 90 code · 3 blank · 0 comment · 8 complexity · 05896c2362eca12c8650d99bba084479 MD5 · raw file

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1256"%><%
  2. response.buffer= true
  3. %>
  4. <!--#include file="../config.asp" -->
  5. <HTML>
  6. <HEAD>
  7. <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
  8. <meta http-equiv="Content-Language" content="fa">
  9. <style>
  10. Table { font-size: 9pt;}
  11. </style>
  12. <TITLE>tiny Order Details</TITLE>
  13. </HEAD>
  14. <SCRIPT LANGUAGE="JavaScript">
  15. <!--
  16. function documentKeyDown() {
  17. var theKey = event.keyCode;
  18. if (theKey == 27) {
  19. window.close();
  20. }
  21. else if (theKey >= 37 && theKey <= 40) {
  22. event.keyCode = 9;
  23. }
  24. }
  25. document.onkeydown = documentKeyDown;
  26. //-->
  27. </SCRIPT>
  28. <BODY >
  29. <font face="tahoma">
  30. <%
  31. if request("sefaresh")<>"" then
  32. myCriteria= "radif_sefareshat = N'"& clng(request("sefaresh")) & "'"
  33. %>
  34. <br>
  35. <center>
  36. <TABLE border="1" cellspacing="0" cellpadding="2" dir="RTL" borderColor="#888855" width="800">
  37. <%
  38. set RS1=Conn.Execute ("SELECT * FROM orders_trace WHERE ("& myCriteria & ")")
  39. set RS2=Conn.Execute ("SELECT * FROM OrderTraceSteps WHERE (ID = "& clng(request("marhale_box")) & ")")
  40. if not RS1.eof then
  41. tmpCounter=0
  42. %>
  43. <TR bgcolor="#EEFFCC">
  44. <TD width="44"># </TD>
  45. <TD width="64"> </TD>
  46. <TD width="64"> </TD>
  47. <TD width="124"> </TD>
  48. <TD width="124"> </TD>
  49. <TD width="84"> </TD>
  50. <TD width="44"></TD>
  51. <TD width="64"></TD>
  52. <TD width="74"></TD>
  53. <TD width="66"> </TD>
  54. </TR>
  55. <TR bgcolor="#FFFFFF">
  56. <TD width="40"><%=RS1("radif_sefareshat")%></TD>
  57. <TD width="60" DIR="LTR"><%=RS1("order_date")%></TD>
  58. <TD width="60" DIR="LTR"><%=RS1("return_date")%></TD>
  59. <TD width="120"><%=RS1("company_name")%>&nbsp;</TD>
  60. <TD width="120"><%=RS1("customer_name")%>&nbsp;</TD>
  61. <TD width="80"><%=RS1("order_title")%>&nbsp;</TD>
  62. <TD width="40"><%=RS1("order_kind")%></TD>
  63. <TD width="60"><%=RS1("vazyat")%></TD>
  64. <TD width="140">( <%=RS1("marhale")%>) --&gt;<BR><I><B><%=RS2("Name")%></B></I></TD>
  65. <TD width="60"><%=RS1("salesperson")%>&nbsp;</TD>
  66. </TR>
  67. <TR bgcolor="#EEFFCC">
  68. <TD colspan="10" align="center"><!-- ʿ -->
  69. <INPUT TYPE="button" Value="" style="font-family:tahoma,arial; font-size:9pt;width:70px;" onClick="window.dialogArguments.all.clearToGo.value='OK';window.close();">&nbsp; &nbsp; &nbsp;
  70. <INPUT TYPE="button" Value="" style="font-family:tahoma,arial; font-size:9pt;width:70px;" onClick="window.dialogArguments.all.clearToGo.value='';window.close();">
  71. </TD>
  72. </TR>
  73. <%
  74. else
  75. %> <TR>
  76. <TD align="center" style="font-size:20pt;color:red"> .</TD>
  77. </TR>
  78. <%
  79. end if
  80. RS1.close
  81. %>
  82. </TABLE>
  83. </center>
  84. <%
  85. end if
  86. Conn.Close
  87. %>
  88. </font>
  89. </BODY>
  90. </HTML>