/beta/Inquiry/Orders.asp

http://github.com/khaneh/Orders · ASP · 85 lines · 77 code · 7 blank · 1 comment · 7 complexity · 2aacf05dd67d89277531bad2f6a4efb6 MD5 · raw file

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1256"%><%
  2. Response.CacheControl="no-cache"
  3. Response.AddHeader "pragma", "no-cache"
  4. Server.ScriptTimeout = 600
  5. Response.Expires= -1
  6. if (session("ID")="") then
  7. session.abandon
  8. response.redirect "/default.asp?err=session expired"
  9. end if
  10. 'conStr="DRIVER={SQL Server};SERVER=(local);DATABASE=sefareshat;UID=sefadmin; PWD=5tgb;"
  11. conStr = "Provider=SQLNCLI10.1;Persist Security Info=False;User ID=sefadmin;Initial Catalog=sefareshat;Data Source=(local);PWD=5tgb;"
  12. Set conn = Server.CreateObject("ADODB.Connection")
  13. conn.open conStr
  14. %>
  15. <%
  16. function Link2Trace(OrderNo)
  17. Link2Trace="<A HREF='../order/orderEdit.asp?e=n&radif="& OrderNo & "' target='_balnk'>"& OrderNo & "</A>"
  18. end function
  19. %>
  20. <HTML>
  21. <HEAD>
  22. <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
  23. <meta http-equiv="Content-Language" content="fa">
  24. <style>
  25. Table { font-size: 9pt;}
  26. Input { font-family:tahoma; font-size: 9pt;}
  27. </style>
  28. <TITLE> </TITLE>
  29. </HEAD>
  30. <BODY>
  31. <font face="tahoma">
  32. <%
  33. if request("act")="select" then
  34. if request("customer") <> "" then
  35. SO_Customer=request("customer")
  36. SO_Action="return selectOperations();"
  37. SO_StepText="" '" : "
  38. %>
  39. <FORM METHOD=POST ACTION="">
  40. <!--#include File="include_SelectOrder.asp"-->
  41. </FORM>
  42. <%
  43. end if
  44. end if
  45. conn.Close
  46. %>
  47. </font>
  48. </BODY>
  49. </HTML>
  50. <script language="JavaScript">
  51. <!--
  52. function documentKeyDown() {
  53. var theKey = event.keyCode;
  54. if (theKey == 27) { // Esc
  55. // event.keyCode=0
  56. window.dialogArguments.value="[Esc]"
  57. window.close();
  58. }
  59. }
  60. document.onkeydown = documentKeyDown;
  61. function selectOperations(){
  62. var Arguments = new Array;
  63. argCounter=0
  64. for (i=0;i<document.getElementsByName("selectedOrders").length;i++){
  65. if(document.getElementsByName("selectedOrders")[i].checked){
  66. argCounter++;
  67. Arguments[argCounter]=document.getElementsByName("selectedOrders")[i].value;
  68. }
  69. }
  70. Arguments[0]=argCounter;
  71. myString=Arguments.join("#");
  72. // alert(myString)
  73. window.dialogArguments.value=myString
  74. window.close();
  75. return false;
  76. }
  77. //-->
  78. </script>