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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                     <%= Resources.Content.M0052%>
            </div>
            <div class="body">
                <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_AddNewMonitor" runat="server" Text="<%$ Resources:Content,GN0001111%>" class="btn btn-primary waves-effect btnAction" />
                            </div>
                        </div>
                    </div>
                </div>

                <ajax:UpdatePanel ID="UP_Filter" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_ApplyFilters">
                            <div class="row">
                                <div class="panel-group search-panel" id="AS_ListMonitors" role="tablist" aria-multiselectable="true">
                                    <div class="col-xs-12" role="tab" id="SH_ListMonitors">
                                        <div class="card">
                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ListMonitors" href="#<%= CSB_ListMonitors.ClientID%>" aria-expanded="true" aria-controls="SH_ListMonitors">
                                                <h3>
                                                    <%= Resources.Content.GN0000395%>
                                                </h3>
                                            </div>
                                            <div id="CSB_ListMonitors" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ListMonitors" 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_MonitorStatus" runat="server">
                                                                <asp:ListItem Value="-1" Text="<%$ Resources:Content,SelectStatus%>" />
                                                                <asp:ListItem Text="<%$ Resources:Content,GN0000858%>" Value="UP" />
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119960%>" Value="Down" />
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119959%>" Value="Paused" />
                                                                <asp:ListItem Text="<%$ Resources:Content,GN0000320%>" Value="Warning" />
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:DropDownList ID="DDL_MonitorType" runat="server">
                                                                <asp:ListItem Value="0" Selected="True" Text="<%$ Resources:Content,GN0001138%>"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119955%>" Value="1" />
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119954%>" Value="2" />
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119953%>" Value="3" />
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119952%>" Value="4" />
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119951%>" Value="5" />
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119950%>" Value="6" />
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119949%>" Value="7" />
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119948%>" Value="8" />
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119947%>" Value="9" />
                                                                <asp:ListItem Text="<%$ Resources:Content,DGN1119946%>" Value="10" />
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:Button ID="Btn_ApplyFilters" runat="server" class="btn btn-primary waves-effect" 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>
                                </div>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </ajax:UpdatePanel>

                <asp:HiddenField ID="HF_ServerID" runat="server" />
                <asp:HiddenField ID="HF_MonitorID" runat="server" />
                <asp:HiddenField ID="HF_ActionID" runat="server" />
                <asp:Button ID="Btn_Dummy" runat="server" Style="display: none;" />

                <div class="row">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <asp:Literal ID="Literal1" Text="<%$ Resources:Content,GN0001186%>" runat="server" EnableViewState="false" /></h3>
                            </div>
                            <div class="body">

                                <asp:Repeater ID="Rep_Servers" runat="server">
                                    <ItemTemplate>
                                        <div class="row">

                                           <%-- <div class="col-sm-1 col-xs-12">
                                                <asp:Image ID="Img_ServerIcon" runat="server" ImageUrl="~/images/icons/server-static.png" />
                                            </div>--%>
                                            <div class="col-sm-8 col-xs-12 row-label">
                                                <asp:Label ID="lbl_ServerNameIP" runat="server" />
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <asp:LinkButton class="btn btn-primary waves-effect" ID="LB_EditServer" runat="server" Text="<%$ Resources:Content,GN0000276%>" CommandName="edit_server"></asp:LinkButton>
                                                <asp:LinkButton class="btn btn-primary waves-effect btnAction" ID="LB_RemoveServer" runat="server" Text="<%$ Resources:Content,GN0000278%>" CommandName="delete_server"></asp:LinkButton>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Repeater ID="Rep_Monitor" runat="server">
                                                    <ItemTemplate>
                                                        <div class="row">

                                                           <%-- <div class="col-sm-1 col-xs-12">
                                                                <asp:Image ID="Img_MonitorIcon" runat="server" />
                                                            </div>--%>
                                                            <div id="TD_MonitorType" runat="server" class="col-sm-3 col-xs-12"></div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <asp:Label ID="Lbl_MonitorDetail" runat="server" />
                                                            </div>
                                                            <div class="col-sm-2 col-xs-12" id="TD_Status" runat="server">
                                                                <asp:Label ID="Lbl_Status" runat="server" />
                                                                <asp:Label ID="Lbl_ResponseTime" runat="server" />
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12" id="TD_Disabled" runat="server">
                                                                <asp:LinkButton ID="LB_Disabled" runat="server" CommandName="enable_disable" CssClass="btn btn-primary waves-effect btnAction" />
                                                                <asp:LinkButton class="btn btn-primary waves-effect" ID="LB_Edit" runat="server" Text="<%$ Resources:Content,GN0000276%>" CommandName="edit_monitor" />
                                                                <asp:LinkButton class="btn btn-primary waves-effect btnAction" ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>" CommandName="delete_monitor" />
                                                            </div>
                                                            <div id="Td__ServerID" runat="server" visible="false"></div>
                                                            <div id="TD_MonitorID" runat="server" visible="false"></div>
                                                        </div>
                                                    </ItemTemplate>

                                                </asp:Repeater>
                                            </div>
                                        </div>
                                        <hr />
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
