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

/beta/Inquiry/dialog_FindInvItem.asp

http://github.com/khaneh/Orders
ASP | 105 lines | 97 code | 7 blank | 1 comment | 7 complexity | 146b832b48fd942649b3f15d5bace7f9 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 "../login.asp?err=���� ���� ��� ���� ���� ���� ����� ����"
  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;"
 13Set conn = Server.CreateObject("ADODB.Connection")
 14conn.open conStr
 15%>
 16<HTML>
 17<HEAD>
 18<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
 19<meta http-equiv="Content-Language" content="fa">
 20<style>
 21	Table { font-size: 9pt;}
 22	Input { font-family:tahoma; font-size: 9pt;}
 23</style>
 24<TITLE>���� ����</TITLE>
 25<script language="JavaScript">
 26<!--
 27var Arguments = new Array(2)
 28
 29function documentKeyDown() {
 30	var theKey = event.keyCode;
 31	if (theKey == 27) { 
 32		window.close();
 33	}
 34	else if (theKey == 13) {
 35		if (document.getElementById('dlgSearchBox').value != ""){
 36			window.dialogArguments.value=document.getElementById('dlgSearchBox').value;
 37			window.close();
 38		}
 39	}
 40}
 41
 42document.onkeydown = documentKeyDown;
 43
 44function onMyLoad(){
 45	document.getElementById('dlgDispTxt').innerText=window.dialogArguments.value
 46	window.dialogArguments.value=""
 47	document.getElementById('dlgSearchBox').focus();
 48	document.getElementById('dlgSearchBox').select();
 49}
 50
 51//-->
 52</script></HEAD>
 53<BODY leftmargin=0 topmargin=0 bgcolor='#DDDDFF' onload="onMyLoad()">
 54<font face="tahoma">
 55	<TABLE border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
 56	<TR><TD valign="middle">
 57		<table border="2" cellspacing="0" cellpadding="10" align="center" valign="middle" dir="RTL" bordercolor='#224488' bgcolor='#C3C3FF'>
 58		<tr><td><TABLE>
 59		<TR>
 60			<TD Height='30'><b><span id='dlgDispTxt'>��� ����� ����</span><b></TD>
 61		</TR>
 62		<TR>
 63			<TD><input type="text" id="dlgSearchBox" style="font-family:tahoma;font-size:9pt;width:100%;" value=""></TD>
 64		</TR>
 65		</TABLE>
 66
 67		<!--- Iz inja By Alix - 82-07-16 -->
 68		<TABLE width=100%>
 69		<TR>
 70			<TD><A onclick="setSearchString('�������')">[�������]</A></TD>
 71			<TD><A onclick="setSearchString('����')">[����]</A></TD>
 72			<TD><A onclick="setSearchString('�������')">[�������]</A></TD>
 73			<TD><A onclick="setSearchString('������')">[������]</A></TD>
 74			<TD><A onclick="setSearchString('����')">[����]</A></TD>
 75			<TD><A onclick="setSearchString('���')">[����]</A></TD>
 76		</TR>
 77		<TR>
 78			<TD><A onclick="setSearchString('���')">[���]</A></TD>
 79			<TD><A onclick="setSearchString('���')">[���]</A></TD>
 80			<TD><A onclick="setSearchString('������')">[������]</A></TD>
 81			<TD colspan=2><A onclick="setSearchString('���� ����')">[���� ����]</A></TD>
 82			<TD><!--A onclick="setSearchString('����')">[����]</A--></TD>
 83			<TD><!--A onclick="setSearchString('���')">[����]</A--></TD>
 84		</TR>
 85		</TABLE>
 86		<SCRIPT LANGUAGE="JavaScript">
 87		<!--
 88			function setSearchString(st)
 89			{	
 90				document.getElementById('dlgSearchBox').value = st;
 91				window.dialogArguments.value= st;
 92				window.close();
 93			}
 94		//-->
 95		</SCRIPT>
 96		<!----- Ta inja -------------------->
 97
 98		</td></tr>
 99		</table>
100	</TD></TR>
101	</TABLE>
102</font>
103</SCRIPT>
104</BODY>
105</HTML>