<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.CampaignInfoControl"
    CodeBehind="CampaignInfo.ascx.cs" %>
<%@ Register TagPrefix="nopCommerce" TagName="SimpleTextBox" Src="SimpleTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="EmailTextBox" Src="EmailTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ToolTipLabel" Src="ToolTipLabelControl.ascx" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<div runat="server" id="pnlSendCampaign">
    <table class="adminContent">
        <tr>
            <td colspan="2">
                <b>Make sure you've tested the campaign before sending it out to multiple customers.
                    Save your campaign first by clicking "Save" button. </b>
                <br />
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ToolTipImage="~/Administration/Common/ico-help.gif"
                    ID="lblTestEmailTo" Text="Send test email to:" ToolTip="The email address to which you want to send your test email." />
            </td>
            <td class="adminData">
                <nopCommerce:EmailTextBox runat="server" CssClass="adminInput" ID="txtSendTestEmailTo"
                    ValidationGroup="SendTestEmail"></nopCommerce:EmailTextBox>
                &nbsp;&nbsp;<asp:Button ID="btnSendTestEmail" runat="server" Text="Send test Email"
                    CssClass="adminButton" OnClick="btnSendTestEmail_Click" ValidationGroup="SendTestEmail"
                    ToolTip="Send email" />
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ToolTipImage="~/Administration/Common/ico-help.gif"
                    ID="lblAllowedTokensTitle" Text="Allowed message tokens:" ToolTip="This is a list of the message tokens you can use in your campaign emails. You can also add message tokens using the 'Message Tokens' drop down list in the editor below." />
            </td>
            <td class="adminData">
                <asp:Label ID="lblAllowedTokens" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
            </td>
            <td class="adminData">
                <asp:Button ID="btnSendMassEmail" runat="server" Text="Send Mass Email" CssClass="adminButton"
                    OnClick="btnSendMassEmail_Click" ValidationGroup="SendMassEmail" ToolTip="Send mass email" />
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
            </td>
            <td class="adminData" style="color: red">
                <asp:Label ID="lblSendEmailResult" runat="server" EnableViewState="false">
                </asp:Label>
            </td>
        </tr>
    </table>
    <hr />
</div>
<table class="adminContent">
    <tr>
        <td class="adminTitle">
            <nopCommerce:ToolTipLabel runat="server" ToolTipImage="~/Administration/Common/ico-help.gif"
                ID="lblCampaignName" Text="Name:" ToolTip="The name of this campaign." />
        </td>
        <td class="adminData">
            <nopCommerce:SimpleTextBox runat="server" CssClass="adminInput" ID="txtName" ErrorMessage="Campaign name is required">
            </nopCommerce:SimpleTextBox>
        </td>
    </tr>
    <tr>
        <td class="adminTitle">
            <nopCommerce:ToolTipLabel runat="server" ToolTipImage="~/Administration/Common/ico-help.gif"
                ID="lblSubject" Text="Subject:" ToolTip="The subject of your campaign email." />
        </td>
        <td class="adminData">
            <nopCommerce:SimpleTextBox runat="server" CssClass="adminInput" ID="txtSubject" ErrorMessage="Subject is required">
            </nopCommerce:SimpleTextBox>
        </td>
    </tr>
    <tr>
        <td class="adminTitle">
            <nopCommerce:ToolTipLabel runat="server" ToolTipImage="~/Administration/Common/ico-help.gif"
                ID="lblBody" Text="Body:" ToolTip="The body of your campaign email." />
        </td>
        <td class="adminData">
            <FCKeditorV2:FCKeditor ID="txtBody" runat="server" AutoDetectLanguage="false" Height="350"
                ToolbarSet="NopCustom">
            </FCKeditorV2:FCKeditor>
        </td>
    </tr>
    <tr runat="server" id="pnlCreatedOn">
        <td class="adminTitle">
            <nopCommerce:ToolTipLabel runat="server" ID="lblCreatedOnTitle" Text="Created on:"
                ToolTip="The date/time the campaign was created." ToolTipImage="~/Administration/Common/ico-help.gif" />
        </td>
        <td class="adminData">
            <asp:Label ID="lblCreatedOn" runat="server"></asp:Label>
        </td>
    </tr>
</table>
