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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ Register Src="~/RCC/Exchange/CC/MicrosoftSpamFilters.ascx" TagName="MicrosoftSpamFilters" TagPrefix="UC" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">

    <div class="col-xs-12" id="Div_Listing" runat="server">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,Exch0005%>' EnableViewState="false" /></h2>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <asp:GridView ID="GV_SpamFilters" CssClass="table table-bordered table-striped table-hover" AllowSorting="true"
                            AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                            <Columns>
                                <asp:TemplateField SortExpression="ProviderName" HeaderText='<%$ Resources:Content,Lync355%>' HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_ProviderName" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="Status" HeaderText='<%$ Resources:Content, Status %>' HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Status" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LB_EditProvider" CommandName="EditProvider" runat="server" Text="<%$ Resources:Content,GN0000276%>" class="btn btn-primary waves-effect" />
                                        <asp:LinkButton ID="LB_InitiateReinitOnOSSServer" CommandName="ReinitData" runat="server" Text="<%$ Resources:Content,ReinitData%>" class="btn btn-primary waves-effect btnAction" />
                                        <asp:LinkButton
                                            ID="Lb_CheckConnectivity" runat="server"
                                            Text="<%$ Resources:Content,CheckConnectivity %>"
                                            class="btn btn-primary waves-effect">
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%--PagerTemplate Start--%>
                            <PagerTemplate>
                                <EM:Pager ID="Pager1" runat="server" />
                            </PagerTemplate>
                            <%--PagerTemplate End--%>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12" id="Div_Update" runat="server" visible="false">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Literal8" runat="server" Text='<%$ Resources:Content,Exch0001%>' EnableViewState="false" /></h2>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,GN000195%>' EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="ChBx_IsEnabled" runat="server" Text=" " />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,Exch0002%>' EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:Label ID="Lbl_ProviderName" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content,GN000921%>' EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_APIUserName" runat="server" ValidationGroup="spam"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_TxBx_UserName" runat="server" ControlToValidate="TxBx_APIUserName"
                                    SetFocusOnError="true" ValidationGroup="spam" Display="none"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal10" runat="server" Text='<%$ Resources:Content,GN000922%>' EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_APIPassword" runat="server" TextMode="Password" ValidationGroup="spam">
                                </asp:TextBox>
                                <%--<asp:RequiredFieldValidator ID="RFV_TxBx_Password" runat="server" ControlToValidate="TxBx_APIPassword"
                                    SetFocusOnError="true" ValidationGroup="spam" Display="none"></asp:RequiredFieldValidator>--%>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                            <asp:Literal ID="Literal46" runat="server" Text="<%$ Resources:Content,GN00001530%>"
                                EnableViewState="false"></asp:Literal>
                        </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,GN0001196%>' EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_Password2" runat="server" MaxLength="20" TextMode="Password"></asp:TextBox>
                                <%--<asp:RequiredFieldValidator ID="RFV_TxBx_Password2" runat="server" ControlToValidate="TxBx_Password2"
                                    Display="None" SetFocusOnError="True" ValidationGroup="spam"></asp:RequiredFieldValidator>--%>
                            </div>
                        </div>
                        <asp:CompareValidator ID="CFV_TxBx_Password2" ControlToValidate="TxBx_APIPassword" ControlToCompare="TxBx_Password2"
                            runat="server" Display="none" ErrorMessage='<%$ Resources:Content,DGN1110005 %>'
                            ValidationGroup="spam"></asp:CompareValidator>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal12" runat="server" Text='<%$ Resources:Content,GN000909%>' EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_APIURL" runat="server" ValidationGroup="spam">
                                </asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_TxBx_APIURL" runat="server" ControlToValidate="TxBx_APIURL"
                                    SetFocusOnError="true" ValidationGroup="spam" Display="none"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12 displayInlineBlock" id="Div_SampleAPIURL" runat="server">
                        e.g.<asp:Label ID="Lbl_SampleAPIURL" runat="server" Text="<%$ Resources:Content,HttpsDemo1SpamBrand %>" />
                    </div>
                </div>
                <div id="Div_OSSSettings" runat="server" visible="false">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,SpamAPITesterUserName%>' EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_AppUserName" runat="server" ValidationGroup="spam">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_AppUserName" runat="server" ControlToValidate="TxBx_AppUserName"
                                        SetFocusOnError="true" ValidationGroup="spam" Display="none" Enabled="false"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,SpamAPITesterPassword%>' EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_AppPassword" runat="server" ValidationGroup="spam">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_AppPassword" runat="server" ControlToValidate="TxBx_AppPassword"
                                        SetFocusOnError="true" ValidationGroup="spam" Display="none" Enabled="false"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content,SpamAPITesterURL%>' EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_AppURL" runat="server" ValidationGroup="spam">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_AppURL" runat="server" ControlToValidate="TxBx_AppURL"
                                        SetFocusOnError="true" ValidationGroup="spam" Display="none" Enabled="false"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,targetNameAuthoritative%>' EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_TargetNameAuthoritative" runat="server" ValidationGroup="spam">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_TargetNameAuthoritative" runat="server" ControlToValidate="TxBx_TargetNameAuthoritative"
                                        SetFocusOnError="true" ValidationGroup="spam" Display="none" Enabled="false"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Lbl_OSSMXRecords" runat="server" Text='<%$ Resources:Content,OSSTargetMXList%>' />:</label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:TextBox ID="TxBx_OSSMXRecords" runat="server" Height="150px" TextMode="MultiLine" />
                                </div>
                                <div class="col-xs-12 row-label">
                                    <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,OSSMXRecordsNotice %>" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="Div_SpamFiltersSetting" runat="server" visible="false">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Lbl_MXRecords" runat="server" Text='<%$ Resources:Content,FAM0065%>' />:</label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:TextBox ID="TxBx_MXRecords" runat="server" Height="150px" TextMode="MultiLine" />
                                </div>
                                <div class="col-xs-12 row-label">
                                    <asp:Label ID="Lbl_SpecifyCommaSepratedList" runat="server" Text="<%$ Resources:Content,SpecifyCommaSepratedList %>" />
                                </div>
                                <div class="col-xs-12 row-label">
                                    <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content,IfHandleDNSEnabled %>" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Ltl_DestinationHosts" runat="server" Text='<%$ Resources:Content,FAM0064%>' />:</label>
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:RadioButton ID="RB_DNSTemplate" runat="server" Checked="true" Text="<%$ Resources:Content,FAM00144%>" GroupName="DNSTemplate" /><br />
                                    <asp:RadioButton ID="RB_Custom" runat="server" Checked="false" Text="<%$ Resources:Content,FAM00145%>" GroupName="DNSTemplate" />
                                </div>
                                <div id="TR_Custom" runat="server" style="display: none;">
                                    <div class="col-xs-12">
                                        <asp:TextBox ID="TxBx_DestinationHosts" runat="server" Height="150px" TextMode="MultiLine" />
                                    </div>
                                    <div class="col-xs-12 row-label">
                                        <asp:Literal ID="Lbl_SpecifyCommaSepratedListExchange" runat="server" Text="<%$ Resources:Content,SpecifyCommaSepratedListExchange %>" />
                                    </div>
                                    <div class="col-xs-12 row-label">
                                        <asp:Label ID="Lbl_ExchangeRouteNotice" runat="server" Text="<%$ Resources:Content,TheseAreUsuallyExchangeAddress %>" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_Save" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,GN0000281%>' ValidationGroup="spam" />
                        <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001%>' ID="ValidationSummary1"
                            runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="spam" />
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="col-xs-12" id="Div_MicrosoftSpamFilters" runat="server" visible="false">
        <div class="card">
            <div class="header">
                <div class="displayInlineBlock">
                    <h2><%= Resources.Content.ExchangeBuiltinSpamFilter %></h2>
                </div>
                <asp:LinkButton ID="LB_GoBackGroupOperation" runat="server" Text="<%$ Resources:Content,DGN1110542 %>" CausesValidation="false"
                    CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
            </div>
            <div class="body">
                <UC:MicrosoftSpamFilters ID="UC_MicrosoftSmapFilters" runat="server" />
            </div>
        </div>
    </div>

</asp:Content>

