PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/beta/Inquiry/dialog_selectAccount.asp

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