<%@ Page CodeBehind="searchfile.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.searchfile" %>
<% @ Import Namespace="Webdisk" %>
<HTML>
	<HEAD>
<link href="<%=xml.GetStyle()%>" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="js/calendar.js"></script>
		<script language="javascript">
   var CalendarWebControl = new atCalendarControl();
		</script>
	</HEAD>
<SCRIPT language=javascript>
function  save_onclick()
{
  var strTemp = document.form.txtsize1.value;
  if ((strTemp.length > 0 ) && (isNaN(strTemp)))
  {
      alert("文件大小请输入数字！");
      document.form.txtsize1.focus();
      return false;
  }
  var strTemp = document.form.txtsize2.value;
  if ((strTemp.length > 0 ) && (isNaN(strTemp)))
  {
      alert("文件大小请输入数字！");
      document.form.txtsize2.focus();
      return false;
  }
  if ((document.getElementById("txttime1").value!="") && (!checkDate(document.getElementById("txttime1").value))) 
	{
		alert('请输入正确的日期！');
		document.form.txttime1.focus();
		return false;
	}
  	if ((document.getElementById("txttime2").value!="") && (!checkDate(document.getElementById("txttime2").value))) 
	{
		alert('请输入正确的日期！');
		document.form.txttime2.focus();
		return false;
	}
  return true;  
}
</SCRIPT>
<BODY text="#000000" leftMargin="0" topmargin="0" marginwidth="0">
<form id="form" name="form" action="<%if (Request["action"]!=null) Response.Write(Request["action"].ToString());%>.aspx" method="post" onSubmit="return save_onclick()">
			<br>
			<TABLE cellSpacing="0" cellPadding="0" width="98%" align="center">
              <TR>
                <TD width="5" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_01.gif" width="5"></TD>
                <TD width="874" background="pics/wenbenkuan_02.gif"><IMG height="5" src="pics/wenbenkuan_02.gif" width="5"></TD>
                <TD><IMG height="5" src="pics/wenbenkuan_03.gif" width="5"></TD>
              </TR>
              <TR>
                <TD background="pics/wenbenkuan_04.gif">&nbsp;</TD>
                <TD class="tablebg" background="pics/wenbenkuan_05.gif"><TABLE width="100%">
                    <TR>
                      <TD width="100%" class="tabletop"><img src="pics/files.gif" width="18" height="18" align="absmiddle"> 查找文件或目录&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1);"><img src="pics/link_back.gif" border="0" align="absmiddle"></a></TD>
                    </TR>
                    <TR class="tablebg">
                      <TD><TABLE width="100%" height="174"
											border="0" align="center" cellPadding="2" cellSpacing="1" class="tablebgborder">
                          <TR class="tablebg">
                            <TD width="34%" height="20"><div align="right">搜索文件夹： </div></TD>
                            <TD width="66%"><div align="left"><span class="pad">
                              <asp:Label ID="pathstr" runat="server"></asp:Label>
                              <input id="path" type="hidden" size="4" name="path" runat="server">
                              <input id="toFind" type="hidden" size="2" value="1" name="toFind">
                            </span></div></TD>
                          </TR>
                          <TR class="tablebg">
                            <TD height="18"><div align="right">文件名或目录名：</div></TD>
                            <TD height="18">
                              <input id="txtname" class="kuan" type="text" name="txtname"></TD>
                          </TR>
                          <TR class="tablebg">
                            <TD height="18"><div align="right">指定修改时间：</div></TD>
                            <TD height="18"><div align="left">
                              <input id="txttime1" class="kuan" 
							type="text" size="15" name="txttime1" onfocus=CalendarWebControl.show(this,this.value);>
                              &nbsp;到
                              <input id="txttime2" class="kuan" 
							type="text" size="15" name="txttime2" onfocus=CalendarWebControl.show(this,this.value);>
                            （不填为不限）</div></TD>
                          </TR>
                          <TR class="tablebg">
                            <TD height="18"><div align="right">指定文件大小：</div></TD>
                            <TD height="18"><div align="left">
                              <input id="txtsize1" class="kuan" 
							type="text" size="10" name="txtsize1">
                              &nbsp;KB —
                              <input id="txtsize2" class="kuan" 
							type="text" size="10" name="txtsize2">
                            &nbsp;KB （不填为不限）</div></TD>
                          </TR>
                          <TR class="tablebg">
                            <TD height="18"><div align="right">文件类型：</div></TD>
                            <TD height="18"><div align="left">
                              <input id="txttype" class="kuan" 
									type="text" name="txttype">
                            （输入扩展名，用半角,分隔，不填为不限）</div></TD>
                          </TR>
                          <TR class="tablebg">
                            <TD height="18"><div align="right">文件注释：</div></TD>
                            <TD height="18"><input id="txtnote" class="kuan" type="text" name="txtnote">
                            （不填为不限）</TD>
                          </TR>
                          <TR class="tablebg">
                            <TD height="18"><div align="right"></div></TD>
                            <TD height="18"><div align="left">
                              <input id="zi" type="checkbox" name="zi" checked value="1">
                            搜索子目录&nbsp; </div></TD>
                          </TR>
                          <TR class="tablebg">
                            <TD height="20" colspan="2"><div align="center">
                              <input class="btn" type="submit" value=" 搜 索 ">
                              &nbsp;&nbsp;&nbsp;&nbsp;
                              <input class="btn" type="button" value=" 返 回 " onClick="javascript:history.go(-1);">
                             </div></TD>
                          </TR>
                      </TABLE></TD>
                    </TR>
                </TABLE></TD>
                <TD width="5" background="pics/wenbenkuan_06.gif"><IMG height="5" src="pics/wenbenkuan_06.gif" width="5"></TD>
              </TR>
              <TR>
                <TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_07.gif" width="5"></TD>
                <TD background="pics/wenbenkuan_08.gif"><IMG height="5" src="pics/wenbenkuan_08.gif" width="5"></TD>
                <TD><IMG height="5" src="pics/wenbenkuan_09.gif" width="5"></TD>
              </TR>
            </TABLE>
</form>
	</BODY>
</HTML>
