/beta/AR/dialog_selectAccount.asp

https://github.com/khaneh/Orders · ASP · 79 lines · 75 code · 4 blank · 0 comment · 10 complexity · ec96e09b44fe0003673d2ea13155a977 MD5 · raw file

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="1256"%>
  2. <!--#Include file='../config.asp' -->
  3. <%
  4. function Link2Trace(OrderNo)
  5. Link2Trace="<A HREF='../order/orderEdit.asp?e=n&radif="& OrderNo & "' target='_balnk'>"& OrderNo & "</A>"
  6. end function
  7. %>
  8. <HTML>
  9. <HEAD>
  10. <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
  11. <meta http-equiv="Content-Language" content="fa">
  12. <style>
  13. body { font-family: tahoma; font-size: 8pt; background-color:#DDDDDD;}
  14. Input { font-family: tahoma; font-size: 9pt;}
  15. td { font-family: tahoma; font-size: 8pt;}
  16. </style>
  17. <TITLE> </TITLE>
  18. <script language="JavaScript">
  19. <!--
  20. var Arguments = new Array(2)
  21. function documentKeyDown() {
  22. var theKey = event.keyCode;
  23. if (theKey == 27) {
  24. window.close();
  25. }
  26. else if (theKey == 13) {
  27. selectOperations()
  28. }
  29. }
  30. document.onkeydown = documentKeyDown;
  31. //-->
  32. </script>
  33. </HEAD>
  34. <BODY>
  35. <%
  36. if request("act")="select" then
  37. if request("search") <> "" then
  38. SA_TitleOrName=request("search")
  39. SA_Action="return selectOperations();"
  40. SA_SearchAgainURL="InvoiceInput.asp"
  41. SA_StepText="" '" : "
  42. SA_ActName = "select"
  43. SA_SearchBox ="search"
  44. %>
  45. <FORM METHOD=POST ACTION="">
  46. <!--#include File="../ar/include_SelectAccount.asp"-->
  47. </FORM>
  48. <%
  49. end if
  50. end if
  51. conn.Close
  52. %>
  53. </BODY>
  54. </HTML>
  55. <script language="JavaScript">
  56. <!--
  57. function selectOperations(){
  58. var Arguments = new Array;
  59. notFound=true;
  60. for (i=0;i<document.getElementsByName("selectedCustomer").length;i++){
  61. if(document.getElementsByName("selectedCustomer")[i].checked){
  62. notFound=false;
  63. Arguments[0]=document.getElementsByName("selectedCustomer")[i].value;
  64. Arguments[1]=document.getElementById("AccountsTable").getElementsByTagName("tr")[i+1].getElementsByTagName("td")[2].innerText;
  65. }
  66. }
  67. if (notFound)
  68. return false;
  69. myString=Arguments.join("#");
  70. window.dialogArguments.value=myString
  71. window.close();
  72. return false;
  73. }
  74. //-->
  75. </script>