<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContentManageNavigation.ascx.cs"
    Inherits="PowerEasy.Module.General.WebSite.Admin.Controls.Contents.ContentManageNavigation" %>
    
<table style="width: 100%; margin: 0 auto;" cellpadding="2" cellspacing="1" class="border">
    <tr>
        <td style="height: 22px; width: 80px;" align="left" class="tdbg">
            <b><asp:Literal ID="Literal1" Text="管理导航：" runat="server"></asp:Literal></b>
        </td>
        <td class="tdbg">
            <pe:ExtendedNodeLinkButton ID="ELnkContentList" Text="内容列表" IsChecked="false" NodeId='<%# RequestInt32("NodeID")%>'
                OperateCode="NodeContentManage" OnClick="ELnkContentList_Click" runat="server"  ValidationGroup="topMenu"></pe:ExtendedNodeLinkButton>
            |
            <asp:Label ID="LblAddContent" Style="width: 250px; border: 1px solid #a7a6aa; padding: 4px;
                padding-right: 25px; background: url(../../Admin/images/sitelist.gif) right center no-repeat;"
                runat="server"  ValidationGroup="topMenu" Text="添加内容"></asp:Label>
            <asp:HyperLink runat="server" Visible="false" ID="HlkModel"></asp:HyperLink><asp:Literal
                ID="LitSeparator" runat="server"> | </asp:Literal>
            <pe:ExtendedNodeLinkButton ID="ELnkContentRecycle" Text="回收站管理" IsChecked="false"
                NodeId='<%# RequestInt32("NodeID")%>' OperateCode="NodeContentManage" OnClick="ELnkContentRecycle_Click"
                runat="server"  ValidationGroup="topMenu" />
            |
            <pe:ExtendedLinkButton ID="ELnkHtmlManage" Text="生成HTML管理" IsChecked="false" NodeId='<%# RequestInt32("NodeID")%>'
                OperateCode="NodeContentManage" OnClick="ELnkHtmlManage_Click" runat="server"  ValidationGroup="topMenu"></pe:ExtendedLinkButton>
            |
            <pe:ExtendedLinkButton ID="ELnkSiginManage" Text="签收管理" IsChecked="false" NodeId='<%# RequestInt32("NodeID")%>'
                OperateCode="NodeContentManage" OnClick="ELnkSiginManage_Click" runat="server"  ValidationGroup="topMenu"></pe:ExtendedLinkButton>
            | 
            <pe:ExtendedLinkButton ID="ELnkArchiving" Text="归档内容" IsChecked="false" OperateCode="NodeContentManage"
                OnClick="ELnkArchiving_Click" runat="server"  ValidationGroup="topMenu"></pe:ExtendedLinkButton>
            | 
            <pe:ExtendedLinkButton ID="ELnkReplace" Text="批量替换" IsChecked="false" OperateCode="NodeContentManage"
                OnClick="ELnkReplaceManage_Click" runat="server" Visible = "false"  ValidationGroup="topMenu"></pe:ExtendedLinkButton>
            <ajaxToolkit:DropDownExtender runat="server" ID="Adrp" TargetControlID="LblAddContent"
                DropDownControlID="PnlSelectModelMenu" DropArrowImageUrl="../Admin/images/sitelist.gif">
            </ajaxToolkit:DropDownExtender>
        </td>
    </tr>
</table>

<style type="text/css">
    .contextMenuPanel
    {
        border: 1px solid #868686;
        z-index: 1000;
        background: url(    '../../Admin/Images/menu-bg.gif' ) repeat-y 0 0 #FAFAFA;
        cursor: default;
        padding: 1px 1px 0px 1px;
        font-size: 11px;
    }
    a.contextMenuItem
    {
        margin: 1px 0 1px 0;
        display: block;
        color: #003399;
        text-decoration: none;
        cursor: pointer;
        padding: 4px 19px 4px 33px;
    }
    a.contextMenuItem:hover
    {
        background-color: #FFE6A0;
        color: #003399;
        border: 1px solid #D2B47A;
        padding: 3px 18px 3px 32px;
    }
</style>
<asp:Panel ID="PnlSelectModelMenu" runat="server" CssClass="contextMenuPanel" Style="display: none;">
    <asp:Repeater ID="RptModelList" runat="server">
        <ItemTemplate>
            <a href='<%# Convert.ToInt32(Eval("ModelType"))==2 ? "../Shop/" + Convert.ToString(Eval("AddInfoFilePath")) : "../Contents/" + Convert.ToString(Eval("AddInfoFilePath"))%>?Action=add&modelId=<%#Eval("ModelId")%>&NodeID=<%#RequestInt32("NodeID")%>'
                class='contextMenuItem'>
                <%#Eval("ModelName")%>
            </a>
        </ItemTemplate>
    </asp:Repeater>
</asp:Panel>
