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

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

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.USM0126%>                                                                                                                                 
                </h3>
            </div>
            <div class="body">

                <ajax:UpdatePanel ID="UP_CRMHosting" runat="server">
                    <ContentTemplate>
                        <EM:TabContainer ID="TC_WHMCSImport" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <EM:TabPanel ID="Tab_Customers" runat="server" HeaderText="<%$ Resources:Content,SM200001%>">
                                <ContentTemplate>
                                    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab0" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent0" runat="server">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_SkipExOrgCreation" runat="server" Text="<%$ Resources:Content,EnableSkipExOrg%>"
                                                                    class="btn btn-primary waves-effect btnAction" Custom1="Custom" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Literal ID="Ltl_Notice" runat="server" Text="<%$ Resources:Content,strWHMCSExNotes%>" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Panel ID="Pnl_FilterCustomer" runat="server" DefaultButton="Btn_SearchCustomer">
                                                    <div class="row">
                                                        <div class="panel-group search-panel" id="AS_CustomerList" role="tablist" aria-multiselectable="true">
                                                            <div class="col-xs-12" role="tab" id="SH_CustomerList">
                                                                <div class="card">
                                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_CustomerList" href="#<%= CSB_CustomerList.ClientID%>" aria-expanded="true" aria-controls="SH_CustomerList">
                                                                        <h3>
                                                                            <%= Resources.Content.GN0000395%>
                                                                        </h3>
                                                                    </div>
                                                                    <div id="CSB_CustomerList" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_CustomerList" aria-expanded="false">
                                                                        <div class="row">
                                                                            <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_ClientIdCustomer" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000715%>' CssClass="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_ClientNameCustomer" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000268%>' CssClass="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_WhmcsUserID" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text='<%$ Resources:Content,SMI066%>' CssClass="form-label"></asp:Label>

                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <asp:Button ID="Btn_SearchCustomer" runat="server" Text="<%$ Resources:Content,GN0000391%>" CssClass="btn btn-primary" />
                                                                                    <asp:Button ID="Btn_ClearCustomer" runat="server" Text="<%$Resources:Content,String289 %>" Visible="false" CssClass="btn btn-primary" />
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_SaveTopCustomer" runat="server" Text="<%$Resources:Content,GN0000281%>" class="btn btn-primary waves-effect" CssClass="btn btn-primary btnAction" />
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:UpdatePanel ID="UP_ServicesCustomer" runat="server">
                                                    <ContentTemplate>
                                                        <asp:GridView ID="GV_Customers" runat="server" CssClass="table table-bordered table-striped table-hover table-responsive"
                                                            AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">
                                                            <Columns>
                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, String385 %>'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_AccStatus" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-5" HeaderText='<%$ Resources:Content, GN0000850%>'>
                                                                    <ItemTemplate>
                                                                        <asp:HyperLink ID="LB_Client" runat="server"></asp:HyperLink>
                                                                        <asp:HiddenField ID="HF_ClientID" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-5" HeaderText='<%$ Resources:Content, SMI066%>'>
                                                                    <ItemTemplate>
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_WHMCSClientId" runat="server"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

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

                                                            <%--PagerTemplate End--%>
                                                        </asp:GridView>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="btn_saveCustomer" runat="server" Text="<%$Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" CssClass="btn btn-primary" />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Subscriptions" runat="server" HeaderText="<%$ Resources:Content,M0005%>">
                                <ContentTemplate>
                                    <asp:Button CssClass="btn btn-primary waves-effect" 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">
                                                <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Search">
                                                    <div class="row">
                                                        <div class="panel-group search-panel" id="AS_SubscriptionsList" role="tablist" aria-multiselectable="true">
                                                            <div class="col-xs-12" role="tab" id="SH_SubscriptionsList">
                                                                <div class="card">
                                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_SubscriptionsList" href="#<%= CSB_SubscriptionsList.ClientID%>" aria-expanded="true" aria-controls="SH_SubscriptionsList">
                                                                        <h3>
                                                                            <%= Resources.Content.GN0000395%>
                                                                        </h3>
                                                                    </div>
                                                                    <div id="CSB_SubscriptionsList" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_SubscriptionsList" 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">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_Id" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Literal1" runat="server" EnableViewState="false" Text='<%$ Resources:Content,SPT002807%>' CssClass="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="Literal2" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000715%>' CssClass="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_ClientName" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Literal3" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000268%>' CssClass="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_DomainName" runat="server" MaxLength="255"></asp:TextBox>
                                                                                        <asp:Label ID="Literal5" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN000125%>' CssClass="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_WhmcsSubId" runat="server"></asp:TextBox>
                                                                                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text='<%$ Resources:Content,USM0159%>' CssClass="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_SoldPackageName" runat="server" />
                                                                                        <asp:Label ID="Literal8" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN000141%>' CssClass="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_ServiceType" runat="server">
                                                                                        <asp:ListItem Text="<%$ Resources:Content,FAM00231 %>" Value="-1" Selected="true"></asp:ListItem>
                                                                                        <asp:ListItem Text="<%$ Resources:Content,GN00001489 %>" Value="15"></asp:ListItem>
                                                                                        <asp:ListItem Text="<%$ Resources:Content,M0129 %>" Value="14"></asp:ListItem>
                                                                                        <asp:ListItem Text="<%$ Resources:Content,GN0002000 %>" Value="16"></asp:ListItem>
                                                                                        <asp:ListItem Text="<%$ Resources:Content,String427 %>" Value="18"></asp:ListItem>
                                                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000009 %>" Value="1"></asp:ListItem>
                                                                                        <asp:ListItem Text="<%$ Resources:Content,String145 %>" Value="17"></asp:ListItem>
                                                                                        <asp:ListItem Text="<%$ Resources:Content,DB0001 %>" Value="19"></asp:ListItem>
                                                                                    </asp:DropDownList>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <asp:Button ID="Btn_Search" SkinID="searchButton" runat="server" Text="<%$ Resources:Content,GN0000391%>" CssClass="btn btn-primary" />
                                                                                    <asp:Button ID="Btn_Clear" SkinID="searchButton" runat="server" Text="<%$Resources:Content,String289 %>" Visible="false" CssClass="btn btn-primary" />
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_SaveTop" runat="server" Text="<%$Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" CssClass="btn btn-primary" />
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:UpdatePanel ID="UP_Services" runat="server">
                                                    <ContentTemplate>
                                                        <asp:GridView ID="GV_Subscriptions" runat="server" CssClass="table table-bordered table-striped table-hover table-responsive"
                                                            AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">
                                                            <Columns>
                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, String385 %>'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_AccStatus" runat="server" />
                                                                        <asp:HiddenField ID="HF_HostingTypeId" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, GN0000850%>'>
                                                                    <ItemTemplate>
                                                                        <asp:HyperLink ID="LB_Client" runat="server"></asp:HyperLink>
                                                                        <asp:HiddenField ID="HF_ClientID" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, SMI066%>'>
                                                                    <ItemTemplate>
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_WHMCSClientId" runat="server"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, DGN1110287 %>'>
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_DomainName" runat="server" Text='<%#Eval("DomainName")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText="<%$ Resources:Content,GN000141%>">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbl_Package" runat="server" Text='<%#Eval("PackageName")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText="<%$ Resources:Content,String61%>">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbl_HostingId" runat="server" Text='<%#Eval("HostingID")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText="<%$Resources:Content,USM0159 %>">
                                                                    <ItemTemplate>
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_WHMCSId" runat="server"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

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

                                                            <%--PagerTemplate End--%>
                                                        </asp:GridView>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="btn_save" runat="server" Text="<%$Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" CssClass="btn btn-primary" />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>
