/beta/AP/dialog_selectAccount.asp

http://github.com/khaneh/Orders · ASP · 86 lines · 81 code · 5 blank · 0 comment · 11 complexity · 5f04eeddc92bdf23044ff1dc2b6616d0 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.queryString("errmsg")<>"" then
  37. response.write "<br>"
  38. call showAlert (request.queryString("errmsg"),CONST_MSG_ERROR)
  39. response.write "<br>"
  40. end if
  41. if request("act")="select" then
  42. if request("search") <> "" then
  43. SA_TitleOrName=request("search")
  44. SA_Action="return selectOperations();"
  45. SA_SearchAgainURL="InvoiceInput.asp"
  46. SA_StepText="" '" : "
  47. SA_ActName = "select"
  48. SA_SearchBox ="search"
  49. SA_IsVendor = 1
  50. %>
  51. <FORM METHOD=POST ACTION="">
  52. <!--#include File="../AR/include_SelectAccount.asp"-->
  53. </FORM>
  54. <%
  55. end if
  56. end if
  57. conn.Close
  58. %>
  59. </BODY>
  60. </HTML>
  61. <script language="JavaScript">
  62. <!--
  63. function selectOperations(){
  64. var Arguments = new Array;
  65. notFound=true;
  66. for (i=0;i<document.getElementsByName("selectedCustomer").length;i++){
  67. if(document.getElementsByName("selectedCustomer")[i].checked){
  68. notFound=false;
  69. Arguments[0]=document.getElementsByName("selectedCustomer")[i].value;
  70. Arguments[1]=document.getElementById("AccountsTable").getElementsByTagName("tr")[i+1].getElementsByTagName("td")[2].innerText;
  71. }
  72. }
  73. if (notFound)
  74. return false;
  75. myString=Arguments.join("#");
  76. window.dialogArguments.value=myString
  77. window.close();
  78. return false;
  79. }
  80. //-->
  81. </script>