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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.SMI0238%></h3>
            </div>
            <div class="body">
                <div id="Div_Result" runat="server" style="display: none">
                </div>
                <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="Literal1" runat="server" Text='<%$ Resources:Content, GN0000895 %>' />
                                </span>
                                <span id="div_s2" runat="server" nowrap="true" class="label label-default">
                                    <asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000896 %>' />
                                </span>
                                <span id="div_s3" runat="server" nowrap="true" class="label label-default">
                                    <asp:Literal ID="Literal6" 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="formButton formButtonCancel btn btn-primary" Width="105px" />
                        <FinishCompleteButtonStyle CssClass="formButton formButtonFinish btn btn-primary btnAction" Width="105px" />
                        <StepPreviousButtonStyle CssClass="formButton formButtonBack btn btn-primary" Width="105px" />
                        <StepNextButtonStyle CssClass="formButton formButtonNext btn btn-primary btnAction" Width="105px" />
                        <StartNextButtonStyle CssClass="formButton formButtonNext btn btn-primary btnAction" Width="105px" />
                        <FinishPreviousButtonStyle CssClass="formButton formButtonBack btn btn-primary" 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="Label11" runat="server" Text="<%$ Resources:Content, VMImportWizard %>" /><br />
                                                    <br />
                                                    <br />
                                                    <strong>
                                                        <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content, PreRequisites %>" />:</strong>
                                                    <ol>
                                                        <li style="list-style: decimal;">
                                                            <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content, AtLeastOneVM %>" /></li>
                                                        <li style="list-style: decimal;">
                                                            <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content, CustomerAccountShould %>" /></li>
                                                    </ol>
                                                    <strong>
                                                        <asp:Label ID="Label7" runat="server" Text="<%$ Resources:Content, PostIimportTasks %>" />:</strong>
                                                    <ol>
                                                        <li style="list-style: decimal;">
                                                            <asp:Label ID="Label6" runat="server" Text="<%$ Resources:Content, VerifyAndFixResources %>" /></li>
                                                    </ol>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <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" id="Tr1" runat="server">
                                                    <div class="col-sm-3 col-xs-12 row-label">
                                                        <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,GN0001112%>" EnableViewState="false"></asp:Label>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_Server" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:WizardStep>
                            <asp:WizardStep runat="server" Title="Resources" ID="S_Organizations" StepType="Step">
                                <%--Section specific help--%>
                                <div class="row col-xs-12">
                                    <asp:Panel ID="Panel1" runat="server" CssClass="helpBox">
                                        <asp:Label ID="Label8" runat="server" Text="<%$ Resources:Content, SelectTheVMYouWant %>" />
                                    </asp:Panel>
                                </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_VMName" runat="server" MaxLength="128"></asp:TextBox>
                                                                                <asp:Label ID="Label14" runat="server" EnableViewState="false" Text="<%$ Resources:Content,VPS002%>" 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="Label10" runat="server" Text="<%$ Resources:Content, SelectVMs %>" />
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:GridView ID="GV_VMList" CssClass="table table-bordered table-striped table-hover table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                            runat="server" AutoGenerateColumns="False" AllowPaging="false">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,L00100 %>" HeaderStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="ChBx_VM" runat="server"  Text=" " /> <%--Checked='<%# IIf(Request.QueryString("VPSID") Is Nothing, "True", "False")%>'--%>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content, VPS002 %>" HeaderStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbl_VMName" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content, L00102%>" HeaderStyle-CssClass="col-xs-4">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="DDL_Client" runat="server">
                                                                        </asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content, L00101 %>" HeaderStyle-CssClass="col-xs-4">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="DDL_Package" runat="server">
                                                                        </asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="LB_Import" Text="<%$ Resources:Content, L00100 %>" runat="server" CommandName="ImportOne" CssClass="btn btn-primary btnAction" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </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>
                            <asp:WizardStep runat="server" Title="Resources" ID="S_Resources" StepType="Finish">
                                <div class="row col-xs-12">
                                    <asp:Panel ID="Panel2" runat="server" CssClass="helpBox">
                                        <asp:Label ID="Label12" runat="server" Text="<%$ Resources:Content, SelectSubcriptionSettings %>" /><br />
                                        <br />
                                        <strong>
                                            <asp:Label ID="Label20" runat="server" Text="<%$ Resources:Content,Note %>" />: </strong>
                                        <asp:Label ID="Label21" runat="server" Text="<%$ Resources:Content, PleaseBePatientAfter %>" />
                                    </asp:Panel>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Label ID="Label9" runat="server" Text="<%$ Resources:Content, SubscriptionInformation %>" />
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:GridView ID="GV_VMPayList" CssClass="table table-bordered table-striped table-hover table-responsive" AllowPaging="false" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                            runat="server" AutoGenerateColumns="False">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,VPS002 %>" HeaderStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbl_VM" runat="server"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,L0097 %>" HeaderStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbl_Client" runat="server"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1119987%>" HeaderStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="DDL_Susbcription" runat="server">
                                                                        </asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001560%>" HeaderStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="ddlOSName" runat="server">
                                                                        </asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0234%>" HeaderStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <div class="form-group display-date-input">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_DRangeAfter" runat="server"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                         <i runat="server" id="A_DRangeAfter" class="material-icons icon-calendar col-calendar"></i>
                                                                       
                                                                        <EM:CalendarExtender ID="CE_DRangeAfter" runat="server" TargetControlID="TxBx_DRangeAfter"
                                                                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                                            PopupButtonID="A_DRangeAfter" CssClass="date__calendar">
                                                                        </EM:CalendarExtender>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001473 %>" HeaderStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="DDL_BillingCycle" runat="server">
                                                                        </asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000831 %>" HeaderStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="DDL_PaymentGroup" runat="server">
                                                                        </asp:DropDownList>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,M0027%>" HeaderStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton ID="LB_NicSettings" runat="server" Text="<%$ Resources:Content,SMI0239%>" CommandName="NICSettings" CssClass="btn btn-primary btnAction"></asp:LinkButton>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>

                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:WizardStep>
                        </WizardSteps>
                    </asp:Wizard>

                    <div class="row" visible="false" runat="server" id="Tbl_NIC">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <asp:Label ID="Label13" runat="server" Text="<%$ Resources:Content, HVServer115 %>" />
                                    </h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,SMI0240%>"></asp:Literal>:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">

                                                <asp:Literal ID="Ltl_VMName" runat="server"></asp:Literal>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="row" id="Tr_NicListing" runat="server">
                                        <div class="col-xs-12">
                                            <asp:GridView CssClass="table table-bordered table-striped table-hover table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                ID="GV_NIC" AllowPaging="False" runat="server" AutoGenerateColumns="false">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,L00200%>" HeaderStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LBL_NICId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "AdapterId")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN000189%>" HeaderStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LBL_Subnet" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Subnet")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000854%>" HeaderStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LBL_Gateway" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Gateway")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0219%>" HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LBL_VLanId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "VLanId")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Manage" SkinID="linkButtonGo" runat="server" Text="<%$ Resources:Content,L0086%>"
                                                                CommandName="ManageNIC" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "AdapterId")%>' CssClass="btn btn-primary"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </div>
                                    </div>

                                    <div id="Tr_NICSettings" runat="server" visible="false">
                                        <div class="row">
                                            <div class="col-xs-3 row-label">
                                                <asp:Literal ID="Literal10" runat="server" Text='<%$ Resources: Content, GN000170 %>'></asp:Literal>:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:Literal ID="Ltl_AdapterName" runat="server"></asp:Literal>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-3 row-label">
                                                *
                                    <asp:Literal ID="Literal12" runat="server" Text='<%$ Resources: Content, HVServer21 %>'></asp:Literal>:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_VirtualSwitch" runat="server" AppendDataBoundItems="true">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-3 row-label">
                                                *
                                    <asp:Literal ID="Literal2" runat="server" Text='Type'></asp:Literal>:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_Type" AutoPostBack="true" runat="server">
                                                        <asp:ListItem Text="<%$ Resources:Content,VPS990%>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,VPS991%>" Value="0"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-3 row-label">
                                                <asp:Literal ID="Literal3" runat="server" Text='<%$ Resources: Content, VPS993 %>'></asp:Literal>:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_NICDNS" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-3 row-label">
                                                <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content, strIPPoolName %>' />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_NICSubnet" runat="server" AutoPostBack="true"></asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row" runat="server" id="DivIPs">
                                            <div class="col-xs-3 row-label">
                                                <asp:Literal ID="Literal9" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DGN1110260 %>' />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:ListBox ID="LBX_NICIP" runat="server" SelectionMode="Multiple" Rows="10"></asp:ListBox>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-3 row-label">
                                                <asp:Literal ID="Literal16" runat="server" EnableViewState="false" Text='<%$ Resources:Content,strSetGatewayFromNICIPPool %>' />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="chkSetGateway" runat="server" Text=" " Checked="false" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_SaveNIC" SkinID="saveButton" runat="server"
                                                    Text="<%$ Resources:Content,GN0000281%>" CssClass="btn btn-primary btnAction" />
                                                <asp:Button SkinID="cancelButton" ID="Btn_CancelSaveNIC" runat="server" Text="<%$ Resources:Content,GN0000572%>" CssClass="btn btn-primary" />
                                            </div>
                                        </div>

                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:LinkButton ID="Btn_ShowWizard" runat="server" Text="<%$ Resources:Content,SMI0242%>" CssClass="btn btn-primary"></asp:LinkButton>
                                    </div>
                                </div>

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