<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.ManufacturersControl"
    CodeBehind="Manufacturers.ascx.cs" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-catalog.png" alt="Product Manufacturers" />
        Manage Manufacturers
    </div>
    <div class="options">
        <input type="button" onclick="location.href='ManufacturerAdd.aspx'" value="Add new"
            id="btnAddNew" class="adminButtonBlue" title="Add a new manufacturer" />
        <asp:Button runat="server" Text="Export to XML" CssClass="adminButtonBlue" ID="btnExportXML"
            OnClick="btnExportXML_Click" ValidationGroup="ExportXML" ToolTip="Export manufacturer list to a xml file" />
    </div>
</div>
<table class="adminContent">
    <asp:GridView ID="gvManufacturers" runat="server" AutoGenerateColumns="False" Width="100%">
        <Columns>
            <asp:BoundField DataField="ManufacturerID" HeaderText="Manufacturer ID" Visible="False">
            </asp:BoundField>
            <asp:TemplateField HeaderText="Name" ItemStyle-Width="60%">
                <ItemTemplate>
                    <a href="ManufacturerDetails.aspx?ManufacturerID=<%#Eval("ManufacturerID")%>" title="Edit manufacturer">
                        <%#Server.HtmlEncode(Eval("Name").ToString())%>
                    </a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%"
                ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="ManufacturerDetails.aspx?ManufacturerID=<%#Eval("ManufacturerID")%>" title="Edit manufacturer">
                        Edit </a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Published" HeaderText="Published" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
        </Columns>
    </asp:GridView>
