<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Admin_Wireless_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">

    <ajax:UpdatePanel ID="UP_SPServerGroups" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="col-xs-12">
                <div class="card">
                    <%--<div class="header">
                        <h2>
                            <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
                    </div>--%>
                    <div class="body">
                        <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">
                                        <%--Start Search box--%>
                                        <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter">
                                            <div class="row">
                                                <div class="panel-group search-panel" id="AS_ServerGroup" role="tablist" aria-multiselectable="true">
                                                    <div class="col-xs-12" role="tab" id="SH_ServerGroup">
                                                        <div class="card">
                                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ServerGroup" href="#<%= CSB_ServerGroup.ClientID%>" aria-expanded="true" aria-controls="SH_ServerGroup">
                                                                <h3>
                                                                    <%= Resources.Content.GN0000395%>
                                                                </h3>
                                                            </div>
                                                            <div id="CSB_ServerGroup" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ServerGroup" aria-expanded="false">
                                                                <div class="row">
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:DropDownList ID="DDL_AIacticePAckages" runat="server">
                                                                                <asp:ListItem Selected="True" Text='<%$ Resources:Content,SelectStatus %>' 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" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000395%>" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <%--End search box--%>
                                        <%--Start button--%>
                                        <div class="row">
                                            <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001320%></h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button ID="BTN_AddServer" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000970 %>' />
                                                    </div>
                                                </div>

                                            </div>
                                            <div class="col-xs-12">
                                                <asp:GridView ID="GV_ServerGroups" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">

                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Img_SGStatus" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000971 %>' SortExpression="ServerGrouPName" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                                            <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-2" ItemStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltl_Provider" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5">
                                                            <ItemTemplate>
                                                                <asp:HyperLink ID="LB_AddServer" class="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,DGN1110093%>" />
                                                                <asp:LinkButton class="btn btn-primary waves-effect btnAction" ID="LBSG_EnableDisable" CommandName="EnableDisable"
                                                                    runat="server" Text="<%$ Resources:Content,GN00001025%>" />
                                                                <asp:HyperLink ID="LB_Edit" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                                                <asp:LinkButton ID="LB_Remove" class="btn btn-primary waves-effect btnAction" CommandName="RemoveServerGroup" runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                                                <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>
                                        <%--end button--%>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Servers" runat="server" Enabled="false" HeaderText="<%$ Resources:Content,L00300 %>">
                                <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_OpsRow" id="Div_OpsRow2" runat="server">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3><%= Resources.Content.GN00001320%></h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button ID="btn_AddSGMember" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,DGN1110098 %>' />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN0000102%>" EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <asp:Label ID="Lbl_SGName" runat="server" Text="<%$Resources:Content,DGN1110254%>" />
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,DGN1110096%>" EnableViewState="false" />:
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <asp:Label ID="Label1" runat="server" Text="<%$Resources:Content,DGN1110254%>" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xs-12">
                                                <asp:GridView ID="GV_Servers" CssClass="table table-bordered table-striped table-hover" AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                                    runat="server" AutoGenerateColumns="False">

                                                    <Columns>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN000195 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Img_SGMStatus" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000980 %>' HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_SNName" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-5" ItemStyle-CssClass="col-xs-5">
                                                            <ItemTemplate>
                                                                <asp:LinkButton class="btn btn-primary waves-effect" ID="LB_TestService" CommandName="TestService" runat="server" Text="<%$ Resources:Content,String318%>" />
                                                                <asp:LinkButton class="btn btn-primary waves-effect btnAction" ID="LB_EnableDisable" CommandName="EnableDisable" runat="server" Text="<%$ Resources:Content,GN00001025%>" />
                                                                <asp:HyperLink class="btn btn-primary waves-effect" ID="LB_Edit" runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                                                <asp:LinkButton class="btn btn-primary waves-effect btnAction" ID="LB_Remove" CommandName="RemoveServer" runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager2" runat="server" />
                                                    </PagerTemplate>

                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                                <asp:HiddenField ID="HF_SGMember" runat="server" />
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </div>
                </div>
            </div>

            <asp:Button ID="Btn_Dummy" runat="server" Text="" Style="display: none" />
            <asp:Panel ID="Pnl_ServiceTest" CssClass="width-modal-popup-auto" runat="server" Style="display: none">
                <div class="card">
                    <div class="header">
                        <h3><%= Resources.Content.L0096%></h3>
                    </div>
                    <div class="body">
                        <div id="Td_Message" class="row" 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" runat="server" Text="<%$ Resources:Content,GN0000858%>" class="btn btn-primary waves-effect" />
                                <asp:Button ID="Btn_Display" runat="server" Style="display: none;" />
                            </div>
                        </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>
    </ajax:UpdatePanel>
</asp:Content>


