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

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


<%@ Register Src="~/RCC/Clients/CC/PackageSwitch.ascx" TagName="PackageSwitch" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/GetComments.ascx" TagName="GetComments" TagPrefix="EM" %>

<%@ Register Src="CC/ExH_Resource.ascx" TagName="ExH_Resource" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/RSMailboxes.ascx" TagName="RS" 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="../CC/Notes.ascx" TagName="Notes" TagPrefix="EM" %>
<%@ Register Src="CC/ExH.ascx" TagName="ExH" 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_ExHosting" runat="server">
        <ContentTemplate>
            <%--Resource Quota Window Starts--%>
            <asp:Button ID="Btn_Dummy4" Style="display: none" runat="server" />
            <asp:Panel ID="Pnl_ResourceQuota" CssClass="width-modal-popup-auto" runat="server" Visible='false'>
                <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" 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:Button 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>

            <asp:Button 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:SqlDataSource runat="server" ID="SqlDS_ExOrganizationList"></asp:SqlDataSource>
            <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_ExHosting" 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;" />
                                    <%-- #General Settings--%>
                                    <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 ID="Btn_ManageService" runat="server" Text="<%$ Resources:Content,L0086%>" class="btn btn-primary waves-effect btnAction" data-toggle="tooltip" data-placement="top" title="" data-original-title="" />
                                                        <asp:Button ID="Btn_UpGrade" runat="server" Text="<%$ Resources:Content,String302%>" class="btn btn-primary waves-effect btnAction" />
                                                        <asp:Button ID="Btn_DownGrade" runat="server" Text="<%$ Resources:Content,String303%>" class="btn btn-primary waves-effect btnAction" />
                                                        <asp:Button ID="Btn_PutOnHold" runat="server" Text='<%$ Resources:Content,GN0000756%>' class="btn btn-primary waves-effect btnAction" />
                                                        <asp:Button ID="Btn_CancelSub" runat="server" Text="<%$ Resources:Content,SPT002010%>" class="btn btn-primary waves-effect btnAction" />
                                                        <asp:Button ID="Btn_GenerateRenewalInvoice" runat="server" Text="<%$ Resources:Content,GN00001482%>" class="btn btn-primary waves-effect btnAction" />
                                                        <asp:Button ID="Btn_Edit" Enabled="false" Visible="false" runat="server" Text="<%$ Resources:Content,GN00001487%>" class="btn btn-primary waves-effect btnAction" />
                                                        <asp:Button ID="Btn_FixSG" runat="server" Text="<%$ Resources:Content,String174%>" class="btn btn-primary waves-effect btnAction" />
                                                        <EM:ConfirmButtonExtender ID="CBE_FixSecurityGroup" ConfirmText="<%$ Resources:Content,strConfirmMsgOnFixSecurityPermission%>"
                                                            TargetControlID="Btn_FixSG" runat="server">
                                                        </EM:ConfirmButtonExtender>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <EM:ExH ID="ExH" runat="server" />
                                        <EM:Notes ID="Notes_ExAccount" 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 class="col-xs-12">
                                                <div class="products-step" id="Tbl_ResourceOptions" runat="server">
                                                    <span id="div_SubResources" runat="server" nowrap="true" class="label label-success">
                                                        <asp:LinkButton ID="Lb_SubRes" runat="server" Text='<%$ Resources:Content, DEV1087 %>' />
                                                    </span>
                                                    <span id="div_ResourceMailboxes" runat="server" nowrap="true" class="label label-default">
                                                        <asp:LinkButton ID="Lb_RMBs" runat="server" Text='<%$ Resources:Content, DGN1110598 %>' />
                                                    </span>
                                                    <span id="div_SharedMailboxes" runat="server" nowrap="true" class="label label-default">
                                                        <asp:LinkButton ID="Lb_SMBs" runat="server" Text='<%$ Resources:Content, FAM00111 %>' />
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                        <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%>      <%--Operations--%>                                                                                                                             
                                                        </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>

                                        <asp:Panel ID="Pnl_SubResources" runat="server">
                                            <EM:ExH_Resource ID="ExH_Resource" runat="server" />
                                        </asp:Panel>
                                        <asp:Panel ID="Pnl_ResourceMailboxes" runat="server">
                                            <EM:RS ID="RS1" runat="server" />
                                        </asp:Panel>
                                        <asp:Panel ID="Pnl_SharedMailboxes" runat="server">
                                            <EM:RS ID="RS2" runat="server" />
                                        </asp:Panel>
                                        <br />
                                        <div class="row" id="Tbl_TemplateListing" runat="server">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.Ex101%>                                                                                                                        
                                                        </h3>
                                                    </div>
                                                    <div class="body">

                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal7" runat="server" EnableViewState="false" Text="<%$ Resources:Content, String512 %>"></asp:Literal>:
                                                            </div>

                                                            <div class="col-sm-10 col-xs-12">
                                                                <asp:Label ID="Lbl_TemplateMapping" runat="server"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </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>

                            <EM:TabPanel ID="Tab_Organizations" runat="server" HeaderText="<%$ Resources:Content,DGN1110567%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab3" runat="server" Style="display: none;" />
                                    <%-- #Exchange Organization--%>
                                    <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, DGN0011114 %>" 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="False" 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-4">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_OrgName" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110516%>" HeaderStyle-CssClass="col-xs-3">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_DomainName" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110406%>" HeaderStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_MailBoxes" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-CssClass="col-xs-3">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_Manage" CssClass="btn btn-primary" runat="server" Text='<%$ Resources:Content,L0086%>' data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:HyperLink>
                                                                <asp:LinkButton ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                                                    CssClass="btn btn-primary btnAction" CommandName="Delete_Org" />
                                                                <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                                    TargetControlID="LB_Delete">
                                                                </EM:ConfirmButtonExtender>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>

                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager1" runat="server" />
                                                    </PagerTemplate>

                                                </asp:GridView>
                                            </div>
                                        </div>

                                    </asp:Panel>


                                    <%--Add New Organization Form--%>
                                    <div id="FS_AddnewOrg" runat="server" visible="false">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.DGN0011115%>                                                                                                                                
                                                        </h3>
                                                    </div>
                                                    <div class="body">

                                                        <div class="row" id="Tr_OUs" runat="server" style="display: none">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal4" 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="Tr_OU" runat="server">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                *
                                                                        <asp:Literal ID="Literal5" 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>
                                                                        <asp:RequiredFieldValidator ID="RFV_OU" runat="server" ControlToValidate="TxBx_OrgName"
                                                                            Display="None" SetFocusOnError="True" ValidationGroup="AddOrg"></asp:RequiredFieldValidator>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row" id="TR_DomainNameSelect" runat="server" visible="false">
                                                            <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="Literal12" runat="server" Text="<%$ Resources:Content,GN000125%>"
                                                                        EnableViewState="false"></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"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_DomainName"
                                                                            Display="None" SetFocusOnError="True" ValidationGroup="AddOrg"></asp:RequiredFieldValidator>
                                                                        <%--<asp:RegularExpressionValidator ID="REV_Domain" runat="server" ValidationGroup="AddOrg"
                                                                            ControlToValidate="TxBx_DomainName" ErrorMessage="Please enter a valid domain name."
                                                                            Display="None" ValidationExpression="^([a-z?-?A-Z?-?0-9]([a-z?-?A-Z?-?0-9\-]{0,61}[a-z?-?A-Z?-?0-9])?\.)+[a-z?-?A-Z?-?]{2,63}$"></asp:RegularExpressionValidator>--%>

                                                                    </div>
                                                                </div>
                                                                <small>
                                                                    <asp:Literal ID="Literal6" runat="server" Text="<%$Resources:Content,DEV1044%>" />
                                                                    <asp:Label ID="Laleb123" runat="server" Text="<%$ Resources:Content,GN001102%>"></asp:Label>
                                                                </small>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,GN0000878%>"
                                                                    EnableViewState="false"></asp:Literal>:
                                                            </div>

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

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

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

                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_State" 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" EnableViewState="false" Text="<%$ Resources:Content,GN00001522%>"></asp:Literal>:
                                                            </div>

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

                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_Country" runat="server" Width="150px" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal19" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000597%>"></asp:Literal>:
                                                            </div>

                                                            <div class="col-sm-8 col-xs-12">
                                                                <asp:TextBox ID="TxBx_Description" runat="server" TextMode="MultiLine" class="col-xs-12" Rows="5"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </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="AddOrg" />
                                                <asp:Button runat="server" ID="Btn_AddConfirm" SkinID="saveButton" Text="<%$ Resources:Content,GN0000281%>"
                                                    ValidationGroup="AddOrg" CssClass="btn btn-primary btnAction" />
                                                <asp:Button runat="server" ID="Btn_AddCancel" Text="<%$ Resources:Content,GN0000572%>"
                                                    SkinID="cancelButton" CausesValidation="false" CssClass="btn btn-primary" />
                                            </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>
            <asp:Panel ID="Pnl_Resources" runat="server" BorderColor="ActiveBorder" BorderStyle="Groove"
                ScrollBars="Auto" CssClass="background-color-white" 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"></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 ID="Btn_Done" runat="server" Text="<%$ Resources:Content,GN0000858%>" SkinID="okbutton" CssClass="btn btn-primary waves-effect"  />
                            <asp:Button ID="Btn_Display" runat="server" Style="display: none;" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <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>
            <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>
        </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','')
        }

    </script>

</asp:Content>
