PageRenderTime 25ms CodeModel.GetById 22ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/beta/Inquiry/Orders.asp

http://github.com/khaneh/Orders
ASP | 85 lines | 77 code | 7 blank | 1 comment | 7 complexity | 2aacf05dd67d89277531bad2f6a4efb6 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<%
19function Link2Trace(OrderNo)
20	Link2Trace="<A HREF='../order/orderEdit.asp?e=n&radif="& OrderNo & "' target='_balnk'>"& OrderNo & "</A>"
21end function
22
23%>
24<HTML>
25<HEAD>
26<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
27<meta http-equiv="Content-Language" content="fa">
28<style>
29	Table { font-size: 9pt;}
30	Input { font-family:tahoma; font-size: 9pt;}
31</style>
32<TITLE>����� ��</TITLE>
33</HEAD>
34
35<BODY>
36<font face="tahoma">
37<%
38if request("act")="select" then
39	if request("customer") <> "" then
40		SO_Customer=request("customer")
41		SO_Action="return selectOperations();"
42		SO_StepText="" '"��� ��� : ������ ����� ��� ������"
43%>
44		<FORM METHOD=POST ACTION="">
45		<!--#include File="include_SelectOrder.asp"-->
46		</FORM>
47<%
48	end if
49end if
50conn.Close
51%>
52</font>
53</BODY>
54</HTML>
55<script language="JavaScript">
56<!--
57function documentKeyDown() {
58	var theKey = event.keyCode;
59	if (theKey == 27) { // Esc
60//		event.keyCode=0
61		window.dialogArguments.value="[Esc]"
62		window.close();
63	}
64}
65
66document.onkeydown = documentKeyDown;
67
68function selectOperations(){
69	var Arguments = new Array;
70	argCounter=0
71	for (i=0;i<document.getElementsByName("selectedOrders").length;i++){
72		if(document.getElementsByName("selectedOrders")[i].checked){
73			argCounter++;
74			Arguments[argCounter]=document.getElementsByName("selectedOrders")[i].value;
75		}
76	}
77	Arguments[0]=argCounter;
78	myString=Arguments.join("#");
79//	alert(myString)
80	window.dialogArguments.value=myString
81	window.close();
82	return false;
83}
84//-->
85</script>