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

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

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <ajax:UpdatePanel ID="UP_Filter" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div class="col-xs-12">
                <div class="card">
                    <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">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN00001320%>" EnableViewState="false" /></h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button ID="Btn_AddServerGroup" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000970 %>' />
                                            </div>
                                        </div>
                                        <%--Start Search box--%>
                                        <div class="row">&nbsp;</div>
                                        <asp:Panel ID="Pnl_search" runat="server" CssClass="row" DefaultButton="Btn_Filter">
                                            <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-sm-1 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,String385%>"
                                                                        EnableViewState="false" />:
                                                                </div>
                                                                <div class="col-sm-3 col-xs-12">
                                                                    <div class="form-group">
                                                                        <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-sm-3 col-xs-12">
                                                                    <asp:Button ID="Btn_Filter" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000395 %>' />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <%--End search box--%>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:GridView ID="GV_ServerGroups" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" AllowPaging="true"
                                                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, String385 %>'>
                                                            <ItemTemplate>
                                                                <%--<asp:Image ID="Img_SGStatus" runat="server" />--%>
                                                                <asp:Label ID="Lb_SGStatus" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-6" HeaderText='<%$ Resources:Content, GN0000971 %>'
                                                            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-3">
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltl_Provider" runat="server" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <ul class="option-menu">
                                                                    <li class="dropdown">
                                                                        <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                                            <i class="material-icons">menu</i>
                                                                        </a>
                                                                        <ul class="dropdown-menu pull-right">
                                                                            <li>
                                                                                <asp:HyperLink ID="LB_AddServer" CssClass="btnAction" SkinID="linkButtonAdd" runat="server" Text="<%$ Resources:Content,GN0000968%>" />
                                                                            </li>
                                                                            <li>
                                                                                <asp:LinkButton SkinID="linkButtondisable" ID="LBSG_EnableDisable" CssClass="btnAction" CommandName="EnableDisable"
                                                                                    runat="server" Text="<%$ Resources:Content,GN00001025%>" />
                                                                            </li>
                                                                            <li>
                                                                                <asp:HyperLink ID="LB_Edit" SkinID="linkButtonEdit" runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                                                            </li>
                                                                            <li>
                                                                                <asp:LinkButton ID="LB_Remove" CssClass="btnAction" SkinID="linkButtonRemove" CommandName="RemoveServerGroup"
                                                                                    runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1110094%>"
                                                                                    TargetControlID="LB_Remove" runat="server">
                                                                                </EM:ConfirmButtonExtender>
                                                                            </li>

                                                                        </ul>
                                                                    </li>
                                                                </ul>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager1" runat="server" />
                                                    </PagerTemplate>
                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Servers" runat="server" Enabled="false" HeaderText="<%$ Resources:Content,L00162%>">
                                <ContentTemplate>
                                    <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent1" Visible="false" runat="server">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN00001320%>" EnableViewState="false" /></h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button class="btn btn-primary waves-effect btnAction" ID="btn_AddSGMember" runat="server"
                                                    Text="<%$ Resources:Content,GN0000968%>" />
                                                <asp:Button ID="btnEnable" runat="server" Text="<%$ Resources:Content,strEnable%>" class="btn btn-primary waves-effect btnAction" Custom1="Custom" Style="display: none" />
                                                <asp:Button ID="btnDisable" runat="server" Text="<%$ Resources:Content,strDisable%>" class="btn btn-primary waves-effect btnAction" Custom1="Custom" Style="display: none" />

                                            </div>
                                        </div>
                                        <div class="row">&nbsp;</div>
                                        <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>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:GridView ID="GV_Servers" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                                    runat="server" AutoGenerateColumns="False">
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,GN0000370 %>'>
                                                            <HeaderTemplate>
                                                                <asp:CheckBox class="option-menu" ID="ChkBx_All" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this,'All');" />
                                                            </HeaderTemplate>
                                                            <ItemTemplate>
                                                                <asp:CheckBox class="option-menu" ID="ChkBx_Item" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this,'1');" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, String385 %>'>
                                                            <ItemTemplate>
                                                                <%--<asp:Image ID="Img_SGMStatus" runat="server" />--%>
                                                                <asp:Label ID="Lb_SGMStatus" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000980 %>' HeaderStyle-CssClass="col-xs-4">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_SNName" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN000174 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_IP" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-4">
                                                            <ItemTemplate>
                                                                <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="LB_TestService" CommandName="TestService"
                                                                    runat="server" Text="<%$ Resources:Content,String318%>" />
                                                                <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LB_EnableDisable" CommandName="EnableDisable"
                                                                    runat="server" Text="<%$ Resources:Content,GN00001025%>" />
                                                                <asp:HyperLink CssClass="btn btn-primary waves-effect" ID="LB_Edit" runat="server"
                                                                    Text="<%$ Resources:Content,GN0000276%>" />
                                                                <asp:LinkButton CssClass="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" />
                                                <asp:Button ID="Btn_Dummy" runat="server" Text="" Style="display: none" />
                                            </div>
                                        </div>

                                    </asp:Panel>

                                </ContentTemplate>
                            </EM:TabPanel>
                        </EM:TabContainer>
                    </div>
                </div>
            </div>

            <asp:Panel ID="Pnl_ServiceTest" runat="server" CssClass="width-modal-popup-auto row" Style="display: none">
                <div class="col-xs-12">
                    <div class="card">
                        <div class="header">
                            <h3><%= Resources.Content.L0096%></h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Label ID="Lbl_ServicesStaus" runat="server" ForeColor="Green" Font-Bold="true"
                                        EnableViewState="false"></asp:Label>
                                </div>

                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_OK" runat="server" Text="<%$Resources:Content,GN0000858%>" CssClass="btn btn-primary waves-effect" />
                                    <asp:Button ID="Btn_Display" runat="server" Style="display: none;" />
                                </div>
                            </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>
