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

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

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <%-- <div class="header">
                        <h3>
                            <%= Resources.Content.GN00001320%>                                                                                                                                 
                        </h3>
                    </div>--%>
            <div class="body">
                <ajax:UpdatePanel ID="UP_Filter" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <EM:TabContainer ID="TbCntr_ServerGroups" runat="server" OnClientActiveTabChanged="loadTabPanel">
                            <EM:TabPanel ID="Tab_ServerGroups" runat="server" HeaderText="<%$ Resources:Content,M0095%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent0" runat="server" DefaultButton="Btn_Filter">
                                        <%--Start Search box--%>
                                        <asp:Panel ID="Pnl_Search" runat="server" CssClass="row" DefaultButton="Btn_Filter">
                                            <div class="panel-group search-panel" id="AS_ServerGroups" role="tablist" aria-multiselectable="true">
                                                <div class="col-xs-12" role="tab" id="SH_ServerGroups">
                                                    <div class="card">
                                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ServerGroups" href="#<%= CSB_ServerGroups.ClientID%>" aria-expanded="true" aria-controls="SH_ServerGroups">
                                                            <h3>
                                                                <%= Resources.Content.GN0000395%>
                                                            </h3>
                                                        </div>
                                                        <div id="CSB_ServerGroups" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ServerGroups" aria-expanded="false">
                                                            <div class="row">
                                                                <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="td_Owner">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDL_AIacticePAckages" runat="server">
                                                                            <asp:ListItem Selected="True" Text='<%$ Resources:Content,GN0000934 %>' Value="-1"></asp:ListItem>
                                                                            <asp:ListItem Text='<%$ Resources:Content,GN00001309 %>' Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text='<%$ Resources:Content,GN00001310 %>' Value="0"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:Button ID="Btn_Filter" SkinID="searchButton" runat="server" Text="<%$ Resources:Content,GN0000391%>" CssClass="btn btn-primary" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <%--End search box--%>
                                        <%--Start button--%>
                                        <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001320%></h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button ID="BTN_AddServer" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000970 %>' CssClass="btn btn-primary" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <%--end button--%>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <%-- <div class="header">
                                                        <h3><%= Resources.Content.GN00001320%></h3>
                                                    </div>--%>
                                                    <div class="body">
                                                        <asp:GridView ID="GV_ServerGroups" CssClass="table table-bordered table-hover table-striped table-responsive" AllowSorting="true" AllowPaging="true"
                                                            EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                                            <Columns>
                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, String385 %>'>
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="LB_Status" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000971 %>' HeaderStyle-CssClass="col-xs-4"
                                                                    HeaderStyle-ForeColor="white" SortExpression="ServerGrouPName">
                                                                    <ItemTemplate>
                                                                        <asp:HiddenField ID="HF_SGId" runat="server" />
                                                                        <asp:LinkButton ID="LB_SGName" runat="server" CommandName="ListServers" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ServerGroupID") %>'
                                                                            Text='<%# DataBinder.Eval(Container, "DataItem.ServerGrouPName") %>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, DGN1110096 %>' HeaderStyle-CssClass="col-xs-4">
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltl_Provider" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-3">
                                                                    <ItemTemplate>
                                                                        <%--<asp:hyperlink ID="LB_AddServer" SkinID="linkButtonAdd" runat="server" Text="<%$ Resources:Content,DGN1110093%>" />--%>
                                                                        <asp:LinkButton SkinID="linkButtondisable" ID="LBSG_EnableDisable" CommandName="EnableDisable"
                                                                            runat="server" Text="<%$ Resources:Content,GN00001025%>" CssClass="btn btn-primary btnAction" />
                                                                        <asp:HyperLink ID="LB_Edit" SkinID="linkButtonEdit" runat="server" Text="<%$ Resources:Content,GN0000276%>" CssClass="btn btn-primary" />
                                                                        <asp:LinkButton ID="LB_Remove" SkinID="linkButtonRemove" CommandName="RemoveServerGroup"
                                                                            runat="server" Text="<%$ Resources:Content,GN0000278%>" CssClass="btn btn-primary btnAction" />
                                                                        <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1110094%>"
                                                                            TargetControlID="LB_Remove" runat="server">
                                                                        </EM:ConfirmButtonExtender>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <%--PagerTemplate Start--%>
                                                            <PagerTemplate>
                                                                <EM:Pager ID="Pager1" runat="server" />
                                                            </PagerTemplate>
                                                            <%--PagerTemplate End--%>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Servers" runat="server" Enabled="false" HeaderText="<%$ Resources:Content,L00164%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent1" Visible="false" runat="server">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <%-- <div class="header">
                                                        <h3><%= Resources.Content.GN00001320%></h3>
                                                    </div>--%>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN0000102%>"
                                                                    EnableViewState="false" />
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <asp:Label ID="Lbl_SGName" runat="server" Text="<%$ Resources:Content,DGN1110254%>"
                                                                    EnableViewState="false" />
                                                            </div>
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,DGN1110096%>"
                                                                    EnableViewState="false" />
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,DGN1110254%>" EnableViewState="false" />
                                                            </div>
                                                        </div>

                                                        <asp:GridView ID="GV_Servers" CssClass="table table-bordered table-hover table-striped table-responsive" AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                                            runat="server" AutoGenerateColumns="False">
                                                            <Columns>
                                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-1">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbl_SGMStatus" runat="server" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000980 %>' HeaderStyle-CssClass="col-xs-7">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbl_SNName" runat="server"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-4">
                                                                    <ItemTemplate>
                                                                        <asp:LinkButton SkinID="linkButtonRun" ID="LB_TestService" CommandName="TestService"
                                                                            runat="server" Text="<%$ Resources:Content,String318%>" CssClass="btn btn-primary" />
                                                                        <asp:LinkButton SkinID="linkButtonStarted" ID="LB_EnableDisable" CommandName="EnableDisable"
                                                                            runat="server" Text="<%$ Resources:Content,GN00001025%>" CssClass="btn btn-primary btnAction" />
                                                                        <asp:HyperLink SkinID="linkButtonEdit" ID="LB_Edit" CommandName="EditServer" runat="server"
                                                                            Text="<%$ Resources:Content,GN0000276%>" CssClass="btn btn-primary" />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                        <asp:HiddenField ID="HF_SGMember" runat="server" />
                                                        <asp:Button ID="Btn_Dummy" runat="server" Text="" Style="display: none" />
                                                        <%--</fieldset>--%>
                                    </asp:Panel>
                                    <asp:Panel ID="Pnl_ServiceTest" runat="server" CssClass="row width-modal-popup-auto" Style="display: none">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h2>
                                                        <%= Resources.Content.L0096%>
                                                    </h2>
                                                </div>
                                                <div class="body">
                                                    <div class="row" id="Td_Message" runat="server">
                                                        <div class="col-xs-12">
                                                            <asp:Label ID="Lbl_ServicesStaus" runat="server" ForeColor="Green" Font-Bold="true"></asp:Label>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_OK" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$Resources:Content,GN0000858%>" SkinID="okbutton" />
                                                            <asp:Button ID="Btn_Display" runat="server" Style="display: none;" />
                                                        </div>
                                                    </div>
                                                </div>
                                    </asp:Panel>
                                    <EM:ModalPopupExtender runat="server" ID="MPE_ServicesTest" BackgroundCssClass="modalBackground"
                                        DropShadow="false" PopupControlID="Pnl_ServiceTest" TargetControlID="Btn_Display"
                                        OkControlID="Btn_OK">
                                    </EM:ModalPopupExtender>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>
