<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EmailPopup.ascx.cs" Inherits="Zap.BI.Portal.Controls.UserControls.ModalPopups.EmailPopup" %>   
<%@ Register Src="~/Controls/UserControls/RichTextEditor/RichTextEditor.ascx" TagName="RichTextEditor"  TagPrefix="zap" %>  

<table class="email-popup" >
    <!-- TODO move these labels to somewhere central -->
    <tr>
        <td>
            <asp:Button ID="From" runat="server" CssClass="button" Width="125px" OnClick="ButtonFrom_Click" Text="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_From %>" />
        </td>
        <td valign="middle" style="width: 481px;">
            <div id="divFrom" class="ui-text" runat="server" style="overflow: hidden;" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_Recipients %>" CssClass="ui-form-label" />
        </td>
        <td>
            <input class="recipients ui-input-box" type="text" />
            <input id="RecipientsHiddenField" class="recipientsStorage" type="hidden" runat="server" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="SubjectLabel" runat="server" Text="<%$ Resources: Controls.UserControls.ResourceControls.PublicationRules.PublicationRuleText, Label_Subject %>" CssClass="ui-form-label" />
        </td>
        <td>
            <asp:TextBox ID="txtSubject" CssClass="email-popup-input ui-input-box" runat="server" /> 
            <asp:RequiredFieldValidator ID="RequiredSubjectValidator" runat="server"
                                        ControlToValidate="txtSubject"
                                        ErrorMessage="<%$ Resources: Controls.UserControls.UserControlText, ErrorMessage_Subject %>"
                                        ForeColor="Red" 
                                        CssClass="ui-form-label">
            </asp:RequiredFieldValidator>
        </td>
    </tr>
     <tr>
        <td>
            <asp:Label ID="AttachmentLabel" runat="server" Text="<%$ Resources: Controls.UserControls.UserControlText, Label_Attachment %>" CssClass="ui-form-label" />            
        </td>
        <td>
            <div class="ui-text">
                <asp:Label ID="AttachmentName" Width="480px" runat="server" />
            </div>
        </td>
    </tr>
    <tr id="AttachmentFormatOptions" runat="server">
        <td>
            <asp:Label ID="FormatLabel" runat="server" Text="<%$ Resources: Controls.UserControls.UserControlText, Label_AttachmentFormat %>" CssClass="ui-form-label" />
        </td>
        <td>            
            <div class="email-popup-input ui-input-box ui-disabled" style="padding:0">
                <asp:DropDownList ID="AttachmentFormat" runat="server" ToolTip="<%$ Resources: Controls.UserControls.UserControlText, Tooltip_AttachmentFormat %>" Style="Width:100%; border:0;" />
            </div>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <zap:RichTextEditor ID="Editor" runat="server" Width="700" Height="325" />
        </td>
    </tr>
    <tr align="right">
        <td colspan="2">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="Send" OnClick="Send_Click" runat="server" CssClass="button" Text="<%$ Resources: Controls.ControlText, Label_Send %>" />
                    </td>
                    <td style="padding-left: 10px;">
                        <asp:Button ID="Cancel" OnClick="Cancel_Click" runat="server" CssClass="button" Text="<%$ Resources: Controls.ControlText, Label_Cancel %>" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>