<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="address_Index.aspx.cs" Inherits="HRMS.HR.People.address.address_Index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="row">
        <div class="col-lg-12">
            <!--breadcrumbs start -->
            <ul class="breadcrumb">
                <li><a href="#" id="home" runat="server"><i class="fa fa-home"></i>Home</a></li>
                <li><a href="#" id="ppl" runat="server">People</a></li>
                <li><a href="#" id="ppl_index" runat="server">Employee List</a></li>
            </ul>
            <!--breadcrumbs end -->
        </div>
    </div>
    <div class="main-panel">
        <div class="row">
            <div class="col-md-12">
                <section class="panel">
                 <header class="panel-heading" style="padding-bottom:30px">
                           <span class="label label-primary">List Of Address </span>
                   
                   <div class="pull-right">
                    <asp:button text="New Record" ID="btn_addnew" CssClass="btn btn-info" runat="server" 
                           onclick="btn_addnew_Click" />
                    <asp:button text="Back To Person" CssClass="btn btn-info" ID="btn_bck_to_person" 
                           runat="server" onclick="btn_bck_to_person_Click" />
                   </div>
                </header>
                <div class="panel-body">
                 <div class="span6">
                                <div id="divmessage" runat="server" visible="false" class="alert alert-info alert-dismissable">
                                    <asp:Label ID="lbl_msg" runat="server" CssClass="msg" Text=""> </asp:Label>
                                </div>
                            </div>

                 <div class="span6">
                                <div id="diverrmessage" runat="server" visible="false" class="alert alert-danger alert-dismissable">
                                    <asp:Label ID="lbl_err_msg" runat="server" CssClass="msg" Text=""> </asp:Label>
                                </div>
                            </div>

                            <asp:GridView ID="GridView1" CssClass="display" runat="server" 
                        Border="0" CellPadding="0" AutoGenerateColumns="false" 
                        onrowcommand="GridView1_RowCommand">
                                <Columns>
                                    <asp:BoundField DataField="address_id" HeaderText="ID" />
                                    <asp:BoundField DataField="full_address" HeaderText="Address" />
                                    <asp:BoundField DataField="COUNTRY_name" HeaderText="Country" />
                                    <asp:BoundField DataField="CITY_name" HeaderText="Town/City" />
                                     <asp:TemplateField HeaderText="Action" ItemStyle-Width="6%">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="linkedit" runat="server" CausesValidation="false" CommandName="gEdit"><i class="fa fa-pencil" style="font-size:20px !important;"></i></asp:LinkButton>
                                            <asp:linkbutton ID="linkdlt" CommandName="gDelete" OnClientClick="return confirm('Are you sure to delete?')" runat="server"><i class="fa fa-trash" style="font-size:20px !important"></i></asp:linkbutton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                 <FooterStyle CssClass="footerStyle" />
                                 <HeaderStyle CssClass="headerStyle" />
                                 <RowStyle CssClass="rowStyle" />
                            </asp:GridView>
                             <script src="/ThemeScrips/Datatables/media/js/jquery.js" type="text/javascript"></script>
                             <script src="/ThemeScrips/Datatables/media/js/jquery.datatables.min.js" type="text/javascript"></script>
                             <script src="/ThemeScrips/Datatables/media/js/jquery.Datatables.js" type="text/javascript"></script>
                             <script src="/ThemeScrips/Datatables/media/js/GridviewFix.js" type="text/javascript"></script>
                             <script type="text/javascript">
                                 $("#ContentPlaceHolder1_GridView1").GridviewFix().dataTable();
                             </script>


                </div>

            </section>
            </div>
        </div>
    </div>
</asp:Content>
