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

<%@ 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>
    
    <script language="javascript">
    <!--
        function ConfirmDel()
        {
        if (confirm("您确定要删除此栏目吗？删除后将无法恢复。"))
	        return true;
        else
	        return false;
        }
    //-->
    </script>

    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <cc1:DataGrid ID="DataGrid1" runat="server" IsFixConlumnControls="true" AllowPaging="false"
            ItemDataBound="" OnItemDataBound="DataGrid_ItemDataBound">
            <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="sortname" HeaderText="栏目名称" ReadOnly="true"></asp:BoundColumn>
                <asp:BoundColumn DataField="displayorder" HeaderText="显示顺序"></asp:BoundColumn>
                <asp:BoundColumn DataField="subsortcount" HeaderText="子栏目数" ReadOnly="true"></asp:BoundColumn>
                <asp:BoundColumn DataField="postdatetime" HeaderText="创建时间" ReadOnly="true"></asp:BoundColumn>
                <asp:BoundColumn DataField="updatetime" HeaderText="修改时间" ReadOnly="true"></asp:BoundColumn>
                <asp:TemplateColumn HeaderText="推荐">
                    <ItemTemplate>
                        <%# SystemStr(DataBinder.Eval(Container, "DataItem.decomposition").ToString())%>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="系统">
                    <ItemTemplate>
                        <%# SystemStr(DataBinder.Eval(Container, "DataItem.system").ToString())%>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="只读">
                    <ItemTemplate>
                        <%# SystemStr(DataBinder.Eval(Container, "DataItem.readonly").ToString())%>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="隐藏">
                    <ItemTemplate>
                        <%# SystemStr(DataBinder.Eval(Container, "DataItem.hidden").ToString())%>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="水印">
                    <ItemTemplate>
                        <%# SystemStr(DataBinder.Eval(Container, "DataItem.disablewatermark").ToString())%>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="操作">
                <ItemTemplate>
                    <a href="sortedit.aspx?id=<%# DataBinder.Eval(Container, "DataItem.id").ToString()%>&back=1">
                        编辑</a>&nbsp;<a href="sorttypemanage.aspx?sortid=<%# DataBinder.Eval(Container, "DataItem.id").ToString()%>&url=sortlist.aspx">
                            分类</a>&nbsp;<a href="instrmanage.aspx?sortid=<%# DataBinder.Eval(Container, "DataItem.id").ToString()%>&back=1">
                            内容</a>&nbsp;<a onClick="return ConfirmDel();" href="sortlist.aspx?action=delect&id=<%# DataBinder.Eval(Container, "DataItem.id").ToString()%>">
                            删除</a>
                </ItemTemplate>
            </asp:TemplateColumn>
            </Columns>
        </cc1:DataGrid>
        <div class="Navbutton">
            <cc1:Button ID="SaveTheme" runat="server" Text=" 保存修改 " OnClick="SaveTheme_Click">
            </cc1:Button>
        </div>
    </div>
    </form>
</body>
</html>
