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

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

    <title>无标题页</title>
      <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 id="Form1" name="form" method="post" action="" runat="server">
    <br />
        <div align=center>
          <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="30px" HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="id,SmallAttribute" DataNavigateUrlFormatString="ProductAttributeSmallEdit.aspx?id={0}&amp;do=zilei&amp;SmallAttribute={1}"
                DataTextField="SmallAttribute" HeaderText="类别名称">
                <HeaderStyle HorizontalAlign="Center" Width="150px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="BigAttributeName" HeaderText="所属类别" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="类型">
                <ItemTemplate>
                    <asp:Label ID="lb" runat="server" Font-Bold="False" ForeColor="Red" Text="Label"></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:BoundField DataField="Sort" HeaderText="排序" >
                <ItemStyle Width="100px" HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:HyperLinkField DataNavigateUrlFields="id,SmallAttribute" DataNavigateUrlFormatString="ProductAttributeSmallEdit.aspx?id={0}&amp;do=zilei&amp;SmallAttribute={1}"
                HeaderText="查看值" Text="查看值" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="ProductAttributeSmallEdit.aspx?id={0}&amp;do=addlb"
                HeaderText="添加值" Text="添加值" >
                <ItemStyle HorizontalAlign="Center" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="id,SmallAttribute,BigAttributeId,BigAttributeName,AttributeFL,Sort" DataNavigateUrlFormatString="ProductAttributeSmallEdit.aspx?id={0}&amp;do=edit&amp;SmallAttribute={1}&amp;BigAttributeId={2}&amp;BigAttributeName={3}&amp;AttributeFL={4}&amp;Sort={5}"
                HeaderText="修改" Text="修改">
                <ItemStyle HorizontalAlign="Center" Width="50px" />
                <HeaderStyle HorizontalAlign="Center" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="id,SmallAttribute" DataNavigateUrlFormatString="ProductAttributeSmallEdit.aspx?id={0}&amp;do=Del&amp;SmallAttribute={1}"
                HeaderText="删除" Text="删除">
                <ItemStyle HorizontalAlign="Center" Width="50px" />
            </asp:HyperLinkField>
        </Columns>
        <HeaderStyle CssClass="tright" />
    </asp:GridView><div align=center>
        <table id="t1" runat="server" border="0" cellpadding="0" cellspacing="0" width="98%">
            <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 />
     <asp:Label ID="mslable" runat="server" BackColor="Transparent" Font-Bold="True" ForeColor="Red"
        Text="暂无记录!!" Width="366px" Visible="False"></asp:Label>&nbsp;</div>
        <table align="center" 
            cellpadding="0" cellspacing="0" style="width: 95%">
            <tr>
                <td align="center" colspan="3" rowspan="1">
                    属性配件所属大类: &nbsp;&nbsp;<asp:DropDownList ID="ddllb" runat="server">
                    </asp:DropDownList>
                    &nbsp; 名称:&nbsp;
                    <asp:TextBox ID="LBName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="LBName"
                        Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>类别:&nbsp;
                    <asp:DropDownList ID="ddlsmfl" runat="server">
                        <asp:ListItem Value="1">[--属性--]</asp:ListItem>
                        <asp:ListItem Value="2">[--配件--]</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp; 排序: &nbsp;<asp:TextBox ID="Sort" runat="server" Width="47px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Sort"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                    &nbsp;
                    <asp:LinkButton ID="LinkButton2" runat="server" CssClass="btn" OnClick="LinkButton2_Click">添加</asp:LinkButton></td>
            </tr>
        </table>

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