<%@ page language="C#" enableeventvalidation="true" autoeventwireup="true" inherits="MasterFile_PassportVisaExpiry, App_Web_oi3e4x4a" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" runat="server" id="htmlEmpLeavePop">
<head runat="server">
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
        name="viewport" />
    <link id="stylebootstrap" rel="stylesheet" runat="server" type="text/css" />
    <link id="stylefontawesome" rel="stylesheet" runat="server" type="text/css" />
    <link id="styleAdminLTE" rel="stylesheet" runat="server" type="text/css" />
    <link id="stylecustom" rel="stylesheet" runat="server" type="text/css" />
    <link id="stylefonts" rel="stylesheet" runat="server" type="text/css" />
    <script type="text/javascript" src="../js/lockkeys.js"></script>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <title>Timecheck</title>
    <style type="text/css">
        td {
            cursor: pointer;
        }

        .hover_row {
            background-color: #A1DCF2;
        }
    </style>
</head>
<body>
    <form id="aspnetForm" runat="server" style="font-family: robotoregular !important">
        <div class="row form-group">
            <div class="col-md-12">
                <asp:GridView ID="grvPassVisa" runat="server" AllowPaging="false" AutoGenerateColumns="False"
                    PageSize="5" AllowSorting="true" ShowHeader="false" RowStyle-Height="35" OnSelectedIndexChanged="grvPassVisa_SelectedIndexChanged"
                    Style="margin-top: 0px; border-color: white" OnDataBound="grvPassVisa_DataBound" OnRowDataBound="grvPassVisa_RowDataBound" Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderStyle-CssClass="leave-type" ShowHeader="false"
                            HeaderStyle-BackColor="white" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="100%">
                            <ItemTemplate>
                                <asp:Label ID="lblExpiryContent" runat="server" Text='<%# Eval("ExpiryContent")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderStyle-CssClass="leave-type" Visible="false"
                            HeaderStyle-BackColor="white" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                            ItemStyle-CssClass="new-text">
                            <ItemTemplate>
                                <asp:Label ID="lblExpiryNumber" runat="server" Text='<%# Eval("ExpiryNumber")%>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="clearfix">
            </div>
            <div class="row">
                <div class="line16" style="margin-bottom: 0px">
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="col-ks-7" style="padding-top: 6px; padding-right: 0px;">
                    <asp:Label ID="lblsnooze" runat="server" Text="Don't Show this message for next"></asp:Label>
                </div>
                <div class="col-ks-3" style="padding-left: 0px;">
                    <asp:TextBox onkeypress="return number_dot(event,this)" MaxLength="3" CssClass="form-control" ID="txtRemindme" runat="server"></asp:TextBox>
                </div>
                <div class="col-ks-1" style="padding-top: 6px; padding-right: 30px">
                    <asp:Label ID="Label2" runat="server" Text="Days"></asp:Label>
                </div>
                <div class="col-ks-3">
                    <asp:HiddenField ID="hdnrecord" runat="server" />
                    <asp:LinkButton ID="btn_Add" OnClick="btn_Add_Click"
                        OnClientClick="return ValidateControls();" Text="Snooze" CssClass="btn save-btn" Style="padding: 3px 0px !important" runat="server" CausesValidation="true" />
                </div>

            </div>
        </div>
    </form>
    <script type="text/javascript">
        function ValidateControls() {
            var remindDays = document.getElementById('txtRemindme').value;
            //alert(remindDays);
            if (remindDays == '') {
                alert("Enter Number of days");
                document.getElementById('txtRemindme').focus();
                return false;
            }
            else if (isNaN(remindDays))
            {
                alert("Enter Number of days");
                document.getElementById('txtRemindme').focus();
                document.getElementById('txtRemindme').value='';
                return false;
            }
            return true;
        }
    $(function () {
        $("[id*=grvPassVisa] td").hover(function () {
            $("td", $(this).closest("tr")).addClass("hover_row");
        }, function () {
            $("td", $(this).closest("tr")).removeClass("hover_row");
        });
    });
    </script>

</body>
</html>
