<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_System_Notification, MachSol.MachPanel.Web" %>

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Assembly="obout_Editor" Namespace="OboutInc.Editor" TagPrefix="obout" %>

<%@ Register TagPrefix="cc1" Namespace="System.Web.UI" Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
<%@ Register Src="CC/EmailCategories.ascx" TagName="EmailCategories" TagPrefix="EM" %>
<%@ Register Src="CC/EmailSubscriptions.ascx" TagName="EmailSubscriptions" TagPrefix="EM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <script type="text/javascript">
        function EditorOnLoad(editor) {
            if (HTMLEditor.is_ie) {
                // If '_editorEvent' is not redefined yet - do it
                if (typeof editor.___editorEvent__ != "function") {
                    editor.___editorEvent__ = editor._editorEvent;
                    editor._editorEvent = function (ev) {
                        var editor = this;
                        setTimeout(function () {
                            editor.savedRange = editor._doc.selection.createRange();
                        }, 0);
                        // call the saved '_editorEvent' method
                        return this.___editorEvent__(ev);
                    }
                }
                // If 'insertHTML' is not redefined yet - do it
                if (typeof editor.__insertHTML__ != "function") {
                    editor.__insertHTML__ = editor.insertHTML;
                    editor.insertHTML = function (html, range) {
                        if (this.savedRange != null && typeof this.savedRange != "undefined") {
                            this.savedRange.select();
                        }
                        var editor = this;
                        setTimeout(function () {
                            editor.savedRange = editor._doc.selection.createRange();
                        }, 0);
                        // call the saved 'insertHTML' method
                        return this.__insertHTML__(html, range);
                    };
                }
            }
        }

    </script>

    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <em:tabcontainer id="TC_Settings" runat="server" onclientactivetabchanged="loadTabPanel">
                    <em:tabpanel id="Tab_Notifications" runat="server" headertext='<%$ Resources:Content, String1017 %>'>
                        <contenttemplate>
                            <%-- <ajax:UpdatePanel ID="UP_Notification" runat="server" RenderMode="Inline" UpdateMode="Conditional">
                                <ContentTemplate>--%>
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server" DefaultButton="Btn_Save">
                                <asp:Panel ID="Pnl_Listing" runat="server">
                                    <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3><%= Resources.Content.GN00001320%>  </h3>
                                                </div>
                                                <div class="body">
                                                    <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_AddNotification" runat="server"
                                                        Text="<%$ Resources:Content,String1011%>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <asp:GridView CssClass="table table-bordered table-striped table-hover table-responsive" ID="GV_Notification" AllowSorting="true" AllowPaging="true"
                                        runat="server" AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content, GN00001375 %>" DataKeyNames="NotificationTitle">

                                        <Columns>
                                            <asp:TemplateField HeaderText='<%$ Resources:Content,String385 %>' ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="col-xs-1" HeaderStyle-HorizontalAlign="Center">
                                                <ItemTemplate>
                                                    <asp:Label ID="lbl_NStatus" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText='<%$ Resources:Content,GN00003000 %>' HeaderStyle-CssClass="col-xs-1">
                                                <ItemTemplate>
                                                    <asp:Literal ID="Ltrl_NotificationLocale" runat="server"></asp:Literal>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000280 %>' HeaderStyle-CssClass="col-xs-2">
                                                <ItemTemplate>
                                                    <%#DataBinder.Eval(Container, "DataItem.NotificationTitle")%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField SortExpression="StartDate" HeaderText='<%$ Resources:Content,GN00001547 %>' HeaderStyle-CssClass="col-xs-2">
                                                <ItemTemplate>
                                                    <asp:Label ID="lbl_StartDate" runat="server"></asp:Label>
                                                    <%--<%#DataBinder.Eval(Container, "DataItem.StartDate")%>--%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText='<%$ Resources:Content,DGN1119986 %>' HeaderStyle-CssClass="col-xs-2">
                                                <ItemTemplate>
                                                    <asp:Label ID="lbl_EndDate" runat="server"></asp:Label>
                                                    <%--<%#DataBinder.Eval(Container, "DataItem.EndDate")%>--%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText='<%$ Resources:Content,GN0001223 %>' HeaderStyle-CssClass="col-xs-2">
                                                <ItemTemplate>
                                                    <%#DataBinder.Eval(Container, "DataItem.NotificationLocation")%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-2">
                                                <ItemTemplate>
                                                    <asp:LinkButton CssClass="btn btn-primary" ID="Lb_Edit" Text="<%$ Resources:Content,GN0000276%>" SkinID="linkButtonEdit"
                                                        CommandArgument='<%#DataBinder.Eval(Container, "DataItem.ID")%>' runat="server"
                                                        CommandName="EditNotification" />
                                                    <asp:LinkButton CssClass="btn btn-primary btnAction" ID="Lb_Delete" Text="<%$ Resources:Content,GN0000377%>" SkinID="linkButtonDelete"
                                                        CommandArgument='<%#DataBinder.Eval(Container, "DataItem.ID")%>' runat="server"
                                                        CommandName="DeleteNotification" />
                                                    <em:confirmbuttonextender id="CBE_Remove" runat="server" confirmtext="<%$Resources:Content,CBE001%>"
                                                        targetcontrolid="Lb_Delete">
                                                    </em:confirmbuttonextender>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <%--PagerTemplate Start--%>
                                        <PagerTemplate>
                                            <em:pager id="Pager1" runat="server" />
                                        </PagerTemplate>
                                        <%--PagerTemplate End--%>
                                    </asp:GridView>
                                </asp:Panel>
                                <%--AddEdit Panel--%>
                                <asp:Panel ID="Pnl_AddEdit" runat="server" Visible="false">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header" runat="server" id="Tr_Add">
                                                    <h3><%= Resources.Content.String1011%>  </h3>
                                                </div>
                                                <div class="header" runat="server" id="Tr_Edit" visible="false">
                                                    <h3><%= Resources.Content.GN0000276%>  </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            <asp:Literal ID="Ltrl_SelectLanguage" runat="server" Text="<%$Resources:Content,FAM0024 %>"></asp:Literal>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">

                                                            <asp:DropDownList ID="DDL_Locale" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *
                            <asp:Literal ID="Literal4" Text="<%$ Resources:Content,GN0000280%>" runat="server" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="Txbx_Title" runat="server" MaxLength="100"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Txbx_Title"
                                                                        Display="None" SetFocusOnError="True" ValidationGroup="AddNotification"></asp:RequiredFieldValidator>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *
                            <asp:Literal ID="Literal8" Text="<%$ Resources:Content,DGN1110169%>" runat="server" />
                                                            <asp:Label ID="characters4000" runat="server" Text="<%$ Resources:Content,Characters4000%>" />
                                                        </div>
                                                        <div class="col-sm-9 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:TextBox ID="Txbx_Description" runat="server" Rows="4"
                                                                    TextMode="MultiLine"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Txbx_Description"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="AddNotification"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *<asp:Literal ID="Literal2" Text="<%$ Resources:Content,GN00001547%>" runat="server" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group display-date-input">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_StartDate" runat="server" Enabled="true"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <i runat="server" id="A_DRangeAfter" class="material-icons icon-calendar col-calendar"></i>
                                                            <em:calendarextender id="CE_DRangeAfter" runat="server" targetcontrolid="TxBx_StartDate"
                                                                format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                                popupbuttonid="A_DRangeAfter" cssclass="date__calendar">
                                                            </em:calendarextender>
                                                            <%--<asp:CompareValidator ID="CV_TxBx_StartDate" runat="server" ErrorMessage="<%$ Resources:Content,String493 %>"
                                                        ValidationGroup="AddNotification" Display="None" ForeColor="Red" ControlToValidate="TxBx_StartDate"
                                                        Operator="GreaterThanEqual" Type="Date"></asp:CompareValidator>--%>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *<asp:Literal ID="Literal9" Text="<%$ Resources:Content,DGN1119986%>" runat="server" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group display-date-input">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_EndDate" runat="server" Enabled="true"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <i runat="server" id="A_DRangeBefore" class="material-icons icon-calendar col-calendar"></i>
                                                            <em:calendarextender id="CE_DRangeBefore" runat="server" targetcontrolid="TxBx_EndDate"
                                                                format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                                popupbuttonid="A_DRangeBefore" cssclass="date__calendar">
                                                            </em:calendarextender>
                                                            <asp:CompareValidator ID="CV_Date" runat="server" Display="None" ErrorMessage="<%$ Resources:Content,String494%>"
                                                                Operator="GreaterThanEqual" Type="Date" ValidationGroup="AddNotification" ControlToValidate="TxBx_EndDate"
                                                                ControlToCompare="TxBx_StartDate"></asp:CompareValidator>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *
                            <asp:Literal ID="Literal6" Text="<%$ Resources:Content,String1014%>" runat="server" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="DDL_DisplayArea" runat="server">
                                                                    <asp:ListItem Text="<%$ Resources:Content,GN0001248%>" Value="Login"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content,SSM1000019%>" Value="DashBoard"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content,L0095%>" Value="Both"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row" id="TR_VisibleTo" runat="server">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *
                                                            <asp:Literal ID="Literal5" Text="<%$ Resources:Content,String1013%>" runat="server" />
                                                            :
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="DDL_VisibleTo" runat="server" AutoPostBack="true">
                                                                    <asp:ListItem Text="<%$ Resources:Content,String252%>" Value="Reseller"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content,GN0000850%>" Value="Customer"></asp:ListItem>
                                                                    <asp:ListItem Text="<%$ Resources:Content,L0095%>" Value="Both"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-5 col-xs-12">
                                                            <label>
                                                                <asp:Label ID="Lbl_EditWarning" runat="server" Text="<%$ Resources:Content,String579 %>" Visible="false" /></label>
                                                        </div>
                                                    </div>
                                                    <div class="row" id="TR_CBCustomers" runat="server" visible="false">
                                                        <div class="col-sm-3 col-xs-12 row-label">

                                                            <asp:Literal ID="Literal10" Text="<%$ Resources:Content,String495%>" runat="server" />
                                                            :
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:CheckBox CssClass="option-menu" Text=" " ID="CB_DispToAll" runat="server" Checked="true" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row" id="TR_Customers" runat="server" style="display: none;">
                                                        <div class="col-xs-12 row-label">
                                                            <asp:Literal ID="Literal11" Text="<%$ Resources:Content,SM200002%>" runat="server"></asp:Literal>
                                                            :
                                                        </div>
                                                        <div class="col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <em:addselectableselected id="UCCustomers" runat="server" sortbyvalue="false" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row" id="TR_CBResellers" runat="server" visible="false">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal13" Text="<%$ Resources:Content,String496%>" runat="server" />
                                                            :
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:CheckBox Text=" " ID="CB_DispToAllRes" runat="server" Checked="true" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row" id="TR_Resellers" runat="server" style="display: none;">
                                                        <div class="col-xs-12 row-label">

                                                            <asp:Literal ID="Literal12" Text="<%$ Resources:Content,String243%>" runat="server" />
                                                            :
                                                        </div>
                                                        <div class="col-xs-12">
                                                            <div class="form-group">
                                                                <em:addselectableselected id="UCResellers" runat="server" sortbyvalue="false" />
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="<%$ Resources:Content,EM000001%>"
                                                                ShowMessageBox="True" ShowSummary="False" ValidationGroup="AddNotification" />

                                                            <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_Save" SkinID="saveButton" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                                                ValidationGroup="AddNotification" />
                                                            <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_SaveEdit" SkinID="saveButton" runat="server" Text="<%$ Resources:Content,GN0000281%>" ValidationGroup="AddNotification"
                                                                Visible="false" />
                                                            <asp:Button CssClass="btn btn-primary" ID="Btn_Cancel" CausesValidation="false" SkinID="cancelButton" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                </asp:Panel>
                                <em:calendarextender id="CE_EndDate" runat="server" targetcontrolid="TxBx_EndDate"
                                    format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                    popupbuttonid="img_EndDate" cssclass="date__calendar">
                                </em:calendarextender>
                                <em:calendarextender id="CE_StartDate" runat="server" targetcontrolid="TxBx_StartDate"
                                    format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                    popupbuttonid="img_StartDate" cssclass="date__calendar">
                                </em:calendarextender>
                            </asp:Panel>
                            <%-- </ContentTemplate>
                            </ajax:UpdatePanel>--%>
                        </contenttemplate>
                    </em:tabpanel>
                    <em:tabpanel id="Tab_EmailNotifications" runat="server" headertext='<%$ Resources:Content, EmailNotifications%>'>
                        <contenttemplate>
                            <asp:Button CssClass="btn btn-primary" ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="products-step">
                                            <span id="div_EmailCategories" runat="server" nowrap="true" class="label label-success">
                                                <asp:LinkButton ID="lb_EmailCategories" runat="server" Text='<%$ Resources:Content, EmailCategories %>' />
                                            </span>
                                            <span id="div_EmailSubscriptions" runat="server" nowrap="true" class="label label-default">
                                                <asp:LinkButton ID="lb_EmailSubscriptions" runat="server" Text='<%$ Resources:Content, EmailSubscriptions %>' />
                                            </span>
                                            <span id="div_NotificationMessages" runat="server" nowrap="true" class="label label-default">
                                                <asp:LinkButton ID="LB_NotificationMessages" runat="server" Text='<%$ Resources:Content, NotificationMessages %>' />
                                            </span>
                                        </div>
                                    </div>
                                </div>

                                <asp:Panel ID="Pnl_EmailCategories" runat="server">
                                    <em:emailcategories id="EmailCategories1" runat="server" />
                                </asp:Panel>

                                <asp:Panel ID="Pnl_EmailSubscriptions" runat="server" Visible="false">
                                    <em:emailsubscriptions id="EmailSubscriptions1" runat="server" />
                                </asp:Panel>

                                <asp:Panel ID="Pnl_NotificationMessages" runat="server" Visible="false">

                                    <asp:Panel ID="Pnl_EmailMessageListing" runat="server">
                                        <div class="row Div_OpsRow" id="Div_OpsRow2" runat="server">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001320%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_ComposeEmail" runat="server" CausesValidation="false"
                                                            Text="<%$ Resources:Content,ComposeEmail%>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <asp:Panel CssClass="row" ID="Pnl_Search" runat="server" DefaultButton="Btn_Search">
                                            <div class="panel-group search-panel" id="AS_EmailNotifications" role="tablist" aria-multiselectable="true">
                                                <div class="col-xs-12" role="tab" id="SH_EmailNotifications">
                                                    <div class="card">
                                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_EmailNotifications" href="#<%= CSB_EmailNotifications.ClientID%>" aria-expanded="true" aria-controls="SH_EmailNotifications">
                                                            <h3>
                                                                <%= Resources.Content.GN0000395%>
                                                            </h3>
                                                        </div>
                                                        <div id="CSB_EmailNotifications" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_EmailNotifications" aria-expanded="false">
                                                            <div class="row">
                                                                <%--<div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="td_Owner">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDl_Owner" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                                    </div>
                                                                </div>--%>
                                                                
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_CategoryName" runat="server" MaxLength="200"></asp:TextBox>
                                                                            <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001286%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_SubscriptionName" runat="server" MaxLength="200"></asp:TextBox>
                                                                            <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strSubscription%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_ClientId" runat="server"></asp:TextBox>
                                                                            <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000715%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_FromNameFilter" runat="server" MaxLength="128"></asp:TextBox>
                                                                            <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000601%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_FromEmailFilter" runat="server"></asp:TextBox>
                                                                            <asp:Label ID="Label8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,FromEmail%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_SubjectFilter" runat="server" MaxLength="263"></asp:TextBox>
                                                                            <asp:Label ID="Label15" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000371%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDL_Status" runat="server">
                                                                            <asp:ListItem Text="<%$ Resources:Content, SelectStatus %>" Value="-1" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content, GN0000222 %>" Value="GN0000222"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content, GN0000345 %>" Value="GN0000345"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content, GN0000349 %>" Value="GN0000349"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content, String383 %>" Value="String383"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:Button ID="Btn_Search" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                        <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                            Text="<%$ Resources:Content,String289 %>" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>

                                        <asp:GridView CssClass="table table-bordered table-striped table-hover table-responsive" ID="GV_Emails" AllowSorting="true" AllowPaging="true"
                                            runat="server" AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content, GN00001375 %>" DataKeyNames="EmailId,Subject">

                                            <Columns>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,String385 %>' ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lbl_Status" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000371 %>' SortExpression="Subject" HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.Subject")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0001286 %>' SortExpression="CategoryName" HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.CategoryName")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,strSubscription %>' SortExpression="SubscriptionName" HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.SubscriptionName")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,strDetails %>' SortExpression="DateCreated" HeaderStyle-CssClass="col-xs-4">
                                                    <ItemTemplate>
                                                        <table class="table small">
                                                            <tbody>
                                                                <tr>
                                                                    <td class="col-xs-6 row-label">
                                                                        <asp:Label ID="Literal6" runat="server"
                                                                            EnableViewState="false" Text='<%$ Resources:Content,strScheduled%>'></asp:Label>:
                                                                    </td>
                                                                    <td class="col-xs-6">
                                                                        <asp:Literal ID="Lbl_Scheduled" runat="server"></asp:Literal>
                                                                        
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="col-xs-6 row-label">
                                                                        <asp:Label ID="Label3" runat="server"
                                                                            EnableViewState="false" Text='<%$ Resources:Content,GN0000668%>'></asp:Label>:
                                                                    </td>
                                                                    <td class="col-xs-6">
                                                                        <%#DataBinder.Eval(Container, "DataItem.DateCreated")%>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="col-xs-6 row-label">
                                                                        <asp:Label ID="Label1" runat="server"
                                                                            EnableViewState="false" Text='<%$ Resources:Content,ProcessedOn%>'></asp:Label>:
                                                                    </td>
                                                                    <td class="col-xs-6">
                                                                        <asp:Label ID="Lbl_ProcessedOn" runat="server"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <ul class="option-menu" style="width: 50% !important;">
                                                            <li class="dropdown">
                                                                <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                                    <i class="material-icons">menu</i>
                                                                </a>
                                                                <ul class="dropdown-menu pull-right">

                                                                    <li>
                                                                        <asp:LinkButton ID="LB_Details" Text="<%$ Resources:Content,strDetails%>"
                                                                            CommandArgument='<%#DataBinder.Eval(Container, "DataItem.EmailId")%>' runat="server"
                                                                            CommandName="EmailDetails" />
                                                                    <li>
                                                                        <asp:LinkButton ID="LB_Clone" Text="<%$ Resources:Content,DGN1110198%>"
                                                                            CommandArgument='<%#DataBinder.Eval(Container, "DataItem.EmailId")%>' runat="server"
                                                                            CommandName="CloneEmail" />
                                                                    <li>
                                                                        <asp:LinkButton ID="Lb_Edit" Text="<%$ Resources:Content,GN0000276%>" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.EmailId")%>' runat="server"
                                                                            CommandName="EditEmail" />
                                                                    <li>
                                                                        <asp:LinkButton CssClass="btnAction" ID="Lb_Cancel" Text="<%$ Resources:Content,GN0000572%>" CommandArgument='<%#DataBinder.Eval(Container, "DataItem.EmailId")%>' runat="server"
                                                                            CommandName="CancelEmail" />
                                                                    </li>
                                                                    <em:confirmbuttonextender id="CBE_Remove" runat="server" confirmtext="<%$Resources:Content,CBE005%>"
                                                                        targetcontrolid="Lb_Cancel">
                                                                    </em:confirmbuttonextender>
                                                                </ul>
                                                            </li>
                                                        </ul>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <%--PagerTemplate Start--%>
                                            <PagerTemplate>
                                                <em:pager id="Pager1" runat="server" />
                                            </PagerTemplate>
                                            <%--PagerTemplate End--%>
                                        </asp:GridView>
                                    </asp:Panel>

                                    <asp:Panel ID="Pnl_AddEditEmail" runat="server" Visible="false">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <asp:Literal ID="Lbl_OperationHeader" Text="<%$ Resources:Content,ComposeEmail%>" runat="server" /></h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal29" Text="<%$ Resources:Content,DGN1110609%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_AssociateNotificationSubscription" runat="server" AutoPostBack="true" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                *<asp:Literal ID="Literal18" Text="<%$ Resources:Content,GN0000371%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Subject" runat="server" />
                                                                    </div>
                                                                </div>
                                                                <asp:RequiredFieldValidator ID="RFV_TxBx_Subject" runat="server" ControlToValidate="TxBx_Subject"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="composeemail"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal28" Text="<%$ Resources:Content,SelectProductType%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_ProductTypes" runat="server" AutoPostBack="true" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Div_SelectResellers" runat="server">
                                                            <div class="col-xs-12 row-label">
                                                                <asp:Literal ID="Literal3" Text="<%$ Resources:Content,SendToResellers%>" runat="server" />:
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <em:addselectableselected id="UCSendToResellers" runat="server" sortbyvalue="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Div_SelectCustomers" runat="server">
                                                            <div class="col-xs-12 row-label">
                                                                <asp:Literal ID="Literal7" Text="<%$ Resources:Content,SendToCustomers%>" runat="server" />:
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <em:addselectableselected id="UCSendToCustomers" runat="server" sortbyvalue="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal1" Text="<%$ Resources:Content,DGN1110162%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_FromAddress" runat="server" AutoPostBack="true" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                *<asp:Literal ID="Literal14" Text="<%$ Resources:Content,GN0000601%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_FromName" runat="server" />
                                                                    </div>
                                                                </div>
                                                                <asp:RequiredFieldValidator ID="RFV_TxBx_FromName" runat="server" ControlToValidate="TxBx_FromName"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="composeemail"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <div id="Div_FromAddressCustom" runat="server">
                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    *<asp:Literal ID="Literal15" Text="<%$ Resources:Content,FromEmail%>" runat="server" />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_FromEmail" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_FromEmail" runat="server" ControlToValidate="TxBx_FromEmail"
                                                                        Display="None" SetFocusOnError="True" ValidationGroup="composeemail" Enabled="false"></asp:RequiredFieldValidator>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal16" Text="<%$ Resources:Content,SMI0529%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:RadioButtonList ID="RBL_ReplyToOptions" runat="server" AutoPostBack="true">
                                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000918%>" Value="0" Selected="true" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SameAsFromEmail%>" Value="1" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,String456%>" Value="2" />
                                                                    </asp:RadioButtonList>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Div_TxBx_ReplyToEmail" runat="server" visible="false">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                *<asp:Literal ID="Literal21" Text="<%$ Resources:Content,ReplyToEmail%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_ReplyToEmail" runat="server" />
                                                                    </div>
                                                                </div>
                                                                <asp:RequiredFieldValidator ID="RFV_TxBx_ReplyToEmail" runat="server" ControlToValidate="TxBx_ReplyToEmail"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="composeemail" Enabled="false"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal17" Text="<%$ Resources:Content,GN00001337%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="fileupload fileupload-new" data-provides="fileupload">
                                                                        <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                                                            <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                                                            <asp:FileUpload ID="FU_Attachment" runat="server" />
                                                                        </span>
                                                                        <span class="fileupload-preview"></span>
                                                                        <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12 row-label">
                                                                *<asp:Literal ID="Literal19" Text="<%$ Resources:Content,GN0000541%>" runat="server" />:
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <obout:Editor ID="Editor1" Submit="false" ShowWaitMessage="false" AjaxWait="false" runat="server" Appearance="custom" ShowQuickFormat="false">
                                                                    <Buttons>
                                                                        <obout:Select Name="FontName" />
                                                                        <obout:Select Name="FontSize" />
                                                                        <obout:HorizontalSeparator />
                                                                        <obout:Toggle Name="Bold" />
                                                                        <obout:Toggle Name="Italic" />
                                                                        <obout:Toggle Name="Underline" />
                                                                        <obout:Toggle Name="StrikeThrough" />
                                                                        <obout:Toggle Name="SuperScript" />
                                                                        <obout:Toggle Name="SubScript" />
                                                                        <obout:HorizontalSeparator />
                                                                        <obout:Method Name="ForeColor" />
                                                                        <obout:Method Name="ForeColorClear" />
                                                                        <obout:Method Name="BackColor" />
                                                                        <obout:Method Name="BackColorClear" />
                                                                        <obout:VerticalSeparator />
                                                                        <obout:Method Name="Redo" />
                                                                        <obout:Method Name="Undo" />
                                                                        <obout:HorizontalSeparator />
                                                                        <obout:Method Name="Cut" />
                                                                        <obout:Method Name="Copy" />
                                                                        <obout:Method Name="Paste" />
                                                                        <obout:Method Name="PasteText" />
                                                                        <obout:HorizontalSeparator />
                                                                        <obout:Method Name="Paragraph" />
                                                                        <obout:Method Name="GetFormat" />
                                                                        <obout:Method Name="ApplyFormat" />
                                                                        <obout:HorizontalSeparator />
                                                                        <obout:Method Name="JustifyLeft" />
                                                                        <obout:Method Name="JustifyCenter" />
                                                                        <obout:Method Name="JustifyRight" />
                                                                        <obout:Method Name="JustifyFull" />
                                                                        <obout:HorizontalSeparator />
                                                                        <obout:Method Name="OrderedList" />
                                                                        <obout:Method Name="BulletedList" />
                                                                        <obout:HorizontalSeparator />
                                                                        <obout:Method Name="InsertHR" />
                                                                        <obout:Method Name="CreateLink" />
                                                                        <obout:Method Name="InsertAnchor" />
                                                                        <obout:Method Name="InsertIMG" />
                                                                        <obout:HorizontalSeparator />
                                                                        <obout:Method Name="ClearStyles" />
                                                                    </Buttons>

                                                                </obout:Editor>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="form-group">
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <asp:DropDownList ID="DDL_CompanyVariablesHtml" runat="server" />
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <asp:DropDownList ID="DDL_CustomerVariablesHtml" runat="server" />
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                *<asp:Literal ID="Literal35" Text="<%$ Resources:Content,strSchedule%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-2 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="CB_Schedule" Text=" " runat="server" onClick="showHideScheduleDetail(this,event)" />
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div id="div-schedule-detail" class="hide">
                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    *<asp:Literal ID="Literal20" Text="<%$ Resources:Content,strExecutionDate%>" runat="server" />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group display-date-input">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_ScheduleOn" runat="server" Enabled="true"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                    <i runat="server" id="A_TxBx_ScheduleOn" class="material-icons icon-calendar col-calendar"></i>
                                                                    <em:calendarextender id="CE_TxBx_ScheduleOn" runat="server" targetcontrolid="TxBx_ScheduleOn"
                                                                        format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                                        popupbuttonid="A_TxBx_ScheduleOn" cssclass="date__calendar" onclientdateselectionchanged="checkDate">
                                                                    </em:calendarextender>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-offset-3 col-sm-8 col-md-6 hidden-xs">
                                                                    <span style='width: 39%;' class="display-inline-float-left">
                                                                        <asp:Label ID="Ltrl_ExecutionHour" runat="server" Text="<%$ Resources:Content,strHours %>" CssClass="pull-left"></asp:Label>
                                                                    </span>
                                                                    <span style="width: 20px; height: 10px;" class="display-inline-float-left"></span>
                                                                    <span style='width: 39%;' class="display-inline-float-left">
                                                                        <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,strMinutes %>" CssClass="pull-left"></asp:Label>
                                                                    </span>
                                                                </div>
                                                                <div class="col-sm-1 col-md-3 hidden-xs" style="min-height: 20px"></div>

                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    <label>
                                                                        <asp:Literal ID="Literal32" runat="server" Text="<%$ Resources:Content,strExecutionTime%>" />:
                                                                    </label>
                                                                </div>
                                                                <div class="col-sm-8 col-md-6 col-xs-12">
                                                                    <div class="form-group">
                                                                        <span style='width: 35%;' class="display-inline-float-left">

                                                                            <span class="display-inline-float-left">
                                                                                <asp:TextBox ID="TxBx_ExecutionHour" runat="server" onkeydown='event.preventDefault();'>
                                                                                </asp:TextBox>
                                                                            </span>
                                                                        </span>
                                                                        <span class="numeric-updown-icon-wrapper">

                                                                            <a id="execution_hour_up" runat="server">
                                                                                <i class="glyphicon glyphicon-triangle-top"></i>
                                                                            </a>
                                                                            <span class="clearfix"></span>
                                                                            <a id="execution_hour_down" runat="server">
                                                                                <i class="glyphicon glyphicon-triangle-bottom"></i>
                                                                            </a>
                                                                        </span>
                                                                        <em:numericupdownextender id="NUD_ExecutionHour" runat="server" targetcontrolid="TxBx_ExecutionHour"
                                                                            step="1" refvalues="00;01;02;03;04;05;06;07;08;09;10;11;12;13;14;15;16;17;18;19;20;21;22;23" width="75" targetbuttonupid="execution_hour_up" targetbuttondownid="execution_hour_down">
                                                                        </em:numericupdownextender>
                                                                    </div>
                                                                    <span style="width: 20px; height: 10px;" class="display-inline-float-left"></span>
                                                                    <div class="form-group">
                                                                        <span style='width: 35%;' class="display-inline-float-left m-t--5">
                                                                            <span class="display-inline-float-left">
                                                                                <asp:TextBox ID="TxBx_ExecutionMin" runat="server" Text="00" onkeydown='event.preventDefault();' onChange="checkMin(this,event)">
                                                                                </asp:TextBox>
                                                                            </span>
                                                                        </span>
                                                                        <span class="numeric-updown-icon-wrapper m-t--5">

                                                                            <a id="execution_Min_up" runat="server">
                                                                                <i class="glyphicon glyphicon-triangle-top"></i>
                                                                            </a>
                                                                            <span class="clearfix"></span>
                                                                            <a id="execution_Min_down" runat="server">
                                                                                <i class="glyphicon glyphicon-triangle-bottom"></i>
                                                                            </a>
                                                                        </span>
                                                                        <em:numericupdownextender id="NUD_ExecutionMin" runat="server" targetcontrolid="TxBx_ExecutionMin"
                                                                            step="15" width="75" targetbuttonupid="execution_Min_up" targetbuttondownid="execution_Min_down">
                                                                        </em:numericupdownextender>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:ValidationSummary ID="ValidationSummary3" runat="server" ShowMessageBox="true"
                                                                    ShowSummary="false" ValidationGroup="composeemail" HeaderText="<%$ Resources:Content,EM000001%>" />
                                                                <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_SaveEmail" runat="server" ValidationGroup="composeemail" Text="<%$ Resources:Content,GN0000281%>" />
                                                                <asp:Button CssClass="btn btn-primary" ID="Btn_CancelEmail" runat="server" Text="<%$ Resources:Content,GN0000572%>" CausesValidation="false" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <asp:Panel ID="Pnl_ShowDetails" runat="server" Visible="false">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <asp:Literal ID="Literal22" Text="<%$ Resources:Content,Lync369%>" runat="server" /></h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal30" Text="<%$ Resources:Content,AssociatedMsgToNotificationSubscription%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <asp:Literal ID="Ltrl_AssociatedMsgToNotificationSubscription" runat="server" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal23" Text="<%$ Resources:Content,GN0000371%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Div_SubjectShow" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal26" Text="<%$ Resources:Content,GN0000601%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Div_FromNameShow" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal31" Text="<%$ Resources:Content,GN00001337%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Div_AttachmentShow" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal33" Text="<%$ Resources:Content,GN0000541%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Div_BodyShow" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal34" Text="<%$ Resources:Content,String385%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Div_StatusShow" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal27" Text="<%$ Resources:Content,SentLog%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Div_SentLog" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row" id="Div_ResellersShowRow" runat="server">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal24" Text="<%$ Resources:Content,SendToResellers%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Div_ResellersShow" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal25" Text="<%$ Resources:Content,SendToCustomers%>" runat="server" />:
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12" id="Div_CustomersShow" runat="server">
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button CssClass="btn btn-primary" ID="Btn_CloseLog" runat="server" Text="<%$ Resources:Content,GN000150%>" CausesValidation="false" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>

                                </asp:Panel>

                            </asp:Panel>
                        </contenttemplate>
                    </em:tabpanel>
                </em:tabcontainer>
            </div>
        </div>
    </div>

    <style type="text/css">
        .display-inline-float-left,
        .numeric-updown-icon-wrapper {
            display: inline-block;
            float: left;
        }

        .numeric-updown-icon-wrapper {
            margin-right: 5px;
            margin-left: 2px;
        }
    </style>

    <script lang="javascript" type="text/javascript">
        $(function () {
            var cbIsDelayed = $get('<%= CB_Schedule.ClientID%>');
            if (cbIsDelayed && cbIsDelayed.checked)
                $('#div-schedule-detail').removeClass('hide');
        });

        function showHideScheduleDetail(source, e) {
            //alert('called');
            if (source.checked)
                $('#div-schedule-detail').removeClass('hide');
            else
                $('#div-schedule-detail').addClass('hide');
        }

        function checkMin(source, e) {
            if (source.value > 60 || source.value < 0)
                source.value = '00';
            else if (source.value == 60)
                source.value = 59
            else if (source.value % 15 != 0 && source.value != 59)
                source.value = parseInt(source.value) + 1;
        }
        function checkDate(sender, args) {
            if (sender._selectedDate < new Date()) {
                sender._selectedDate = new Date();
                // set the date back to the current date
                sender._element.value = sender._selectedDate.format(sender._format);
            }
            setTimeout(function () { sender.hide(); }, 1000);
        }
    </script>

</asp:Content>

