<%@ page language="C#" autoeventwireup="true" inherits="Admin_UserDefinedColumn_List, ShopNum1Deploy" %>

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="ShopNum1" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="uc1" %>

<!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>Untitled Page</title>
     <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
    <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;">
    <form id="form1" runat="server">
    
        <div class="navigator">【 自定义栏目 】</div>
    
        <cc1:Num1GridView ID="Num1GridViewShow" runat="server" Width="100%" 
            AddSequenceColumn="False" AllowMultiColumnSorting="False" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" BorderColor="#CCDDEF" 
            BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？" 
            Edit="False" FixHeader="False" GridViewSortDirection="Ascending" 
            PagingStyle="None" style="margin-left: 2px;" TableName="" 
            DataSourceID="ObjectDataSourceData">
                     <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" 
                                    type="checkbox" />
                            </HeaderTemplate>
                            
                            <ItemTemplate>
                                <input id="checkboxItem" type="checkbox" value='<%# Eval("Guid") %>' />
                            </ItemTemplate>
                            
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                            
                        </asp:TemplateField>
                        <asp:BoundField DataField="Guid" HeaderText="GUID" Visible="False" 
                             SortExpression="Guid" />
                        <asp:BoundField DataField="Name" HeaderText="栏目名称" SortExpression="Name" >
                            <ItemStyle HorizontalAlign="Center" />
                         </asp:BoundField>
                        <asp:BoundField DataField="LinkAddress" HeaderText="链接地址" 
                            SortExpression="LinkAddress" >
                         </asp:BoundField>
                         <asp:TemplateField HeaderText="是否前台显示" SortExpression="IfShow">
                            
                             <ItemTemplate>
                                 <asp:Label ID="Label1" runat="server" Text='<%# ChangeIfShow(DataBinder.Eval(Container, "DataItem(IfShow)","{0}")) %>'></asp:Label>
                             </ItemTemplate>
                             <ItemStyle HorizontalAlign="Center" />
                         </asp:TemplateField>
                        <asp:BoundField DataField="ShowLocation" HeaderText="显示位置" 
                             SortExpression="ShowLocation" >
                            <ItemStyle HorizontalAlign="Center" />
                         </asp:BoundField>
                         <asp:TemplateField HeaderText="是否在新窗口打开" SortExpression="IfOpen">
                            
                             <ItemTemplate>
                                 <asp:Label ID="Label2" runat="server" Text='<%# ChangeIfOpen(DataBinder.Eval(Container, "DataItem(IfOpen)","{0}")) %>'></asp:Label>
                             </ItemTemplate>
                             <ItemStyle HorizontalAlign="Center" />
                         </asp:TemplateField>
                         <asp:BoundField DataField="OrderID" HeaderText="排序" SortExpression="OrderID" >
                             <ItemStyle HorizontalAlign="Center" />
                         </asp:BoundField>
                    </Columns>
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF"></HeaderStyle>

<PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
        </cc1:Num1GridView>
            <div class="vote">
            <asp:Button ID="ButtonAdd" runat="server" CausesValidation="False" Text="添加" 
                onclick="ButtonAdd_Click" CssClass="bt2"/>
            <asp:Button ID="ButtonEdit" runat="server" CausesValidation="False" Text="编辑" 
                onclientclick="return EditButton()" onclick="ButtonEdit_Click" CssClass="bt2"/>
            <asp:Button ID="ButtonDelete" runat="server" CausesValidation="False" 
                Text="删除" onclientclick="return DeleteButton()" 
                onclick="ButtonDelete_Click" CssClass="bt2"/>

<uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
</div>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />

    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
        SelectMethod="GetUserDefinedColumnInfo" 
        TypeName="ShopNum1.BusinessLogic.ShopNum1_UserDefinedColumn_Action" 
        OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:Parameter DefaultValue="0" Name="isDeleted" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>

    </form>
</body>
</html>
