<%@ page language="C#" masterpagefile="~/MasterFile/TimeCheck.master" autoeventwireup="true" enableeventvalidation="false" inherits="Transactions_TA_UI_Transactions_MultipleLeaveApplicationAdd, App_Web_zxbdsffp" validaterequest="false" %>

<%@ Register Src="~/UserControls/TA_uc_OrgLevelFilter_Updated.ascx" TagName="TA_uc_OrgLevel_Filter"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="BodyContentPH" runat="Server">

    <script src="../plugins/datepicker/jquery-1.11.1.min.js"></script>

    <script language="javascript" src="../js/jquery.autocomplete.js" type="text/javascript"></script>

    <script src="../plugins/datepicker/bootstrap-datepicker.js"></script>

    <script type="text/javascript" src="../js/EmpLeaveApplication.js"></script>

    <script type="text/javascript">
        function DynamicDatePicker(txtBoxId) {
            try {
                $("#" + txtBoxId).datetimepicker({ format: document.getElementById('Hidden1').value });
            }
            catch (err) {

            }
        }
        var SelectanEmployee = "Select an Employee";
        function openPopupMailCc() {
            var MailType = "CC";
            window.open('GetEmailIdsPopup.aspx?MailType=' + MailType + '', 'Test', 'height=610,top=200,left=250,width=600');
            return false;
        }
        function hidedivBorrow() {
            document.getElementById('ctl00_BodyContentPH_divBorrowLeave').style.display = "none";
        }
        function hidedivLeaveProcess() {
            document.getElementById('ctl00_BodyContentPH_divLeaveProcess').style.display = "none";
        }

        function LeaveAvailed() {
            var EmployeeId = document.getElementById('ctl00_BodyContentPH_hdnEmployeeId1').value;
            document.getElementById('ctl00_BodyContentPH_iframePopup').src = 'PopUp_LeaveAvailedQuota.aspx?EmployeeId=' + EmployeeId;
            //        window.open('PopUp_LeaveAvailedQuota.aspx?EmployeeId=' + EmployeeId + '','Test','height=340,top=200,left=320,width=320');
            return false;

        }

        function ClientSideClick(myButton) {

            // Client side validation
            if (typeof (Page_ClientValidate) == 'function') {
                if (Page_ClientValidate() == false)
                { return false; }
            }

            //make sure the button is not of type "submit" but "button"
            if (myButton.getAttribute('type') == 'button') {
                // disable the button
                myButton.disabled = true;
                myButton.value = "Processing...";
            }
            return true;
        }

        function CheckDatesAndNumberOfDays() {
            if (document.aspnetForm.ctl00_BodyContentPH_txtFromDate.value != "") {
                var weekDay = document.aspnetForm.ctl00_BodyContentPH_txtFromDate;
                var DateFormat = document.getElementById('Hidden1').value;
                var varLeaveApplicationId = "0";
                if (checkDate(weekDay, DateFormat)) {
                    if (document.aspnetForm.ctl00_BodyContentPH_txtToDate.value != "") {
                        var weekDay = document.aspnetForm.ctl00_BodyContentPH_txtToDate;
                        var DateFormat = document.getElementById('Hidden1').value;

                        if (checkDate(weekDay, DateFormat)) {
                            NumberOfdays(varLeaveApplicationId);
                        }
                        else {
                            return false;
                        }
                    }
                }
                else {
                    return false;
                }
            }
        }
        function LeaveApplicationAddClear(Dateval) {
            //            document.aspnetForm.ctl00_BodyContentPH_ddl_SessionFrom.selectedIndex=0;
            //            document.aspnetForm.ctl00_BodyContentPH_ddl_SessionTo.selectedIndex=0;
            document.aspnetForm.ctl00_BodyContentPH_txt_Numberofdays.value = "";
            document.getElementById('ctl00_BodyContentPH_hdnNumberofDaysApplied').value = "";

        }

        function FormValidation() {
            if (trim(document.aspnetForm.ctl00_BodyContentPH_txtReason.value) == "") {
                alert("Fill Reason");
                return false;

            }
            else {
                return confirm('Are you sure to Save?');
            }

        }
        function assignEmployeeId(empid) {
            document.getElementById('ctl00_BodyContentPH_hdnEmployeeId').value = empid;
        }

        function validateNumberOfDays(NumberOfDays) {
            if (parseInt(NumberOfDays.value) > 365) {
                alert('Number of days applied should not exceed 365 days');
            }
        }

        function DisabledInformTo(val) {
            document.getElementById('ctl00_BodyContentPH_lstInformTo').disabled = val;
        }
    </script>

    <div class="content-header">
        <h1>
            <img src="../dist/img/lve-app.png" style="padding-right: 10px;" />
            <asp:Label ID="lbl_HeaderLeaveApplication" runat="server">
            </asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <input id="Hidden1" type="hidden" value='<% Response.Write(Session["IDateFormat"].ToString()); %>' />
        <div class="inr-ftr">
            <div class="row">
                <div class="col-sm-12">
                    <div class="pull-right">
                        <h6>
                            <span style="color: Red">|</span><span style="padding-left: 10px; padding-right: 10px"><asp:Label
                                ID="lblIndicatesMandatoryFields" runat="server">
                            </asp:Label>
                                (3 No.)</span>
                        </h6>
                    </div>
                </div>
                <div class="clearfix">
                </div>
            </div>
        </div>
        <asp:Label ID="lblError" runat="server" Style="color: #ff0000">
        </asp:Label>
        <div class="emp-filter">
            <div class="form-horizontal">
                <div class="row">
                    <div class="col-md-12">
                        <div id="divAdmin" runat="server">
                            <asp:PlaceHolder ID="phrLeaveApplicationAdd" runat="server">
                                <uc1:TA_uc_OrgLevel_Filter ID="TA_uc_OrgLevel_Filter1" runat="server" />
                            </asp:PlaceHolder>
                            <div class="form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblEmployeeNames" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-3">
                                    <asp:DropDownList ID="ddlEmployeeNames" runat="server" CssClass="form-control select2 Man-dat"
                                        DataTextField="-Select-" onchange="assignEmployeeId(this.value);" AutoPostBack="true">
                                    </asp:DropDownList>
                                </div>
                                <div class="col-md-3 src-margintop">
                                    <asp:LinkButton ID="btnSearch" CssClass="btn src-btn fa-search" runat="server" OnClientClick="return EmployeeNamesForLeaveApplication();" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="clearfix">
                    </div>
                    <div class="row">
                        <div class="line16">
                        </div>
                    </div>
                    <div class="col-md-12">
                        <div runat="server">
                            <div class="form-group">
                                <div class="col-md-5">
                                    <div class="row form-group">
                                        <div class="col-md-5">
                                            <asp:Label ID="lblEmployeeId" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-7 src-padleft8px">
                                            <asp:Label ID="lblEmployeeIdData" runat="server" CssClass="form-control"></asp:Label>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-5">
                                            <asp:Label ID="lblEmployeeName" runat="server"></asp:Label>
                                        </div>
                                        <div class="col-md-7 src-padleft8px">
                                            <asp:Label ID="lblEmployeeNameData" runat="server" CssClass="form-control"></asp:Label>
                                        </div>
                                    </div>
                                    <div id="divEmployees" runat="server">
                                        <div class="row form-group">
                                            <div class="col-md-5">
                                                <asp:Label ID="lblLeaveAvailedMonth" Text="Leave Availed" runat="server"></asp:Label>
                                                <asp:HiddenField ID="hdnEmployeeId1" runat="server" />
                                            </div>
                                            <div class="col-md-7" style="padding-left: 8px">
                                                <asp:LinkButton ID="btnLeaveacailed" runat="server" CssClass="btn view-btn fa-eye"
                                                    Text="&nbsp;&nbsp;View" data-toggle="modal" data-target="#Mydev" OnClientClick="javascript:return LeaveAvailed();" />
                                                <asp:Label ID="lblLeaveAvailedMonthData" runat="server" BorderStyle="None" Visible="false"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <div class="col-md-5">
                                                <asp:Label ID="lblLeaveAvailedYear" Text="Leave Availed in this Year" runat="server"></asp:Label>
                                            </div>
                                            <div class="col-md-7 src-padleft8px">
                                                <asp:Label ID="lblLeaveAvailedYearData" runat="server" CssClass="form-control"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="divIntimationType" runat="server">
                                        <div class="row form-group">
                                            <div class="col-md-5">
                                                <asp:Label ID="Label11" runat="server" Text="Intimation Type"></asp:Label>
                                            </div>
                                            <div class="col-md-7" style="padding-left: 0px">
                                                <div class="col-md-3 src-padleft8px">
                                                    <asp:RadioButton ID="rbtnP" runat="server" GroupName="IntimationType" Checked="true"
                                                        CssClass="radio radio-primary" Text="P" onclick="document.getElementById('ctl00_BodyContentPH_lstInformTo').disabled = true;" />
                                                </div>
                                                <div class="col-md-4">
                                                    <asp:RadioButton ID="rbtnUPWI" runat="server" GroupName="IntimationType" Text="UP-WI"
                                                        CssClass="radio radio-primary" onclick="document.getElementById('ctl00_BodyContentPH_lstInformTo').disabled = false;" />
                                                </div>
                                                <div class="col-md-5">
                                                    <asp:RadioButton ID="rbtnUPWOI" runat="server" GroupName="IntimationType" Text="UP-WOI"
                                                        CssClass="radio radio-primary" onclick="document.getElementById('ctl00_BodyContentPH_lstInformTo').disabled = true;" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row form-group">
                                            <div class="col-md-5">
                                                Inform To
                                            </div>
                                            <div class="col-md-7" style="padding-left: 8px">
                                                <asp:ListBox ID="lstInformTo" runat="server" SelectionMode="Multiple" CssClass="form-control"></asp:ListBox>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-1">
                                </div>
                                <div class="col-md-5">
                                    <div class="row form-group">
                                        <div class="col-md-12">
                                            <div class="col-md-12 form-group">
                                                Leave Status - Current Year
                                            </div>
                                            <asp:GridView ID="grdFYLeave" runat="server" CssClass="table das-table1" AutoGenerateColumns="False"
                                                Width="100%" AllowSorting="True" PageSize="5" CellPadding="4">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Leave Status">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblLeaveStatus" Text='<%# Eval("LeaveStatus") %>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="CL">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblCL" runat="server" Text='<%# Bind("CL") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="LOP">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblLOP" runat="server" Text='<%# Bind("LOP") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="SL">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblSL" Text='<%# Eval("SL") %>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Comp Off">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblSL" Text='<%# Eval("Comp Off") %>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <EmptyDataTemplate>
                                                    No Records Found
                                                </EmptyDataTemplate>
                                                <HeaderStyle CssClass="empheader" />
                                                <RowStyle Height="30px" CssClass="table-bg" BorderColor="#C5DFFC" />
                                                <PagerStyle Font-Overline="False" HorizontalAlign="Right" CssClass="GridPager" />
                                                <PagerSettings FirstPageText="<<" LastPageText=">>" Mode="NumericFirstLast" NextPageText=">"
                                                    PreviousPageText="<" />
                                                <AlternatingRowStyle BackColor="white" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-12">
                                            <div class="col-md-12 form-group">
                                                Leave Status - Current Month
                                            </div>
                                            <asp:GridView ID="grdCMLeave" runat="server" CssClass="table das-table1" AutoGenerateColumns="False"
                                                Width="100%" AllowSorting="True" PageSize="5" CellPadding="4">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Leave Status">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblLeaveStatus" Text='<%# Eval("LeaveStatus") %>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="CL">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblCL" runat="server" Text='<%# Bind("CL") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="LOP">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblLOP" runat="server" Text='<%# Bind("LOP") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="SL">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblSL" Text='<%# Eval("SL") %>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Comp Off">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblSL" Text='<%# Eval("Comp Off") %>' runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <EmptyDataTemplate>
                                                    No Records Found
                                                </EmptyDataTemplate>
                                                <HeaderStyle CssClass="empheader" />
                                                <RowStyle Height="30px" CssClass="table-bg" BorderColor="#C5DFFC" />
                                                <PagerStyle Font-Overline="False" HorizontalAlign="Right" CssClass="GridPager" />
                                                <PagerSettings FirstPageText="<<" LastPageText=">>" Mode="NumericFirstLast" NextPageText=">"
                                                    PreviousPageText="<" />
                                                <AlternatingRowStyle BackColor="white" />
                                            </asp:GridView>
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-2">
                                            Quota
                                        </div>
                                        <div class="col-md-8">
                                            <asp:LinkButton ID="btnQuota" Text="&nbsp;&nbsp;Available Leaves" Style="margin-left: 0px"
                                                runat="server" CssClass="btn save-btn fa-question-circle" OnClientClick="return OpenWindowLeaveQuota_Angler(SelectanEmployee);" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="div" runat="server">
                            <div class="form-group">
                                <div class="col-md-1">
                                </div>
                            </div>
                        </div>
                        <div id="divGrid" runat="server">
                            <div class="form-group">
                                <div class="col-md-11 src-LeavePaddingRight">
                                    <div style="padding-bottom: 10px; overflow: auto;">
                                        <asp:GridView ID="gvTestGrid" DataKeyNames="SLNo" Width="100%" runat="server" AutoGenerateColumns="False"
                                            OnRowCreated="gvTestGrid_RowCreated" OnRowDataBound="gvTestGrid_RowDataBound"
                                            Height="1px" AllowSorting="true" OnSorting="gvTestGrid_Sorting" OnRowCommand="gvTestGrid_RowCommand"
                                            OnRowDeleting="gvTestGrid_RowDeleting" CssClass="table das-table1">
                                            <Columns>
                                                <asp:BoundField DataField="SLNo" HeaderText="SL No."></asp:BoundField>
                                                <asp:TemplateField HeaderText="Leave Category">
                                                    <HeaderStyle />
                                                    <ControlStyle CssClass="form-control select2" />
                                                    <ItemTemplate>
                                                        <asp:DropDownList OnSelectedIndexChanged="ddlLeaveCategory_SelectedIndexChanged"
                                                            ID="ddlLeaveCategory" runat="server" AutoPostBack="true" Style="min-width: 100px">
                                                            <asp:ListItem Value="1" Text="Leave"></asp:ListItem>
                                                            <asp:ListItem Value="2" Text="LOP"></asp:ListItem>
                                                            <asp:ListItem Value="3" Text="Comp Off"></asp:ListItem>
                                                        </asp:DropDownList>
                                                        <asp:HiddenField ID="hdnLeaveCategory" EnableViewState="true" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Leave Types">
                                                    <ControlStyle CssClass="form-control select2" />
                                                    <ItemTemplate>
                                                        <asp:DropDownList ID="ddlLeaveTypes" runat="server" AutoPostBack="false" Style="min-width: 100px">
                                                        </asp:DropDownList>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Leave From">
                                                    <ControlStyle CssClass="form-control" />
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtFromDate" runat="server" Text='<%# Bind("LeaveFrom") %>' onmouseover="javascript:return DynamicDatePicker(this.id);"
                                                            Style="min-width: 100px"></asp:TextBox>
                                                        <div runat="server" id="LeaveFromDivText" style="display: none">
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Leave To">
                                                    <ControlStyle CssClass="form-control" />
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtToDate" runat="server" Text='<%# Bind("LeaveTo") %>' Style="min-width: 100px"
                                                            onmouseover="javascript:return DynamicDatePicker(this.id);"></asp:TextBox>
                                                        <div runat="server" id="LeaveToDivText" style="display: none">
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Session From">
                                                    <ControlStyle CssClass="form-control select2" />
                                                    <ItemTemplate>
                                                        <asp:DropDownList EnableViewState="true" ID="ddlSessionsFrom" runat="server" AutoPostBack="false"
                                                            Style="min-width: 100px">
                                                        </asp:DropDownList>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Session To">
                                                    <ControlStyle CssClass="form-control select2" />
                                                    <ItemTemplate>
                                                        <asp:DropDownList EnableViewState="true" ID="ddlSessionsTo" runat="server" AutoPostBack="false"
                                                            Style="min-width: 100px">
                                                        </asp:DropDownList>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="No Of Leaves" Visible="true">
                                                    <ControlStyle CssClass="form-control" />
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblNoOfLeaves" runat="server" Text="0"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="center">
                                                    <ItemTemplate>
                                                        <asp:LinkButton ID="LinkButton1" CommandArgument='<%# Eval("SLNo") %>' CommandName="Delete"
                                                            runat="server" CssClass="btn btn-defalut del-icons">
                                                        </asp:LinkButton>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <HeaderStyle CssClass="empheader" />
                                            <RowStyle Height="30px" CssClass="table-bg" BorderColor="#C5DFFC" />
                                            <PagerStyle Font-Overline="False" HorizontalAlign="Right" CssClass="GridPager" />
                                            <PagerSettings FirstPageText="<<" LastPageText=">>" Mode="NumericFirstLast" NextPageText=">"
                                                PreviousPageText="<" />
                                            <AlternatingRowStyle BackColor="white" />
                                        </asp:GridView>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="divNewRow" runat="server">
                            <div class="form-group">
                                <div class="col-md-11 src-LeavePaddingRight">
                                    <div class="pull-right-button">
                                        <asp:LinkButton ID="btnNewRow" CssClass="btn add-btn fa-plus" runat="server" Text="&nbsp;&nbsp;Append"
                                            OnClick="btnNewRow_Click" />
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="divReason" runat="server">
                            <div class="form-group">
                                <div class="col-md-2">
                                    <asp:Label ID="lblReason" runat="server"></asp:Label>
                                </div>
                                <div class="col-md-11 src-LeavePaddingRight">
                                    <asp:TextBox ID="txtReason" runat="server" MaxLength="1000" onkeypress="return chkMaxLen(event,this,1000);"
                                        TabIndex="9" TextMode="MultiLine" CssClass="form-control man-dat" Style="resize: none">
                                    </asp:TextBox>
                                </div>
                            </div>
                            <div class="row" style="display: none">
                                <div class="col-md-2">
                                    <asp:Label ID="lblApprovalCC" runat="server" Text="Cc Mail Ids"></asp:Label>
                                </div>
                                <div class="col-md-11 src-LeavePaddingRight">
                                    <asp:TextBox ID="txtApprovalCC" TextMode="MultiLine" runat="server" CssClass="textbox_4"
                                        Width="500px" Height="50px"></asp:TextBox>
                                    <asp:Button ID="btnApprovalCC" runat="server" CssClass="but" Text="Cc..." Width="28px"
                                        OnClientClick="javascript:return openPopupMailCc();" />
                                    <input id="hdnSuccessiveYear" runat="server" type="hidden" />
                                    <input id="hdnFinalValue" runat="server" type="hidden" />
                                    <input id="hdnSuccessiveDate" runat="server" type="hidden" />
                                    <input id="hdnApplicationYear" runat="server" type="hidden" />
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-11 src-LeavePaddingRight">
                                <div class="pull-right-button">
                                    <asp:LinkButton ID="btnAdd" Text="Save" CssClass="btn save-btn fa-floppy-o" runat="server"
                                        OnClick="btn_add_Click" TabIndex="10" OnClientClick="if(FormValidation()) ClientSideClick(this);else return false;"
                                        UseSubmitBehavior="false" />
                                    <asp:LinkButton ID="btnCancel" Text="Back" CssClass="btn save-btn fa-angle-left"
                                        runat="server" CausesValidation="False" OnClick="btn_cancel_Click" TabIndex="11" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <input id="hdnEmployeeId" type="hidden" runat="server" />
    <div id="myModal" class="modal modal-default fade" role="dialog">
        <div class="modal-dialog" style="min-width: 40%">
            <!-- Modal content-->
            <div class="modal-content" style="margin-top: 100px">
                <div class="modal-header">
                    <button type="button" id="closemodal" class="close" data-dismiss="modal" style="border-radius: 50px;">
                        &times;</button>
                    <h4 class="modal-title" style="padding-bottom: 10px">
                        <asp:Label ID="lblSelectEmployee" runat="server" Text="Available Leave Quota"></asp:Label>
                    </h4>
                </div>
                <div class="modal-body">
                    <iframe id="iframeLeave" runat="server" scrolling="auto" width="100%" height="520px"
                        style="border-style: none"></iframe>
                </div>
                <div class="modal-footer" style="display: none">
                    <button type="button" class="btn btn-primary pull-right" data-dismiss="modal">
                        Close</button>
                </div>
            </div>
        </div>
    </div>
    <div id="Mydev" class="modal modal-default fade" role="dialog">
        <div class="modal-dialog" style="min-width: 40%">
            <!-- Modal content-->
            <div class="modal-content" style="margin-top: 100px">
                <div class="modal-header">
                    <button type="button" id="Button1" class="close" data-dismiss="modal" style="border-radius: 50px;">
                        &times;</button>
                    <h4 class="modal-title" style="padding-bottom: 10px">
                        <asp:Label ID="Label1" runat="server" Text="Leave Availed"></asp:Label>
                    </h4>
                </div>
                <div class="modal-body">
                    <iframe id="iframePopup" runat="server" scrolling="auto" width="100%" height="400px"
                        style="border-style: none"></iframe>
                </div>
                <div class="modal-footer" style="display: none">
                    <button type="button" class="btn btn-primary pull-right" data-dismiss="modal">
                        Close</button>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
