PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/beta/AR/Orders.asp

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