<%@ page language="C#" autoeventwireup="true" inherits="ims.dataHome, ims.web" enableviewstatemac="false" enableEventValidation="false" %>
<!DOCTYPE html>
<html id="dataHome">
<head runat="server">
    <title>搜索 - 快捷方式 - 收藏</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnDo">
    <asp:ScriptManager ID="s1" runat="server" OnAsyncPostBackError="AsyncError">
        <CompositeScript Path="js/msajax.js" ScriptMode="Release">
            <Scripts>
                <asp:ScriptReference Name="WebForms.js" Assembly="System.Web" /><asp:ScriptReference Name="MicrosoftAjax.js" /><asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
            </Scripts>
        </CompositeScript>
    </asp:ScriptManager>
    <div class="ui-tabs noborder" id="tabs">
	    <ul>
		    <li><a href="#search">搜索</a></li>
		    <li runat="server" id="tabFavs"><a href="#favs">收藏</a></li>
		    <li><a href="#shortcuts">我的快捷方式</a></li>
	    </ul>
        <div id="search" class="center">
            <div id="searchArea">
                <asp:DropDownList runat="server" ID="ddlts" AutoPostBack="true" OnSelectedIndexChanged="TempletsChanged"></asp:DropDownList>
                <asp:UpdatePanel ID="upRange" runat="server" OnPreRender="AddScript" RenderMode="inline" UpdateMode="conditional">
                    <ContentTemplate>
                        <asp:DropDownList runat="server" ID="ddlfs"></asp:DropDownList>
                        <asp:DropDownList runat="server" ID="modes"></asp:DropDownList>
                    </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="ddlts" EventName="SelectedIndexChanged" />
                </Triggers>
                </asp:UpdatePanel><img id="dtPicker" style="display:none" src="images/datetime.gif" title="选择日期" onclick="toPickDate();" /><input type="text" id="datetb" />&nbsp;：
                <div id="keyarea">
                    <asp:TextBox ID="kw" runat="server"></asp:TextBox><i id="cleaner" onclick="doClean();" title="清空"></i><button type="button" id="btnbox" title="搜索" onclick="$('#btnDo').click();"><i></i></button><asp:Button ID="btnDo" runat="server" CssClass="hide" OnClick="doSearch" />
                </div>
                <asp:UpdatePanel ID="divDir" runat="server" OnPreRender="AddScript" RenderMode="Block" UpdateMode="conditional"><ContentTemplate>
                <input type="checkbox" id="cbDir" runat="server" onclick="setSubOptions();" /><label for="cbDir">限定目录：</label><a id="selectDir" runat="server" onclick="return selectDir();" class="vmiddle" onserverclick="DirChanged"></a>
                <div class="subOptions" id="divSubDir" runat="server"><asp:CheckBox ID="cbSubDir" Checked="true" runat="server" Text="包含子目录" /></div>
                </ContentTemplate></asp:UpdatePanel>
		        <div id="linkZone">
		            <a href="select.aspx?action=find">快搜</a><b class="sepor">|</b><a href="select.aspx?action=search">高级搜索</a><b class="sepor">|</b><a href="#" onclick="return showHelp();">搜索技巧</a>
		        </div>
            </div>
        </div>
		<asp:UpdatePanel runat="server" ID="favs" ChildrenAsTriggers="false" UpdateMode="Conditional" RenderMode="Block" class="readmode">
		<ContentTemplate>
            <div runat="server" id="prompt" class="footBtnArea gray">无</div>
            <asp:CheckBoxList ID="favObj" runat="server" CssClass="dot" RepeatLayout="UnorderedList" />
            <div class="btns mtop_s" id="batchOpen" runat="server">
                <asp:Button ID="btnOpen" runat="server" Text="打开选中项" OnClick="OpenItems" OnClientClick="return hasSelected('favObj');" CssClass="f-open btn small sec" />
            </div>
            <div runat="server" id="divFavs">
            <div class="bhead mtop_l"><span>收藏的<%= ims.Sys.InfoType %></span></div>
            <asp:CheckBoxList ID="favInfo" runat="server" CssClass="dot" RepeatLayout="UnorderedList" />
            </div>
            <div runat="server" id="toolzone">
                <div class="btns mtop_l">
                    <button type="button" class="f-edit btn smest outline" runat="server" id="btnEdit" onclick="enterEdit(this);">编辑</button><button type="button" class="f-duoxuan btn smest outline tool" onclick="SelectAll(this,'favs');">全选</button><button type="button" class="f-ok btn smest outline tool" onclick="RevSelect('favs');">反选</button><button ID="btnDel" runat="server" type="button" onserverclick="DelItems" onclick="return delFavs();" class="f-del btn smest outline tool">删除选中项</button>
                </div>
            </div>
		</ContentTemplate>
		<Triggers>
		    <asp:AsyncPostBackTrigger ControlID="btnDel" EventName="serverclick" />
		</Triggers>
		</asp:UpdatePanel>
        <asp:UpdatePanel ID="shortcuts" runat="server" UpdateMode="Conditional" RenderMode="Block" class="readmode">
        <ContentTemplate>
            <ul class="dot middle">
            <asp:Repeater runat="server" ID="myShortcuts">
                <ItemTemplate>
                    <li><a href="view.aspx?shortcut=<%# ((ims.Model.Shortcut)Container.DataItem).ID %>"><%# ((ims.Model.Shortcut)Container.DataItem).Name %></a><i class="del2" onclick="return delSc('<%# ((ims.Model.Shortcut)Container.DataItem).ID %>');" title="删除"></i></li>
                </ItemTemplate>
            </asp:Repeater>
            </ul>
            <div runat="server" id="msg" class="footBtnArea gray">无</div>
            <asp:Button runat="server" ID="btnDelSc" OnClick="DelShortcut" CssClass="hide" />
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <script src="js/comm.js"></script>
    <script src="js/datepicker/WdatePicker.js"></script>
    <script src="js/datahome.js"></script>
    </form>
</body>
</html>