/beta/AR/Quotes.asp

http://github.com/khaneh/Orders · ASP · 79 lines · 72 code · 6 blank · 1 comment · 7 complexity · fe738b25d868dd1c7d9398fc18dc99c5 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. <HTML>
  16. <HEAD>
  17. <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
  18. <meta http-equiv="Content-Language" content="fa">
  19. <style>
  20. Table { font-size: 9pt;}
  21. Input { font-family:tahoma; font-size: 9pt;}
  22. </style>
  23. <TITLE> </TITLE>
  24. </HEAD>
  25. <BODY>
  26. <font face="tahoma">
  27. <%
  28. if request("act")="select" then
  29. if request("customer") <> "" then
  30. SQ_Customer=request("customer")
  31. SQ_Action="return selectOperations();"
  32. SQ_StepText="" '" : "
  33. %>
  34. <FORM METHOD=POST ACTION="">
  35. <!--#include File="include_SelectQuote.asp"-->
  36. </FORM>
  37. <%
  38. end if
  39. end if
  40. conn.Close
  41. %>
  42. </font>
  43. </BODY>
  44. </HTML>
  45. <script language="JavaScript">
  46. <!--
  47. function documentKeyDown() {
  48. var theKey = event.keyCode;
  49. if (theKey == 27) { // Esc
  50. // event.keyCode=0
  51. window.dialogArguments.value="[Esc]"
  52. window.close();
  53. }
  54. }
  55. document.onkeydown = documentKeyDown;
  56. function selectOperations(){
  57. var Arguments = new Array;
  58. argCounter=0
  59. for (i=0;i<document.getElementsByName("selectedQuotes").length;i++){
  60. if(document.getElementsByName("selectedQuotes")[i].checked){
  61. argCounter++;
  62. Arguments[argCounter]=document.getElementsByName("selectedQuotes")[i].value;
  63. }
  64. }
  65. Arguments[0]=argCounter;
  66. myString=Arguments.join("#");
  67. // alert(myString)
  68. window.dialogArguments.value=myString
  69. window.close();
  70. return false;
  71. }
  72. //-->
  73. </script>