PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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