/beta/dialog_GenInput.asp
ASP | 76 lines | 67 code | 6 blank | 3 comment | 7 complexity | fe8f2f2d71c21b51c8dfe328229c093d 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 = "Provider=SQLNCLI10.1;Persist Security Info=False;User ID=sefadmin;Initial Catalog=sefareshat;Data Source=(local);PWD=5tgb;" 12%> 13<!--#Include file='config.asp' --> 14<% 15'Set conn = Server.CreateObject("ADODB.Connection") 16'conn.open conStr 17%> 18 19<HTML> 20<HEAD> 21<meta http-equiv="Content-Type" content="text/html; charset=windows-1256"> 22<meta http-equiv="Content-Language" content="fa"> 23<style> 24 Table { font-size: 9pt;} 25 Input { font-family:tahoma; font-size: 9pt;} 26</style> 27<TITLE>���� ����</TITLE> 28<script language="JavaScript"> 29<!-- 30var Arguments = new Array(2) 31 32function documentKeyDown() { 33 var theKey = event.keyCode; 34 if (theKey == 27) { 35 window.close(); 36 } 37 else if (theKey == 13) { 38 if (document.getElementById('dlgSearchBox').value != ""){ 39 window.dialogArguments.value=document.getElementById('dlgSearchBox').value; 40 window.close(); 41 } 42 } 43} 44 45document.onkeydown = documentKeyDown; 46 47function onMyLoad(){ 48 document.getElementById('dlgDispTxt').innerText=window.dialogArguments.value 49 window.dialogArguments.value="" 50 document.getElementById('dlgSearchBox').focus(); 51 document.getElementById('dlgSearchBox').select(); 52} 53 54//--> 55</SCRIPT> 56</HEAD> 57<BODY leftmargin=0 topmargin=0 bgcolor='#DDDDFF' onload="onMyLoad()"> 58<font face="tahoma"> 59 <TABLE border="0" width="100%" height="100%" cellspacing="0" cellpadding="0"> 60 <TR><TD valign="middle"> 61 <table border="2" cellspacing="0" cellpadding="10" align="center" valign="middle" dir="RTL" bordercolor='#224488' bgcolor='#C3C3FF'> 62 <tr><td><TABLE> 63 <TR> 64 <TD Height='30'><b><span id='dlgDispTxt'>��� ����� ����</span><b></TD> 65 </TR> 66 <TR> 67 <TD><input type="text" id="dlgSearchBox" style="font-family:tahoma;font-size:9pt;width:100%;" value=""></TD> 68 </TR> 69 </TABLE> 70 </td></tr> 71 </table> 72 </TD></TR> 73 </TABLE> 74</font> 75</BODY> 76</HTML>