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

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/GetComments.ascx" TagName="GetComments" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/AccountStatment.ascx" TagName="AccountStatment" TagPrefix="EM" %>
<%@ Register Src="AccountAddons.ascx" TagName="AccountAddons" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/GenerateInvoice.ascx" TagName="GenerateInvoice" TagPrefix="EM" %>
<%@ Register Src="../CC/Notes.ascx" TagName="Notes" TagPrefix="EM" %>
<%@ Register Src="CC/CRM.ascx" TagName="CRM" TagPrefix="EM" %>
<%@ Register Src="CC/CRM_Resource.ascx" TagName="CRM_Resource" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/PackageSwitch.ascx" TagName="PackageSwitch" TagPrefix="EM" %>
<%@ Register Src="~/Template/ResourcesQuota.ascx" TagName='ResourceQuota' TagPrefix='EM' %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ Register Src="~/RCC/Clients/CC/CancelSubscription.ascx" TagName="CancelSubscription" TagPrefix="EM" %>



<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
            </div>
            <div class="body">

                <ajax:UpdatePanel ID="UP_CRMHosting" runat="server">
                    <ContentTemplate>

                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy" Style="display: none" runat="server" />
                        <asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
                            <EM:CancelSubscription ID="UCCancelSubscription" runat="server" />
                        </asp:Panel>
                        <EM:ModalPopupExtender runat="server" ID="MP1" BackgroundCssClass="modalBackground"
                            DropShadow="false" PopupControlID="Panel1" TargetControlID="Btn_Dummy">
                        </EM:ModalPopupExtender>

                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Button1" Style="display: none" runat="server" />
                        <asp:Panel ID="Panel3" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                            <EM:GetComments ID="GetComments" runat="server" />
                        </asp:Panel>
                        <EM:ModalPopupExtender runat="server" ID="MPE_GetReason" BackgroundCssClass="modalBackground"
                            DropShadow="false" PopupControlID="Panel3" TargetControlID="Button1">
                        </EM:ModalPopupExtender>

                        <%--Resource Quota Window Starts--%>
                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy4" Style="display: none" runat="server" />
                        <asp:Panel ID="Pnl_ResourceQuota" runat="server" Visible='false' CssClass="width-modal-popup-auto">
                            <EM:ResourceQuota runat="server" ID="ResourceQuotaView" />
                        </asp:Panel>
                        <EM:ModalPopupExtender runat="server" ID="MPE_ResourceQuota" BackgroundCssClass="modalBackground"
                            DropShadow="false" PopupControlID="Pnl_ResourceQuota" TargetControlID="Btn_Dummy4"
                            Enabled='false'>
                        </EM:ModalPopupExtender>
                        <%--Resource Quota Window Ends--%>
                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy3" Style="display: none" runat="server" />
                        <asp:Panel ID="Pnl_PackageSwitch" CssClass="width-modal-popup-auto" runat="server" Style="display: none">
                            <EM:PackageSwitch runat="server" ID="PackageSwitch" OnPackageChange="PackageSwitchPopUpShow" />
                        </asp:Panel>
                        <EM:ModalPopupExtender runat="server" ID="MPE_PackageSwitch" BackgroundCssClass="modalBackground"
                            DropShadow="false" PopupControlID="Pnl_PackageSwitch" TargetControlID="Btn_Dummy3">
                        </EM:ModalPopupExtender>

                        <asp:SqlDataSource runat="server" ID="SqlDS_CRMOrganizationList"></asp:SqlDataSource>
                        <EM:TabContainer ID="TC_CRMHosting" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <EM:TabPanel ID="Tab_GeneralInfo" runat="server" HeaderText="<%$ Resources:Content,GN0000578%>">
                                <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_OpsRow" id="Div_OpsRow" runat="server">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001320%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_ManageService" runat="server" Text="<%$ Resources:Content,L0086%>" />
                                                        <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_UpGrade" runat="server" Text="<%$ Resources:Content,String302%>" />
                                                        <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_DownGrade" runat="server" Text="<%$ Resources:Content,String303%>" />
                                                        <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_PutOnHold" runat="server" class="btn btn-primary waves-effect" Text='<%$ Resources:Content,GN0000756%>' />
                                                        <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_CancelSub" runat="server" Text="<%$ Resources:Content,SPT002010%>" />
                                                        <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_GenerateRenewalInvoice" runat="server" Text="<%$ Resources:Content,GN00001482%>" />                                                            
                                                        <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_Edit" Enabled="false" Visible="false" runat="server" Text="<%$ Resources:Content,GN00001487%>" />
                                                            

                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <EM:CRM ID="CRM1" runat="server" />
                                        <EM:Notes ID="Notes_CRMAccount" runat="server" />

                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Resources" runat="server" HeaderText="<%$ Resources:Content,DEV1008%>">
                                <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 id="Tbl_Operations" runat="server" class="tblNewListing Div_OpsRow">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h3><%= Resources.Content.GN00001320%>  </h3>
                                                        </div>
                                                        <div class="body">
                                                            <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_EditResources" runat="server" Text="<%$ Resources:Content,SPT002193%>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <EM:CRM_Resource ID="CRM_Resource01" runat="server" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Addons" runat="server" HeaderText="<%$ Resources:Content,GN00001489%>">
                                <ContentTemplate>
                                    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab2" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">

                                        <EM:AccountAddons ID="AA_Hosting" runat="server" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <%--Organizations tab--%>
                            <EM:TabPanel ID="Tab_Organizations" runat="server" HeaderText="<%$ Resources:Content,L0023%>">
                                <ContentTemplate>
                                    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab3" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">
                                        <div class="row Div_OpsRow" id="FS_AddOrgBtn" runat="server" visible="true">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001320%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_AddNewOrg" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,DGN0011114%>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <%--
                            
                            <%--Quota code here--%>
                                        <%--<div id="Div_Orgs" runat="server" class="QuotaCode">
                            </div>
                                        --%>
                                        <%--Quota code here--%>
                                        <asp:GridView CssClass="table table-bordered table-hove table-striped table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                            DataSourceID="SqlDS_CRMOrganizationList" ID="GV_CRMOrganizations" AllowPaging="True"
                                            runat="server" AutoGenerateColumns="false">
                                            <Columns>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,String385%>' HeaderStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lbl_Status" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110608%>" HeaderStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LB_OrgName" runat="server"></asp:LinkButton>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000981%>" HeaderStyle-CssClass="col-xs-4">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LB_Portal" runat="server"></asp:LinkButton>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,USM0025%>" HeaderStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Users" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-CssClass="col-xs-4">
                                                    <ItemTemplate>
                                                        <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="Lb_Status" runat="server"></asp:LinkButton>
                                                        <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="LB_Manage" SkinID="linkButtonmanage" runat="server" Text='<%$ Resources:Content,L0086%>'
                                                            CommandName="Org_Manage"></asp:LinkButton>
                                                        <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                                            SkinID="linkButtonDelete" CommandName="Delete_Org" />
                                                        <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                            TargetControlID="LB_Delete">
                                                        </EM:ConfirmButtonExtender>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <%--PagerTemplate Start--%>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager1" runat="server" />
                                            </PagerTemplate>
                                            <%--PagerTemplate End--%>
                                        </asp:GridView>
                                    </asp:Panel>
                                    <br />
                                    <%--Add New Organization Form--%>
                                    <div class="tblNewListing" id="CRM_AddnewOrg" runat="server" visible="false">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.L0024%>  </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal13" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String60%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_OUs" AutoPostBack="true" runat="server">
                                                                        <asp:ListItem Text="<%$ Resources:Content,L0025%>" Value="0" Selected="True">
                                                                        </asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="div_TxBx_OUName" runat="server">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,OrganizationalUnitName%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_OUName" runat="server" MaxLength="128"></asp:TextBox>
                                                                    </div>
                                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxBx_OUName"
                                                                        ValidationExpression="([a-z|A-Z|_|\-|\.| ]([0-9]{0,20}))+" ErrorMessage="Invalid Organizational Unit Name"
                                                                        Display="None" SetFocusOnError="true" ValidationGroup="CRM"></asp:RegularExpressionValidator>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="TR_DomainNameSelect" runat="server">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                <asp:Literal ID="Ltrl_SelectDomainName" runat="server" Text="<%$Resources:Content,DGN1110334 %>"></asp:Literal>
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_DomainName" runat="server"></asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="TR_DomainName" runat="server">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                <asp:Literal ID="LtrlDomainName" runat="server" EnableViewState="false" Text="<%$Resources:Content,GN000125%>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_DomainName" runat="server" MaxLength="61"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="RFV_DomainName" runat="server" ControlToValidate="TxBx_DomainName"
                                                                            Display="None" SetFocusOnError="true" ValidationGroup="CRM"></asp:RequiredFieldValidator>
                                                                        <%--<asp:RegularExpressionValidator ID="REV_DomainName" runat="server" ValidationExpression="^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$"
                                                                            Display="None" ValidationGroup="CRM" ControlToValidate="TxBx_DomainName" ErrorMessage="Invalid Domain Name. Each label in a domain name can have 63 letters/numbers (characters) and a domain name cannot have more than 253 characters."
                                                                            SetFocusOnError="true"></asp:RegularExpressionValidator>--%>
                                                                    </div>
                                                                </div>
                                                                <asp:Literal ID="Literal14" runat="server" Text="<%$Resources:Content,DEV1044%>" />
                                                            </div>
                                                        </div>
                                                        <div class="row" runat="server" id="Tr_DispName">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                <asp:Literal ID="Literal15" runat="server" EnableViewState="false" Text="<%$ Resources:Content,L0030%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_DispName" MaxLength="30" runat="server"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <asp:RequiredFieldValidator ID="REV_TxBx_DispName" runat="server" ControlToValidate="TxBx_DispName"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="CRM"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="REV_DispName" runat="server" ControlToValidate="TxBx_DispName"
                                                                    ValidationExpression="^([a-z|A-Z])+([0-9])*(\.|\-|_|\s){0,1}([a-z|A-Z|0-9|\s])+$"
                                                                    ErrorMessage="Invalid Display Name for CRM Organization" Display="None" SetFocusOnError="true"
                                                                    ValidationGroup="CRM"></asp:RegularExpressionValidator>
                                                            </div>
                                                        </div>
                                                        <div class="row" runat="server" id="Tr_UniqueName">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                <asp:Literal ID="Literal20" runat="server" EnableViewState="false" Text="<%$ Resources:Content,L0032%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_UniqueName" MaxLength="30" runat="server"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <asp:RequiredFieldValidator ID="REV_TxBx_UniqueName" runat="server" ControlToValidate="TxBx_UniqueName"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="CRM">
                                                                </asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="REG_UniqueName" runat="server" ControlToValidate="TxBx_UniqueName"
                                                                    ValidationExpression="^([a-z|A-Z]+[0-9]{0,20}(\-)*[a-z|A-Z]+[0-9]{0,20}){1,30}$"
                                                                    ErrorMessage="Invalid Unique Name for CRM Organization" Display="None" SetFocusOnError="true"
                                                                    ValidationGroup="CRM"></asp:RegularExpressionValidator>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="TR_CurrencyCode" runat="server">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="LIteral19" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SMI0340%>"></asp:Literal>
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="ddl_IsoCurrCode" runat="server" AppendDataBoundItems='true'>
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0289%>" Value='0'></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id='TR_Locales' runat="server">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                <asp:Literal ID="Ltrl_Locales" runat="server" Text="<%$ Resources:Content,GN00003000%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID='Ddl_Locales' runat="server">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110360%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_Manager" AutoPostBack="true" runat="server">
                                                                        <asp:ListItem Text="<%$ Resources:Content,L0028%>" Value="0" Selected="True"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                    <EM:FilteredTextBoxExtender ID="FTE_Manager" TargetControlID="TxBx_Manager" runat="server"
                                                                        FilterType="Custom, UppercaseLetters, Numbers, LowercaseLetters" ValidChars=" -_.">
                                                                    </EM:FilteredTextBoxExtender>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="div_TxBx_Manager" runat="server">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DEV1042%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Manager" runat="server" MaxLength="50"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <label>
                                                                    <asp:Label ID="Lbl_Domain" runat="server"></asp:Label>
                                                                </label>
                                                            </div>
                                                        </div>
                                                        <div class="row" id='tr_firstname' runat='server'>
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                <asp:Literal ID="Literal16" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001132%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_AdminFName" runat="server" MaxLength="50"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <asp:RequiredFieldValidator ID="RFV_TxBx_AdminFName" runat="server" ControlToValidate="TxBx_AdminFName"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="CRM"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="REV_TxBx_AdminFName" runat="server" ControlToValidate="TxBx_AdminFName"
                                                                    ValidationExpression="([a-z|A-Z])+" ErrorMessage="Invalid First Name. Must contain only letters or dots."
                                                                    Display="None" SetFocusOnError="true" ValidationGroup="CRM"></asp:RegularExpressionValidator>
                                                            </div>
                                                        </div>
                                                        <div class="row" id='tr_lastname' runat='server'>
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                <asp:Literal ID="Literal17" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001133%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_AdminLName" MaxLength="50" runat="server"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <asp:RequiredFieldValidator ID="RFV_TxBx_AdminLName" runat="server" ControlToValidate="TxBx_AdminLName"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="CRM"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ID="REV_TxBx_AdminLName" runat="server" ControlToValidate="TxBx_AdminLName"
                                                                    ValidationExpression="([a-z|A-Z])+" ErrorMessage="Invalid Last Name. Must contain only letters or dots."
                                                                    Display="None" SetFocusOnError="true" ValidationGroup="CRM"></asp:RegularExpressionValidator>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="TR_Email" runat="server">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                <asp:Literal ID="Literal18" runat="server" EnableViewState="false" Text="<%$ Resources:Content,L0029%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Email" runat="server" MaxLength="61"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <asp:RequiredFieldValidator ID="RFV_Email" runat="server" ControlToValidate="TxBx_Email"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="CRM"></asp:RequiredFieldValidator>
                                                              <%--  <asp:RegularExpressionValidator ErrorMessage='<%$ Resources:Content,DGN1110038%>'
                                                                    ID="REV_TxBx_Email" runat="server" ControlToValidate="TxBx_Email" Display="None"
                                                                    SetFocusOnError="True" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                                    ValidationGroup="CRM">
                                                                </asp:RegularExpressionValidator>--%>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="TR_Password" runat="server">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000569%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Password" runat="server" MaxLength="30" TextMode="Password"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <label class="small">(<asp:Literal ID="Literal9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110536%>" />)</label>
                                                                <asp:RequiredFieldValidator ID="RFV_Password" runat="server" ControlToValidate="TxBx_Password"
                                                                    Display="None" ValidationGroup="CRM" SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                                <asp:RegularExpressionValidator ErrorMessage='<%$ Resources:Content,DGN1110625%>'
                                                                    ID="REV_TxBx_Password" runat="server" ControlToValidate="TxBx_Password" Display="None"
                                                                    ValidationExpression="^.*(?=.{6,})(?=.*\d)(?=.*[a-zA-Z]).*$" ValidationGroup="CRM"
                                                                    SetFocusOnError="True"></asp:RegularExpressionValidator>
                                                                <br />
                                                                <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <asp:Button ID="lb_Generate" runat="server" Text="<%$ Resources:Content,SMI0195%>"
                                                                    CausesValidation="false" CssClass="RandomPassword btn btn-primary waves-effect"
                                                                    TabIndex="-1"></asp:Button>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="TR_CPassword" runat="server">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                <asp:Literal ID="Literal7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001196%>" />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_CPassword" runat="server" MaxLength="30" TextMode="Password"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <asp:RequiredFieldValidator ID="RFV_CPassword" runat="server" ControlToValidate="TxBx_CPassword"
                                                                    Display="None" ValidationGroup="CRM" SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                                <asp:CompareValidator ID="CV_AddPassword" runat="server" ControlToCompare="TxBx_Password"
                                                                    ControlToValidate="TxBx_CPassword" Display="None" ErrorMessage="<%$Resources:Content,DGN1110005 %>"
                                                                    SetFocusOnError="true" ValidationGroup="CRM"></asp:CompareValidator>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                                                    ShowMessageBox="True" ShowSummary="False" ValidationGroup="CRM" />
                                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" runat="server" ID="Btn_AddConfirm" SkinID="saveButton" Text="<%$ Resources:Content,GN0000281%>"
                                                                    ValidationGroup="CRM" />
                                                                <asp:Button CssClass="btn btn-primary waves-effect" runat="server" ID="Btn_AddCancel" Text="<%$ Resources:Content,GN0000572%>"
                                                                    SkinID="cancelButton" CausesValidation="false" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Billing" runat="server" HeaderText="<%$ Resources:Content,GN00001490%>">
                                <ContentTemplate>
                                    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab4" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent4" runat="server" Visible="false">
                                        <EM:AccountStatment ID="AS_Hosting" runat="server"></EM:AccountStatment>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </ContentTemplate>
                </ajax:UpdatePanel>
                <ajax:UpdatePanel ID="UP_Resources" runat="server" UpdateMode="Always">
                    <ContentTemplate>
                        <div class="ResourceQuota">
                            <asp:Panel ID="Pnl_Resources" runat="server" BorderColor="ActiveBorder" BorderStyle="Groove"
                                ScrollBars="Auto" CssClass="ResourceQuota-panel" Style="display: none">
                                <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 row-label">
                                                        <asp:Label ID="Lbl_ResourceError" runat="server" ForeColor="red" Font-Bold="true" Visible="false"></asp:Label>
                                                    </div>
                                                </div>
                                                <asp:GridView ID="GV_Resources" runat="server" AllowPaging="true" CssClass="table table-bordered table-hove table-striped table-responsive"
                                                    AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>"
                                                    PageSize="500">

                                                    <Columns>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1008%>" HeaderStyle-CssClass="col-xs-4">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_ResourceID" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1002%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_TotalResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1003%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_UsedResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1004%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_AvailableResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1005%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_RequestedResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>

                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Done" runat="server" Text="<%$ Resources:Content,GN0000858%>" SkinID="okbutton" />
                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Display" runat="server" Style="display: none;" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <EM:ModalPopupExtender runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
                            DropShadow="false" PopupControlID="Pnl_Resources" TargetControlID="Btn_Display"
                            OkControlID="Btn_Done">
                        </EM:ModalPopupExtender>
                    </ContentTemplate>
                </ajax:UpdatePanel>
                <%--<ajax:UpdatePanel ID="UP_Inter" runat="server" UpdateMode="Conditional">
        <ContentTemplate>--%>
                <%--</ContentTemplate>
    </ajax:UpdatePanel>--%>
            </div>
        </div>
    </div>

    <ajax:UpdatePanel ID="UP_CRM" runat="server">
        <ContentTemplate>
            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy2" Style="display: none" runat="server" />
            <asp:Panel ID="Panel2" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                <EM:GenerateInvoice ID="GenerateInvoice" runat="server" />
            </asp:Panel>
            <EM:ModalPopupExtender runat="server" ID="MPE_Invoice" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="Panel2" TargetControlID="Btn_Dummy2">
            </EM:ModalPopupExtender>
        </ContentTemplate>
    </ajax:UpdatePanel>
    <script type="text/javascript">
        function onOk() {
            if (document.getElementById('ctl00_CPH_Content_TxBx_ItemComments').value != '') {
                __doPostBack('ctl00$CPH_Content$Btn_Pop_OK', '');
            }
            else {
                alert("Please enter comments.");
                $find('ctl00_CPH_Content_MP1').show();
            }

        }
        function onCancel() {
            //  __doPostBack('ctl00$RightContentPlaceHolder$Btn_Pop_Cancel','');
            //      __doPostBack('ctl00$RightContentPlaceHolder$GV_TicketList$ctl02$LBtn_Del','')
        }

        AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_Manager.ClientID%>');
    </script>
</asp:Content>
