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

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/PCC/System/CC/Provider_DigiCert.ascx" TagName="DigiCert" TagPrefix="EM" %>


<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI" TagPrefix="cc1" %>

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

    <div class="col-xs-12">
        <div class="card">
            <%--<div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" Text="<%$ Resources:Content,M0076 %>" /></h2>
            </div>--%>
            <div class="body">
                <EM:TabContainer ID="TbCntr_SSL" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_Listing" runat="server" HeaderText="<%$ Resources:Content,M0076 %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:SqlDataSource ID="DS_SSLProviders" runat="server"></asp:SqlDataSource>
                                        <asp:GridView ID="GV_SSLProviders" runat="server" AutoGenerateColumns="False" DataSourceID="DS_SSLProviders"
                                            CssClass="table table-bordered table-striped table-hover">

                                            <Columns>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Image ID="img_Type" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,DGN1110096 %>' HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lbl_ProviderName" runat="server"></asp:Label>
                                                        <%--<%#DataBinder.Eval(Container, "DataItem.GatewayName")%>--%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001102%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_IntegrationStatus" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>

                                                        <asp:Label ID="Lbl_Status" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LB_Edit" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,DGN1110331 %>' />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <%--PagerTemplate Start--%>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager1" runat="server" Visible="false" />
                                            </PagerTemplate>
                                            <%--PagerTemplate End--%>
                                        </asp:GridView>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Detail" Enabled="false" runat="server" HeaderText='<%$ Resources:Content, DGN1110331 %>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <EM:DigiCert ID="DigiCert" runat="server" Visible="false" OnCancel="DigiCert_Cancel" OnSave="DigiCert_Save" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_DigiCert" runat="server" HeaderText="<%$ Resources:Content,DigiCertCentral %>" Enabled="false">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                                <div class="card">
                                    <div class="header">
                                        <h3><%= Resources.Content.SMI712%></h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-md-2 col-sm-6 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,APIKey %>' EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="Txt_APIKey" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ControlToValidate="Txt_APIKey" SetFocusOnError="true" ValidationGroup="dCertCentral"
                                                            ID="RFV_Txt_APIKey" runat="server" Display="none"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-md-2 col-sm-6 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,APIUrl %>' EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="Txt_APIUrl" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ControlToValidate="Txt_APIUrl" SetFocusOnError="true" ValidationGroup="dCertCentral"
                                                            ID="RFV_Txt_APIUrl" runat="server" Display="none"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-md-2 col-sm-6 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,ParentDivId %>' EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="Txt_ParentDivisionId" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ControlToValidate="Txt_ParentDivisionId" SetFocusOnError="true" ValidationGroup="dCertCentral"
                                                            ID="RequiredFieldValidator1" runat="server" Display="none"></asp:RequiredFieldValidator>
                                                        <EM:FilteredTextBoxExtender ID="FTE_PDId" runat="server" TargetControlID="Txt_ParentDivisionId" FilterType="Numbers,Custom" ValidChars="0123456789"></EM:FilteredTextBoxExtender>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-sm-6 col-xs-12 row-label">
                                                <asp:Literal ID="Literal14" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000195%>" />:
                                            </div>
                                            <div class="col-sm-4 col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="Cb_Enabled" runat="server" Text="&nbsp;" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:ValidationSummary ID="ValidationSummary2" ShowMessageBox="true" ShowSummary="false"
                                                    HeaderText='<%$ Resources:Content,EM000001 %>' runat="server" ValidationGroup="dCertCentral" />
                                                <asp:Button ID="Btn_Save" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,GN0000281 %>' ValidationGroup="dCertCentral" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_SectigoSSL" runat="server" HeaderText="<%$ Resources:Content,SectigoSSL %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab3" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">
                                <div class="card">
                                    <div class="header">
                                        <h3><%= Resources.Content.SMI712%></h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-md-2 col-sm-6 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,APIKey %>' EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="Txt_SectigoAPIKey" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ControlToValidate="Txt_SectigoAPIKey" SetFocusOnError="true" ValidationGroup="Sectigo"
                                                            ID="Rfv_SectigoAPIKey" runat="server" Display="none"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-md-2 col-sm-6 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,APIUrl %>' EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="Txt_SectigoAPIUrl" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ControlToValidate="Txt_SectigoAPIUrl" SetFocusOnError="true" ValidationGroup="Sectigo"
                                                            ID="Rfv_SectigoAPIUrl" runat="server" Display="none"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-md-2 col-sm-6 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,DGN1110261 %>' EnableViewState="false"></asp:Literal>:</label>
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="Txt_SectigoAPILoginName" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ControlToValidate="Txt_SectigoAPILoginName" SetFocusOnError="true" ValidationGroup="Sectigo"
                                                            ID="Rfv_SectigoAPILoginName" runat="server" Display="none"></asp:RequiredFieldValidator>

                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-2 col-sm-6 col-xs-12 row-label">
                                                <asp:Literal ID="Literal7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000195%>" />:
                                            </div>
                                            <div class="col-sm-4 col-sm-6 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="Cb_SectigoEnabled" runat="server" Text="&nbsp;" />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox="true" ShowSummary="false"
                                                    HeaderText='<%$ Resources:Content,EM000001 %>' runat="server" ValidationGroup="Sectigo" />
                                                <asp:Button ID="Btn_SaveSectigoConfiguration" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,GN0000281 %>' ValidationGroup="Sectigo" />
                                            </div>
                                        </div>

                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>
    <script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_PDId.ClientID%>');
    </script>
</asp:Content>
