<%@ page language="C#" autoeventwireup="true" inherits="admin_label_labellist, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="D.Common" %>
<!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">
<head runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script src="../../js/Common.js" type="text/javascript"></script>
    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>
    <script type="text/javascript">
        function selectLabelclass(id) {
            window.location.href = "LabelList.aspx?ParentId=" + id + "";
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
            <tr>
                <td>
                    <table width="100%">
                        <tr>
                            <td>
                                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                                您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="labellist.aspx">标签列表</a><asp:Literal ID="LitStyleClass" runat="server"></asp:Literal><span style="margin-left: 30px;"><img src="../images/jt1.gif" align="absmiddle" />
                                    <a href="ExportLabel.aspx">导出标签</a>
                                    <img src="../images/jt1.gif" align="absmiddle" />
                                    <a href="ImportLabel.aspx">导入标签</a></span></td>
                            <td align="right">
                                <asp:DropDownList
                                    ID="dropLabelClass" runat="server" onchange="selectLabelclass(this.value)">
                                    <asp:ListItem Value="0">快速进入标签列表</asp:ListItem>
                                </asp:DropDownList></td>
                        </tr>
                    </table>

                </td>
            </tr>
        </table>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
                    <tr class="title">
                        <td width="100" class="t1">标签编号
                        </td>
                        <td>标签名称
                        </td>
                        <td>操作
                        </td>
                    </tr>
                    <asp:Repeater ID="RepLabelClass" runat="server" OnItemCommand="RepLabelClass_ItemCommand">
                        <ItemTemplate>
                            <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                                <td align="center" class="t1">
                                    <img src="../images/folder.gif" />
                                </td>
                                <td align="center">
                                    <a href='LabelList.aspx?ParentId=<%#Eval("Id") %>'><%#Eval("Name") %></a>
                                </td>
                                <td align="center">
                                    <a href='Labelclass.aspx?Id=<%#Eval("Id") %>'>修改</a> ┊
                                    <asp:LinkButton ID="lnkDelete" runat="server" Text="移除" CommandName="delete" CommandArgument='<%#Eval("Id") %>' OnClientClick="return confirm('确定移除该条记录吗?')"></asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:Repeater ID="RepLabel" runat="server" OnItemCommand="RepLabel_ItemCommand"
                        OnItemDataBound="RepLabel_ItemDataBound">
                        <ItemTemplate>
                            <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                                <td align="center" class="t1">
                                    <%#Eval("LabelId") %>
                                </td>
                                <td align="center">
                                    <%#Eval("Name") %>
                                </td>
                                <td align="center">
                                    <a href='SetLabel.aspx?LabelId=<%#Eval("LabelId") %>'>修改</a> ┊
                                    <asp:LinkButton ID="lnkDelete" runat="server" Text="移除" CommandName="delete" CommandArgument='<%#Eval("LabelId") %>' OnClientClick="return confirm('确定移除该条记录吗?')"></asp:LinkButton><%# GetStyleList(Eval("Html","{0}")) %> ┊ <a href="javascript:" onclick="WinOpenLhgDialog('查看标签效果','../label/BrowseLabel.aspx?Id=<%#Eval("LabelId") %>&TypeId=1',600,500,'')">查看效果</a> ┊ <a href="javascript:" onclick="WinOpenLhgDialog('复制标签','../label/CopyLabel.aspx?Id=<%#Eval("LabelId") %>',500,220,'')">复制标签</a> ┊
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("LabelId","SetLabelToFile.aspx?LabelId={0}") %>'>生成文件</asp:HyperLink>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
                <table cellpadding="0" cellspacing="1" class="dh2" align="center">
                    <tr>
                        <td><span class="seaSpan">按标签名称查找：</span><asp:TextBox ID="txtLabelName" runat="server" CssClass="in1 float"></asp:TextBox><asp:Button
                            ID="Button1" runat="server" Text="立即查找" CssClass="btn seaBtn"
                            OnClick="Button1_Click" /></td>
                    </tr>
                </table>
                <table cellpadding="0" cellspacing="1" class="dh2" align="center">
                    <tr>
                        <td>
                            <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页"
                                LastPageText="尾页" NextPageText="下一页" PageSize="20" HorizontalAlign="Right" PrevPageText="上一页"
                                showinputbox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left"
                                Width="99%">
                            </webdiyer:AspNetPager>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
