<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.CampaignsControl"
    CodeBehind="Campaigns.ascx.cs" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-promotions.png" alt="Campaigns" />
        Manage Campaigns
    </div>
    <div class="options">
        <input type="button" onclick="location.href='CampaignAdd.aspx'" value="Add new" id="btnAddNew"
            class="adminButtonBlue" title="Add a new sales campaign" />
    </div>
</div>
<asp:GridView ID="gvCampaigns" runat="server" AutoGenerateColumns="False" Width="100%">
    <Columns>
        <asp:BoundField DataField="CampaignID" HeaderText="CampaignID" Visible="False"></asp:BoundField>
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="50%">
            <ItemTemplate>
                <a href="CampaignDetails.aspx?CampaignID=<%#Eval("CampaignID")%>" title="Edit campaign">
                    <%#Eval("Name")%>
                </a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Created on" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <%#DateTimeHelper.ConvertToUserTime((DateTime)Eval("CreatedOn")).ToString()%>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="40%"
            ItemStyle-HorizontalAlign="Center">
            <ItemTemplate>
                <a href="CampaignDetails.aspx?CampaignID=<%#Eval("CampaignID")%>" title="Edit campaign">
                    Edit</a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
