<%@ page language="C#" autoeventwireup="true" inherits="ims.web.advSearch, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="advSearch">
<head runat="server">
    <title>高级搜索</title><meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>
<body runat="server" id="htmlBody">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="sm" runat="server" OnAsyncPostBackError="AsyncError" />
        <div class="headerZone" runat="server" id="divHeader">
            <table><tr><td runat="server" id="header">设置条件：</td><td class="right"><img runat="server" id="btnHelp" src="images/help1.gif" onclick="return showHelp();" /></td></tr></table>
        </div>
        <div class="inlineBlock autoWidth">
        <ul class="cond" id="conds">
			<li Runat="server" id="Cond1">
			<asp:CheckBox runat="server" ID="cb1" Checked="true" />&nbsp;<asp:DropDownList Runat="server" ID="dplFileds1" CssClass="fn"></asp:DropDownList>
			<asp:DropDownList Runat="server" ID="dplOper1"></asp:DropDownList><span id="s1">
			<asp:DropDownList ID="dplYN1" Runat="server" CssClass="hide">
				<asp:ListItem Value="true" Selected="True">是</asp:ListItem>
				<asp:ListItem Value="false">否</asp:ListItem>
			</asp:DropDownList><asp:TextBox ID="tb1_1" Runat="server" CssClass="tb"></asp:TextBox><span
			id="span1" class="hide">～<asp:TextBox id="tb2_1" Runat="server" CssClass="tb"></asp:TextBox></span></span><asp:TextBox runat="server" ID="tb3_1" Width="24" Text="1" CssClass="hide"></asp:TextBox><asp:DropDownList runat="server" ID="d_1" CssClass="hide"></asp:DropDownList><span class="topUnit">条记录</span>
			</li>
			<li Runat="server" id="Cond2">
				<asp:RadioButtonList Runat="server" ID="rbl1" RepeatLayout="Flow" RepeatDirection="Horizontal" CssClass="rblCond"></asp:RadioButtonList>
				<asp:CheckBox runat="server" ID="cb2" />&nbsp;<asp:DropDownList Runat="server" ID="dplFileds2" CssClass="fn"></asp:DropDownList>
				<asp:DropDownList Runat="server" ID="dplOper2"></asp:DropDownList><span id="s2">
				<asp:DropDownList ID="dplYN2" Runat="server" CssClass="hide">
					<asp:ListItem Value="true" Selected="True">是</asp:ListItem>
					<asp:ListItem Value="false">否</asp:ListItem>
				</asp:DropDownList><asp:TextBox ID="tb1_2" Runat="server" CssClass="tb"></asp:TextBox><span
				id="span2" class="hide">～<asp:TextBox id="tb2_2" Runat="server" CssClass="tb"></asp:TextBox></span></span><asp:TextBox runat="server" ID="tb3_2" Width="24" Text="1" CssClass="hide"></asp:TextBox><asp:DropDownList runat="server" ID="d_2" CssClass="hide"></asp:DropDownList><span class="topUnit">条记录</span>
			</li>
			<li Runat="server" id="Cond3" class="hide">
				<asp:RadioButtonList Runat="server" ID="rbl2" RepeatLayout="Flow" RepeatDirection="Horizontal" CssClass="rblCond"></asp:RadioButtonList>
				<asp:CheckBox runat="server" ID="cb3" />&nbsp;<asp:DropDownList Runat="server" ID="dplFileds3" CssClass="fn"></asp:DropDownList>
				<asp:DropDownList Runat="server" ID="dplOper3"></asp:DropDownList><span id="s3">
				<asp:DropDownList ID="dplYN3" Runat="server" CssClass="hide">
					<asp:ListItem Value="true" Selected="True">是</asp:ListItem>
					<asp:ListItem Value="false">否</asp:ListItem>
				</asp:DropDownList><asp:TextBox ID="tb1_3" Runat="server" CssClass="tb"></asp:TextBox><span
				id="span3" class="hide">～<asp:TextBox id="tb2_3" Runat="server" CssClass="tb"></asp:TextBox></span></span><asp:TextBox runat="server" ID="tb3_3" Width="24" Text="1" CssClass="hide"></asp:TextBox><asp:DropDownList runat="server" ID="d_3" CssClass="hide"></asp:DropDownList><span class="topUnit">条记录</span>
			</li>
			<li Runat="server" id="Cond4" class="hide">
				<asp:RadioButtonList Runat="server" ID="rbl3" RepeatLayout="Flow" RepeatDirection="Horizontal" CssClass="rblCond"></asp:RadioButtonList>
				<asp:CheckBox runat="server" ID="cb4" />&nbsp;<asp:DropDownList Runat="server" ID="dplFileds4" CssClass="fn"></asp:DropDownList>
				<asp:DropDownList Runat="server" ID="dplOper4"></asp:DropDownList><span id="s4">
				<asp:DropDownList ID="dplYN4" Runat="server" CssClass="hide">
					<asp:ListItem Value="true" Selected="True">是</asp:ListItem>
					<asp:ListItem Value="false">否</asp:ListItem>
				</asp:DropDownList><asp:TextBox ID="tb1_4" Runat="server" CssClass="tb"></asp:TextBox><span
				id="span4" class="hide">～<asp:TextBox id="tb2_4" Runat="server" CssClass="tb"></asp:TextBox></span></span><asp:TextBox runat="server" ID="tb3_4" Width="24" Text="1" CssClass="hide"></asp:TextBox><asp:DropDownList runat="server" ID="d_4" CssClass="hide"></asp:DropDownList><span class="topUnit">条记录</span>
			</li>
			<li Runat="server" id="Cond5" class="hide">
				<asp:RadioButtonList Runat="server" ID="rbl4" RepeatLayout="Flow" RepeatDirection="Horizontal" CssClass="rblCond"></asp:RadioButtonList>
				<asp:CheckBox runat="server" ID="cb5" />&nbsp;<asp:DropDownList Runat="server" ID="dplFileds5" CssClass="fn"></asp:DropDownList>
				<asp:DropDownList Runat="server" ID="dplOper5"></asp:DropDownList><span id="s5">
				<asp:DropDownList ID="dplYN5" Runat="server" CssClass="hide">
					<asp:ListItem Value="true" Selected="True">是</asp:ListItem>
					<asp:ListItem Value="false">否</asp:ListItem>
				</asp:DropDownList><asp:TextBox ID="tb1_5" Runat="server" CssClass="tb"></asp:TextBox><span
				id="span5" class="hide">～<asp:TextBox id="tb2_5" Runat="server" CssClass="tb"></asp:TextBox></span></span><asp:TextBox runat="server" ID="tb3_5" Width="24" Text="1" CssClass="hide"></asp:TextBox><asp:DropDownList runat="server" ID="d_5" CssClass="hide"></asp:DropDownList><span class="topUnit">条记录</span>
			</li>
		</ul>
		<div class="right"><a href="#" onclick="return addCond();" id="addCond">添加条件</a></div>
        </div>
        <asp:UpdatePanel ID="up" runat="server" ChildrenAsTriggers="true">
            <ContentTemplate>
                <asp:Button ID="btnDoSearch" runat="server" OnClick="doSearch" CssClass="btn" Text="搜  索" Width="54" />
                <asp:Button runat="server" ID="btnSaveTempFilter" OnClick="btnSaveTempFilter_Click" OnClientClick="return preSave();" Text="确定" Visible="false" CssClass="btn" />
                <asp:Button runat="server" ID="btnCanel" OnClientClick="CancelFilter();" Text="取消" Visible="false" CssClass="btn" />
                <asp:Button ID="btnSaveFilter" OnClientClick="return toSaveFilter();" runat="server" Visible="false" CssClass="btn" Text="保存过滤器" />
                <input type="button" runat="server" id="btnBack" onclick="back();" value="返回" class="btn" />
            </ContentTemplate>
        </asp:UpdatePanel>

        <div class="zoneTitle" runat="server" id="dirPrompt"><img src="images/info.gif" align="absMiddle" /> 提示</div>
        <ul id="ulPrompt" runat="server">
            <li>可<a href="#" onclick="What('CondVar');" title="查看关于使用变量的说明" class="u">在条件中使用字段或变量</a>：<asp:DropDownList runat="server" ID="ddlVars" onchange="ddlVarsChanged(this);">
            </asp:DropDownList>： <span id="varName"></span></li>
            <li runat="server" id="lisc">可<a href="#" class="u" onclick="return toPrompt('快捷方式名称：', toSavesc);">将设置好的条件保存为快捷方式</a><asp:UpdatePanel runat="server" ID="upSc" UpdateMode="Conditional" RenderMode="Inline">
				<ContentTemplate><asp:ImageButton runat="server" ID="ibSavesc" OnClick="SaveasShortcut" CssClass="hide" /></ContentTemplate>
				</asp:UpdatePanel>
            </li>
        </ul>

        <ims:Pop runat="server" ID="filterAttr" InitVisible="false" Title="过滤器属性" OnOkClick="SaveFilter" HideOnOkClientClick="false" ShowProgress="false">
        <ContentTemplate>
            过滤器名称：<asp:TextBox ID="tbFilterName" runat="server" onkeydown="return enterTo('filterAttr_btnOK');"></asp:TextBox>
            <div class="sepline"></div>
            <asp:CheckBox ID="cbFilterHide" Text="隐藏该过滤器（仅在字段的链接或查询中使用）" runat="server" />
        </ContentTemplate>
        </ims:Pop>
    <script src="js/comm.js"></script><script src="js/advSearch.js"></script>
    </form>
</body>
</html>
