<%@ Page EnableViewState="false" CodeBehind="findfile.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="HTCOMNET.findfile" %>
<%@ Import Namespace="System.Text.RegularExpressions.Regex" %>
<%@ Import Namespace="HTCOMNET.Main" %>
<HTML>
	<HEAD>
		<title>
			<%=Session(SK_LANGUAGE).GetText("SEARCH_RESULTS")%>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=<%=Session(SK_CHARSET)%>">
		<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
		<link rel="stylesheet" href="Scripts<%=JS_CSS_VERSION%>/Style.css" type="text/css">
			<SCRIPT language="JavaScript" src="Scripts<%=JS_CSS_VERSION%>/<%=Session(SK_LANGUAGE).Language%>.js"></SCRIPT>
			<SCRIPT language="JavaScript" src="Scripts<%=JS_CSS_VERSION%>/Main.js"></SCRIPT>
			<SCRIPT language="JavaScript" src="Scripts<%=JS_CSS_VERSION%>/Upload.js"></SCRIPT>
	</HEAD>
	<body bgcolor="#ffffff" leftmargin="5" topmargin="5">
		<p align="center"><span id="ms" style="FONT-WEIGHT:bold;VISIBILITY:visible;COLOR:#663300;FONT-FAMILY:Verdana"><%=Session(SK_LANGUAGE).GetText("SEARCHING_WAIT")%>...</span></p>
		<SCRIPT language="JavAscript">
	drawupwin('<font color="#FFFF66">&nbsp;&nbsp;<%=Session(SK_LANGUAGE).GetText("SEARCH_RESULTS")%></font>',Innerwidth()-15 , Innerheight()-15,'#F8F6E6');
		</SCRIPT>
		<nobr><font class="subactionsfont">
				<BR>
				<%Response.Flush()%>
				<SCRIPT language="JavAscript">
<%
        Dim pattern As String
        pattern = Request.querystring("pattern")
        pattern = Replace(pattern, "\+", "(.+?)")
        pattern = Replace(pattern, "\?", "(.??)")
        pattern = Replace(pattern, "\*", "(.*?)")
        myRegEx = New Regex(pattern, RegexOptions.IgnoreCase)
		recurse("")        
%>
				</SCRIPT>
			</font></nobr>
		<p><font class="subactionsfont">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<%if total>0 then%>
				<%=Session(SK_LANGUAGE).GetText("TOTAL")%>:&nbsp;<%=total%>&nbsp;<%=Session(SK_LANGUAGE).GetText("FILES")%>
				<%Else%>
				<%=Session(SK_LANGUAGE).GetText("NO_RESULT")%>
			</font>
		</p>
		<%End If%>
		<SCRIPT language="JavAscript">
	document.getElementById('ms').style.display='none';
	drawdownwin('');
		</SCRIPT>
	</body>
</HTML>
