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

<%@ Import Namespace="D.BLL" %>
<!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/<%=B_Lang.getLang() %>/SelectCheckBox.js" type="text/javascript"></script>

    <script>
        function ShowDiv(ItemId) {
            var Lay = eval("Href" + ItemId);
            DianCMS_$(Lay.id).style.display = "";
        }
        function HiddenDiv(ItemId) {
            var Lay = eval("Href" + ItemId);
            DianCMS_$(Lay.id).style.display = "none";
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="ColumnList.aspx">栏目列表</a><asp:Literal
                    ID="LitColumn" runat="server"></asp:Literal>
            </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="10%" class="t1">
                        选择
                    </td>
                    <td width="10%">
                        ID
                    </td>
                    <td width="20%">
                        栏目名称
                    </td>
                    <td width="20%">
                        英文名称
                    </td>
                    <td width="40%">
                        操作
                    </td>
                </tr>
                <asp:Repeater ID="RepColumn" runat="server" 
                    OnItemCommand="RepColumn_ItemCommand" onitemdatabound="RepColumn_ItemDataBound">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                            <td class="t1">
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </td>
                            <td>
                                <asp:Literal ID="LitColId" runat="server" Text='<%#Eval("ColId") %>'></asp:Literal>
                            </td>
                            <td>
                                <a href='ColumnList.aspx?ParentId=<%#Eval("ColId") %>'>
                                    <%#Eval("CnName") %></a>
                            </td>
                            <td>
                                <%#Eval("EnName") %>
                            </td>
                            <td>
                                <a href='SetColumn.aspx?ColId=<%#Eval("ColId") %>&ParentId=<%#Eval("ParentId") %>'>修改</a>
                                ┊
                                <asp:LinkButton ID="lnkDelete" runat="server" Text="删除" CommandName="delete" CommandArgument='<%#Eval("ColId") %>'
                                    OnClientClick="return confirm('您确定要删除该栏目及其下级子栏目吗?')"></asp:LinkButton>
                                ┊ <a href='SetColumn.aspx?ParentId=<%#Eval("ColId") %>'>添加子栏目</a> ┊ <a href='BatchColumn.aspx?ParentId=<%#Eval("ColId") %>'>批量添加</a> ┊ 
                                <asp:HyperLink ID="HyperLink1" runat="server">扩展字段</asp:HyperLink> ┊ <asp:LinkButton ID="LinkButton1" runat="server" Text="生成" CommandName="create" CommandArgument='<%#Eval("ColId") %>'></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <table cellpadding="0" cellspacing="1" class="dh2" align="center">
                <tr>
                    <td height="30">
                        <input id="checkDel" onclick="CheckDelBox(this)" type="checkbox"><span id="ShowA">选择全部</span><asp:Button
                            ID="Button2" runat="server" Text="移动到回收站" CssClass="btn" Style="margin-left: 10px"
                            OnClick="Button2_Click" />
                        <asp:Button ID="Button1" runat="server" Text="删除选中记录" CssClass="btn" onmousedown="if(confirm('您确认删除选中记录？'))document.form1.Button1.click(); else return false;"
                            OnClick="Button1_Click" Style="margin-left: 10px"></asp:Button>
                        <asp:Button ID="Button3" runat="server" Text="生成选中扩展栏目" 
                            Style="margin-left: 10px" CssClass="btn" onclick="Button3_Click" Visible="false" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
