<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sorttypelist.aspx.cs" Inherits="FangPage.Admin.sorttypelist" %>

<%@ Register TagPrefix="cc1" Namespace="FangPage.Control" Assembly="FangPage.Control" %>
<!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 id="Head1" runat="server">
    <title>栏目类别列表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="styles/bmsmanager.css" type="text/css" rel="stylesheet">
    <link href="styles/datagrid.css" type="text/css" rel="stylesheet">

    <script type="text/javascript" src="js/common.js"></script>

    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body>
    <form id="form1" runat="server">
    <div class="Navbutton" style="width: 98%;">
        <table cellspacing="1" cellpadding="4" align="left" class="table1">
            <tr>
                <td align="left">
                    <input title="选中/取消选中" onclick="CheckAll(this.form)" type="checkbox" name="chkall"
                        id="chkall" />全选 &nbsp;
                         <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " 
                        ButtonImgUrl="images/dell.gif" onclick="DelRec_Click"></cc1:Button>&nbsp;
                    <button type="button" class="ManagerButton" onclick="javascript:window.location.href='sorttypeadd.aspx?sortid=<%=sortid%>';">
                        <img src="images/add.gif" />
                        新 建
                    </button>
                </td>
            </tr>
        </table>
    </div>
    <cc1:DataGrid ID="DataGrid1" runat="server" AllowPaging="true" PageSize="20">
        <Columns>
            <asp:TemplateColumn HeaderText="选择">
                <ItemTemplate>
                    <input id="id" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>"
                        name="id" />
                    <%# DataGrid1.LoadSelectedCheckBox(DataBinder.Eval(Container, "DataItem.id").ToString())%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="id" HeaderText="id" Visible="false"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="类别ID">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container, "DataItem.id").ToString()%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="typename" HeaderText="类别名称" ReadOnly="true"></asp:BoundColumn>
            <asp:BoundColumn DataField="displayorder" HeaderText="排列顺序" ReadOnly="true"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="应用栏目">
                <ItemTemplate>
                    <%# SortsNameStr(DataBinder.Eval(Container, "DataItem.sortids").ToString())%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="操作">
                <ItemTemplate>
                    <a href="sorttypeedit.aspx?sortid=<%=sortid%>&id=<%# DataBinder.Eval(Container, "DataItem.id").ToString()%>&back=1">
                        编辑</a>
                </ItemTemplate>
            </asp:TemplateColumn>
        </Columns>
    </cc1:DataGrid>
    </form>
</body>
</html>
