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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <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">
                                <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Filter">
                                    <%--Start Search box--%>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header" role="button" data-toggle="collapse" data-parent="#AS_SearchFilter" href="#<%= CSB_SearchFilter.ClientID%>" aria-expanded="true" aria-controls="SH_SearchFilter">
                                                    <h3>
                                                        <%= Resources.Content.GN0000395%>
                                                    </h3>
                                                </div>
                                                <div id="CSB_SearchFilter" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_SearchFilter" aria-expanded="false">
                                                    <div class="row">
                                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                                            <div class="form-group form-float">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_SGName" runat="server"></asp:TextBox>
                                                                    <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000971%>" class="form-label"></asp:Label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                                            <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 class="col-md-3 col-sm-6 col-xs-12">
                                                            <asp:Button ID="Btn_Filter" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000395 %>' />
                                                            <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                Text="<%$ Resources:Content,String289 %>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <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">
                                                <div class="clearfix">
                                                    <asp:Button ID="BTN_AddServer" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000970 %>' />
                                                </div>

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

                                <%--End search box--%>
                                <%--Start button--%>

                                <%--end button--%>
                                <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 HeaderText="<%$ Resources:Content,String385%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <asp:Label ID="lblSGStatus" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000971 %>' HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6"
                                            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" ItemStyle-CssClass="col-xs-3">
                                            <ItemTemplate>
                                                <asp:Literal ID="Ltl_Provider" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ProviderName") %>'></asp:Literal>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <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" runat="server" Text="<%$ Resources:Content,DGN1110093%>" />
                                                            </li>
                                                            <li>
                                                                <asp:LinkButton ID="LBSG_EnableDisable" CssClass="btnAction" CommandName="EnableDisable"
                                                                    runat="server" Text="<%$ Resources:Content,GN00001025%>" />
                                                            </li>
                                                            <li>
                                                                <asp:HyperLink ID="LB_Edit" runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                                            </li>
                                                            <li>
                                                                <asp:LinkButton ID="LB_Remove" CssClass="btnAction" CommandName="RemoveServerGroup"
                                                                    runat="server" Text="<%$ Resources:Content,GN0000278%>" OnClientClick="return confirm('Are you sure you want to remove this Server Group?');" />
                                                            </li>
                                                            <li>
                                                                <asp:LinkButton ID="LB_SyncQuotaTemplates" CssClass="btnAction" CommandName="SyncQuota"
                                                                    runat="server" Text="<%$ Resources:Content,strSyncQuotaTemplates%>" />
                                                            </li>
                                                        </ul>
                                                    </li>
                                                </ul>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                    <EM:TabPanel ID="Tab_Servers" runat="server" Enabled="false" HeaderText="<%$ Resources:Content,strWorkfolderServers %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" Visible="false" runat="server">
                                <div class="row Div_OpsRow" id="Div_OpsRow2" runat="server">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                </h3>
                                            </div>
                                            <div class="body">
                                               
                                                    <asp:Button class="btn btn-primary waves-effect btnAction" ID="btn_AddSGMember" runat="server" Text="<%$ Resources:Content,DGN1110098 %>" />                                                 
                                                <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>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <table class="table table-bordered table-striped table-hover">
                                            <tr>
                                                <td width="20%" class="row-label">
                                                    <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN0000102%>"
                                                        EnableViewState="false" />
                                                </td>
                                                <td width="30%">
                                                    <asp:Label ID="Lbl_SGName" runat="server" Text="<%$ Resources:Content,DGN1110254%>" />
                                                </td>
                                                <td width="20%" class="row-label">
                                                    <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,DGN1110096%>"
                                                        EnableViewState="false" />
                                                </td>
                                                <td width="30%">
                                                    <asp:Label ID="Lbl_SGProvider" runat="server" Text="<%$ Resources:Content,DGN1110254%>" />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:GridView ID="GV_Servers" CssClass="table table-bordered table-striped table-hover" AllowPaging="false" 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 HeaderText='<%$ Resources:Content,String385%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblSGMStatus" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000980 %>' HeaderStyle-CssClass="col-xs-4" ItemStyle-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" ItemStyle-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_SyncQuotaTemplates" CommandName="SyncQuota" runat="server" Text="<%$ Resources:Content,strSyncQuotaTemplates%>" />
                                                        <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%>" OnClientClick="return confirm('Are you sure you want to remove this Server?');" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>

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

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

    <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">
                        <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>
</asp:Content>
