<%@ page language="C#" masterpagefile="~/MasterFile/TimeCheck.master" autoeventwireup="true" inherits="Transactions_TA_UI_Transactions_LeaveSanctionModify, App_Web_mboyvbe0" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="ConLeaveSanctionModify" ContentPlaceHolderID="BodyContentPH" runat="Server">
    <!--[if gt IE 5.5]>
	<link rel="stylesheet" type="text/css" href="../css/ProgressforIE.css" />
<![endif]-->
    <script type="text/javascript">
        var LeaveType = "Select Leave Type";
        var LeaveRestrictType = "Select Leave/Restricted Holiday";
        var FrmDate = "Fill From Date";
        var Todate = "Fill To Date";
        var SaveConfirmation = "Are you sure to, Save?"
        var MaxLength = "Maximum length is ";
        var ConfirmSave = "Are you sure to, Save?";
        //  var FillRemarks = "Fill Remarks";
        function MaxLengthh(maxLength) {
            MaxLength = maxLength;
        }
        function SetAlertMessages(Leavetype, LeaveRestrict, frmdate, Tdate, Reason, confirmation) {
            LeaveType = Leavetype;
            LeaveRestrictType = LeaveRestrict;
            FrmDate = frmdate;
            Todate = Tdate;
            FillReason = Reason;
            SaveConfirmation = confirmation;
        }
        function Validation() {
            return confirm(ConfirmSave);
        }
    </script>
    <div class="content-header">
        <h1 style="background-image: url('../dist/img/lve-san.png'); background-repeat: no-repeat; padding-left: 35px">
            <asp:Label ID="lbl_Header" runat="server"></asp:Label>
        </h1>
        <asp:SiteMapPath ID="site" runat="server" CssClass="breadcrumb">
            <NodeStyle CssClass="active" />
        </asp:SiteMapPath>
    </div>
    <div class="content">
        <asp:UpdatePanel ID="upLeave" runat="server">
            <ContentTemplate>
                <asp:Panel ID="pnlProgress" runat="server" Style="display: none;">
                    <asp:Panel ID="pnlLoading" runat="server" HorizontalAlign="center">
                        <div class="InsideProgressBar">
                            <div class="row" style="margin-top: 10px">
                                <img src="../dist/img/logo-Progress.png" />
                            </div>
                            <div class="row" style="min-width: 280px">
                                <img src="../dist/img/default.gif" style="width: 100px" />
                            </div>
                            <div class="row" style="margin-bottom: 10px">
                                <asp:Label ID="lblLoading" runat="server" ForeColor="black" Style="text-align: center"
                                    Font-Bold="true" Font-Size="12px" Font-Italic="true" Font-Family="Arial" Text="Please Wait..."></asp:Label>
                            </div>
                            <div class="clear clearfix">
                            </div>
                        </div>
                    </asp:Panel>
                </asp:Panel>
                <asp:HiddenField ID="hdnProgress" runat="server" />
                <cc1:ModalPopupExtender ID="popupProgress" runat="server" TargetControlID="hdnProgress"
                    BackgroundCssClass="ModalPopup" PopupControlID="pnlProgress" BehaviorID="popupProgress">
                </cc1:ModalPopupExtender>
            </ContentTemplate>
            <Triggers>
                <asp:PostBackTrigger ControlID="btn_Save" />
            </Triggers>
        </asp:UpdatePanel>
        <div class="col-md-12" style="color: Red; display: none">
            <span class="fa fa-asterisk"></span>
            <asp:Label ID="lbl_IndicatesMandatoryFields" runat="server" ForeColor="Red"></asp:Label>
        </div>
        <div class="emp-filter">
            <div class="form-horizontal">
                <div class="row">
                    <div class="col-md-12">
                        <div class="row form-group">
                            <div class="col-md-2">
                                <asp:Label ID="lbl_Empid" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lblEmpid" runat="server" CssClass="form-control"></asp:Label>
                            </div>
                            <div class="col-md-1">
                            </div>
                            <div class="col-md-2">
                                <asp:Label ID="lbl_EmpName" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lbl_EmployeeName" runat="server" CssClass="form-control"></asp:Label>
                            </div>
                        </div>
                        <div class="row form-group">
                            <div class="col-md-2">
                                <asp:Label ID="lbl_FromDate" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <div class="col-md-12 form-control">
                                    <asp:Label ID="lblFromDate" runat="server" Text="lblFromDate"></asp:Label>
                                    -
                                    <asp:Label ID="lblSessionFrom" runat="server"></asp:Label>
                                </div>
                            </div>
                            <div class="col-md-1">
                            </div>
                            <div class="col-md-2">
                                <asp:Label ID="lbl_Todate" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <div class="col-md-12 form-control">
                                    <asp:Label ID="lblToDate" runat="server" Text="lblToDate"></asp:Label>
                                    -
                                    <asp:Label ID="lblSessionTo" runat="server"></asp:Label>
                                </div>
                            </div>
                        </div>
                        <div class="row form-group">
                            <div class="col-md-2">
                                <asp:Label ID="lbl_NoOfDays" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lblNoOfDaysValue" runat="server" CssClass="form-control"></asp:Label>
                            </div>
                            <div class="col-md-1">
                            </div>
                            <div class="col-md-2">
                                <asp:Label ID="lbl_LeaveType" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lblLeaveType" runat="server" Text="lblLeaveType" CssClass="form-control"></asp:Label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-2">
                                <asp:Label ID="lbl_Reason" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:Label ID="lblReason" runat="server" Text="lblReason" Style="overflow-y: auto; overflow-x: auto; word-break: break-all; word-wrap: break-word; display: inline-block;"
                                    CssClass="form-control" Height="63px"></asp:Label>
                            </div>
                            <div class="col-md-1">
                            </div>
                            <div class="col-md-2">
                                <asp:Label ID="lbl_Remarks" runat="server"></asp:Label>
                            </div>
                            <div class="col-md-3">
                                <asp:TextBox onpaste="return true" ID="txtRemarks" runat="server" Style="resize: none"
                                    CssClass="form-control" MaxLength="250" onkeypress="return chkMaxLen(event,this,250,MaxLength);"
                                    TextMode="MultiLine"></asp:TextBox>
                            </div>
                        </div>
                        <div class="row" id="divDownload" runat="server" style="display: none;">
                            <div class="col-md-6" style="padding-left:0px;">
                                <div class="col-md-1" style="padding-right:0px;">
                                    <asp:ImageButton ID="btnDownload" runat="server" data-toggle="tooltip" data-placement="top" Width="22px" Height="22px" ImageUrl="~/Images/downloadicon.png" OnClick="btnDownload_Click" />
                                </div>
                                <div class="col-md-5" style="padding-left:6px;padding-top:4px">
                                    <asp:LinkButton ID="lnkbtnDownload" Style="text-underline-position: below; text-decoration: underline" runat="server" Text="Download File" OnClick="lnkbtnDownload_Click"></asp:LinkButton>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-11" style="overflow: auto; padding-bottom: 10px;">
                                <div id="divLeaveConversation" runat="server" style="overflow: auto;">
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-2">
                                <asp:Label ID="lbl_Status" runat="server" Text="Status"></asp:Label>
                                <%--<asp:RadioButtonList ID="rblStatus" runat="server" RepeatDirection="Horizontal" CssClass="radio radio-primary"
                                    RepeatLayout="Flow" Visible="false">
                                    <asp:ListItem Text="Approved" Value="Approved"></asp:ListItem>
                                    <asp:ListItem Text="Forwarded" Value="Forwarded"></asp:ListItem>
                                    <asp:ListItem Text="Pending" Value="Pending"></asp:ListItem>
                                    <asp:ListItem Text="Rejected" Value="Rejected"></asp:ListItem>
                                </asp:RadioButtonList>--%>
                                <asp:Label ID="lbl_Error" runat="server" Style="color: #ff0000"></asp:Label>
                            </div>
                            <div class="col-md-10 pad-left-0px">
                                <div class="col-md-2">
                                    <asp:RadioButton ID="rbApproved" Text="Approved" runat="server" CssClass="radio radio-primary"
                                        GroupName="ValStatus" AutoPostBack="true" OnCheckedChanged="rbApproved_OnCheckedChanged" />
                                </div>
                                <div class="col-md-2">
                                    <asp:RadioButton ID="rbForwarded" Text="Forwarded" runat="server" CssClass="radio radio-primary"
                                        GroupName="ValStatus" AutoPostBack="true" OnCheckedChanged="rbForwarded_OnCheckedChanged" />
                                </div>
                                <div class="col-md-2">
                                    <asp:RadioButton ID="rbPending" Text="Pending" runat="server" CssClass="radio radio-primary"
                                        GroupName="ValStatus" AutoPostBack="true" OnCheckedChanged="rbPending_OnCheckedChanged" />
                                </div>
                                <div class="col-md-2">
                                    <asp:RadioButton ID="rbRejected" Text="Rejected" runat="server" CssClass="radio radio-primary"
                                        GroupName="ValStatus" AutoPostBack="true" OnCheckedChanged="rbRejected_OnCheckedChanged" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                    </div>
                    <div class="col-md-5">
                        <div class="pull-right-button">
                            <asp:LinkButton ID="btn_Save" runat="server" CssClass="btn save-btn fa-floppy-o"
                                OnClick="btn_Save_Click" OnClientClick="javascript:if(Validation()) $find('popupProgress').show();else return false;" />
                            <%--  OnClientClick="$find('popupProgress').show();" />--%>
                            <asp:LinkButton ID="btn_Cancel" runat="server" CausesValidation="False" CssClass="btn save-btn fa-angle-left"
                                OnClick="btn_Cancel_Click" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
