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

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/GetComments.ascx" TagName="GetComments" TagPrefix="EM" %>
<%@ Register Src="AccountStatment.ascx" TagName="AccountStatment" TagPrefix="EM" %>
<%@ Register Src="AccountAddons.ascx" TagName="AccountAddons" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="../CC/Notes.ascx" TagName="Notes" TagPrefix="EM" %>
<%@ Register Src="CC/SP.ascx" TagName="SP" TagPrefix="EM" %>
<%@ Register Src="CC/SP_Resource.ascx" TagName="SP_Resource" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/PackageSwitch.ascx" TagName="PackageSwitch" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/GenerateInvoice.ascx" TagName="GenerateInvoice" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/CancelSubscription.ascx" TagName="CancelSubscription" TagPrefix="EM" %>

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

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">

    <ajax:UpdatePanel ID="UP_SPHosting" runat="server">
        <ContentTemplate>
            <asp:Literal ID="Ltl_Title" Visible="false" runat="server" />
            <asp:Button ID="Button1" Style="display: none" runat="server" />
            <asp:Panel ID="Panel3" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
                <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>

            <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 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 ID="Btn_Dummy3" Style="display: none" runat="server" />
            <asp:Panel ID="Pnl_PackageSwitch" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
                <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:Button ID="Btn_Dummy" Style="display: none" runat="server" />

            <div class="col-xs-12">
                <div class="card">
                    <%-- <div class="header">
                        <h2>
                            <asp:Literal ID="Literal8" runat="server" Text="Page Title" /></h2>
                    </div>--%>
                    <div class="body">
                        <EM:TabContainer ID="TC_SPHosting" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <EM:TabPanel ID="Tab_GeneralInfo" runat="server" HeaderText="<%$ Resources:Content,GN0000578%>">
                                <ContentTemplate>
                                    <asp:Button 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%>      <%--Operations--%>                                                                                                                             
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_ManageService" runat="server"
                                                            Text="<%$ Resources:Content,L0086%>" data-toggle="tooltip" data-placement="top" title="" data-original-title="" />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_UpGrade" runat="server"
                                                            Text="<%$ Resources:Content,String302%>" />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_DownGrade" runat="server"
                                                            Text="<%$ Resources:Content,String303%>" />
                                                        <asp:Button ID="Btn_PutOnHold" runat="server" class="btn btn-primary waves-effect btnAction"
                                                            Text='<%$ Resources:Content,GN0000756%>' />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_CancelSub" runat="server"
                                                            Text="<%$ Resources:Content,SPT002010%>" />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_GenerateRenewalInvoice"
                                                            runat="server" Text="<%$ Resources:Content,GN00001482%>" />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_Edit" Enabled="false" Visible="false"
                                                            runat="server"
                                                            Text="<%$ Resources:Content,GN00001487%>" />

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

                                        </div>


                                        <EM:SP ID="SP" runat="server" />
                                        <EM:Notes ID="Notes_SPAccount" runat="server" />

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


                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                    ID="GV_ExOrganizations" 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" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,L0064%>" HeaderStyle-CssClass="col-xs-3">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_Portal" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:LinkButton>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0365%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="LB_Title" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000636%>" 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-3">
                                                            <ItemTemplate>
                                                                <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="LB_Manage" SkinID="linkButtonmanage" runat="server" Text='<%$ Resources:Content,L0086%>'
                                                                    CommandName="Org_Manage" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></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>
                                            </div>
                                        </div>
                                    </asp:Panel>


                                    <%--Add New Organization Form--%>
                                    <div id="FS_AddnewOrg" runat="server" visible="false">

                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.L0065%>                                                                                                                                
                                                </h3>
                                            </div>
                                            <div class="body">

                                                <div class="row" id='tr_templates' runat='server' visible='false'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID='Ltrl_Templates' runat='server' Text="<%$ Resources:Content,SMI0321%>"></asp:Literal>
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:ListBox ID='Lbx_PortalTemplates' runat='server' SelectionMode='Single'
                                                                Height='150px'></asp:ListBox>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal6" runat="server" Text="*" EnableViewState="false" />
                                                        <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,String60%>"
                                                            EnableViewState="false" />:
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_OUs" AutoPostBack="true" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row" id="div_TxBx_OrgName" runat="server">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        *
                                                                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,DGN1110608%>"
                                                                            EnableViewState="false" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_OrgName" runat="server" MaxLength="128"></asp:TextBox>
                                                                <EM:FilteredTextBoxExtender ID="FTE_TxBx_OrgName" TargetControlID="TxBx_OrgName"
                                                                    runat="server" FilterType="Custom, UppercaseLetters, Numbers, LowercaseLetters"
                                                                    ValidChars=" ._-">
                                                                </EM:FilteredTextBoxExtender>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_OrgName"
                                                                    Display="None" SetFocusOnError="true" ValidationGroup="SP"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </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" 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="75"></asp:TextBox>
                                                            </div>
                                                        </div>

                                                    </div>

                                                    <div class="col-sm-offset-4 col-sm-4 col-xs-12">
                                                        <small>
                                                            <asp:Literal ID="Literal14" runat="server" Text="<%$Resources:Content,DEV1044%>" />
                                                            <asp:RequiredFieldValidator ID="RFV_DomainName" runat="server" ControlToValidate="TxBx_DomainName"
                                                                Display="None" SetFocusOnError="true" ValidationGroup="SP"></asp:RequiredFieldValidator>
                                                            <%--<asp:RegularExpressionValidator ID="REV_DomainName" runat="server" ValidationExpression="<%$ Resources:Content,REV001 %>"
                                                                Display="None" ValidationGroup="SP" ControlToValidate="TxBx_DomainName" ErrorMessage="Invalid Domain Name"
                                                                SetFocusOnError="true"></asp:RegularExpressionValidator>--%>
                                                        </small>
                                                    </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" runat="server" id="Tr_CreateProtalTypes">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,Dev11110%>'
                                                            EnableViewState="false" />:
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="ddl_CreateProtalTypes" runat="server" AutoPostBack="true">
                                                                <asp:ListItem Text="<%$ Resources:Content,SPT002260%>" Value="1" Selected="True">
                                                                </asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,L0067%>" Value="0">
                                                                </asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row" runat="server" id="Tr_PortalName">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        *
                                                <asp:Literal ID="Literal15" runat="server" Text='<%$ Resources:Content,String394%>'
                                                    EnableViewState="false" />:
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:Label ID='Lbl_fixedPathUrl' runat='server' Text=''></asp:Label>
                                                                <asp:TextBox ID="TxBx_PortalName" MaxLength="100" runat="server"></asp:TextBox>
                                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" TargetControlID="TxBx_PortalName"
                                                                    runat="server" FilterType="UppercaseLetters, Numbers, LowercaseLetters, Custom" ValidChars="0123456789.">
                                                                </EM:FilteredTextBoxExtender>
                                                                <asp:RequiredFieldValidator ID="REV_TxBx_PortlName" runat="server" ControlToValidate="TxBx_PortalName"
                                                                    Display="None" SetFocusOnError="True" Enabled="false" ValidationGroup="SP"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <label>
                                                            <asp:Label
                                                                ID="Lbl_WebAppUrl" runat="server"></asp:Label></label>
                                                    </div>
                                                </div>
                                                <div class="row" runat="server" id="Tr_VPortalName" visible="false">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        *
                                                <asp:Literal ID="Literal20" runat="server" Text='<%$ Resources:Content,String394%>'
                                                    EnableViewState="false" />:
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_VPortalName" MaxLength="500" runat="server"></asp:TextBox>
                                                                <asp:Literal ID="Literal_Dot" runat="server" Text="." />
                                                                <asp:RequiredFieldValidator ID="REV_TxBx_VPortalName" Enabled="false" runat="server"
                                                                    ControlToValidate="TxBx_VPortalName" Display="None" SetFocusOnError="True" ValidationGroup="SP"></asp:RequiredFieldValidator>
                                                                <%--<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxBx_VPortalName"
                                                                    ValidationGroup="SP" ErrorMessage="Invalid portal address." SetFocusOnError="true"
                                                                    Display="None" ValidationExpression="<%$ Resources:Content,REV001 %>">
                                                                </asp:RegularExpressionValidator>--%>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        *
                                                <asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,GN0000280%>"
                                                    EnableViewState="false" />:
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Title" runat="server" MaxLength="200"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_Title"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="SP"></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal22" runat="server" Text='<%$ Resources:Content,String150%>'></asp:Literal>:
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_StorageLevel" runat="server" />
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal29" runat="server" Text='<%$ Resources:Content,String151%>'></asp:Literal>:
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_WarnLevel" runat="server"></asp:TextBox>
                                                            </div>
                                                            <asp:Label ID="Literal70" ForeColor="forestgreen" runat="server" Text='<%$Resources:Content,String415 %>'></asp:Label>
                                                        </div>
                                                    </div>

                                                    <div class="col-sm-4 col-xs-5">
                                                        <div class="form-group">
                                                            <asp:CheckBox ID="ChBx_SendWarning" Text="<%$ Resources:Content,GN0000908%>" runat="server" />
                                                            <asp:Label ID="Lbl_EditSendWarning" runat="server" ForeColor="red" Visible="false">*</asp:Label>
                                                        </div>

                                                    </div>
                                                </div>
                                                <div class="row" id='tbledit_sandboxedquotalimit' runat='server'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        * 
                                                <asp:Literal ID="Literal38" runat="server" Text="<%$ Resources:Content,USM0042 %>"></asp:Literal>
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID='DDL_UsagePerDayLimit' runat='server'></asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row" id='tbledit_sandboxedquotawarning' runat='server'>
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        *
                                                <asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:Content,USM0043 %>"></asp:Literal>
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID='TxBx_UsagePerDayWarning' runat='server'></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,GN0000597%>"
                                                            EnableViewState="false" />:
                                                    </div>

                                                    <div class="col-sm-8 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:TextBox ID="TxBx_Desc" TextMode="MultiLine" class="col-xs-12" Rows="4" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal19" runat="server" Text="<%$ Resources:Content,GN00001527%>"
                                                            EnableViewState="false" />:
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="DDL_Locale" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal7" runat="server" Text="*" EnableViewState="false" />
                                                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,DGN1110360%>"
                                                            EnableViewState="false" />:
                                                    </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>
                                                        </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" Text='<%$ Resources:Content,DEV1042%>'
                                                            EnableViewState="false" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-5">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Manager" runat="server" MaxLength="100"></asp:TextBox>
                                                                <EM:FilteredTextBoxExtender ID="FTE_Manager" TargetControlID="TxBx_Manager" runat="server"
                                                                    FilterType="Custom, UppercaseLetters, Numbers, LowercaseLetters" ValidChars="._">
                                                                </EM:FilteredTextBoxExtender>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-5">
                                                        <label>
                                                            <asp:Label
                                                                ID="Lbl_Domain" runat="server"></asp:Label></label>
                                                    </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" Text="<%$ Resources:Content,L0029%>" EnableViewState="false" />:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_Email" runat="server"></asp:TextBox>
                                                                <asp:RequiredFieldValidator ID="RFV_Email" runat="server" ControlToValidate="TxBx_Email"
                                                                    Display="None" SetFocusOnError="True" ValidationGroup="SP"></asp:RequiredFieldValidator>
                                                                <%--<asp:RegularExpressionValidator ErrorMessage='<%$ Resources:Content,DGN1110038%>'
                                                                    ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_Email"
                                                                    Display="None" SetFocusOnError="True" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                                    ValidationGroup="SP"></asp:RegularExpressionValidator>--%>
                                                            </div>
                                                        </div>
                                                    </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="SP" />
                                                        <asp:Button runat="server" ID="Btn_AddConfirm" SkinID="saveButton" Text="<%$ Resources:Content,GN0000281%>"
                                                            ValidationGroup="SP" CssClass="btn btn-primary waves-effect btnAction" />
                                                        <asp:Button runat="server" ID="Btn_AddCancel" Text="<%$ Resources:Content,GN0000572%>"
                                                            SkinID="cancelButton" CausesValidation="false" CssClass="btn btn-primary waves-effect" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                    </div>

                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Billing" runat="server" HeaderText="<%$ Resources:Content,GN00001490%>">
                                <ContentTemplate>
                                    <asp:Button 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>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </ajax:UpdatePanel>
    <ajax:UpdatePanel ID="UP_Resources" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div class="ResourceQuota">
                <asp:Panel ID="Pnl_Resources" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                    <table class="col-xs-12">
            <tr class="row">
                <td class="col-xs-12">
                                <asp:Label ID="Lbl_ResourceError" runat="server" ForeColor="red" Font-Bold="true" Visible="false" EnableViewState="false"></asp:Label>
                            </td>
                        </tr>
                        <tr class="row">
                <td class="col-xs-12">
                                <asp:GridView ID="GV_Resources" runat="server" AllowPaging="true" CssClass="table table-bordered table-striped table-hover"
                                    AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>"
                                    PageSize="500">
                                    <AlternatingRowStyle CssClass="altRow" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1008%>" HeaderStyle-CssClass="col-xs-3">
                                            <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-3">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_RequestedResources" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                        <tr class="row">
                <td 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;" />
                            </td>
                        </tr>
                    </table>
                </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>

    <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%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_TxBx_OrgName.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
    </script>


    <ajax:UpdatePanel ID="UP_SP" runat="server">
        <ContentTemplate>
            <asp:Button ID="Btn_Dummy2" Style="display: none" runat="server" />
            <asp:Panel ID="Panel2" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
                <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>
</asp:Content>
