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

<!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 runat="server">
    <title>无标题页</title>
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body style="text-align: center" background="../pic/bg.jpg">
    <form id="form1" runat="server">
    <div>
        <table style="width: 461px">
            <tr>
                <td colspan="3" style="height: 9px">
                    &nbsp;<asp:GridView ID="LeiGridView" runat="server" AutoGenerateColumns="False"
                        DataKeyNames="ProductID" Height="244px" Width="462px" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None" 
                         OnRowDeleting="LeiGridView_RowDeleting"  OnRowUpdating="LeiGridView_RowUpdating" EnableViewState="False" AllowPaging="True" OnPageIndexChanging="LeiGridView_PageIndexChanging" PageSize="12">
                        <Columns>
                            <asp:TemplateField HeaderText="名称">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtName" runat="server" Width="225px" Text='<%#DataBinder.Eval(Container.DataItem,"Title")%>' MaxLength="100" ></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="序号">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtXuhao" runat="server" Width="35px" Text='<%# Myorder((int)DataBinder.Eval(Container.DataItem,"Showorder"))%>' MaxLength="3"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="管理">
                                <ItemStyle Width="120px" />
                                <ItemTemplate>
                                    &nbsp;<asp:ImageButton ID="updateBtn" runat="server" ImageUrl="~/pics/ic003.gif"
                                        ToolTip="修改" CommandName="update" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ProductID")%>' />
                                    &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<asp:ImageButton ID="delBtn" runat="server" CommandName="delete" ImageUrl="~/pics/del.gif"
                                        ToolTip="删除" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ProductID")%>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="DodgerBlue" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    
    </div>
        <table style="width: 467px; height: 72px; background-color: gainsboro;" border="1" class="9">
            <tr>
                <td colspan="3" style="font-weight: bold; font-size: 10pt; color: cornflowerblue; background-color: dodgerblue; text-align: center" class="9">
                    <strong><span style="color: white">添加产品类别</span></strong></td>
            </tr>
            <tr>
                <td style="width: 283px; height: 34px; background-color: gainsboro; text-align: center;">
                    <asp:TextBox ID="txtAddlei" runat="server" Width="233px" MaxLength="100" CssClass="txtbox1" ToolTip="类别名称"></asp:TextBox></td>
                <td style="width: 3px; height: 34px; background-color: gainsboro">
                    <asp:TextBox ID="txtAddxuhao" runat="server" Width="48px" MaxLength="100" CssClass="txtbox1" ToolTip="只能(1-9)序号"></asp:TextBox></td>
                <td style="width: 4px; height: 34px; background-color: gainsboro;">
                    <asp:Button ID="Button1" runat="server" Text="确定添加" OnClick="Button1_Click" /></td>
            </tr>
        </table>
        <br />
        <br />
        <br />
    </form>
</body>
</html>
