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

<%@ Register Src="../UserControls/TA_uc_OrgLevelFilter_Updated.ascx" TagName="TA_uc_OrgLevel_Filter"
    TagPrefix="uc1" %>
<asp:Content ID="conBonusLeaveSanction" ContentPlaceHolderID="BodyContentPH" runat="Server">
    <table border="0" cellspacing="0" cellpadding="0" width="500">
        <tr>
            <td valign="top" width="15">
                <img src="../Images/corner1<%=Session["Direction"] %>.gif" width="15" height="15" /></td>
            <td valign="top" background="../Images/sideline.gif" bgcolor="#EAEAEA" width="365">
                <img src="../Images/spacer.gif" width="1" height="1" /></td>
            <td valign="top" width="11">
                <img src="../Images/corner2<%=Session["Direction"] %>.gif" width="15" height="15" /></td>
        </tr>
        <tr>
            <td background="../Images/line<%=Session["Direction"] %>.gif" width="15">
                &nbsp;</td>
            <td valign="top" bgcolor="#EAEAEA">
                <table border="0" align="center" cellpadding="2" cellspacing="1" width="650">
                    <tr>
                        <td valign="top" colspan="5" class="ModuleTitle" style="height: 24px">
                            <font color="#000080">
                                <asp:Label ID="lblBonusLeave" runat="server"></asp:Label></font></td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <input id="Hidden1" type="hidden" value='<% Response.Write(Convert.ToString(Session["IDateFormat"])); %>' />
                            <div id="divEmployeeDetails" runat="server">
                                <table border="0" cellpadding="0" cellspacing="1" width="100%">
                                    <tr>
                                        <td class="td">
                                            <asp:Label ID="lblEmployeeName" runat="server"></asp:Label></td>
                                        <td class="td">
                                            <asp:TextBox onpaste="return true"     ID="txtEmployeeName" runat="server" CssClass="textbox_4"></asp:TextBox>
                                        </td>
                                        <td class="td">
                                            <asp:Label ID="lblEmployeeId" runat="server"></asp:Label>
                                        </td>
                                        <td class="td">
                                            <asp:TextBox onpaste="return true"     ID="txtEmployeeId" runat="server" CssClass="textbox_4"></asp:TextBox><input
                                                id="Hidden2" type="hidden" value='<% Response.Write(Session["ITimeFormat"].ToString()); %>' /></td>
                                    </tr>
                                    <tr>
                                        <td class="td">
                                            <asp:Label ID="lblEmpCategory" runat="server"></asp:Label></td>
                                        <td class="td">
                                            <asp:DropDownList ID="ddlEmpCatagory" runat="server" CssClass="dlist" AppendDataBoundItems="true">
                                                <asp:ListItem Value="0" Selected="True" Text="-Select-"></asp:ListItem>
                                            </asp:DropDownList></td>
                                        <td class="td">
                                            <asp:Label ID="lblEmpType" runat="server"></asp:Label></td>
                                        <td class="td">
                                            <asp:DropDownList ID="ddlEmpType" runat="server" CssClass="dlist" AppendDataBoundItems="true">
                                                <asp:ListItem Value="0" Selected="True" Text="-Select-"></asp:ListItem>
                                            </asp:DropDownList></td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="td">
                            <asp:Label ID="lblTimePeriod" runat="server"></asp:Label></td>
                        <td class="td">
                            <asp:Label ID="lblFrom" runat="server"></asp:Label></td>
                        <td class="td">
                            <table>
                                <tr>
                                    <td>
                                        <asp:TextBox onpaste="return true"     ID="txtFromDate" runat="server" CssClass="textbox_4" onCut="return false"
                                            onDrop="return false" onkeydown="return key_press_nokey(event)" onkeypress="return AcceptTab(event);"
                                            >
                                        </asp:TextBox>
                                    </td>
                                    <td class="datepicker">
                                        <input type="image" src="../Images/dateicon.gif" name="butFromDate" />
                                    </td>
                                </tr>
                            </table>

                            <script type="text/javascript">
                                Calendar.setup({
                                    inputField     :    "ctl00$BodyContentPHRpt$txtFromDate",      // id of the input field
                                    ifFormat       :    document.getElementById('Hidden1').value,       // format of the input field
                                    showsTime      :    false,            // will display a time selector
                                    button         :    "butFromDate",   // trigger for the calendar (button ID)
                                    singleClick    :    true,           // double-click mode
                                    step           :    1                // show all years in drop-down boxes (instead of every other year as default)
                                });
                            </script>

                        </td>
                        <td class="td">
                            <asp:Label ID="lblTo" runat="server"></asp:Label></td>
                        <td class="td">
                            <table>
                                <tr>
                                    <td>
                                        <asp:TextBox onpaste="return true"     ID="txtToDate" runat="server" CssClass="textbox_4" onCut="return false"
                                            onDrop="return false" onkeydown="return key_press_nokey(event)" onkeypress="return AcceptTab(event);"
                                            >
                                        </asp:TextBox>
                                    </td>
                                    <td class="datepicker">
                                        <input type="image" src="../Images/dateicon.gif" name="butToDate" />
                                    </td>
                                </tr>
                            </table>

                            <script type="text/javascript">
                                Calendar.setup({
                                    inputField     :    "ctl00$BodyContentPHRpt$txtToDate",      // id of the input field
                                    ifFormat       :    document.getElementById('Hidden1').value,       // format of the input field
                                    showsTime      :    false,            // will display a time selector
                                    button         :    "butToDate",   // trigger for the calendar (button ID)
                                    singleClick    :    true,           // double-click mode
                                    step           :    1                // show all years in drop-down boxes (instead of every other year as default)
                                });
                            </script>

                            <asp:CustomValidator ID="cus_ToDate" OnServerValidate="ValidateToDate" runat="server"
                                EnableClientScript="False" ErrorMessage="Select valid To Date" Display="None"></asp:CustomValidator>
                            <asp:CustomValidator ID="cus_ComToDate" runat="server" EnableClientScript="False"
                                OnServerValidate="CompareDate" ErrorMessage="Select valid date compare with Fromdate"
                                Display="None"></asp:CustomValidator>
                            <asp:RequiredFieldValidator ID="reqToDate" runat="server" ControlToValidate="txtToDate"
                                Display="None" EnableClientScript="False" ErrorMessage="Please select ToDate"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" class="td">
                            <asp:PlaceHolder ID="PlaceHolderBonusLeave" runat="server">
                                <uc1:TA_uc_OrgLevel_Filter ID="TA_uc_OrgLevel_Filter1" runat="server" />
                            </asp:PlaceHolder>
                        </td>
                    </tr>
                    <tr width="100%">
                        <td class="td">
                            <asp:Label ID="lblStatus" runat="server"></asp:Label></td>
                        <td class="td" colspan="4">
                            <asp:DropDownList ID="ddlBonusLeaveStatus" runat="server">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td align="center" valign="bottom" colspan="5">
                            <table border="0" align="center" cellpadding="5" cellspacing="0">
                                <tr>
                                    <td align="center" valign="middle" style="height: 32px">
                                        <asp:Button ID="btn_View" CssClass="but" runat="server" Text="VIEW" OnClick="btn_View_Click" /></td>
                                </tr>
                            </table>
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                        </td>
                    </tr>
                </table>
            </td>
            <td background="../Images/line1<%=Session["Direction"] %>.gif" width="11">
                &nbsp;</td>
        </tr>
        <tr>
            <td valign="bottom" width="15">
                <img src="../Images/corner3<%=Session["Direction"] %>.gif" width="15" height="16" /></td>
            <td valign="bottom" background="../Images/sideline1.gif" bgcolor="#EAEAEA" width="365">
                <img src="../Images/spacer.gif" width="1" height="1" /></td>
            <td valign="bottom" width="11">
                <img src="../Images/corner4<%=Session["Direction"] %>.gif" width="15" height="16" /></td>
        </tr>
    </table>
</asp:Content>
