<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sorttypemanage.aspx.cs" Inherits="FangPage.Admin.sorttypemanage" %>
<%@ 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="选中/取消选中 本页所有Case" onclick="CheckAll(this.form)" type="checkbox" name="chkall"
                        id="chkall" />全选/取消全选 &nbsp;
                    <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="images/del.gif"
                        OnClick="DelRec_Click"></cc1:Button>&nbsp;
                    <button class="ManagerButton" type="button" onclick="javascript:window.location.href='<%=b_url%>?sortid=<%=sortid%>';">
                        <img src="images/arrow_undo.gif" />返 回</button>
                </td>
            </tr>
        </table>
    </div>
    <cc1:DataGrid ID="themegrid" runat="server" IsFixConlumnControls="true" AllowPaging="false"
        ColumnSpan="4">
        <Columns>
            <asp:TemplateColumn HeaderText="选择">
                <ItemTemplate>
                    <input id="id" onclick="javascript:SH_SelectOne(this)" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.typeid").ToString() %>"
                        name="id" />
                    <%# themegrid.LoadSelectedCheckBox(DataBinder.Eval(Container, "DataItem.typeid").ToString())%>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="typeid" HeaderText="类别ID" ReadOnly="true"></asp:BoundColumn>
            <asp:BoundColumn DataField="typename" HeaderText="类别名称"></asp:BoundColumn>
            <asp:BoundColumn DataField="displayorder" HeaderText="显示顺序"></asp:BoundColumn>
            <asp:BoundColumn DataField="desc" HeaderText="描述"></asp:BoundColumn>
        </Columns>
    </cc1:DataGrid>
    <div class="Navbutton">
        <cc1:Button ID="SaveTheme" runat="server" Text=" 保存修改 " OnClick="SaveTheme_Click">
        </cc1:Button>
    </div>
    <div class="ManagerForm">
        <fieldset>
            <legend style="background: url(images/icons/sorttype.gif) no-repeat 3px; padding-left:40px;">新建分类</legend>
            <table class="datagridStyles" cellspacing="0" cellpadding="3" rules="rows" border="0"
                width="100%" id="smilesgrid">
                <tr>
                    <td height="40" width="20%">
                        分类名称：
                    </td>
                    <td width="30%">
                        <cc1:TextBox ID="typename" runat="server" MaxLength="50" />
                    </td>
                    <td width="20%">
                        显示顺序:
                    </td>
                    <td width="30%">
                        <cc1:TextBox ID="displayorder" runat="server" MaxLength="50" />
                    </td>
                </tr>
                <tr>
                    <td height="40" width="20%">
                        描述:
                    </td>
                    <td colspan="3" width="80%">
                        <cc1:TextBox ID="description" runat="server" MaxLength="50" />
                    </td>
                </tr>
            </table>
        </fieldset>
        <div class="Navbutton">
            <cc1:Button ID="SubmitButton" runat="server" Text=" 提 交 " ValidateForm="false" OnClick="SubmitButton_Click">
            </cc1:Button></div>
    </div>
    </form>
</body>
</html>
