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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.PleskImportWizard%></h3>
            </div>
            <div class="body">
                <div id="Div_Wizard" runat="server">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="products-step">
                                <span id="div_s1" runat="server" nowrap="true" class="label label-success">
                                    <asp:Literal EnableViewState="false" ID="Literal2" runat="server" Text='<%$ Resources:Content, GN0000895 %>' />
                                </span>
                                <span id="div_s2" runat="server" nowrap="true" class="label label-default">
                                    <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000896 %>' />
                                </span>
                                <%--<span id="div_s3" runat="server" nowrap="true" class="label label-default">
                                    <asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000897 %>' />
                                </span>--%>
                            </div>
                        </div>
                    </div>


                    <asp:Wizard ID="Wizard1" runat="server" Width="100%" ActiveStepIndex="0" DisplaySideBar="False">
                        <CancelButtonStyle CssClass="btn btn-primary formButton formButtonCancel" Width="105px" />
                        <FinishCompleteButtonStyle CssClass="btn btn-primary formButton formButtonFinish btnAction" Width="105px" />
                        <StepPreviousButtonStyle CssClass="btn btn-primary formButton formButtonBack" Width="105px" />
                        <StepNextButtonStyle CssClass="btn btn-primary formButton formButtonNext btnAction" Width="105px" />
                        <StartNextButtonStyle CssClass="btn btn-primary formButton formButtonNext btnAction" Width="105px" />
                        <FinishPreviousButtonStyle CssClass="btn btn-primary formButton formButtonBack" Width="105px" />
                        <WizardSteps>
                            <asp:WizardStep runat="server" Title="Basic Info." ID="S_ScanLDAP" StepType="Start">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="body">
                                                <%--Section specific help--%>
                                                <asp:Panel ID="Pnls" runat="server" CssClass="helpBox">
                                                    <asp:Label ID="plesk_wizard" runat="server" Text="<%$ Resources:Content, PleskImportNotice %>" />
                                                    <br />
                                                    <br />
                                                    <strong>
                                                        <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content, PreRequisites %>" />:</strong>
                                                    <ol>
                                                        <li style="list-style: decimal;">
                                                            <asp:Label ID="Label7" runat="server" Text="<%$ Resources:Content, PleskPlansShouldExist %>" /></li>
                                                        <li style="list-style: decimal;">
                                                            <asp:Label ID="Label8" runat="server" Text="<%$ Resources:Content, UniqueEmailForPleskClients %>" /></li>
                                                    </ol>
                                                    <strong>
                                                        <asp:Label ID="Label9" runat="server" Text="<%$ Resources:Content, PostIimportTasks %>" />:</strong>
                                                    <ol>
                                                        <li style="list-style: decimal;">
                                                            <asp:Label ID="Label10" runat="server" Text="<%$ Resources:Content, VerifyFixClientInfo %>" /></li>
                                                    </ol>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <%--<fieldset id="FS_Reseller" runat="server">
                        <legend>Import Settings</legend>--%>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3><%= Resources.Content.USM0127%></h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content, SMI051 %>" EnableViewState="false"></asp:Label>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_Owner" AutoPostBack="true" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,SelectPleskServer %>" EnableViewState="false"></asp:Label>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_PleskServer" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Label ID="Label16" runat="server" Text="<%$ Resources:Content,PleskImportMode %>" EnableViewState="false"></asp:Label>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_PleskImportMode" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row" id="TR_PaymentGroup" runat="server">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,FAM0022 %>" EnableViewState="false"></asp:Label>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_PaymentGroup" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:WizardStep>
                            <asp:WizardStep runat="server" Title="Resources" ID="S_Organizations" StepType="Finish">
                                <%--Section specific help--%>
                                <div class="row col-xs-12">
                                    <asp:Panel ID="Panel1" runat="server" CssClass="helpBox">
                                        <asp:Label ID="select_org" runat="server" Text="<%$ Resources:Content,SelectPleskModeWantToImport %>" />
                                    </asp:Panel>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="body">
                                                <%--Section specific help--%>
                                                <asp:Panel ID="Panel2" runat="server" CssClass="helpBox">
                                                    <strong>
                                                        <asp:Label ID="Label12" runat="server" Text="<%$ Resources:Content, PreRequisites %>" />:</strong>
                                                    <ol>
                                                        <li style="list-style: decimal;">
                                                            <asp:Label ID="Label14" runat="server" Text="<%$ Resources:Content, PleskPasswordIsMust %>" /></li>
                                                        <li style="list-style: decimal;">
                                                            <asp:Label ID="Label22" runat="server" Text="<%$ Resources:Content, PleskUNPWDRequired %>" /></li>
                                                        <li style="list-style: decimal;">
                                                            <asp:Label ID="Label25" runat="server" Text="<%$ Resources:Content, PleskUNPWDGuide %>" /></li>
                                                    </ol>
                                                    <strong>
                                                        <asp:Label ID="Label13" runat="server" Text="<%$ Resources:Content, PostIimportTasks %>" />:</strong>
                                                    <ol>
                                                        <li style="list-style: decimal;">
                                                            <asp:Literal ID="Ltrl_PleskPasswordPostTests" runat="server" Text="<%$ Resources:Content, PleskPasswordPostTests %>" /></li>
                                                    </ol>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <%--Search--%>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Panel ID="pnlAccountSearch" runat="server" DefaultButton="Btn_Srch">
                                            <div class="row">
                                                <div class="panel-group search-panel" id="AS_Accounts" role="tablist" aria-multiselectable="true">
                                                    <div class="col-xs-12" role="tab" id="SH_Accounts" runat="server">
                                                        <div class="card">
                                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ClientList" href="#<%= CSB_VPSAccounts.ClientID %>" aria-expanded="true" aria-controls="SH_ClientList">
                                                                <h3>
                                                                    <%= Resources.Content.GN0000395%>
                                                                </h3>
                                                            </div>
                                                            <div id="CSB_VPSAccounts" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ClientList" 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_Name" runat="server" MaxLength="128"></asp:TextBox>
                                                                                <asp:Label ID="Label11" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strName%>" 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_SubName" runat="server" MaxLength="128"></asp:TextBox>
                                                                                <asp:Label ID="Label20" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110287%>" class="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>

                                                                    <div class="col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:Button ID="Btn_Srch" class="btn btn-primary waves-effect" runat="server" 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>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Label ID="Lbl_SelectPleskMode" runat="server" Text="<%$ Resources:Content,SelectResellersToImport %>" />
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <label><asp:Label ID="Label21" runat="server" Text="<%$ Resources:Content,PleskCommonPassword %>" />:</label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_CommonPassword" runat="server" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Label ID="Label6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,PleskPasswordNoticeImport %>" />
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Repeater ID="Rep_Import" runat="server">
                                                            <HeaderTemplate>
                                                                <table class="table table-bordered table-striped table-hover">
                                                                    <tr>
                                                                        <th class="col-sm-1 col-xs-12">
                                                                            <asp:CheckBox class="option-menu" runat="server" ID="ChkBx_All" onclick="SetCheckedaddon(this.checked, this, 'All');" Text=" " />
                                                                        </th>
                                                                        <th class="col-sm-3 col-xs-12">
                                                                            <asp:Label ID="Lbl_ClientNameH" runat="server" Text="<%$ Resources:Content, ResellerName %>" />
                                                                        </th>
                                                                        <th class="col-sm-8 col-xs-12">
                                                                            <asp:Label ID="Label18" runat="server" Text="<%$ Resources:Content, M0091 %>" />
                                                                        </th>
                                                                    </tr>
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <tr>
                                                                    <td class="col-sm-1 col-xs-12">
                                                                        <asp:CheckBox class="option-menu" ID="ChkBx_All" runat="server" Text=" " onClick="SetCheckedaddon(this.checked, this,'1');" />
                                                                    </td>
                                                                    <td class="col-sm-3 col-xs-12">
                                                                        <div class="row">
                                                                            <div class="col-xs-12">
                                                                                <asp:Label ID="Lbl_ClientName" runat="server" Text="<%$ Resources:Content, ResellerName %>" />
                                                                                <asp:HiddenField ID="HF_GenInfo" runat="server" />
                                                                                <asp:HiddenField ID="HF_ClientID" runat="server" />
                                                                            </div>
                                                                            <div class="col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_PleskUserName" runat="server" />
                                                                                        <asp:Label ID="Label11" runat="server" EnableViewState="false" Text="<%$ Resources:Content,PleskLogin%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="col-xs-12">
                                                                                <div class="form-group form-float">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_PleskPassword" runat="server" />
                                                                                        <asp:Label ID="Label19" runat="server" EnableViewState="false" Text="<%$ Resources:Content,PleskPassword%>" class="form-label"></asp:Label>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </td>
                                                                    <td class="col-sm-8 col-xs-12">
                                                                        <div class="row">
                                                                            <div class="col-xs-12">
                                                                                <asp:Repeater ID="Rep_Subscriptions" runat="server" OnItemDataBound="Rep_Subscriptions_ItemDataBound">
                                                                                    <HeaderTemplate>
                                                                                        <table class="table table-bordered table-striped table-hover">
                                                                                            <tr>
                                                                                                <th class="col-sm-1 col-xs-12"></th>
                                                                                                <th class="col-sm-5 col-xs-12">
                                                                                                    <asp:Label ID="Lbl_SubscriptionNameH" runat="server" Text="<%$ Resources:Content, DGN1110287 %>" />
                                                                                                </th>
                                                                                                <th class="col-sm-3 col-xs-12">
                                                                                                    <asp:Label ID="Label18" runat="server" Text="<%$ Resources:Content, SelectPlanAddon %>" />
                                                                                                </th>
                                                                                                <th class="col-sm-3 col-xs-12" id="Div_CycleH" runat="server">
                                                                                                    <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content, GN00001473 %>" />
                                                                                                </th>
                                                                                            </tr>
                                                                                    </HeaderTemplate>
                                                                                    <ItemTemplate>
                                                                                        <tr>
                                                                                            <td class="col-sm-1 col-xs-12">
                                                                                                <asp:CheckBox class="option-menu" ID="ChkBx_SelectSub" runat="server" Text=" " Checked="true" />
                                                                                            </td>
                                                                                            <td class="col-sm-5 col-xs-12">
                                                                                                <asp:Label ID="Lbl_SubscriptionName" runat="server" />
                                                                                                <asp:HiddenField ID="HF_SubInfo" runat="server" />
                                                                                            </td>
                                                                                            <td class="col-sm-3 col-xs-12">
                                                                                                <asp:DropDownList ID="DDL_Package" runat="server" />
                                                                                                <asp:Label ID="Lbl_PleskPlanNotExists" runat="server" Text="<%$ Resources:Content, PleskPlanNotExists %>" Visible="false" />
                                                                                            </td>
                                                                                            <td class="col-sm-3 col-xs-12" id="Div_Cycle" runat="server">
                                                                                                <asp:DropDownList ID="DDL_Cycle" runat="server" />
                                                                                            </td>
                                                                                        </tr>
                                                                                    </ItemTemplate>
                                                                                    <FooterTemplate>
                                                                                        </table>
                                                                                    </FooterTemplate>
                                                                                </asp:Repeater>
                                                                            </div>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                            </ItemTemplate>
                                                            <FooterTemplate>
                                                                </table>
                                                            </FooterTemplate>
                                                        </asp:Repeater>
                                                    </div>                                                    
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:LinkButton ID="Chbx_Checkall" runat="server" Text="<%$ Resources:Content, L0098 %>" CssClass="btn btn-primary"></asp:LinkButton>
                                                        <asp:LinkButton ID="Chbx_UncheckAll" runat="server" Text="<%$ Resources:Content, L0099 %>" CssClass="btn btn-primary"></asp:LinkButton>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:WizardStep>
                        </WizardSteps>
                    </asp:Wizard>

                    <asp:ValidationSummary HeaderText='<%$ Resources:Content, EM000001%>' ID="ValidationSummary1"
                        ShowMessageBox="true" ShowSummary="false" runat="server" />
                </div>
                <div id="Div_Result" runat="server" style="display: none">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
