<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Caselbmag.aspx.cs" Inherits="WTOSYSadmin_Products_BigProductCategory" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head >

    <link href="../../SYSadmin/css/neiye.css" rel="stylesheet" type="text/css" />
    <link href="../../SYSadmin/css/style.css" rel="stylesheet" type="text/css" />


</head>

<body >  

<div class="tright">
	<li><a href="#">添加类别</a></li>

</div>

<form name="form" method="post" action="" runat="server">
        <div  align="center">
            <asp:Label ID="nors" runat="server" ForeColor="Red" Text="暂无记录" Visible="False"></asp:Label><br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound"
            PageSize="15" Width="98%" OnSelectedIndexChanged="GridView1_SelectedIndexChanged1">
            
            <PagerSettings FirstPageText="首页" LastPageText="尾页" Mode="NextPreviousFirstLast"
                NextPageText="下一页" PageButtonCount="15" PreviousPageText="上一页" />
        <Columns>
            <asp:TemplateField HeaderText="选择">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemStyle Width="60px" HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" Width="60px" />
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="id,BigCategory" DataNavigateUrlFormatString="Caselbedit.aspx?id={0}&amp;do=zilei&amp;biglb={1}"
                DataTextField="BigCategory" HeaderText="类别名称">
                <HeaderStyle HorizontalAlign="Center" Width="150px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="Sort" HeaderText="排序" >
                <ItemStyle Width="100px" HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" Width="100px" Wrap="True" />
            </asp:BoundField>
            <asp:HyperLinkField DataNavigateUrlFields="id,BigCategory" DataNavigateUrlFormatString="Caselbedit.aspx?id={0}&amp;do=zilei&amp;biglb={1}"
                HeaderText="查看子类" Text="查看子类">
                <ItemStyle HorizontalAlign="Center" Width="200px" />
                <HeaderStyle Width="200px" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="Caselbedit.aspx?id={0}&amp;do=edit"
                HeaderText="修改" Text="修改">
                <ItemStyle HorizontalAlign="Center" Width="100px" />
                <HeaderStyle HorizontalAlign="Center" Width="100px" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="id,BigCategory" DataNavigateUrlFormatString="Caselbedit.aspx?id={0}&amp;do=addLB&amp;biglb={1}"
                HeaderText="添加子类" Text="添加子类">
                <ItemStyle HorizontalAlign="Center" Width="200px" />
                <HeaderStyle HorizontalAlign="Center" Width="200px" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="Caselbedit.aspx?id={0}&amp;do=Del"
                HeaderText="删除" Text="删除">
                <ItemStyle HorizontalAlign="Center" Width="100px" />
                <HeaderStyle Width="100px" />
            </asp:HyperLinkField>
        </Columns>
        <HeaderStyle CssClass="tright" />
    </asp:GridView>
    <table id="t1" runat="server" border="0" cellpadding="0" cellspacing="0" width="98%" align="center">
        <tr>
            <td align="left" style="height: 21px">
                <asp:CheckBox ID="CheckBox2" runat="server" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged"
                    Text="全选" />
                <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">取消</asp:LinkButton>
                <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LinkButton3_Click">删除</asp:LinkButton>
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
        </tr>
    </table>
    <br />
    <table align="center" cellpadding="0" cellspacing="0" bordercolor="#0066cc" bordercolordark="#009966" width="98%">
        <tr>
            <td colspan="3" rowspan="1" align="center" style="height: 24px">
                类别名称:&nbsp;
                <asp:TextBox ID="LB2" runat="server" Width="191px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="z" runat="server" ControlToValidate="LB2" Display="Dynamic"
                    ErrorMessage="不能为空！"></asp:RequiredFieldValidator>
                &nbsp;&nbsp; 排序:&nbsp;
                <asp:TextBox ID="sort2" runat="server"></asp:TextBox>
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 
                <asp:LinkButton ID="LinkButton2" runat="server" CssClass="btn" OnClick="LinkButton2_Click" >添加</asp:LinkButton></td>
        </tr>
    </table>
    </div>
</form>
</body>


</html>