<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Network_ServiceDirector_Switches, 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.M0038%>    
                </h3>
            </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_AddSwitch" runat="server" Text="<%$ Resources:Content,GN00008226%>" class="btn btn-primary waves-effect btnAction" />
                            </div>
                        </div>
                    </div>
                </div>

                <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_Search">
                    <ajax:UpdatePanel ID="UP_Filter" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <div class="row">
                                <div class="panel-group search-panel" id="AS_Switches" role="tablist" aria-multiselectable="true">
                                    <div class="col-xs-12" role="tab" id="SH_Switches">
                                        <div class="card">
                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Switches" href="#<%= CSB_Switches.ClientID%>" aria-expanded="true" aria-controls="SH_Switches">
                                                <h3>
                                                    <%= Resources.Content.GN0000395%>
                                                </h3>
                                            </div>
                                            <div id="CSB_Switches" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Switches" 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="TB_SrchID" runat="server"></asp:TextBox>
                                                                <EM:FilteredTextBoxExtender ID="FTBE_ID" runat="server" FilterType="Numbers,Custom" ValidChars="0123456789" TargetControlID="TB_SrchID"></EM:FilteredTextBoxExtender>
                                                                <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001237%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TB_SrchIdentif" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000187%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TB_SrchPorts" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001238%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:DropDownList ID="DDL_SrchRack" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:Button ID="Btn_Search" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                            <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>
                        </ContentTemplate>
                    </ajax:UpdatePanel>
                </asp:Panel>

                <ajax:UpdatePanel ID="UP_Switches" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:GridView ID="GV_Switches" AllowSorting="true" runat="server" AutoGenerateColumns="false" CssClass="table table-bordered table-striped table-hover"
                                    EmptyDataText="<%$ Resources:Content,GN00001375%>">

                                    <Columns>
                                        <asp:TemplateField SortExpression="SwitchID" HeaderText="<%$ Resources:Content,GN0001237%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_ID" runat="server">
                                                </asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN000187%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Identification" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000565%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <div id="Div_Port" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0001234%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_DataCenter" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:HyperLink class="btn btn-primary waves-effect" ID="LB_Edit" runat="server" Text="<%$ Resources:Content,GN0000276%>"></asp:HyperLink>
                                                <asp:LinkButton class="btn btn-primary waves-effect btnAction" ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000278%>" CommandName="delete_switch"></asp:LinkButton>
                                                <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                    TargetControlID="LB_Delete">
                                                </EM:ConfirmButtonExtender>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />

                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                                <asp:Label ID="Lbl_NoResults" runat="server" Text="<%$ Resources:Content,GN00001375%>"
                                    Visible="false" />
                            </div>
                        </div>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>
    <script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FTBE_ID.ClientID%>');
    </script>
</asp:Content>
