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

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!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="css/Style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
       .anpager .cpb {background:#ffede1 none repeat scroll 0 0;border:1px solid #fd6d01;color:#fd6d01;margin:5px 4px 0 0;padding:4px 5px 0;}
       .anpager a {background:#FFFFFF none repeat scroll 0 0;border:1px solid #0099CC;color:#3871c6;margin:5px 4px 0 0;padding:4px 5px 0;text-decoration:none;}
       .anpager a:hover{background:#FFFFFF none repeat scroll 0 0;border:1px solid #fd6d01;color:#Fd6d01;}
       .gv{margin-bottom:5px;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
       <div style="padding-left:240px; font-size:15px;">分类管理</div>
        <table style="width: 600px; height: 300px">
            <tr>
                <td style="width: 100px; height: 271px;">
                </td>
                <td style="width: 100px; height: 271px;">
        <asp:GridView ID="gvcatalog" runat="server" AutoGenerateColumns="False" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" Width="500px" CssClass="gv" CellPadding="0" OnRowCancelingEdit="gvcatalog_RowCancelingEdit" OnRowDataBound="gvcatalog_RowDataBound1" OnRowEditing="gvcatalog_RowEditing" OnRowUpdating="gvcatalog_RowUpdating" OnRowDeleting="gvcatalog_RowDeleting">
            <Columns>
                <asp:BoundField DataField="n38_catalog_id" HeaderText="编号" ReadOnly="True" >
                    <ItemStyle Width="30px" HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="n38_catalog_name" HeaderText="分类名称" >
                    <ControlStyle Width="220px" />
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:CommandField ButtonType="Image" CancelImageUrl="~/n38_image/no.png" EditImageUrl="~/n38_image/ht_14.gif"
                    HeaderText="编辑" ShowEditButton="True" UpdateImageUrl="~/n38_image/ok.png">
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                </asp:CommandField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:ImageButton ID="ibtndel" runat="server" CommandName="delete" ImageUrl="~/n38_image/ht_16.gif"
                            OnClientClick="return confirm('确定删除分类吗？')" ToolTip="删除分类" />
                    </ItemTemplate>
                    <ItemStyle Width="40px" HorizontalAlign="Center" />
                    <HeaderStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                暂时没有分类
            </EmptyDataTemplate>
        </asp:GridView>
                    <webdiyer:aspnetpager id="anpcatalog" runat="server" firstpagetext="首页" horizontalalign="Left"
                        lastpagetext="尾页" nextpagetext="后页" pagesize="5" prevpagetext="前页" showpageindexbox="Always" AlwaysShowFirstLastPageNumber="True" CssClass="anpager" CurrentPageButtonClass="cpb" NumericButtonCount="5" UrlPageSizeName="[{0}]" UrlPaging="True" Wrap="False" OnPageChanged="anpcatalog_PageChanged"></webdiyer:aspnetpager>
                </td>
                <td style="width: 100px; height: 271px;">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
