<%@ page language="C#" autoeventwireup="true" inherits="ims.web.thumb, 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="thumb">
<head runat="server"><title></title>
</head>
<body class="waiting">
    <div class="hide"><img src="images/loading.gif" />正在生成，请稍候 …</div>
    <form id="form1" runat="server">
    <asp:HiddenField ID="curObjItem" runat="server" /><asp:HiddenField ID="pasteSource" runat="server" />
    <asp:ScriptManager ID="s1" runat="server" EnablePageMethods="true">
        <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 id="ov" class="overview"></div>
    <div class="menu" id="objMenu" runat="server">
        <a accesskey="O" href="#" onclick="return openObj()"><b>打开</b> 　　　Alt+O</a>
        <a accesskey="Z" href="#" onclick="return openObj(true)" title="按住Ctrl键单击缩略图可就地打开">就地打开 　Alt+Z</a>
        <a accesskey="X" href="#" onclick="return setSource('cut')" id="cut">剪切 　　　Alt+X</a>
        <a accesskey="C" href="#" onclick="return setSource('clone')" id="copy">复制 　　　Alt+C</a>
        <a accesskey="D" href="#" onclick="return delConfirm()" runat="server" id="delObjItem" onserverclick="DelObjItem">删除 　　　Alt+D</a>
        <a accesskey="E" href="#" runat="server" onserverclick="toEdit" id="edit">编辑　　　 Alt+E</a>
        <a accesskey="N" href="#" onclick="return renameObj()">重命名　　 Alt+N</a>
        <a accesskey="F" href="#" onclick="return toFav()" runat="server" id="addFavorite">收藏　　　 Alt+F</a>
        <a accesskey="B" href="#" onclick="return toCart()" runat="server" id="cart">加入购物车 Alt+B</a>
        <div></div>
        <a href="#" onclick="return openTemplet();">打开所属模板</a>
        <a accesskey="A" href="#" runat="server" onserverclick="ShowObjAttributes" id="objAttr">属性 　　　Alt+A</a>
    </div>
    <div class="menu" id="bodyMenu">
        <a href="#" class="hasSubMenus" runat="server" id="types" onclick="return CanelEvent()" visible="false" onserverclick="ShowOnly" onmouseover="showSubMenu('classify')" onmouseout="hideSubMenu('classify')">仅查看</a>
        <a accesskey="S" href="#" onclick="return CanelEvent();" onmouseover="showSubMenu('sub_sort')" onmouseout="hideSubMenu('sub_sort')" class="hasSubMenus">排序</a>
        <a accesskey="N" runat="server" id="appendData">新建 　　　Alt+N</a>
        <a accesskey="P" href="#" onserverclick="Paste" runat="server" id="paste">粘贴 　　　Alt+P</a>
        <a accesskey="F" runat="server" id="searchLink">搜索　　　 Alt+F</a>
        <div></div>
        <a accesskey="B" href="#" runat="server" onclick="return back();">返回　　　 Alt+B</a>
    </div>
    <div class="menu" id="classify" runat="server" visible="false" onmouseout="hideSubMenu(this)"></div>
    <asp:UpdatePanel ID="upSortMenus" runat="server" RenderMode="inline" UpdateMode="conditional">
    <ContentTemplate>
        <div class="menu" id="sub_sort" runat="server" onmouseout="hideSubMenu(this)"></div>
    </ContentTemplate>
    </asp:UpdatePanel>

    <div id="objsDiv" class="conArea" runat="server">
        <asp:UpdatePanel ID="upObjs" runat="server" ChildrenAsTriggers="false" OnPreRender="AttMouseEvent" UpdateMode="conditional" />
    </div>    
    <asp:UpdatePanel ID="upPager" runat="server" UpdateMode="conditional" RenderMode="Inline">
    <ContentTemplate>
        <table cellspacing="0" runat="server" id="PagerBar" class="PagerBar" oncontextmenu="return CanelEvent();"><tr><td>
            <asp:LinkButton ID="btnFirst" Text="首页" runat="server" ToolTip="快捷键：Home" AccessKey="F" OnClick="ToPage" />
            <asp:LinkButton ID="btnPrevious" Text="< 上一页" runat="server" ToolTip="快捷键：←或PageUp" AccessKey="P" OnClick="ToPage" />
            <asp:Label ID="lblCount" CssClass="count" runat="server"></asp:Label>
            <asp:LinkButton ID="btnNext" Text="下一页 >" runat="server" ToolTip="快捷键：→或PageDown" AccessKey="N" OnClick="ToPage" />
            <asp:LinkButton ID="btnLast" Text="末页" runat="server" ToolTip="快捷键：End" AccessKey="L" OnClick="ToPage" />
        </td><td align="right">
            <asp:DropDownList runat="server" id="ddlPagesize" AutoPostBack="True" OnSelectedIndexChanged="PageSizeChanged">
                <asp:ListItem Value="5">5项/页</asp:ListItem>
                <asp:ListItem Value="10">10项/页</asp:ListItem>
                <asp:ListItem Value="15">15项/页</asp:ListItem>
                <asp:ListItem Value="20">20项/页</asp:ListItem>
                <asp:ListItem Value="30">30项/页</asp:ListItem>
                <asp:ListItem Value="50" Selected="true">50项/页</asp:ListItem>
                <asp:ListItem Value="100">100项/页</asp:ListItem>
                <asp:ListItem Value="500">500项/页</asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList ID="ddlPager" AutoPostBack="true" OnSelectedIndexChanged="ToPage" runat="server"></asp:DropDownList>
        </td></tr></table>
        <ul class="hide" id="AttributeInfo"><li>共<asp:Literal ID="recordCount" runat="server"></asp:Literal>项</li></ul>
    </ContentTemplate>
    </asp:UpdatePanel>
   
   <ims:Pop ID="attr" ShowOkButton="false" CanelButtonText="确定" runat="server" ShowProgress="false">
    <ContentTemplate>
        <ul>
            <li>名称： <asp:Literal runat="server" ID="lIden"></asp:Literal></li>
            <li>类型： <asp:HyperLink ID="hlTemplet" runat="server"></asp:HyperLink></li>
            <li runat="server" id="liDir">目录： <asp:HyperLink ID="hlDir" runat="server"></asp:HyperLink></li>
            <li><div class="sepline"></div></li>
            <li>保密级别： <asp:Image ID="imgSeclevel" runat="server" ImageAlign="AbsMiddle" /></li>
            <li>创建人： 　<asp:Literal runat="server" ID="lBuilder"></asp:Literal></li>
            <li>最后更新： <asp:Literal runat="server" ID="lModified"></asp:Literal></li>
        </ul>
    </ContentTemplate>
    </ims:Pop>
    <script src="js/comm.js"></script><script src="js/thumb.js"></script>
    </form>
</body></html>