<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Admin_Exchange_ExchangeProvider, 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_HMC4.ascx" TagName="ProviderHMC4" TagPrefix="EM" %>
<%@ Register Src="~/PCC/System/CC/Provider_Exchange2007.ascx" TagName="ProviderExchange2007"
    TagPrefix="EM" %>

<asp:Content ID="Content4" 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,SM056 %>" /></h2>
            </div>--%>
            <div class="body">
                <ajax:UpdatePanel ID="UP_Providers" runat="server">
                    <ContentTemplate>
                        <EM:TabContainer ID="TC_Providers" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <EM:TabPanel ID="Tab_List" runat="server" HeaderText="<%$ Resources:Content, SM056%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent0" runat="server">
                                        <div class="row Div_OpsRow" id="Panel1" runat="server" visible="false">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001320%></h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_Manage" runat="server" Text="<%$ Resources:Content, L0093 %>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:SqlDataSource runat="server" ID="SqlDS_ExProvider"></asp:SqlDataSource>
                                                <asp:GridView Width="100%" ID="GV_ExProvider" runat="server" AutoGenerateColumns="False"
                                                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' DataSourceID="SqlDS_ExProvider"
                                                    AllowPaging="true" PageSize="25" CssClass="table table-bordered table-striped table-hover">
                                                    
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110096%>" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_Module" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001102%>"  HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                                            <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:CheckBox ID="CB_Enabled" runat="server" />
                                                                <asp:HiddenField ID="HF_ProviderId" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager1" runat="server" />
                                                    </PagerTemplate>

                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                            </div>
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_Save" runat="server" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" />
                                            </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:ProviderHMC4 ID="ProviderHMC4" runat="server" Visible="false" />--%>
                                        <EM:ProviderExchange2007 ID="ProviderExchange2007" runat="server" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>
