<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="Index.aspx.cs" Inherits="HRMS.SMIM_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-sm-12">
            <section class="panel">
                <header class="panel-heading">
                    List of User Access Policy(s)
             <%--<span class="tools pull-right">
                <a href="javascript:;" class="fa fa-chevron-down"></a>
                <a href="javascript:;" class="fa fa-times"></a>
             </span>--%>
                    <div class="actions pull-right">
                        <div class="btn-group">
                            <a href="#" id="aNew" runat="server" class="btn btn-info">New Record</a>

                        </div>
                    </div>
                </header>
                <br />

                <div class="panel-body">
                    <div class="span6">
                        <div id="divMessage" runat="server" visible="false" class="alert alert-info alert-dismissable">

                            <i class="icon-check-sign"></i>
                            <asp:Label ID="lblMessage" class="msg" runat="server" Text=""></asp:Label>
                        </div>
                        <div class="span6">
                            <div id="diverrorMessage" runat="server" visible="false" class="alert alert-danger alert-dismissable">

                                <i class="icon-check-sign"></i>
                                <asp:Label ID="lblerrorMessage" class="msg" runat="server" Text=""></asp:Label>
                            </div>
                        </div>
                    </div>
                    <div class="table-responsive">


                        <asp:GridView ID="grdUserAccessPolicy" runat="server" AutoGenerateColumns="false" CellPadding="0" CellSpacing="0" border="0" class="display" OnRowCommand="grdUserAccessPolicy_RowCommand">
                            <Columns>
                                <asp:BoundField HeaderText="Id" DataField="PolicyId" />
                                <asp:BoundField HeaderText="Access Policy" DataField="Description" />
                                <asp:BoundField HeaderText="Minimum Password" DataField="Min_PswdLen" />
                                <asp:BoundField HeaderText="Maximum Password" DataField="Max_PswdLen" />
                                <asp:BoundField HeaderText="Password Expiry On" DataField="PswdExpiryDays" />
                                <asp:BoundField HeaderText="Wrong Password Limit" DataField="PswrdWrongLimit" />
                                <asp:TemplateField ItemStyle-Width="6%" HeaderText="Action">
                                    <ItemTemplate>
                                        <%--   <%#Container.DataItemIndex+1 %>
                        <asp:CheckBox ID="chk" runat="server" />--%>
                                        <asp:LinkButton ID="lnkEdit" runat="server" CommandName="gEdit"><i class="fa fa-pencil" style="font-size:20px !important"></i></asp:LinkButton>
                                        &nbsp<asp:LinkButton ID="lnkDelete" runat="server" CommandName="gDelete" OnClientClick="return confirm('Are you sure to delete?')"><i class="fa fa-trash" style="font-size:20px !important"></i></asp:LinkButton>



                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%-- Mandatory--%>
                            <RowStyle CssClass="rowStyle" />
                            <%-- Mandatory--%>
                            <HeaderStyle CssClass="headerStyle" />
                            <%-- optional--%>
                            <FooterStyle CssClass="footerStyle" />
                        </asp:GridView>
                    </div>
                    <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">
                        //without passing class names.
                        $("#ContentPlaceHolder1_grdUserAccessPolicy").GridviewFix().dataTable();
                //Passing class names
                    </script>
                    <br />

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