<%@ Page Language="C#" AutoEventWireup="true"  CodeBehind="RelevanceSearch.aspx.cs" Inherits="Webdisk.RelevanceSearch" %>

<!DOCTYPE>

<html>
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="themes/icon.css" />
    <link href="themes/default/easyui.css" rel="stylesheet" type="text/css" />
	<link href="css/jquery.datepick.css" type="text/css" rel="stylesheet"/>
    <link href="style/blue/style.css" type="text/css" rel="Stylesheet"/>
    <script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
	<script src="js/jquery.plugin.min.js" type="text/javascript"></script>
	<script src="js/jquery.datepick.min.js" type="text/javascript"></script>
    <script src="js/easyloader.js" type="text/javascript"></script>
    <link href="css/demo.css" rel="stylesheet" type="text/css" />
    <script src="js/Common.js" type="text/javascript"></script>
	<style type="text/css">
.input3 {
  color: #999;
  width: 311px;
  height: 26px;
  line-height: 26px;
  font-size: 14px;
  padding: 0 10px;
  border: 1px solid #ddd;
}
.but1 {
  color: #fff;
  width: 60px;
  height: 34px;
  line-height: 34px;
  font-size: 14px;
  background: #1ea7de;
  border: 1px solid #1298ce;
  border-radius: 3px;
  cursor: pointer;
}
	</style>
</head>
<body>
    <form id="form1" runat="server">
     <div  class="easyui-panel" title="" data-options="border:false"  style="padding:5px;">
		<table class="wfrom-table" style="width: 100%;margin: 0;">
			<tr>
				<td  class="label">
						文件名：
				</td>
				<td>
					<input  class="input3" id="txtFileName" runat="server" style="width:280px;">
					（可模糊输入，不填为不限，多个关键字用半角空格分隔）
					<input class="but1" id="btnSearch" type="button" value=" 查 找 "  onclick="setSearch();">
				</td>
			</tr>
			<tr>
				<td  class="label">
						添加时间：
				</td>
				<td>
					<input  id="txtTime1" style="width:100px;" runat="server" class="input3 "/>
					－
					<input id="txtTime2" style="width:100px;" runat="server" class="input3 "/>（不填为不限）
				</td>
			</tr>
			<tr id="show1" runat="server">
				<td class="label">
						文件大小：
				</td>
				<td>
					<input name="txtSize1" class="input3" style="width:100px;" id="txtSize1" runat="server">
					KB－
					<input name="txtsize2" class="input3" style="width:100px;" id="txtSize2" runat="server">
					KB（不填为不限）
				</td>
			</tr>
			<tr id="show2" runat="server">
				<td class="label">
						文件类型：
				</td>
				<td>
					<input name="txttype" class="input3" id="txtType"  style="width:280px;" runat="server">（输入扩展名，用半角,分隔，不填为不限）
				</td>
			</tr>
		</table>
		<iframe id="search" src="RelevanceSearchList.aspx?id=<%=strID %>" scrolling="no" frameborder="0" style="margin:0px" width="100%" height="460"></iframe>
	</div>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript">

    var _id = '<%=strID %>';
	var userName = '<%=strUserName %>';
    $(function () {
        $.datepick.setDefaults({ prevText: "上月", todayText: "今天", clearText: "清除", nextText: "下月", closeText: "关闭", dateFormat: "yyyy-mm-dd", dayNamesMin: ["日", "一", "二", "三", "四", "五", "六"],
            monthNames: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"]
        });
        $('#txtTime1,#txtTime2').datepick();

    });
	function setSearch(){
	    var url = 'RelevanceSearchList.aspx?id=' + _id + '&username=' + escape(userName) + "&filename=" + escape($.trim($("#txtFileName").val())) +
		"&size1=" + $.trim($("#txtSize1").val()) + "&size2" + $.trim($("#txtsize2").val()) + "&type=" + $.trim($("#txttype").val()) +
		"&time1="+ $.trim($("#txtTime1").val())+"&time2="+ $.trim($("#txtTime2").val());
		$("#search").attr("src",url);
	}

</script>