PageRenderTime 36ms CodeModel.GetById 28ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/beta/shopfloor/tinyOrderDetails.asp

http://github.com/khaneh/Orders
ASP | 93 lines | 90 code | 3 blank | 0 comment | 8 complexity | 05896c2362eca12c8650d99bba084479 MD5 | raw file
 1<%@LANGUAGE="VBSCRIPT" CODEPAGE="1256"%><%
 2response.buffer= true
 3%>
 4<!--#include file="../config.asp" -->
 5<HTML>
 6<HEAD>
 7<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
 8<meta http-equiv="Content-Language" content="fa">
 9<style>
10	Table { font-size: 9pt;}
11</style>
12<TITLE>tiny Order Details</TITLE>
13</HEAD>
14<SCRIPT LANGUAGE="JavaScript">
15<!--
16function documentKeyDown() {
17	var theKey = event.keyCode;
18	if (theKey == 27) { 
19		window.close();
20	}
21	else if (theKey >= 37 && theKey <= 40) { 
22		event.keyCode = 9;
23	}
24}
25
26document.onkeydown = documentKeyDown;
27//-->
28</SCRIPT>
29<BODY >
30<font face="tahoma">
31<%
32if request("sefaresh")<>"" then
33	myCriteria= "radif_sefareshat = N'"& clng(request("sefaresh")) & "'"
34%>
35<br>
36<center>
37<TABLE border="1" cellspacing="0" cellpadding="2" dir="RTL" borderColor="#888855"  width="800">
38<%	
39set RS1=Conn.Execute ("SELECT * FROM orders_trace WHERE ("& myCriteria & ")")
40set RS2=Conn.Execute ("SELECT * FROM OrderTraceSteps WHERE (ID = "& clng(request("marhale_box")) & ")")
41	if not RS1.eof then
42		tmpCounter=0
43%>
44		<TR bgcolor="#EEFFCC">
45			<TD width="44"># �����</TD>
46			<TD width="64">����� �����</TD>
47			<TD width="64">����� �����</TD>
48			<TD width="124">��� ����</TD>
49			<TD width="124">��� �����</TD>
50			<TD width="84">����� ���</TD>
51			<TD width="44">���</TD>
52			<TD width="64">�����</TD>
53			<TD width="74">�����</TD>
54			<TD width="66">����� ������</TD>
55		</TR>
56		<TR bgcolor="#FFFFFF">
57			<TD width="40"><%=RS1("radif_sefareshat")%></TD>
58			<TD width="60" DIR="LTR"><%=RS1("order_date")%></TD>
59			<TD width="60" DIR="LTR"><%=RS1("return_date")%></TD>
60			<TD width="120"><%=RS1("company_name")%>&nbsp;</TD>
61			<TD width="120"><%=RS1("customer_name")%>&nbsp;</TD>
62			<TD width="80"><%=RS1("order_title")%>&nbsp;</TD>
63			<TD width="40"><%=RS1("order_kind")%></TD>
64			<TD width="60"><%=RS1("vazyat")%></TD>
65			<TD width="140">( <%=RS1("marhale")%>) --&gt;<BR><I><B><%=RS2("Name")%></B></I></TD>
66			<TD width="60"><%=RS1("salesperson")%>&nbsp;</TD>
67		</TR>
68		<TR bgcolor="#EEFFCC">
69			<TD colspan="10" align="center"><!-- ��� ������ ����� ���� ��ʿ -->
70				<INPUT TYPE="button" Value="�����" style="font-family:tahoma,arial; font-size:9pt;width:70px;" onClick="window.dialogArguments.all.clearToGo.value='OK';window.close();">&nbsp; &nbsp; &nbsp;
71				<INPUT TYPE="button" Value="������" style="font-family:tahoma,arial; font-size:9pt;width:70px;" onClick="window.dialogArguments.all.clearToGo.value='';window.close();">
72			</TD>
73		</TR>
74
75<%
76	else
77%>		<TR>
78			<TD align="center" style="font-size:20pt;color:red">���� ������ ���� �����.</TD>
79		</TR>
80<%
81	end if 
82	RS1.close
83%>
84</TABLE>
85</center>
86<%
87end if
88
89Conn.Close
90%>
91</font>
92</BODY>
93</HTML>