<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_SubDomains, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/ResourcesQuota.ascx" TagName='ResourceQuota' TagPrefix='EM' %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<div class="col-xs-12">
    <div class="card">
        <div class="header">
            <div class="displayInlineBlock">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
            </div>
            <asp:LinkButton ID="Btn_GoBack" runat="server" Text="<%$ Resources:Content,String1045 %>" CausesValidation="false"
                CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
        </div>
        <div class="body">
            <div class="row">
                <div class="col-xs-12">
                    <asp:Panel ID="Pnl_Grid" runat="server">
                        <div class="row">
                            <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_AddSubDomains" runat="server" Text="<%$ Resources:Content,L0078%>" class="btn btn-primary waves-effect btnAction" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xs-12">
                                <asp:GridView ID="Gv_SubDomain" runat="server" AllowPaging="true" DataSourceID=""
                                    CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">

                                    <Columns>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0600%>" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_SubDomainName" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0001248%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_Login" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LB_Manage" runat="server" CssClass="btn btn-primary waves-effect" CommandName="SDManage"
                                                    Text="<%$ Resources:Content,L0086%>"></asp:LinkButton>
                                                <%--<asp:LinkButton ID="LB_Edit" runat="server" CssClass="btn btn-primary waves-effect" CommandName="SDEdit" Text='<%$ Resources:Content, GN0000276 %>'></asp:LinkButton>--%>
                                                <asp:LinkButton ID="LB_Remove" runat="server" CssClass="btn btn-primary waves-effect btnAction" CommandName="SDRemove"
                                                    Text='<%$ Resources:Content, GN0000278 %>'></asp:LinkButton>
                                                <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                    TargetControlID="LB_Remove">
                                                </EM:ConfirmButtonExtender>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                            </div>
                        </div>
                    </asp:Panel>
                    <div class="row" id="Pnl_Edit" runat="server">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3><%= Resources.Content.L0078 %></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            <label>*<asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,SPT002260 %>' EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_SubDomain" runat="server"></asp:TextBox>
                                                    <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="TxBx_SubDomain"
                                                        FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="-">
                                                    </EM:FilteredTextBoxExtender>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true" Display="None" ID="RFV_TxBx_SubDomain"
                                                        runat="server" ValidationGroup="SubDomains" ControlToValidate="TxBx_SubDomain"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-sm-5 col-xs-12 no-padding lbl-serial-num">.<asp:Label ID="Ltrl_PrimaryDomain" runat="server"></asp:Label></div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12 row-label">
                                            <label>*<asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content,SPT002262 %>' EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="DDL_FtpUserType" runat="server" AutoPostBack="true">
                                                    <asp:ListItem Text="<%$ Resources:Content,L00133 %>" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,L00134 %>" Value="2"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="Tr_FTPLogin" runat="server" visible="false">
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <label>*<asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content,DGN1110262 %>' EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_FTPLogin" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RequiredFieldValidator2"
                                                            ControlToValidate="TxBx_FTPLogin" ValidationGroup="SubDomains" Display="None">
                                                        </asp:RequiredFieldValidator>
                                                        <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxBx_FTPLogin"
                                                            FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="._">
                                                        </EM:FilteredTextBoxExtender>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <label>*<asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,DGN1110263 %>' EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_FTPPassword" TextMode="Password" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RequiredFieldValidator4"
                                                            ControlToValidate="TxBx_FTPPassword" ValidationGroup="SubDomains" Display="None">
                                                        </asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="REV_TxBx_FTPPassword" runat="server" ErrorMessage='<%$ Resources:Content,L00136 %>'
                                                            ControlToValidate="TxBx_FTPPassword" Display="None" SetFocusOnError="True" ValidationExpression="^.*(?=.{8,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$"
                                                            ValidationGroup="SubDomains"></asp:RegularExpressionValidator>
                                                    </div>
                                                </div>
                                                <small>
                                                    <asp:Label ID="Lbl_PasswordPolicy" runat="server" Font-Bold="true" EnableViewState="false" Text="<%$ Resources:Content,L00135 %>"></asp:Label></small>
                                            </div>
                                        </div>
                                        <div class="row" id="Tr_CPassword" runat="server" visible="true">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <label>*<asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content,GN0001196 %>' EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_ConfPassword" TextMode="Password" runat="server"></asp:TextBox>
                                                        <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RequiredFieldValidator5"
                                                            ControlToValidate="TxBx_ConfPassword" ValidationGroup="SubDomains" Display="None">
                                                        </asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Button ID="Btn_SubDomSave" ValidationGroup="SubDomains" Text='<%$ Resources:Content,GN0000281%>'
                                                class="btn btn-primary waves-effect btnAction" runat="server" />
                                            <asp:Button ID="Btn_Cancel" Text="<%$Resources:Content,GN0000572%>" runat="server" CausesValidation="false"
                                                class="btn btn-primary waves-effect" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <asp:ValidationSummary ID="VS_SubDomains" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                ShowMessageBox="true" ShowSummary="false" ValidationGroup="SubDomains" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

</div>

<asp:Panel ID="Pnl_ProvisioningResult" CssClass="width-modal-popup-auto" runat="server" Style="display: none">
    <div class="row">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3><%= Resources.Content.L0052 %></h3>
                </div>
                <div class="body">
                    <div class="row">
                        <div id="Td_Message" class="col-xs-12" runat="server">
                            <asp:Label ID="Lbl_ProvisioningResult" runat="server" EnableViewState="false"></asp:Label>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_OKProvisioningResult" runat="server" Text="<%$Resources:Content,GN0000858%>" class="btn btn-primary waves-effect" />
                            <asp:Button ID="Btn_DisplayProvisioningResult" runat="server" Style="display: none;" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
<EM:ModalPopupExtender runat="server" ID="MPE_ProvisioningResult" BackgroundCssClass="modalBackground"
    DropShadow="false" PopupControlID="Pnl_ProvisioningResult" TargetControlID="Btn_DisplayProvisioningResult"
    OkControlID="Btn_OKProvisioningResult">
</EM:ModalPopupExtender>
<%--Resources Grid Pannel--%>
<asp:Button ID="Btn_Display" runat="server" Style="display: none;" />
<asp:Panel ID="Panel3" runat="server" BorderColor="ActiveBorder" BorderStyle="Groove"
    ScrollBars="Auto" CssClass="width-modal-popup-auto" Style="display: none">
    <EM:ResourceQuota runat="server" ID="ResourceQuotaView" />
</asp:Panel>
<EM:ModalPopupExtender runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
    PopupControlID="Panel3" TargetControlID="Btn_Display">
</EM:ModalPopupExtender>

<script lang="javascript">
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender3.ClientID%>');
</script>