PageRenderTime 20ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/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"%><% 
 2Response.CacheControl="no-cache"
 3Response.AddHeader "pragma", "no-cache"
 4Server.ScriptTimeout = 600
 5Response.Expires= -1
 6if (session("ID")="") then
 7	session.abandon
 8	response.redirect "/default.asp?err=session expired"
 9end if
10
11'conStr="DRIVER={SQL Server};SERVER=(local);DATABASE=sefareshat;UID=sefadmin; PWD=5tgb;"
12conStr = "Provider=SQLNCLI10.1;Persist Security Info=False;User ID=sefadmin;Initial Catalog=sefareshat;Data Source=(local);PWD=5tgb;"
13
14Set conn = Server.CreateObject("ADODB.Connection")
15conn.open conStr
16
17%>
18<HTML>
19<HEAD>
20<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
21<meta http-equiv="Content-Language" content="fa">
22<style>
23	Table { font-size: 9pt;}
24	Input { font-family:tahoma; font-size: 9pt;}
25</style>
26<TITLE>������� ��</TITLE>
27</HEAD>
28
29<BODY>
30<font face="tahoma">
31<%
32if request("act")="select" then
33	if request("customer") <> "" then
34		SQ_Customer=request("customer")
35		SQ_Action="return selectOperations();"
36		SQ_StepText="" '"��� ��� : ������ ������� ��� ������"
37%>
38		<FORM METHOD=POST ACTION="">
39		<!--#include File="include_SelectQuote.asp"-->
40		</FORM>
41<%
42	end if
43end if
44conn.Close
45%>
46</font>
47</BODY>
48</HTML>
49<script language="JavaScript">
50<!--
51function documentKeyDown() {
52	var theKey = event.keyCode;
53	if (theKey == 27) { // Esc
54//		event.keyCode=0
55		window.dialogArguments.value="[Esc]"
56		window.close();
57	}
58}
59
60document.onkeydown = documentKeyDown;
61
62function selectOperations(){
63	var Arguments = new Array;
64	argCounter=0
65	for (i=0;i<document.getElementsByName("selectedQuotes").length;i++){
66		if(document.getElementsByName("selectedQuotes")[i].checked){
67			argCounter++;
68			Arguments[argCounter]=document.getElementsByName("selectedQuotes")[i].value;
69		}
70	}
71	Arguments[0]=argCounter;
72	myString=Arguments.join("#");
73//	alert(myString)
74	window.dialogArguments.value=myString
75	window.close();
76	return false;
77}
78//-->
79</script>